Skip to content

Commit 7952cbb

Browse files
sremmind
authored andcommitted
arm64: dts: rockchip: add status LED to rock-5b
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]>
1 parent afa933c commit 7952cbb

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
/dts-v1/;
44

55
#include <dt-bindings/gpio/gpio.h>
6+
#include <dt-bindings/leds/common.h>
67
#include "rk3588.dtsi"
78

89
/ {
@@ -37,6 +38,19 @@
3738
pinctrl-0 = <&hp_detect>;
3839
};
3940

41+
leds {
42+
compatible = "gpio-leds";
43+
pinctrl-names = "default";
44+
pinctrl-0 = <&led_rgb_b>;
45+
46+
led_rgb_b {
47+
function = LED_FUNCTION_STATUS;
48+
color = <LED_COLOR_ID_BLUE>;
49+
gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>;
50+
linux,default-trigger = "heartbeat";
51+
};
52+
};
53+
4054
fan: pwm-fan {
4155
compatible = "pwm-fan";
4256
cooling-levels = <0 95 145 195 255>;
@@ -285,6 +299,12 @@
285299
};
286300
};
287301

302+
leds {
303+
led_rgb_b: led-rgb-b {
304+
rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
305+
};
306+
};
307+
288308
sound {
289309
hp_detect: hp-detect {
290310
rockchip,pins = <1 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;

0 commit comments

Comments
 (0)