mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-17 14:22:43 +00:00
Add led and button to board description to enable basic gpio tests. Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
77 lines
1.3 KiB
Plaintext
77 lines
1.3 KiB
Plaintext
/*
|
|
* Copyright (c) 2019 STMicroelectronics
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/dts-v1/;
|
|
#include <st/mp1/stm32mp157.dtsi>
|
|
#include "arduino_r3_connector.dtsi"
|
|
|
|
/ {
|
|
model = "STMicroelectronics STM32MP157-DK2 board";
|
|
compatible = "st,stm32mp157c-dk2", "st,stm32mp15";
|
|
chosen {
|
|
/*
|
|
* By default, Zephyr console and shell are assigned to
|
|
* remoteproc. To enable console and shell over UART, uncomment
|
|
* following lines and set the correct config in
|
|
* stm32mp157c_dk2_defconfig "Serial Port" section in Zephyr
|
|
* board documentation.
|
|
* zephyr,console = &usart3;
|
|
* zephyr,shell-uart = &usart3;
|
|
*/
|
|
zephyr,flash = &retram;
|
|
zephyr,sram = &mcusram;
|
|
};
|
|
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
red_led_1: led_1 {
|
|
gpios = <&gpioh 7 GPIO_ACTIVE_HIGH>;
|
|
label = "LD7";
|
|
};
|
|
};
|
|
|
|
gpio_keys {
|
|
compatible = "gpio-keys";
|
|
user_button: button {
|
|
label = "User 1";
|
|
gpios = <&gpioa 14 GPIO_ACTIVE_LOW>;
|
|
};
|
|
};
|
|
|
|
aliases {
|
|
led0 = &red_led_1;
|
|
sw0 = &user_button;
|
|
};
|
|
|
|
};
|
|
|
|
&spi4{
|
|
status = "okay";
|
|
};
|
|
|
|
&spi5{
|
|
status = "okay";
|
|
};
|
|
|
|
&usart3 {
|
|
current-speed = <115200>;
|
|
status = "okay";
|
|
};
|
|
|
|
&uart7 {
|
|
current-speed = <115200>;
|
|
status = "okay";
|
|
};
|
|
|
|
&mailbox {
|
|
status = "okay";
|
|
};
|
|
|
|
&i2c5 {
|
|
status = "okay";
|
|
clock-frequency = <I2C_BITRATE_FAST>;
|
|
};
|