2017-02-05 13:29:41 +08:00
|
|
|
/*
|
2017-02-14 23:49:07 +08:00
|
|
|
* Copyright (c) 2017 Linaro Limited
|
2017-02-05 13:29:41 +08:00
|
|
|
*
|
2017-02-14 23:49:07 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2017-02-05 13:29:41 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
2018-09-27 21:21:55 +08:00
|
|
|
#include <st/l4/stm32l476Xg.dtsi>
|
2017-02-05 13:29:41 +08:00
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "STMicroelectronics STM32L476RG-NUCLEO board";
|
|
|
|
compatible = "st,stm32l476rg-nucleo", "st,stm32l476";
|
|
|
|
|
|
|
|
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-02-05 13:29:41 +08:00
|
|
|
};
|
|
|
|
|
2018-02-24 21:02:20 +08:00
|
|
|
&usart1 {
|
2017-04-20 23:10:10 +08:00
|
|
|
current-speed = <115200>;
|
2017-07-25 15:27:44 +08:00
|
|
|
pinctrl-0 = <&usart1_pins_b>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
status = "ok";
|
|
|
|
};
|
|
|
|
|
|
|
|
&usart2 {
|
|
|
|
current-speed = <115200>;
|
|
|
|
pinctrl-0 = <&usart2_pins_a>;
|
|
|
|
pinctrl-names = "default";
|
2017-02-05 13:29:41 +08:00
|
|
|
status = "ok";
|
|
|
|
};
|
2018-01-28 09:37:58 +08:00
|
|
|
|
|
|
|
&spi1 {
|
|
|
|
status = "ok";
|
|
|
|
};
|
2018-03-01 05:20:00 +08:00
|
|
|
|
|
|
|
&timers2 {
|
|
|
|
status = "ok";
|
|
|
|
|
|
|
|
pwm {
|
|
|
|
status = "ok";
|
|
|
|
};
|
|
|
|
};
|
2018-06-19 21:21:36 +08:00
|
|
|
|
|
|
|
&rtc {
|
|
|
|
status = "ok";
|
|
|
|
};
|