diff options
author | Sebastian Reichel <sebastian.reichel@collabora.com> | 2023-07-10 18:52:22 +0200 |
---|---|---|
committer | Heiko Stuebner <heiko@sntech.de> | 2023-07-11 15:24:30 +0200 |
commit | db02f866b140dc04eb13da8bc8d9b1e36232102c (patch) | |
tree | f0f081c8bd4b79a0a4a88d2f158cff984923801c /arch/arm64/boot/dts/rockchip | |
parent | ea3e66e7ad0d8ca1a4248a55e235fa27817ac3da (diff) | |
download | linux-stable-db02f866b140dc04eb13da8bc8d9b1e36232102c.tar.gz linux-stable-db02f866b140dc04eb13da8bc8d9b1e36232102c.tar.bz2 linux-stable-db02f866b140dc04eb13da8bc8d9b1e36232102c.zip |
arm64: dts: rockchip: add status LED to rock-5a
Describe the Rock 5A status LED in its device tree.
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Link: https://lore.kernel.org/r/20230710165228.105983-8-sebastian.reichel@collabora.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Diffstat (limited to 'arch/arm64/boot/dts/rockchip')
-rw-r--r-- | arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts index d33ddf1efa9a..ea11e75c87dc 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts @@ -3,6 +3,7 @@ /dts-v1/; #include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/leds/common.h> #include <dt-bindings/pinctrl/rockchip.h> #include "rk3588s.dtsi" @@ -19,6 +20,19 @@ stdout-path = "serial2:1500000n8"; }; + leds { + compatible = "gpio-leds"; + pinctrl-names = "default"; + pinctrl-0 = <&io_led>; + + io-led { + color = <LED_COLOR_ID_BLUE>; + function = LED_FUNCTION_STATUS; + gpios = <&gpio3 RK_PD5 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "heartbeat"; + }; + }; + vcc12v_dcin: vcc12v-dcin-regulator { compatible = "regulator-fixed"; regulator-name = "vcc12v_dcin"; @@ -164,6 +178,12 @@ }; &pinctrl { + leds { + io_led: io-led { + rockchip,pins = <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + power { vcc_5v0_en: vcc-5v0-en { rockchip,pins = <4 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>; |