dacc50676d4f3acd56045248c5b2d9596ecc7303
[openwrt/openwrt.git] / target / linux / realtek / dts-5.10 / rtl8382_d-link_dgs-1210-20.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "rtl838x.dtsi"
4 #include "rtl83xx_d-link_dgs-1210_common.dtsi"
5 #include "rtl83xx_d-link_dgs-1210_gpio.dtsi"
6
7 / {
8 compatible = "d-link,dgs-1210-20", "realtek,rtl838x-soc";
9 model = "D-Link DGS-1210-20";
10 };
11
12 &ethernet0 {
13 mdio: mdio-bus {
14 compatible = "realtek,rtl838x-mdio";
15 regmap = <&ethernet0>;
16 #address-cells = <1>;
17 #size-cells = <0>;
18
19 EXTERNAL_PHY(0)
20 EXTERNAL_PHY(1)
21 EXTERNAL_PHY(2)
22 EXTERNAL_PHY(3)
23 EXTERNAL_PHY(4)
24 EXTERNAL_PHY(5)
25 EXTERNAL_PHY(6)
26 EXTERNAL_PHY(7)
27
28 INTERNAL_PHY(8)
29 INTERNAL_PHY(9)
30 INTERNAL_PHY(10)
31 INTERNAL_PHY(11)
32 INTERNAL_PHY(12)
33 INTERNAL_PHY(13)
34 INTERNAL_PHY(14)
35 INTERNAL_PHY(15)
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(24, 17, qsgmii)
68 SWITCH_PORT(25, 18, qsgmii)
69 SWITCH_PORT(26, 19, qsgmii)
70 SWITCH_PORT(27, 20, qsgmii)
71
72 port@28 {
73 ethernet = <&ethernet0>;
74 reg = <28>;
75 phy-mode = "internal";
76 fixed-link {
77 speed = <1000>;
78 full-duplex;
79 };
80 };
81 };
82 };