1/*
2 * Copyright (c) 2020, Erwin Rol <erwin@erwinrol.com>
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/dts-v1/;
8#include <st/f4/stm32f407Xe.dtsi>
9
10/ {
11	model = "SEGGER STM32F407 Trace Reference Board";
12	compatible = "segger,trb-stm32f407";
13
14	chosen {
15		zephyr,sram = &sram0;
16		zephyr,flash = &flash0;
17		zephyr,ccm = &ccm0;
18	};
19
20	aliases {
21		led0 = &led_0_green;
22		led1 = &led_1_green;
23		led2 = &led_2_green;
24		watchdog0 = &iwdg;
25	};
26
27	leds {
28		compatible = "gpio-leds";
29		led_0_green: led_0_green {
30			gpios = <&gpioa 8 GPIO_ACTIVE_HIGH>;
31			label = "LED0";
32		};
33		led_1_green: led_1_green {
34			gpios = <&gpioa 9 GPIO_ACTIVE_HIGH>;
35			label = "LED1";
36		};
37		led_2_green: led_2_green {
38			gpios = <&gpioa 10 GPIO_ACTIVE_HIGH>;
39			label = "LED2";
40		};
41	};
42};
43
44&clk_lsi {
45	status = "okay";
46};
47
48&clk_hse {
49	clock-frequency = <DT_FREQ_M(12)>;
50	status = "okay";
51};
52
53&pll {
54	div-m = <6>;
55	mul-n = <168>;
56	div-p = <2>;
57	div-q = <7>;
58	clocks = <&clk_hse>;
59	status = "okay";
60};
61
62&rcc {
63	clocks = <&pll>;
64	clock-frequency = <DT_FREQ_M(168)>;
65	ahb-prescaler = <1>;
66	apb1-prescaler = <4>;
67	apb2-prescaler = <2>;
68};
69
70&rtc {
71	clocks = <&rcc STM32_CLOCK_BUS_APB1 0x10000000>,
72		 <&rcc STM32_SRC_LSI RTC_SEL(2)>;
73	status = "okay";
74};
75
76&rng {
77	status = "okay";
78};
79
80&iwdg {
81	status = "okay";
82};
83