realtek: rtl839x: add port LED peripheral disable

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>
This commit is contained in:
Sander Vanheule 2026-02-19 16:11:41 +01:00
parent 2fffb27c98
commit 597e1fdf7f

View File

@ -353,6 +353,11 @@
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 {