Skip to content

Commit

Permalink
boards: xmc45_relax_kit: Add led node
Browse files Browse the repository at this point in the history
Adds two LEDs.

Signed-off-by: Andriy Gelman <[email protected]>
  • Loading branch information
talih0 authored and carlescufi committed Aug 5, 2022
1 parent af6179d commit 4348caf
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions boards/arm/xmc45_relax_kit/xmc45_relax_kit.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -33,3 +48,7 @@
label = "UART_0";
status = "okay";
};

&gpio1 {
status = "okay";
};

0 comments on commit 4348caf

Please sign in to comment.