From: Andreas Böhler Date: Sat, 21 Mar 2026 20:59:03 +0000 (+0100) Subject: realtek: XikeStor SKS8300-12E2T2X: fix GPIO assignments X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a3988cd65cac5c36e3ecfe5476debb3c0b97bbcd;p=thirdparty%2Fopenwrt.git realtek: XikeStor SKS8300-12E2T2X: fix GPIO assignments 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 --- diff --git a/target/linux/realtek/dts/rtl9302_xikestor_sks8300-12e2t2x.dts b/target/linux/realtek/dts/rtl9302_xikestor_sks8300-12e2t2x.dts index bd0f86c1694..37a1ea48976 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>; };