realtek: d-link: add support for dgs-1210-28mp-f
[openwrt/staging/neocturne.git] / target / linux / realtek / dts-5.10 / rtl8382_d-link_dgs-1210-28_common.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 &ethernet0 {
4 mdio: mdio-bus {
5 compatible = "realtek,rtl838x-mdio";
6 regmap = <&ethernet0>;
7 #address-cells = <1>;
8 #size-cells = <0>;
9
10 EXTERNAL_PHY(0)
11 EXTERNAL_PHY(1)
12 EXTERNAL_PHY(2)
13 EXTERNAL_PHY(3)
14 EXTERNAL_PHY(4)
15 EXTERNAL_PHY(5)
16 EXTERNAL_PHY(6)
17 EXTERNAL_PHY(7)
18
19 INTERNAL_PHY(8)
20 INTERNAL_PHY(9)
21 INTERNAL_PHY(10)
22 INTERNAL_PHY(11)
23 INTERNAL_PHY(12)
24 INTERNAL_PHY(13)
25 INTERNAL_PHY(14)
26 INTERNAL_PHY(15)
27
28 EXTERNAL_PHY(16)
29 EXTERNAL_PHY(17)
30 EXTERNAL_PHY(18)
31 EXTERNAL_PHY(19)
32 EXTERNAL_PHY(20)
33 EXTERNAL_PHY(21)
34 EXTERNAL_PHY(22)
35 EXTERNAL_PHY(23)
36
37 EXTERNAL_SFP_PHY(24)
38 EXTERNAL_SFP_PHY(25)
39 EXTERNAL_SFP_PHY(26)
40 EXTERNAL_SFP_PHY(27)
41 };
42 };
43
44 &switch0 {
45 ports {
46 #address-cells = <1>;
47 #size-cells = <0>;
48
49 SWITCH_PORT(0, 1, qsgmii)
50 SWITCH_PORT(1, 2, qsgmii)
51 SWITCH_PORT(2, 3, qsgmii)
52 SWITCH_PORT(3, 4, qsgmii)
53 SWITCH_PORT(4, 5, qsgmii)
54 SWITCH_PORT(5, 6, qsgmii)
55 SWITCH_PORT(6, 7, qsgmii)
56 SWITCH_PORT(7, 8, qsgmii)
57
58 SWITCH_PORT(8, 9, internal)
59 SWITCH_PORT(9, 10, internal)
60 SWITCH_PORT(10, 11, internal)
61 SWITCH_PORT(11, 12, internal)
62 SWITCH_PORT(12, 13, internal)
63 SWITCH_PORT(13, 14, internal)
64 SWITCH_PORT(14, 15, internal)
65 SWITCH_PORT(15, 16, internal)
66
67 SWITCH_PORT(16, 17, qsgmii)
68 SWITCH_PORT(17, 18, qsgmii)
69 SWITCH_PORT(18, 19, qsgmii)
70 SWITCH_PORT(19, 20, qsgmii)
71 SWITCH_PORT(20, 21, qsgmii)
72 SWITCH_PORT(21, 22, qsgmii)
73 SWITCH_PORT(22, 23, qsgmii)
74 SWITCH_PORT(23, 24, qsgmii)
75
76 SWITCH_PORT(24, 25, qsgmii)
77 SWITCH_PORT(25, 26, qsgmii)
78 SWITCH_PORT(26, 27, qsgmii)
79 SWITCH_PORT(27, 28, qsgmii)
80
81 port@28 {
82 ethernet = <&ethernet0>;
83 reg = <28>;
84 phy-mode = "internal";
85 fixed-link {
86 speed = <1000>;
87 full-duplex;
88 };
89 };
90 };
91 };