From a3988cd65cac5c36e3ecfe5476debb3c0b97bbcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20B=C3=B6hler?= Date: Sat, 21 Mar 2026 21:59:03 +0100 Subject: [PATCH] realtek: XikeStor SKS8300-12E2T2X: fix GPIO assignments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The initial bringup missed two GPIO-related settings: - TX Disable GPIO for the SFP modules - LED Sync GPIO selection for the port LEDs This adds the missing TX Disable GPIOs and muxes GPIO18 to LED sync (there are HC595 shift registers on the board that require the sync). Signed-off-by: Andreas Böhler Link: https://github.com/openwrt/openwrt/pull/22551 Signed-off-by: Robert Marko --- .../realtek/dts/rtl9302_xikestor_sks8300-12e2t2x.dts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/target/linux/realtek/dts/rtl9302_xikestor_sks8300-12e2t2x.dts b/target/linux/realtek/dts/rtl9302_xikestor_sks8300-12e2t2x.dts index bd0f86c169..37a1ea4897 100644 --- a/target/linux/realtek/dts/rtl9302_xikestor_sks8300-12e2t2x.dts +++ b/target/linux/realtek/dts/rtl9302_xikestor_sks8300-12e2t2x.dts @@ -23,6 +23,13 @@ keys { compatible = "gpio-keys"; + + /* The following sets up the GPIO pin for the HC595 shift registers. + Since there are no LED nodes defined for this switch, do the setup + in the GPIO keys driver. */ + pinctrl-names = "default"; + pinctrl-0 = <&pinmux_enable_led_sync>; + button-reset { label = "reset"; gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; @@ -58,6 +65,7 @@ maximum-power-milliwatt = <1500>; mod-def0-gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; los-gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; + tx-disable-gpio = <&gpio0 16 GPIO_ACTIVE_HIGH>; #thermal-sensor-cells = <0>; }; @@ -67,6 +75,7 @@ maximum-power-milliwatt = <1500>; mod-def0-gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; los-gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>; + tx-disable-gpio = <&gpio0 17 GPIO_ACTIVE_HIGH>; #thermal-sensor-cells = <0>; };