1/* 2 * Copyright (c) 2021 Next Big Thing AG 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 NBSN95 NB-IoT Sensor Node"; 13 compatible = "vendor,dragino"; 14 15 chosen { 16 zephyr,console = &usart2; 17 zephyr,shell-uart = &usart2; 18 zephyr,sram = &sram0; 19 zephyr,flash = &flash0; 20 }; 21 22 leds { 23 compatible = "gpio-leds"; 24 green_led: led { 25 gpios = <&gpioa 8 GPIO_ACTIVE_HIGH>; 26 label = "User LD1"; 27 }; 28 }; 29 30 aliases { 31 led0 = &green_led; 32 }; 33}; 34 35&clk_hsi { 36 status = "okay"; 37}; 38 39&pll { 40 div = <2>; 41 mul = <4>; 42 clocks = <&clk_hsi>; 43 status = "okay"; 44}; 45 46&rcc { 47 clocks = <&pll>; 48 clock-frequency = <DT_FREQ_M(32)>; 49 ahb-prescaler = <1>; 50 apb1-prescaler = <1>; 51 apb2-prescaler = <1>; 52}; 53 54&usart1 { 55 pinctrl-0 = <&usart1_tx_pb6 &usart1_rx_pb7>; 56 pinctrl-names = "default"; 57 current-speed = <115200>; 58 status = "okay"; 59}; 60 61&usart2 { 62 pinctrl-0 = <&usart2_tx_pa2 &usart2_rx_pa3>; 63 pinctrl-names = "default"; 64 current-speed = <115200>; 65 status = "okay"; 66}; 67