2017-05-20 20:53:07 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2017, Erwin Rol <erwin@erwinrol.com>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
2018-09-27 21:23:16 +08:00
|
|
|
#include <st/f4/stm32f407Xg.dtsi>
|
2017-05-20 20:53:07 +08:00
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "Olimex STM32-E407 board";
|
|
|
|
compatible = "olimex,stm32-e407", "st,stm32f407";
|
|
|
|
|
|
|
|
chosen {
|
|
|
|
zephyr,console = &usart1;
|
2018-11-27 19:11:04 +08:00
|
|
|
zephyr,shell-uart = &usart1;
|
2017-05-20 20:53:07 +08:00
|
|
|
zephyr,sram = &sram0;
|
|
|
|
zephyr,flash = &flash0;
|
2017-11-29 05:34:08 +08:00
|
|
|
zephyr,ccm = &ccm0;
|
2017-05-20 20:53:07 +08:00
|
|
|
};
|
2017-11-24 17:08:03 +08:00
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
2018-09-19 01:45:43 +08:00
|
|
|
green_led_1: led_1 {
|
2017-11-24 17:08:03 +08:00
|
|
|
gpios = <&gpioc 13 GPIO_INT_ACTIVE_HIGH>;
|
|
|
|
label = "LED1";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio_keys {
|
|
|
|
compatible = "gpio-keys";
|
2018-09-21 07:25:55 +08:00
|
|
|
user_button: button {
|
2017-11-24 17:08:03 +08:00
|
|
|
label = "Key";
|
|
|
|
gpios = <&gpioa 0 GPIO_INT_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
aliases {
|
|
|
|
led0 = &green_led_1;
|
|
|
|
sw0 = &user_button;
|
|
|
|
};
|
2017-05-20 20:53:07 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
&usart1 {
|
|
|
|
current-speed = <115200>;
|
2017-08-01 17:40:29 +08:00
|
|
|
pinctrl-0 = <&usart1_pins_a>;
|
|
|
|
pinctrl-names = "default";
|
2017-05-20 20:53:07 +08:00
|
|
|
status = "ok";
|
|
|
|
};
|
|
|
|
|
|
|
|
&usart3 {
|
|
|
|
current-speed = <115200>;
|
2017-08-01 17:40:29 +08:00
|
|
|
pinctrl-0 = <&usart3_pins_a>;
|
|
|
|
pinctrl-names = "default";
|
2017-05-20 20:53:07 +08:00
|
|
|
status = "ok";
|
|
|
|
};
|
|
|
|
|
|
|
|
&usart6 {
|
|
|
|
current-speed = <115200>;
|
2017-08-01 17:40:29 +08:00
|
|
|
pinctrl-0 = <&usart6_pins_b>;
|
|
|
|
pinctrl-names = "default";
|
2017-05-20 20:53:07 +08:00
|
|
|
status = "ok";
|
|
|
|
};
|
2018-06-21 00:51:42 +08:00
|
|
|
|
|
|
|
&rtc {
|
|
|
|
status = "ok";
|
|
|
|
};
|