]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: dsa: rtl93xx: allow to adjust LED_CLK 23944/head
authorJonas Jelonek <jelonek.jonas@gmail.com>
Fri, 26 Jun 2026 09:32:34 +0000 (09:32 +0000)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Sat, 27 Jun 2026 08:24:21 +0000 (10:24 +0200)
commit6b16b96e433e7d30abd6cf3bed2eeffe658dacc7
treec70c28e2cf7e0c935ff87b6f847176441acdc1a3
parentf6a6f764dfabc98ad094cb7d45dca0d767c1f6b8
realtek: dsa: rtl93xx: allow to adjust LED_CLK

The LED_GLB_CTRL register has a field to select the clock used for LED
output, either for serial LED output or for the external auxiliary MDIO
to connect a RTL8231. While the default value for the period time of
400ns is the correct one for most applications, some special devices
require a dedicated setting, e.g. UniFi switches with Etherlighting.

Support the generic DT property "clock-frequency" within the LED node,
and read + apply during LED configuration. In case the property isn't
specified, no change is applied to keep previous behavior. In case an
unsupported value is supplied, the default is used as a fallback

Link: https://github.com/openwrt/openwrt/pull/23944
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/rtl930x.c
target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/rtl931x.c