Skip to content

Commit

Permalink
boards: arm64: rpi_4b: Add DTS node for LED_ACT
Browse files Browse the repository at this point in the history
LED_ACT is the green LED at the top left corner of the RPi 4B board.

Signed-off-by: Chen Xingyu <[email protected]>
  • Loading branch information
xingrz committed Oct 14, 2023
1 parent dec630d commit fd5477c
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions boards/arm64/rpi_4b/rpi_4b.dts
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,36 @@
/dts-v1/;

#include <broadcom/bcm2711.dtsi>
#include <zephyr/dt-bindings/gpio/gpio.h>

/ {
model = "Raspberry Pi 4 Model B";
compatible = "raspberrypi,4-model-b", "brcm,bcm2838";
#address-cells = <1>;
#size-cells = <1>;

aliases {
led0 = &led_act;
};

chosen {
zephyr,console = &uart1;
zephyr,shell-uart = &uart1;
zephyr,sram = &sram0;
};

leds {
compatible = "gpio-leds";

led_act: led-act {
gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>; /* GPIO 42 */
label = "ACT";
};
};
};

&gpio1 {
status = "okay";
};

&uart1 {
Expand Down

0 comments on commit fd5477c

Please sign in to comment.