1/*
2 * Copyright (c) 2019 Linumiz
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/dts-v1/;
8#include <st/f4/stm32f401Xc.dtsi>
9#include <st/f4/stm32f401c(b-c)ux-pinctrl.dtsi>
10
11/ {
12	model = "STMicroelectronics Flight Controller Board";
13	compatible = "st,flight-controller-board";
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		red_led_1: led_1 {
25			gpios = <&gpiob 5 GPIO_ACTIVE_HIGH>;
26			label = "User LD1";
27		};
28
29		red_led_2: led_2 {
30			gpios = <&gpiob 4 GPIO_ACTIVE_HIGH>;
31			label = "User LD2";
32		};
33	};
34
35	aliases {
36		led0 = &red_led_1;
37		led1 = &red_led_2;
38	};
39};
40
41&clk_hse {
42	clock-frequency = <DT_FREQ_M(16)>;
43	status = "okay";
44};
45
46&pll {
47	div-m = <16>;
48	mul-n = <336>;
49	div-p = <4>;
50	div-q = <7>;
51	clocks = <&clk_hse>;
52	status = "okay";
53};
54
55&rcc {
56	clocks = <&pll>;
57	clock-frequency = <DT_FREQ_M(84)>;
58	ahb-prescaler = <1>;
59	apb1-prescaler = <2>;
60	apb2-prescaler = <1>;
61};
62
63&i2c2 {
64	pinctrl-0 = <&i2c2_sda_pb3 &i2c2_scl_pb10>;
65	status = "okay";
66	clock-frequency = <I2C_BITRATE_FAST>;
67};
68
69&usart1 {
70	pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
71	current-speed = <115200>;
72	status = "okay";
73};
74
75&timers2 {
76	status = "okay";
77
78	pwm2: pwm {
79		status = "okay";
80		pinctrl-0 = <&tim2_ch1_pa0>;
81	};
82};
83
84&rtc {
85	status = "okay";
86};
87
88&iwdg {
89	status = "okay";
90};
91