boards: xmc45_relax_kit: Add led node

Adds two LEDs.

Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
This commit is contained in:
Andriy Gelman 2022-07-16 14:58:49 -04:00 committed by Carles Cufí
parent af6179d567
commit 4348cafa19

View file

@ -15,6 +15,21 @@
compatible = "infineon,xm4500-relax-kit", "infineon,xmc4500",
"infineon,xmc4xxx";
aliases {
led0 = &led1;
};
leds {
compatible = "gpio-leds";
/* leds are labelled LED1 and LED2 in the relax kit documentation */
led1: led1 {
gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
};
led2: led2 {
gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
};
};
chosen {
zephyr,sram = &dsram1;
zephyr,flash = &flash0;
@ -33,3 +48,7 @@
label = "UART_0";
status = "okay";
};
&gpio1 {
status = "okay";
};