2018-02-08 06:31:59 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2018 Endre Karlson <endre.karlson@gmail.com>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
2018-09-27 21:22:08 +08:00
|
|
|
#include <st/l0/stm32l072Xz.dtsi>
|
2020-10-06 17:46:37 +08:00
|
|
|
#include <st/l0/stm32l072c(b-z)tx-pinctrl.dtsi>
|
2018-02-08 06:31:59 +08:00
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "Dragino LSN50 LoRA Sensor Node";
|
2020-09-25 20:57:24 +08:00
|
|
|
compatible = "vendor,dragino";
|
2018-02-08 06:31:59 +08:00
|
|
|
|
|
|
|
chosen {
|
|
|
|
zephyr,console = &usart1;
|
2018-11-27 19:11:04 +08:00
|
|
|
zephyr,shell-uart = &usart1;
|
2018-02-08 06:31:59 +08:00
|
|
|
zephyr,sram = &sram0;
|
|
|
|
zephyr,flash = &flash0;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-04-30 21:02:16 +08:00
|
|
|
&clk_hsi {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&pll {
|
|
|
|
div = <2>;
|
|
|
|
mul = <4>;
|
|
|
|
clocks = <&clk_hsi>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&rcc {
|
|
|
|
clocks = <&pll>;
|
|
|
|
clock-frequency = <DT_FREQ_M(32)>;
|
|
|
|
ahb-prescaler = <1>;
|
|
|
|
apb1-prescaler = <1>;
|
|
|
|
apb2-prescaler = <1>;
|
|
|
|
};
|
|
|
|
|
2018-02-08 06:31:59 +08:00
|
|
|
&usart1 {
|
2020-10-06 17:46:37 +08:00
|
|
|
pinctrl-0 = <&usart1_tx_pb6 &usart1_rx_pb7>;
|
2021-09-07 22:38:13 +08:00
|
|
|
pinctrl-names = "default";
|
2020-10-06 17:46:37 +08:00
|
|
|
current-speed = <115200>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&usart2 {
|
|
|
|
pinctrl-0 = <&usart2_tx_pa2 &usart2_rx_pa3>;
|
2021-09-07 22:38:13 +08:00
|
|
|
pinctrl-names = "default";
|
2018-02-08 06:31:59 +08:00
|
|
|
current-speed = <115200>;
|
2019-06-15 01:31:16 +08:00
|
|
|
status = "okay";
|
2018-02-08 06:31:59 +08:00
|
|
|
};
|