]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: rtl839x: add port LED peripheral disable
authorSander Vanheule <sander@svanheule.net>
Thu, 19 Feb 2026 15:11:41 +0000 (16:11 +0100)
committerSander Vanheule <sander@svanheule.net>
Mon, 30 Mar 2026 17:18:56 +0000 (19:18 +0200)
Add a pinctrl-single node to the switch GPIO/LED control register that
disables the port LED peripheral when selected. When an RTL8231 is
instantiated, this is required to prevent the user config from being
overwritten by the peripheral.

As this is technically not a pin mux operation, but rather a peripheral
disable, using pinctrl-single for this purpose is bit of a hack, but it
does the job.

Signed-off-by: Sander Vanheule <sander@svanheule.net>
target/linux/realtek/dts/rtl839x.dtsi

index 216579f2e76d33f5ed853c550dfa33a66a08d5df..c06773f83e8a38087e078cafda10e8f2c2cf9889 100644 (file)
                mdio_aux_mdx: aux-mdx-pins {
                        pinctrl-single,bits = <0x0 0x100000 0x1c0000>;
                };
+
+               /* disable port LED offloading */
+               port_led_offload: port-led-offload {
+                       pinctrl-single,bits = <0x0 0x0 0x20>;
+               };
        };
 
        sram0: sram@9f000000 {