mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-26 22:46:32 +00:00
Improve LED representation in Home Assistant Green device tree (#2730)
This commit is contained in:
parent
516cb71df9
commit
e83f264e8c
@ -0,0 +1,52 @@
|
|||||||
|
From 6c1abc949a978492bd9a1b30f4faaa2329d93068 Mon Sep 17 00:00:00 2001
|
||||||
|
Message-ID: <6c1abc949a978492bd9a1b30f4faaa2329d93068.1693860223.git.stefan@agner.ch>
|
||||||
|
In-Reply-To: <fa0e84b5fbb7b6ce0b161bfcfe495f3648d02110.1693860223.git.stefan@agner.ch>
|
||||||
|
References: <fa0e84b5fbb7b6ce0b161bfcfe495f3648d02110.1693860223.git.stefan@agner.ch>
|
||||||
|
From: Stefan Agner <stefan@agner.ch>
|
||||||
|
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 = <LED_COLOR_ID_RED>;
|
||||||
|
+ color = <LED_COLOR_ID_WHITE>;
|
||||||
|
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 = <LED_COLOR_ID_GREEN>;
|
||||||
|
@@ -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 = <LED_COLOR_ID_YELLOW>;
|
||||||
|
--
|
||||||
|
2.42.0
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user