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.

This also update doc of the board to add the newly added GPIO driver.

Signed-off-by: Chen Xingyu <[email protected]>
  • Loading branch information
xingrz committed Oct 7, 2023
1 parent b19734c commit 0c04de5
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions boards/arm64/rpi_4b/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ hardware features:
+===========+============+======================================+
| GIC-400 | on-chip | GICv2 interrupt controller |
+-----------+------------+--------------------------------------+
| GPIO | on-chip | GPIO controller |
+-----------+------------+--------------------------------------+
| UART | on-chip | Mini uart serial port |
+-----------+------------+--------------------------------------+

Expand Down
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 10 GPIO_ACTIVE_HIGH>; /* GPIO 42 */
label = "ACT";
};
};
};

&gpio1 {
status = "okay";
};

&uart1 {
Expand Down

0 comments on commit 0c04de5

Please sign in to comment.