diff mbox series

[v3,11/13] realtek: rtl839x: add sys-led node

Message ID bfd3ee594ba7458afda7d18983a76437b37e94b4.1667154408.git.sander@svanheule.net
State Under Review
Delegated to: Sander Vanheule
Headers show
Series realtek: pinctrl and LED drivers | expand

Commit Message

Sander Vanheule Oct. 30, 2022, 6:31 p.m. UTC
All devices that can use the system LED peripheral to control an actual
LED currently use this as a GPIO-controlled LED. A GPIO LED provides
more fine-grained control of blink rates, at the cost of some CPU
cycles. Users may anyhow prefer to use the sys-led peripheral, so add
the sys-led node as "disabled".

Signed-off-by: Sander Vanheule <sander@svanheule.net>
---
 target/linux/realtek/dts-5.10/rtl839x.dtsi | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/target/linux/realtek/dts-5.10/rtl839x.dtsi b/target/linux/realtek/dts-5.10/rtl839x.dtsi
index 98c4b2010c5f..095dc1e8ac53 100644
--- a/target/linux/realtek/dts-5.10/rtl839x.dtsi
+++ b/target/linux/realtek/dts-5.10/rtl839x.dtsi
@@ -256,6 +256,11 @@ 
 		compatible = "realtek,cypress-switchcore", "syscon";
 		reg = <0x1b000000 0x10000>;
 
+		hw_sys_led: sys-led {
+			compatible = "realtek,cypress-sys-led";
+			status = "disabled";
+		};
+
 		pinctrl: pinctrl {
 			compatible = "realtek,cypress-pinctrl";