2018-10-31 19:17:31 +01:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2018 Centaur Analytics, Inc
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
|
|
|
#include <st/l4/stm32l496Xg.dtsi>
|
2019-10-07 11:41:41 +02:00
|
|
|
#include "arduino_r3_connector.dtsi"
|
2018-10-31 19:17:31 +01:00
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "STMicroelectronics STM32L496ZG-NUCLEO board";
|
|
|
|
compatible = "st,stm32l496zg-nucleo", "st,stm32l496";
|
|
|
|
|
|
|
|
chosen {
|
2018-11-10 01:09:08 +01:00
|
|
|
zephyr,console = &lpuart1;
|
2018-12-11 23:53:15 +01:00
|
|
|
zephyr,shell-uart = &lpuart1;
|
2018-10-31 19:17:31 +01:00
|
|
|
zephyr,sram = &sram0;
|
|
|
|
zephyr,flash = &flash0;
|
|
|
|
};
|
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
green_led_1: led_1 {
|
2019-10-03 18:30:21 +02:00
|
|
|
gpios = <&gpioc 7 GPIO_ACTIVE_HIGH>;
|
2018-10-31 19:17:31 +01:00
|
|
|
label = "User LD1";
|
|
|
|
};
|
|
|
|
blue_led_2: led_2 {
|
2019-10-03 18:30:21 +02:00
|
|
|
gpios = <&gpiob 7 GPIO_ACTIVE_HIGH>;
|
2018-10-31 19:17:31 +01:00
|
|
|
label = "User LD2";
|
|
|
|
};
|
|
|
|
red_led_3: led_3 {
|
2019-10-03 18:30:21 +02:00
|
|
|
gpios = <&gpiob 14 GPIO_ACTIVE_HIGH>;
|
2018-10-31 19:17:31 +01:00
|
|
|
label = "User LD3";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-11-14 19:47:25 +01:00
|
|
|
pwmleds {
|
|
|
|
compatible = "pwm-leds";
|
|
|
|
|
|
|
|
red_pwm_led: red_pwm_led {
|
2020-04-23 16:10:12 +02:00
|
|
|
pwms = <&pwm15 1 4 PWM_POLARITY_NORMAL>;
|
2018-11-14 19:47:25 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-10-31 19:17:31 +01:00
|
|
|
gpio_keys {
|
|
|
|
compatible = "gpio-keys";
|
|
|
|
user_button: button {
|
|
|
|
label = "User Button";
|
2019-10-08 10:00:32 +02:00
|
|
|
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
|
2018-10-31 19:17:31 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
aliases {
|
|
|
|
led0 = &green_led_1;
|
|
|
|
led1 = &blue_led_2;
|
|
|
|
led2 = &red_led_3;
|
2018-11-14 19:47:25 +01:00
|
|
|
pwm-led0 = &red_pwm_led;
|
2018-10-31 19:17:31 +01:00
|
|
|
sw0 = &user_button;
|
|
|
|
};
|
|
|
|
};
|
2018-11-10 01:09:08 +01:00
|
|
|
|
|
|
|
&usart2 {
|
|
|
|
current-speed = <115200>;
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-11-10 01:09:08 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
&usart3 {
|
|
|
|
current-speed = <115200>;
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-11-10 01:09:08 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
&lpuart1 {
|
|
|
|
current-speed = <115200>;
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-11-10 01:09:08 +01:00
|
|
|
};
|
2018-11-14 19:47:25 +01:00
|
|
|
|
|
|
|
&timers1 {
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-11-14 19:47:25 +01:00
|
|
|
|
2020-05-01 16:13:37 +02:00
|
|
|
pwm1: pwm {
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-11-14 19:47:25 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&timers2 {
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-11-14 19:47:25 +01:00
|
|
|
|
2020-05-01 16:13:37 +02:00
|
|
|
pwm2: pwm {
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-11-14 19:47:25 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&timers4 {
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-11-14 19:47:25 +01:00
|
|
|
|
2020-05-01 16:13:37 +02:00
|
|
|
pwm4: pwm {
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-11-14 19:47:25 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&timers15 {
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-11-14 19:47:25 +01:00
|
|
|
|
2020-05-01 16:13:37 +02:00
|
|
|
pwm15: pwm {
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-11-14 19:47:25 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-11-18 18:16:40 +01:00
|
|
|
&i2c1 {
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-11-18 18:16:40 +01:00
|
|
|
clock-frequency = <I2C_BITRATE_FAST>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&spi1 {
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-11-18 18:16:40 +01:00
|
|
|
};
|
|
|
|
|
2018-11-14 19:47:25 +01:00
|
|
|
&rtc {
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-11-14 19:47:25 +01:00
|
|
|
};
|
2019-07-15 15:19:43 +02:00
|
|
|
|
|
|
|
&wwdg {
|
|
|
|
status = "okay";
|
|
|
|
};
|