From e83f264e8c8ef376a295f53f62f843eff609a3a8 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Mon, 4 Sep 2023 23:17:17 +0200 Subject: [PATCH] Improve LED representation in Home Assistant Green device tree (#2730) --- ...dts-green-Improve-LED-representation.patch | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 buildroot-external/board/nabucasa/green/patches/linux/0007-arch-arm64-dts-green-Improve-LED-representation.patch diff --git a/buildroot-external/board/nabucasa/green/patches/linux/0007-arch-arm64-dts-green-Improve-LED-representation.patch b/buildroot-external/board/nabucasa/green/patches/linux/0007-arch-arm64-dts-green-Improve-LED-representation.patch new file mode 100644 index 000000000..5d46d2bea --- /dev/null +++ b/buildroot-external/board/nabucasa/green/patches/linux/0007-arch-arm64-dts-green-Improve-LED-representation.patch @@ -0,0 +1,52 @@ +From 6c1abc949a978492bd9a1b30f4faaa2329d93068 Mon Sep 17 00:00:00 2001 +Message-ID: <6c1abc949a978492bd9a1b30f4faaa2329d93068.1693860223.git.stefan@agner.ch> +In-Reply-To: +References: +From: Stefan Agner +Date: Mon, 4 Sep 2023 22:36:10 +0200 +Subject: [PATCH] arch: arm64: dts: green: Improve LED representation + +Fix color and use labels/node names according to the LEDs functionality. +--- + arch/arm64/boot/dts/rockchip/rk3566-ha-green.dts | 11 +++++++---- + 1 file changed, 7 insertions(+), 4 deletions(-) + +diff --git a/arch/arm64/boot/dts/rockchip/rk3566-ha-green.dts b/arch/arm64/boot/dts/rockchip/rk3566-ha-green.dts +index 5be4368767a1..d4bd90b7f0d6 100644 +--- a/arch/arm64/boot/dts/rockchip/rk3566-ha-green.dts ++++ b/arch/arm64/boot/dts/rockchip/rk3566-ha-green.dts +@@ -48,16 +48,18 @@ hdmi_con_in: endpoint { + leds { + compatible = "gpio-leds"; + +- led_power: led-0 { ++ led_power: led-power { ++ label = "power"; + gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_HIGH>; + function = LED_FUNCTION_POWER; +- color = ; ++ color = ; + default-state = "keep"; + linux,default-trigger = "default-on"; + pinctrl-names = "default"; + pinctrl-0 = <&led_power_pin>; + }; +- led_act: led-1 { ++ led_activity: led-activity { ++ label = "activity"; + gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>; + function = LED_FUNCTION_ACTIVITY; + color = ; +@@ -65,7 +67,8 @@ led_act: led-1 { + pinctrl-names = "default"; + pinctrl-0 = <&led_act_pin>; + }; +- led_user: led-2 { ++ led_user: led-user { ++ label = "user"; + gpios = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>; + function = LED_FUNCTION_HEARTBEAT; + color = ; +-- +2.42.0 +