2018-05-24 07:39:19 -05:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2018 Anthony Kreft <anthony.kreft@gmail.com>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
2018-09-27 08:22:08 -05:00
|
|
|
#include <st/l0/stm32l053X8.dtsi>
|
2019-10-07 09:37:09 +02:00
|
|
|
#include "arduino_r3_connector.dtsi"
|
2018-05-24 07:39:19 -05:00
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "STMicroelectronics STM32L053R8-NUCLEO board";
|
|
|
|
compatible = "st,stm32l053r8-nucleo", "st,stm32l053";
|
|
|
|
|
|
|
|
chosen {
|
|
|
|
zephyr,console = &usart2;
|
2018-11-27 12:11:04 +01:00
|
|
|
zephyr,shell-uart = &usart2;
|
2018-05-24 07:39:19 -05:00
|
|
|
zephyr,sram = &sram0;
|
|
|
|
zephyr,flash = &flash0;
|
|
|
|
};
|
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
2018-09-18 19:45:43 +02:00
|
|
|
green_led_2: led_2 {
|
2019-10-03 18:30:21 +02:00
|
|
|
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
|
2018-05-24 07:39:19 -05:00
|
|
|
label = "User LD2";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio_keys {
|
|
|
|
compatible = "gpio-keys";
|
2018-09-21 01:25:55 +02:00
|
|
|
user_button: button {
|
2018-05-24 07:39:19 -05:00
|
|
|
label = "User";
|
2019-10-03 18:30:21 +02:00
|
|
|
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>;
|
2018-05-24 07:39:19 -05:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
aliases {
|
|
|
|
led0 = &green_led_2;
|
|
|
|
sw0 = &user_button;
|
2020-01-14 17:32:49 +09:00
|
|
|
eeprom-0 = &eeprom;
|
2018-05-24 07:39:19 -05:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-04-01 11:47:04 +02:00
|
|
|
/* Due to limited available memory, don't enable gpiod and gpiof */
|
|
|
|
/* (Test cases fail due to 'SRAM' region overflow) */
|
|
|
|
&gpiod {status = "disabled";};
|
|
|
|
&gpioh {status = "disabled";};
|
|
|
|
|
2018-05-24 07:39:19 -05:00
|
|
|
&usart1 {
|
|
|
|
current-speed = <115200>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&usart2 {
|
|
|
|
current-speed = <115200>;
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-05-24 07:39:19 -05:00
|
|
|
};
|
|
|
|
|
2019-10-07 09:37:09 +02:00
|
|
|
&i2c1 {
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-05-24 07:39:19 -05:00
|
|
|
clock-frequency = <I2C_BITRATE_FAST>;
|
|
|
|
};
|
|
|
|
|
2019-10-07 09:37:09 +02:00
|
|
|
&spi1 {
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-05-24 07:39:19 -05:00
|
|
|
};
|
2020-01-14 17:32:49 +09:00
|
|
|
|
|
|
|
&eeprom {
|
|
|
|
status = "okay";
|
|
|
|
};
|