Skip to content

Commit

Permalink
arm64: dts: rockchip: update LED definitions for ROCK 5A/B (rockchip-…
Browse files Browse the repository at this point in the history
…linux#19)

no functional change

ref: kernel/Documentation/devicetree/bindings/leds/common.yaml

Signed-off-by: FUKAUMI Naoki <[email protected]>
  • Loading branch information
RadxaNaoki authored Aug 23, 2022
1 parent 0cdf37b commit b76d699
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
13 changes: 11 additions & 2 deletions arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
/dts-v1/;

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/pwm/pwm.h>
#include <dt-bindings/pinctrl/rockchip.h>
#include <dt-bindings/input/rk-input.h>
Expand Down Expand Up @@ -173,9 +174,12 @@

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

system-status {
label = "blue:status";
led_rgb_b {
function = LED_FUNCTION_STATUS;
color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "heartbeat";
};
Expand Down Expand Up @@ -890,6 +894,11 @@
};

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

usb {
vcc5v0_host_en: vcc5v0-host-en {
Expand Down
13 changes: 11 additions & 2 deletions arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
/dts-v1/;

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/pwm/pwm.h>
#include <dt-bindings/pinctrl/rockchip.h>
#include <dt-bindings/input/rk-input.h>
Expand Down Expand Up @@ -157,9 +158,12 @@

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

system-status {
label = "blue:status";
io_led {
function = LED_FUNCTION_STATUS;
color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio3 RK_PD5 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "heartbeat";
};
Expand Down Expand Up @@ -673,6 +677,11 @@
};

&pinctrl {
leds {
io_led: io-led {
rockchip,pins = <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
};
};

power {
vcc_5v0_en: vcc-5v0-en {
Expand Down

0 comments on commit b76d699

Please sign in to comment.