blob: 305c93e627a74c7a20f5ea5ed0c6df6d13bf123e [file] [log] [blame]
Jose F. Fernandez690a2ea2017-10-12 14:02:36 +02001/*
2 * Copyright (c) 2017 Fenix Engineering Solutions
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/dts-v1/;
8#include <st/stm32f411.dtsi>
9
10/ {
11 model = "STMicroelectronics STM32F411E-DISCO board";
12 compatible = "st,stm32f411e-disco", "st,stm32f411";
13
14 chosen {
15 zephyr,console = &usart2;
16 zephyr,sram = &sram0;
17 zephyr,flash = &flash0;
18 };
Erwan Gouriou7c6cf202017-11-24 10:08:03 +010019
20 leds {
21 compatible = "gpio-leds";
22 orange_led_3: led@0 {
23 gpios = <&gpiod 13 GPIO_INT_ACTIVE_HIGH>;
24 label = "User LD3";
25 };
26 green_led_4: led@1 {
27 gpios = <&gpiod 12 GPIO_INT_ACTIVE_HIGH>;
28 label = "User LD4";
29 };
30 red_led_5: led@2 {
31 gpios = <&gpiod 14 GPIO_INT_ACTIVE_HIGH>;
32 label = "User LD5";
33 };
34 blue_led_6: led@3 {
35 gpios = <&gpiod 15 GPIO_INT_ACTIVE_HIGH>;
36 label = "User LD6";
37 };
38 };
39
40 gpio_keys {
41 compatible = "gpio-keys";
Erwan Gourioude24cd62018-09-21 01:25:55 +020042 user_button: button {
Erwan Gouriou7c6cf202017-11-24 10:08:03 +010043 label = "User";
44 gpios = <&gpioa 0 GPIO_INT_ACTIVE_LOW>;
45 };
46 };
47
48 aliases {
49 led0 = &orange_led_3;
50 led1 = &green_led_4;
51 led2 = &red_led_5;
52 led3 = &blue_led_6;
53 sw0 = &user_button;
54 };
Jose F. Fernandez690a2ea2017-10-12 14:02:36 +020055};
56
57&usart2 {
58 current-speed = <115200>;
59 pinctrl-0 = <&usart2_pins_a>;
60 pinctrl-names = "default";
61 status = "ok";
62};
Yannis Damigose688d5c2018-06-20 19:51:42 +030063
64&rtc {
65 status = "ok";
66};