2017-02-05 06:29:41 +01:00
|
|
|
/*
|
2017-02-14 16:49:07 +01:00
|
|
|
* Copyright (c) 2017 Linaro Limited
|
2017-02-05 06:29:41 +01:00
|
|
|
*
|
2017-02-14 16:49:07 +01:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2017-02-05 06:29:41 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
2017-04-03 23:38:12 +02:00
|
|
|
#include <st/stm32l476.dtsi>
|
2017-02-05 06:29:41 +01: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 10:08:03 +01:00
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
green_led_2: led@0 {
|
|
|
|
gpios = <&gpioa 5 GPIO_INT_ACTIVE_HIGH>;
|
|
|
|
label = "User LD2";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio_keys {
|
|
|
|
compatible = "gpio-keys";
|
|
|
|
user_button: button@0 {
|
|
|
|
label = "User";
|
|
|
|
gpios = <&gpioc 13 GPIO_INT_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
aliases {
|
|
|
|
led0 = &green_led_2;
|
|
|
|
sw0 = &user_button;
|
|
|
|
};
|
2017-02-05 06:29:41 +01:00
|
|
|
};
|
|
|
|
|
2018-02-24 14:02:20 +01:00
|
|
|
&usart1 {
|
2017-04-20 17:10:10 +02:00
|
|
|
current-speed = <115200>;
|
2017-07-25 09:27:44 +02: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 06:29:41 +01:00
|
|
|
status = "ok";
|
|
|
|
};
|
2018-01-28 02:37:58 +01:00
|
|
|
|
|
|
|
&spi1 {
|
|
|
|
status = "ok";
|
|
|
|
};
|
2018-02-28 22:20:00 +01:00
|
|
|
|
|
|
|
&timers2 {
|
|
|
|
status = "ok";
|
|
|
|
|
|
|
|
pwm {
|
|
|
|
status = "ok";
|
|
|
|
};
|
|
|
|
};
|