[openwrt/openwrt] realtek: fix SFP GPIOs for XikeStor SKS8310-8X
LEDE Commits
lede-commits at lists.infradead.org
Sat Oct 25 02:39:29 PDT 2025
robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/802664402055d5bbb55e75a365c348463999a46b
commit 802664402055d5bbb55e75a365c348463999a46b
Author: Jonas Jelonek <jelonek.jonas at gmail.com>
AuthorDate: Fri Oct 24 21:40:44 2025 +0000
realtek: fix SFP GPIOs for XikeStor SKS8310-8X
Fix the GPIO assignment of RX-LOS and TX-DISABLE for all SFP ports. Both
were actually swapped when adding support for the device. Apparently,
this didn't cause any issues.
Fixes: 62d50fb196
Signed-off-by: Jonas Jelonek <jelonek.jonas at gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20532
Signed-off-by: Robert Marko <robimarko at gmail.com>
---
.../realtek/dts/rtl9303_xikestor_sks8310-8x.dts | 32 +++++++++++-----------
1 file changed, 16 insertions(+), 16 deletions(-)
diff --git a/target/linux/realtek/dts/rtl9303_xikestor_sks8310-8x.dts b/target/linux/realtek/dts/rtl9303_xikestor_sks8310-8x.dts
index 8ad052f2b6..fb2c866dcb 100644
--- a/target/linux/realtek/dts/rtl9303_xikestor_sks8310-8x.dts
+++ b/target/linux/realtek/dts/rtl9303_xikestor_sks8310-8x.dts
@@ -56,9 +56,9 @@
sfp0: sfp-p1 {
compatible = "sff,sfp";
i2c-bus = <&i2c0>;
- los-gpio = <&gpio1 0 GPIO_ACTIVE_HIGH>;
+ los-gpio = <&gpio1 2 GPIO_ACTIVE_HIGH>;
mod-def0-gpio = <&gpio1 1 GPIO_ACTIVE_LOW>;
- tx-disable-gpio = <&gpio1 2 GPIO_ACTIVE_HIGH>;
+ tx-disable-gpio = <&gpio1 0 GPIO_ACTIVE_HIGH>;
maximum-power-milliwatt = <2900>;
#thermal-sensor-cells = <0>;
};
@@ -66,9 +66,9 @@
sfp1: sfp-p2 {
compatible = "sff,sfp";
i2c-bus = <&i2c1>;
- los-gpio = <&gpio1 3 GPIO_ACTIVE_HIGH>;
+ los-gpio = <&gpio1 5 GPIO_ACTIVE_HIGH>;
mod-def0-gpio = <&gpio1 4 GPIO_ACTIVE_LOW>;
- tx-disable-gpio = <&gpio1 5 GPIO_ACTIVE_HIGH>;
+ tx-disable-gpio = <&gpio1 3 GPIO_ACTIVE_HIGH>;
maximum-power-milliwatt = <1500>;
#thermal-sensor-cells = <0>;
};
@@ -76,9 +76,9 @@
sfp2: sfp-p3 {
compatible = "sff,sfp";
i2c-bus = <&i2c2>;
- los-gpio = <&gpio1 6 GPIO_ACTIVE_HIGH>;
+ los-gpio = <&gpio1 8 GPIO_ACTIVE_HIGH>;
mod-def0-gpio = <&gpio1 7 GPIO_ACTIVE_LOW>;
- tx-disable-gpio = <&gpio1 8 GPIO_ACTIVE_HIGH>;
+ tx-disable-gpio = <&gpio1 6 GPIO_ACTIVE_HIGH>;
maximum-power-milliwatt = <1500>;
#thermal-sensor-cells = <0>;
};
@@ -86,9 +86,9 @@
sfp3: sfp-p4 {
compatible = "sff,sfp";
i2c-bus = <&i2c3>;
- los-gpio = <&gpio1 9 GPIO_ACTIVE_HIGH>;
+ los-gpio = <&gpio1 11 GPIO_ACTIVE_HIGH>;
mod-def0-gpio = <&gpio1 10 GPIO_ACTIVE_LOW>;
- tx-disable-gpio = <&gpio1 11 GPIO_ACTIVE_HIGH>;
+ tx-disable-gpio = <&gpio1 9 GPIO_ACTIVE_HIGH>;
maximum-power-milliwatt = <2000>;
#thermal-sensor-cells = <0>;
};
@@ -96,9 +96,9 @@
sfp4: sfp-p5 {
compatible = "sff,sfp";
i2c-bus = <&i2c4>;
- los-gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>;
+ los-gpio = <&gpio1 14 GPIO_ACTIVE_HIGH>;
mod-def0-gpio = <&gpio1 13 GPIO_ACTIVE_LOW>;
- tx-disable-gpio = <&gpio1 14 GPIO_ACTIVE_HIGH>;
+ tx-disable-gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>;
maximum-power-milliwatt = <2000>;
#thermal-sensor-cells = <0>;
};
@@ -106,9 +106,9 @@
sfp5: sfp-p6 {
compatible = "sff,sfp";
i2c-bus = <&i2c5>;
- los-gpio = <&gpio1 21 GPIO_ACTIVE_HIGH>;
+ los-gpio = <&gpio1 23 GPIO_ACTIVE_HIGH>;
mod-def0-gpio = <&gpio1 22 GPIO_ACTIVE_LOW>;
- tx-disable-gpio = <&gpio1 23 GPIO_ACTIVE_HIGH>;
+ tx-disable-gpio = <&gpio1 21 GPIO_ACTIVE_HIGH>;
maximum-power-milliwatt = <1500>;
#thermal-sensor-cells = <0>;
};
@@ -116,9 +116,9 @@
sfp6: sfp-p7 {
compatible = "sff,sfp";
i2c-bus = <&i2c6>;
- los-gpio = <&gpio1 24 GPIO_ACTIVE_HIGH>;
+ los-gpio = <&gpio1 26 GPIO_ACTIVE_HIGH>;
mod-def0-gpio = <&gpio1 25 GPIO_ACTIVE_LOW>;
- tx-disable-gpio = <&gpio1 26 GPIO_ACTIVE_HIGH>;
+ tx-disable-gpio = <&gpio1 24 GPIO_ACTIVE_HIGH>;
maximum-power-milliwatt = <1500>;
#thermal-sensor-cells = <0>;
};
@@ -126,9 +126,9 @@
sfp7: sfp-p8 {
compatible = "sff,sfp";
i2c-bus = <&i2c7>;
- los-gpio = <&gpio1 27 GPIO_ACTIVE_HIGH>;
+ los-gpio = <&gpio1 29 GPIO_ACTIVE_HIGH>;
mod-def0-gpio = <&gpio1 28 GPIO_ACTIVE_LOW>;
- tx-disable-gpio = <&gpio1 29 GPIO_ACTIVE_HIGH>;
+ tx-disable-gpio = <&gpio1 27 GPIO_ACTIVE_HIGH>;
maximum-power-milliwatt = <2900>;
#thermal-sensor-cells = <0>;
};
More information about the lede-commits
mailing list