zephyr/boards/arm/nucleo_g071rb/nucleo_g071rb.dts

49 lines
873 B
Plaintext

/*
* Copyright (c) 2019 Philippe Retornaz <philippe@shapescale.com>
* Copyright (c) 2019 STMicroelectronics
*
* SPDX-License-Identifier: Apache-2.0
*/
/dts-v1/;
#include <st/g0/stm32g071Xb.dtsi>
#include "arduino_r3_connector.dtsi"
/ {
model = "STMicroelectronics STM32G071RB-NUCLEO board";
compatible = "st,stm32g071rb-nucleo", "st,stm32g071";
chosen {
zephyr,console = &usart2;
zephyr,shell-uart = &usart2;
zephyr,sram = &sram0;
zephyr,flash = &flash0;
};
leds {
compatible = "gpio-leds";
green_led_1: led_4 {
gpios = <&gpioa 5 GPIO_INT_ACTIVE_LOW>;
label = "User LD4";
};
};
gpio_keys {
compatible = "gpio-keys";
user_button: button {
label = "User";
gpios = <&gpioa 0 GPIO_INT_ACTIVE_LOW>;
};
};
aliases {
led0 = &green_led_1;
sw0 = &user_button;
};
};
&usart2 {
current-speed = <115200>;
status = "okay";
};