From 597e1fdf7fe26913b7a60ff55d01fb25af10dbaf Mon Sep 17 00:00:00 2001 From: Sander Vanheule Date: Thu, 19 Feb 2026 16:11:41 +0100 Subject: [PATCH] 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 --- target/linux/realtek/dts/rtl839x.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/target/linux/realtek/dts/rtl839x.dtsi b/target/linux/realtek/dts/rtl839x.dtsi index 216579f2e7..c06773f83e 100644 --- a/target/linux/realtek/dts/rtl839x.dtsi +++ b/target/linux/realtek/dts/rtl839x.dtsi @@ -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 {