Skip to content

Commit

Permalink
realtek: add full SFP support to D-Link DGS-1210-28 series
Browse files Browse the repository at this point in the history
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 <[email protected]>
Link: openwrt#15616
Signed-off-by: Sander Vanheule <[email protected]>
  • Loading branch information
andyboeh authored and svanheule committed Sep 15, 2024
1 parent 01d8e41 commit 257a356
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions target/linux/realtek/dts/rtl8382_d-link_dgs-1210-28.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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"

/ {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
};
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"

/ {
Expand Down
2 changes: 1 addition & 1 deletion target/linux/realtek/dts/rtl8393_d-link_dgs-1210-52.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 257a356

Please sign in to comment.