realtek: lgs3xx: split sfp port labels into model specific dts

Split the SFP port definition for LGS328 and LGS352 into model-specific DTS
to fix inconsistencies in port labelling.

Fixes: https://github.com/openwrt/openwrt/issues/26514
Signed-off-by: Goetz Goerisch <goetz+git@goerisch.eu>
Link: https://github.com/openwrt/openwrt/pull/26563
Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
This commit is contained in:
Goetz Goerisch authored and Markus Stockhausen committed 2026-11-18 07:33:28 +01:00
1 parent 27663a017a
commit d9356374ec
5 files changed
+66 -25

No files matched your search

@@ -3,6 +3,7 @@
#include "rtl930x.dtsi"
#include "rtl93xx_linksys_lgs3xxc_nand_common.dtsi"
#include "rtl930x_linksys_lgs328c_sfp.dtsi"
/ {
memory@0 {
@@ -0,0 +1,32 @@
// SPDX-License-Identifier: (GPL-2.0-or-later or MIT)
/ {
sfp0: sfp-p25 {
compatible = "sff,sfp";
i2c-bus = <&i2c2>;
los-gpio = <&gpio1 11 GPIO_ACTIVE_HIGH>;
mod-def0-gpio = <&gpio1 12 GPIO_ACTIVE_LOW>;
tx-disable-gpio = <&gpio1 10 GPIO_ACTIVE_HIGH>;
};
sfp1: sfp-p26 {
compatible = "sff,sfp";
i2c-bus = <&i2c3>;
los-gpio = <&gpio1 14 GPIO_ACTIVE_HIGH>;
mod-def0-gpio = <&gpio1 21 GPIO_ACTIVE_LOW>;
tx-disable-gpio = <&gpio1 13 GPIO_ACTIVE_HIGH>;
};
sfp2: sfp-p27 {
compatible = "sff,sfp";
i2c-bus = <&i2c4>;
los-gpio = <&gpio1 23 GPIO_ACTIVE_HIGH>;
mod-def0-gpio = <&gpio1 25 GPIO_ACTIVE_LOW>;
tx-disable-gpio = <&gpio1 22 GPIO_ACTIVE_HIGH>;
};
sfp3: sfp-p28 {
compatible = "sff,sfp";
i2c-bus = <&i2c5>;
los-gpio = <&gpio1 27 GPIO_ACTIVE_HIGH>;
mod-def0-gpio = <&gpio1 28 GPIO_ACTIVE_LOW>;
tx-disable-gpio = <&gpio1 26 GPIO_ACTIVE_HIGH>;
};
};
@@ -3,6 +3,7 @@
#include "rtl931x.dtsi"
#include "rtl93xx_linksys_lgs3xxc_nand_common.dtsi"
#include "rtl931x_linksys_lgs352c_sfp.dtsi"
#include <dt-bindings/phy/phy.h>
@@ -0,0 +1,32 @@
// SPDX-License-Identifier: (GPL-2.0-or-later or MIT)
/ {
sfp0: sfp-p49 {
compatible = "sff,sfp";
i2c-bus = <&i2c5>;
los-gpio = <&gpio1 11 GPIO_ACTIVE_HIGH>;
mod-def0-gpio = <&gpio1 12 GPIO_ACTIVE_LOW>;
tx-disable-gpio = <&gpio1 10 GPIO_ACTIVE_HIGH>;
};
sfp1: sfp-p50 {
compatible = "sff,sfp";
i2c-bus = <&i2c6>;
los-gpio = <&gpio1 14 GPIO_ACTIVE_HIGH>;
mod-def0-gpio = <&gpio1 21 GPIO_ACTIVE_LOW>;
tx-disable-gpio = <&gpio1 13 GPIO_ACTIVE_HIGH>;
};
sfp2: sfp-p51 {
compatible = "sff,sfp";
i2c-bus = <&i2c7>;
los-gpio = <&gpio1 23 GPIO_ACTIVE_HIGH>;
mod-def0-gpio = <&gpio1 25 GPIO_ACTIVE_LOW>;
tx-disable-gpio = <&gpio1 22 GPIO_ACTIVE_HIGH>;
};
sfp3: sfp-p52 {
compatible = "sff,sfp";
i2c-bus = <&i2c9>;
los-gpio = <&gpio1 27 GPIO_ACTIVE_HIGH>;
mod-def0-gpio = <&gpio1 28 GPIO_ACTIVE_LOW>;
tx-disable-gpio = <&gpio1 26 GPIO_ACTIVE_HIGH>;
};
};
@@ -44,31 +44,6 @@
};
};
sfp0: sfp-p49 {
compatible = "sff,sfp";
los-gpio = <&gpio1 11 GPIO_ACTIVE_HIGH>;
mod-def0-gpio = <&gpio1 12 GPIO_ACTIVE_LOW>;
tx-disable-gpio = <&gpio1 10 GPIO_ACTIVE_HIGH>;
};
sfp1: sfp-p50 {
compatible = "sff,sfp";
los-gpio = <&gpio1 14 GPIO_ACTIVE_HIGH>;
mod-def0-gpio = <&gpio1 21 GPIO_ACTIVE_LOW>;
tx-disable-gpio = <&gpio1 13 GPIO_ACTIVE_HIGH>;
};
sfp2: sfp-p51 {
compatible = "sff,sfp";
los-gpio = <&gpio1 23 GPIO_ACTIVE_HIGH>;
mod-def0-gpio = <&gpio1 25 GPIO_ACTIVE_LOW>;
tx-disable-gpio = <&gpio1 22 GPIO_ACTIVE_HIGH>;
};
sfp3: sfp-p52 {
compatible = "sff,sfp";
los-gpio = <&gpio1 27 GPIO_ACTIVE_HIGH>;
mod-def0-gpio = <&gpio1 28 GPIO_ACTIVE_LOW>;
tx-disable-gpio = <&gpio1 26 GPIO_ACTIVE_HIGH>;
};
ubi-concat {
compatible = "mtd-concat";
devices = <&ubiconcat0 &ubiconcat1>;