aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/realtek/dts-5.15
diff options
context:
space:
mode:
authorLorenz Brun <lorenz@brun.one>2022-12-28 20:54:21 +0100
committerSander Vanheule <sander@svanheule.net>2023-01-24 21:55:44 +0100
commitbec9e79a99adee64dcc9559e6f008a2ffd5b3f4e (patch)
treee6a7ca8642bb45f1111a3bba28e229eed2b40c4c /target/linux/realtek/dts-5.15
parentd84dc5d4d7b28cf4132448130d3beb4352539f4f (diff)
downloadupstream-bec9e79a99adee64dcc9559e6f008a2ffd5b3f4e.tar.gz
upstream-bec9e79a99adee64dcc9559e6f008a2ffd5b3f4e.tar.bz2
upstream-bec9e79a99adee64dcc9559e6f008a2ffd5b3f4e.zip
realtek: dsa: support active-high LEDs
The TP-LINK TL-ST1008F has active-high LEDs, so we need a device tree property to express this. Signed-off-by: Lorenz Brun <lorenz@brun.one> [Tidy up code, restrict changes to 5.15] Signed-off-by: Sander Vanheule <sander@svanheule.net>
Diffstat (limited to 'target/linux/realtek/dts-5.15')
-rw-r--r--target/linux/realtek/dts-5.15/rtl9302_zyxel_xgs1250-12.dts2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/linux/realtek/dts-5.15/rtl9302_zyxel_xgs1250-12.dts b/target/linux/realtek/dts-5.15/rtl9302_zyxel_xgs1250-12.dts
index a57fc00c6e..a9821b2cc6 100644
--- a/target/linux/realtek/dts-5.15/rtl9302_zyxel_xgs1250-12.dts
+++ b/target/linux/realtek/dts-5.15/rtl9302_zyxel_xgs1250-12.dts
@@ -64,6 +64,8 @@
led_set: led_set@0 {
compatible = "realtek,rtl9300-leds";
+ active-low;
+
led_set0 = <0x0000 0xffff 0x0a20 0x0b80>; // LED set 0: 1000Mbps, 10/100Mbps
led_set1 = <0x0a0b 0x0a28 0x0a82 0x0a0b>; // LED set 1: (10G, 5G, 2.5G) (2.5G, 1G)
// (5G, 10/100) (10G, 5G, 2.5G)