2017-03-08 00:04:58 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2017 Linaro Limited
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
2018-09-27 21:23:16 +08:00
|
|
|
#include <st/f4/stm32f411Xe.dtsi>
|
2017-03-08 00:04:58 +08:00
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "STMicroelectronics STM32F411RE-NUCLEO board";
|
|
|
|
compatible = "st,stm32f411re-nucleo", "st,stm32f411";
|
|
|
|
|
|
|
|
chosen {
|
|
|
|
zephyr,console = &usart2;
|
|
|
|
zephyr,sram = &sram0;
|
|
|
|
zephyr,flash = &flash0;
|
|
|
|
};
|
2017-11-24 17:08:03 +08:00
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
2018-09-19 01:45:43 +08:00
|
|
|
green_led_2: led_2 {
|
2017-11-24 17:08:03 +08:00
|
|
|
gpios = <&gpioa 5 GPIO_INT_ACTIVE_HIGH>;
|
|
|
|
label = "User LD2";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
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 = "User";
|
|
|
|
gpios = <&gpioc 13 GPIO_INT_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
aliases {
|
|
|
|
led0 = &green_led_2;
|
|
|
|
sw0 = &user_button;
|
|
|
|
};
|
2017-03-08 00:04:58 +08:00
|
|
|
};
|
|
|
|
|
2017-04-06 00:21:10 +08:00
|
|
|
&usart1 {
|
2017-04-20 23:10:10 +08:00
|
|
|
current-speed = <115200>;
|
2017-07-25 17:02:42 +08:00
|
|
|
pinctrl-0 = <&usart1_pins_a>;
|
|
|
|
pinctrl-names = "default";
|
2017-04-06 00:21:10 +08:00
|
|
|
status = "ok";
|
|
|
|
};
|
|
|
|
|
2017-03-08 00:04:58 +08:00
|
|
|
&usart2 {
|
2017-04-20 23:10:10 +08:00
|
|
|
current-speed = <115200>;
|
2017-07-25 17:02:42 +08:00
|
|
|
pinctrl-0 = <&usart2_pins_a>;
|
|
|
|
pinctrl-names = "default";
|
2017-03-08 00:04:58 +08:00
|
|
|
status = "ok";
|
|
|
|
};
|
2018-01-16 23:41:10 +08:00
|
|
|
|
|
|
|
&i2c1 {
|
|
|
|
status = "ok";
|
|
|
|
clock-frequency = <I2C_BITRATE_FAST>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&i2c2 {
|
|
|
|
clock-frequency = <I2C_BITRATE_FAST>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&i2c3 {
|
|
|
|
clock-frequency = <I2C_BITRATE_FAST>;
|
|
|
|
};
|
2018-06-21 00:51:42 +08:00
|
|
|
|
|
|
|
&rtc {
|
|
|
|
status = "ok";
|
|
|
|
};
|