Skip to content

Commit

Permalink
arm64: dts: rockchip: add status LED to rock-5b
Browse files Browse the repository at this point in the history
Describe the Rock 5B status LED in its device tree.

Signed-off-by: Sebastian Reichel <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Heiko Stuebner <[email protected]>
  • Loading branch information
sre authored and ayufan committed Nov 10, 2023
1 parent ddcb007 commit e097087
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
/dts-v1/;

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h>
#include "rk3588.dtsi"

/ {
Expand Down Expand Up @@ -37,6 +38,19 @@
pinctrl-0 = <&hp_detect>;
};

leds {
compatible = "gpio-leds";
pinctrl-names = "default";
pinctrl-0 = <&led_rgb_b>;

led_rgb_b {
function = LED_FUNCTION_STATUS;
color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "heartbeat";
};
};

fan: pwm-fan {
compatible = "pwm-fan";
cooling-levels = <0 95 145 195 255>;
Expand Down Expand Up @@ -285,6 +299,12 @@
};
};

leds {
led_rgb_b: led-rgb-b {
rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
};
};

sound {
hp_detect: hp-detect {
rockchip,pins = <1 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
Expand Down

0 comments on commit e097087

Please sign in to comment.