Skip to content

Commit f2c2fcd

Browse files
RadxaNaokiRadxaStephen
authored andcommitted
arm64: dts: rockchip: update LED definitions for ROCK 5A/B (#19)
no functional change ref: kernel/Documentation/devicetree/bindings/leds/common.yaml Signed-off-by: FUKAUMI Naoki <naoki@radxa.com>
1 parent 1456c11 commit f2c2fcd

File tree

2 files changed

+22
-4
lines changed

2 files changed

+22
-4
lines changed

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

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
/dts-v1/;
99

1010
#include <dt-bindings/gpio/gpio.h>
11+
#include <dt-bindings/leds/common.h>
1112
#include <dt-bindings/pwm/pwm.h>
1213
#include <dt-bindings/pinctrl/rockchip.h>
1314
#include <dt-bindings/input/rk-input.h>
@@ -167,9 +168,12 @@
167168

168169
leds {
169170
compatible = "gpio-leds";
171+
pinctrl-names = "default";
172+
pinctrl-0 = <&led_rgb_b>;
170173

171-
system-status {
172-
label = "blue:status";
174+
led_rgb_b {
175+
function = LED_FUNCTION_STATUS;
176+
color = <LED_COLOR_ID_BLUE>;
173177
gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>;
174178
linux,default-trigger = "heartbeat";
175179
};
@@ -884,6 +888,11 @@
884888
};
885889

886890
&pinctrl {
891+
leds {
892+
led_rgb_b: led-rgb-b {
893+
rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
894+
};
895+
};
887896

888897
usb {
889898
vcc5v0_host_en: vcc5v0-host-en {

arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
/dts-v1/;
99

1010
#include <dt-bindings/gpio/gpio.h>
11+
#include <dt-bindings/leds/common.h>
1112
#include <dt-bindings/pwm/pwm.h>
1213
#include <dt-bindings/pinctrl/rockchip.h>
1314
#include <dt-bindings/input/rk-input.h>
@@ -150,9 +151,12 @@
150151

151152
leds {
152153
compatible = "gpio-leds";
154+
pinctrl-names = "default";
155+
pinctrl-0 = <&io_led>;
153156

154-
system-status {
155-
label = "blue:status";
157+
io_led {
158+
function = LED_FUNCTION_STATUS;
159+
color = <LED_COLOR_ID_BLUE>;
156160
gpios = <&gpio3 RK_PD5 GPIO_ACTIVE_HIGH>;
157161
linux,default-trigger = "heartbeat";
158162
};
@@ -666,6 +670,11 @@
666670
};
667671

668672
&pinctrl {
673+
leds {
674+
io_led: io-led {
675+
rockchip,pins = <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
676+
};
677+
};
669678

670679
power {
671680
vcc_5v0_en: vcc-5v0-en {

0 commit comments

Comments
 (0)