Skip to content

Commit 4348caf

Browse files
talih0carlescufi
authored andcommitted
boards: xmc45_relax_kit: Add led node
Adds two LEDs. Signed-off-by: Andriy Gelman <[email protected]>
1 parent af6179d commit 4348caf

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

boards/arm/xmc45_relax_kit/xmc45_relax_kit.dts

+19
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,21 @@
1515
compatible = "infineon,xm4500-relax-kit", "infineon,xmc4500",
1616
"infineon,xmc4xxx";
1717

18+
aliases {
19+
led0 = &led1;
20+
};
21+
22+
leds {
23+
compatible = "gpio-leds";
24+
/* leds are labelled LED1 and LED2 in the relax kit documentation */
25+
led1: led1 {
26+
gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
27+
};
28+
led2: led2 {
29+
gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
30+
};
31+
};
32+
1833
chosen {
1934
zephyr,sram = &dsram1;
2035
zephyr,flash = &flash0;
@@ -33,3 +48,7 @@
3348
label = "UART_0";
3449
status = "okay";
3550
};
51+
52+
&gpio1 {
53+
status = "okay";
54+
};

0 commit comments

Comments
 (0)