1/* 2 * Copyright (c) 2019 Antony Pavlov <antonynpavlov@gmail.com> 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/dts-v1/; 8#include <st/f0/stm32f030X4.dtsi> 9#include <st/f0/stm32f030f4px-pinctrl.dtsi> 10 11/ { 12 model = "STM32F030 DEMO board"; 13 compatible = "stm32f030-demo"; 14 15 chosen { 16 zephyr,console = &usart1; 17 zephyr,shell-uart = &usart1; 18 zephyr,sram = &sram0; 19 zephyr,flash = &flash0; 20 }; 21 22 leds { 23 compatible = "gpio-leds"; 24 led: led { 25 gpios = <&gpioa 4 GPIO_ACTIVE_HIGH>; 26 label = "User LED"; 27 }; 28 }; 29 30 aliases { 31 led0 = &led; 32 watchdog0 = &iwdg; 33 }; 34}; 35 36&clk_hse { 37 clock-frequency = <DT_FREQ_M(8)>; 38 status = "okay"; 39}; 40 41&pll { 42 prediv = <1>; 43 mul = <6>; 44 clocks = <&clk_hse>; 45 status = "okay"; 46}; 47 48&rcc { 49 clocks = <&pll>; 50 clock-frequency = <DT_FREQ_M(48)>; 51 ahb-prescaler = <1>; 52 apb1-prescaler = <1>; 53}; 54 55/* Due to limited available memory, don't enable gpioc,d,e,f */ 56&gpioc {status = "disabled";}; 57&gpiod {status = "disabled";}; 58&gpiof {status = "disabled";}; 59 60&usart1 { 61 pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>; 62 pinctrl-names = "default"; 63 current-speed = <115200>; 64 status = "okay"; 65}; 66 67&iwdg { 68 status = "okay"; 69}; 70