2020-10-03 17:11:44 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2020, Erwin Rol <erwin@erwinrol.com>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
|
|
|
#include <st/f4/stm32f407Xe.dtsi>
|
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "SEGGER STM32F407 Trace Reference Board";
|
|
|
|
compatible = "segger,trb-stm32f407";
|
|
|
|
|
|
|
|
chosen {
|
|
|
|
zephyr,sram = &sram0;
|
|
|
|
zephyr,flash = &flash0;
|
|
|
|
zephyr,ccm = &ccm0;
|
|
|
|
};
|
|
|
|
|
|
|
|
aliases {
|
|
|
|
led0 = &led_0_green;
|
|
|
|
led1 = &led_1_green;
|
|
|
|
led2 = &led_2_green;
|
2022-07-19 16:33:14 +08:00
|
|
|
watchdog0 = &iwdg;
|
2020-10-03 17:11:44 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
led_0_green: led_0_green {
|
|
|
|
gpios = <&gpioa 8 GPIO_ACTIVE_HIGH>;
|
|
|
|
label = "LED0";
|
|
|
|
};
|
|
|
|
led_1_green: led_1_green {
|
|
|
|
gpios = <&gpioa 9 GPIO_ACTIVE_HIGH>;
|
|
|
|
label = "LED1";
|
|
|
|
};
|
|
|
|
led_2_green: led_2_green {
|
|
|
|
gpios = <&gpioa 10 GPIO_ACTIVE_HIGH>;
|
|
|
|
label = "LED2";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-05-04 16:32:35 +08:00
|
|
|
&clk_hse {
|
|
|
|
clock-frequency = <DT_FREQ_M(12)>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&pll {
|
|
|
|
div-m = <6>;
|
|
|
|
mul-n = <168>;
|
|
|
|
div-p = <2>;
|
|
|
|
div-q = <7>;
|
|
|
|
clocks = <&clk_hse>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&rcc {
|
|
|
|
clocks = <&pll>;
|
|
|
|
clock-frequency = <DT_FREQ_M(168)>;
|
|
|
|
ahb-prescaler = <1>;
|
|
|
|
apb1-prescaler = <4>;
|
|
|
|
apb2-prescaler = <2>;
|
|
|
|
};
|
|
|
|
|
2020-10-03 17:11:44 +08:00
|
|
|
&rtc {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&rng {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&iwdg {
|
|
|
|
status = "okay";
|
|
|
|
};
|