Skip to content
Permalink
Browse files

boards: arm: 96b_avenger96: Add onboard LEDs

Add onboard LEDs on 96Boards Avenger96 board. There are 4 user LEDs
on this board but only 3 are enabled. This is due to the fact that
LED0 is connected to unavailable PortZ. Hence, LED0 is ignored and
remaining LEDs are enabled starting from index 0.

Once PortZ is added, this will be fixed.

Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
  • Loading branch information...
Mani-Sadhasivam authored and carlescufi committed Aug 7, 2019
1 parent 857bcd9 commit 8d52f4ab9e3865a1ee3df9dd62ed84231b82e53c
Showing with 22 additions and 0 deletions.
  1. +22 −0 boards/arm/96b_avenger96/96b_avenger96.dts
@@ -24,6 +24,28 @@
zephyr,flash = &retram;
zephyr,sram = &mcusram;
};

leds {
compatible = "gpio-leds";
green_led_0: led_0 {
gpios = <&gpiof 3 GPIO_INT_ACTIVE_HIGH>;
label = "USR0 LED";
};
green_led_1: led_1 {
gpios = <&gpiog 0 GPIO_INT_ACTIVE_HIGH>;
label = "USR1 LED";
};
green_led_2: led_2 {
gpios = <&gpiog 1 GPIO_INT_ACTIVE_HIGH>;
label = "USR2 LED";
};
};

aliases {
led0 = &green_led_0;
led1 = &green_led_1;
led2 = &green_led_2;
};
};

&uart4 {

0 comments on commit 8d52f4a

Please sign in to comment.
You can’t perform that action at this time.