1/* 2 * Copyright (c) 2018 Endre Karlson <endre.karlson@gmail.com> 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/dts-v1/; 8#include <st/l0/stm32l072Xz.dtsi> 9#include <st/l0/stm32l072c(b-z)tx-pinctrl.dtsi> 10 11/ { 12 model = "Dragino LSN50 LoRA Sensor Node"; 13 compatible = "vendor,dragino"; 14 15 chosen { 16 zephyr,console = &usart1; 17 zephyr,shell-uart = &usart1; 18 zephyr,sram = &sram0; 19 zephyr,flash = &flash0; 20 }; 21}; 22 23&clk_hsi { 24 status = "okay"; 25}; 26 27&pll { 28 div = <2>; 29 mul = <4>; 30 clocks = <&clk_hsi>; 31 status = "okay"; 32}; 33 34&rcc { 35 clocks = <&pll>; 36 clock-frequency = <DT_FREQ_M(32)>; 37 ahb-prescaler = <1>; 38 apb1-prescaler = <1>; 39 apb2-prescaler = <1>; 40}; 41 42&usart1 { 43 pinctrl-0 = <&usart1_tx_pb6 &usart1_rx_pb7>; 44 pinctrl-names = "default"; 45 current-speed = <115200>; 46 status = "okay"; 47}; 48 49&usart2 { 50 pinctrl-0 = <&usart2_tx_pa2 &usart2_rx_pa3>; 51 pinctrl-names = "default"; 52 current-speed = <115200>; 53 status = "okay"; 54}; 55