The EXTERNAL_SFP_PHY macro is very strange. It has attributes
sfp and media but is not linked to any SFP definition. There
is nothing that the kernel can evaluate better than the classic
PHY_C22 macro.
Remark! For the current D-Link DGS-1210 consumers this macro
should be converted to a PHY_C22_SFP in the future. As of now
there is no hardware to identify the proper gpios and define
and verify the corresponding SFP ports. Add a TODO comment
where needed.
Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/23036
Signed-off-by: Robert Marko <robimarko@gmail.com>
enet-phy-pair-order = <##po>; \
};
-#define EXTERNAL_SFP_PHY(n) \
- phy##n: ethernet-phy@##n { \
- compatible = "ethernet-phy-ieee802.3-c22"; \
- sfp; \
- media = "fibre"; \
- reg = <##n>; \
- };
-
#define SWITCH_PORT(p, l, m) \
port##p: port@##p { \
reg = <##p>; \
PHY_C22(14, 14)
PHY_C22(15, 15)
- EXTERNAL_SFP_PHY(24)
- EXTERNAL_SFP_PHY(25)
- EXTERNAL_SFP_PHY(26)
- EXTERNAL_SFP_PHY(27)
+ /* TODO: This is a RTL8214FC and should be PHY_C22_SFP() */
+ PHY_C22(24, 24)
+ PHY_C22(25, 25)
+ PHY_C22(26, 26)
+ PHY_C22(27, 27)
};
&switch0 {
PHY_C22(14, 14)
PHY_C22(15, 15)
- EXTERNAL_SFP_PHY(24)
- EXTERNAL_SFP_PHY(25)
- EXTERNAL_SFP_PHY(26)
- EXTERNAL_SFP_PHY(27)
+ /* TODO: This is a RTL8214FC and should be PHY_C22_SFP() */
+ PHY_C22(24, 24)
+ PHY_C22(25, 25)
+ PHY_C22(26, 26)
+ PHY_C22(27, 27)
};
&switch0 {