[openwrt/openwrt] realtek: add full SFP support to D-Link DGS-1210-28 series
LEDE Commits
lede-commits at lists.infradead.org
Sun Sep 15 07:44:40 PDT 2024
svanheule pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/257a356b20cd6d030da86461605fb61bfb9fc846
commit 257a356b20cd6d030da86461605fb61bfb9fc846
Author: Andreas Böhler <dev at aboehler.at>
AuthorDate: Sat Jun 1 19:14:39 2024 +0200
realtek: add full SFP support to D-Link DGS-1210-28 series
The DGS-1210-28 series was lacking full SFP support due to missing GPIOs.
Fortunately, the existing GPIO definitions of DGS-1210-52 match, this adds
the required i2c-gpio nodes to the DTS and allows hotplug SFP support.
Signed-off-by: Andreas Böhler <dev at aboehler.at>
Link: https://github.com/openwrt/openwrt/pull/15616
Signed-off-by: Sander Vanheule <sander at svanheule.net>
---
target/linux/realtek/dts/rtl8382_d-link_dgs-1210-28.dts | 1 +
target/linux/realtek/dts/rtl8382_d-link_dgs-1210-28_common.dtsi | 9 +++++----
target/linux/realtek/dts/rtl8382_d-link_dgs-1210-28mp-f.dts | 1 +
target/linux/realtek/dts/rtl8393_d-link_dgs-1210-52.dts | 2 +-
..._dgs-1210_gpio.dtsi => rtl83xx_d-link_dgs-1210_gpio_sfp.dtsi} | 0
5 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/target/linux/realtek/dts/rtl8382_d-link_dgs-1210-28.dts b/target/linux/realtek/dts/rtl8382_d-link_dgs-1210-28.dts
index 0bcb196b7c..29ff8153fb 100644
--- a/target/linux/realtek/dts/rtl8382_d-link_dgs-1210-28.dts
+++ b/target/linux/realtek/dts/rtl8382_d-link_dgs-1210-28.dts
@@ -3,6 +3,7 @@
#include "rtl838x.dtsi"
#include "rtl83xx_d-link_dgs-1210_common.dtsi"
#include "rtl83xx_d-link_dgs-1210_gpio.dtsi"
+#include "rtl83xx_d-link_dgs-1210_gpio_sfp.dtsi"
#include "rtl8382_d-link_dgs-1210-28_common.dtsi"
/ {
diff --git a/target/linux/realtek/dts/rtl8382_d-link_dgs-1210-28_common.dtsi b/target/linux/realtek/dts/rtl8382_d-link_dgs-1210-28_common.dtsi
index 17866d5f03..d5b984b0a6 100644
--- a/target/linux/realtek/dts/rtl8382_d-link_dgs-1210-28_common.dtsi
+++ b/target/linux/realtek/dts/rtl8382_d-link_dgs-1210-28_common.dtsi
@@ -34,10 +34,11 @@
EXTERNAL_PHY(22)
EXTERNAL_PHY(23)
- EXTERNAL_SFP_PHY(24)
- EXTERNAL_SFP_PHY(25)
- EXTERNAL_SFP_PHY(26)
- EXTERNAL_SFP_PHY(27)
+ /* External phy RTL8214FC */
+ EXTERNAL_SFP_PHY_FULL(24, 0)
+ EXTERNAL_SFP_PHY_FULL(25, 1)
+ EXTERNAL_SFP_PHY_FULL(26, 2)
+ EXTERNAL_SFP_PHY_FULL(27, 3)
};
};
diff --git a/target/linux/realtek/dts/rtl8382_d-link_dgs-1210-28mp-f.dts b/target/linux/realtek/dts/rtl8382_d-link_dgs-1210-28mp-f.dts
index ce008229b3..d1419cf7ed 100644
--- a/target/linux/realtek/dts/rtl8382_d-link_dgs-1210-28mp-f.dts
+++ b/target/linux/realtek/dts/rtl8382_d-link_dgs-1210-28mp-f.dts
@@ -3,6 +3,7 @@
#include "rtl838x.dtsi"
#include "rtl83xx_d-link_dgs-1210_common.dtsi"
#include "rtl83xx_d-link_dgs-1210_gpio.dtsi"
+#include "rtl83xx_d-link_dgs-1210_gpio_sfp.dtsi"
#include "rtl8382_d-link_dgs-1210-28_common.dtsi"
/ {
diff --git a/target/linux/realtek/dts/rtl8393_d-link_dgs-1210-52.dts b/target/linux/realtek/dts/rtl8393_d-link_dgs-1210-52.dts
index 5b876e7c43..3ddf56f4f5 100644
--- a/target/linux/realtek/dts/rtl8393_d-link_dgs-1210-52.dts
+++ b/target/linux/realtek/dts/rtl8393_d-link_dgs-1210-52.dts
@@ -3,7 +3,7 @@
#include "rtl839x.dtsi"
#include "rtl83xx_d-link_dgs-1210_common.dtsi"
#include "rtl83xx_d-link_dgs-1210_gpio.dtsi"
-#include "rtl839x_d-link_dgs-1210_gpio.dtsi"
+#include "rtl83xx_d-link_dgs-1210_gpio_sfp.dtsi"
/ {
compatible = "d-link,dgs-1210-52", "realtek,rtl8393-soc";
diff --git a/target/linux/realtek/dts/rtl839x_d-link_dgs-1210_gpio.dtsi b/target/linux/realtek/dts/rtl83xx_d-link_dgs-1210_gpio_sfp.dtsi
similarity index 100%
rename from target/linux/realtek/dts/rtl839x_d-link_dgs-1210_gpio.dtsi
rename to target/linux/realtek/dts/rtl83xx_d-link_dgs-1210_gpio_sfp.dtsi
More information about the lede-commits
mailing list