]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: XikeStor SKS8300-12E2T2X: fix GPIO assignments 22551/head
authorAndreas Böhler <dev@aboehler.at>
Sat, 21 Mar 2026 20:59:03 +0000 (21:59 +0100)
committerRobert Marko <robimarko@gmail.com>
Mon, 13 Apr 2026 09:02:35 +0000 (11:02 +0200)
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 <dev@aboehler.at>
Link: https://github.com/openwrt/openwrt/pull/22551
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/dts/rtl9302_xikestor_sks8300-12e2t2x.dts

index bd0f86c16940f46340ddcecde408f7b171e59588..37a1ea48976a6c5a30b85f31cc8bc4adf8fcaf95 100644 (file)
 
        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>;
 
        };