2019-04-19 04:57:58 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2019 Antony Pavlov <antonynpavlov@gmail.com>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
|
|
|
#include <st/f0/stm32f030X4.dtsi>
|
2020-10-06 20:16:50 +08:00
|
|
|
#include <st/f0/stm32f030f4px-pinctrl.dtsi>
|
2019-04-19 04:57:58 +08:00
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "STM32F030 DEMO board";
|
2023-06-23 15:55:15 +08:00
|
|
|
compatible = "stm32f030-demo";
|
2019-04-19 04:57:58 +08:00
|
|
|
|
|
|
|
chosen {
|
|
|
|
zephyr,console = &usart1;
|
|
|
|
zephyr,shell-uart = &usart1;
|
|
|
|
zephyr,sram = &sram0;
|
|
|
|
zephyr,flash = &flash0;
|
|
|
|
};
|
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
led: led {
|
2020-01-26 23:58:46 +08:00
|
|
|
gpios = <&gpioa 4 GPIO_ACTIVE_HIGH>;
|
2019-04-19 04:57:58 +08:00
|
|
|
label = "User LED";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
aliases {
|
|
|
|
led0 = &led;
|
2022-07-19 16:33:14 +08:00
|
|
|
watchdog0 = &iwdg;
|
2019-04-19 04:57:58 +08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-04-30 23:35:44 +08:00
|
|
|
&clk_hse {
|
|
|
|
clock-frequency = <DT_FREQ_M(8)>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&pll {
|
|
|
|
prediv = <1>;
|
|
|
|
mul = <6>;
|
|
|
|
clocks = <&clk_hse>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&rcc {
|
|
|
|
clocks = <&pll>;
|
|
|
|
clock-frequency = <DT_FREQ_M(48)>;
|
|
|
|
ahb-prescaler = <1>;
|
|
|
|
apb1-prescaler = <1>;
|
|
|
|
};
|
|
|
|
|
2020-04-01 17:47:04 +08:00
|
|
|
/* Due to limited available memory, don't enable gpioc,d,e,f */
|
|
|
|
&gpioc {status = "disabled";};
|
|
|
|
&gpiod {status = "disabled";};
|
|
|
|
&gpiof {status = "disabled";};
|
|
|
|
|
2019-04-19 04:57:58 +08:00
|
|
|
&usart1 {
|
2020-10-06 20:16:50 +08:00
|
|
|
pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
|
2021-09-07 22:38:13 +08:00
|
|
|
pinctrl-names = "default";
|
2019-04-19 04:57:58 +08:00
|
|
|
current-speed = <115200>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&iwdg {
|
|
|
|
status = "okay";
|
|
|
|
};
|