1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "rtl8382_d-link_dgs-1210.dtsi"
6 compatible = "d-link,dgs-1210-28", "realtek,rtl838x-soc";
7 model = "D-Link DGS-1210-28";
10 compatible = "gpio-keys-polled";
15 gpios = <&gpio1 33 GPIO_ACTIVE_LOW>;
16 linux,code = <KEY_RESTART>;
21 compatible = "realtek,rtl8231-gpio";
24 indirect-access-bus-id = <0>;
30 compatible = "realtek,rtl838x-mdio";
31 regmap = <ðernet0>;
74 SWITCH_PORT(0, 1, qsgmii)
75 SWITCH_PORT(1, 2, qsgmii)
76 SWITCH_PORT(2, 3, qsgmii)
77 SWITCH_PORT(3, 4, qsgmii)
78 SWITCH_PORT(4, 5, qsgmii)
79 SWITCH_PORT(5, 6, qsgmii)
80 SWITCH_PORT(6, 7, qsgmii)
81 SWITCH_PORT(7, 8, qsgmii)
83 SWITCH_PORT(8, 9, internal)
84 SWITCH_PORT(9, 10, internal)
85 SWITCH_PORT(10, 11, internal)
86 SWITCH_PORT(11, 12, internal)
87 SWITCH_PORT(12, 13, internal)
88 SWITCH_PORT(13, 14, internal)
89 SWITCH_PORT(14, 15, internal)
90 SWITCH_PORT(15, 16, internal)
92 SWITCH_PORT(16, 17, qsgmii)
93 SWITCH_PORT(17, 18, qsgmii)
94 SWITCH_PORT(18, 19, qsgmii)
95 SWITCH_PORT(19, 20, qsgmii)
96 SWITCH_PORT(20, 21, qsgmii)
97 SWITCH_PORT(21, 22, qsgmii)
98 SWITCH_PORT(22, 23, qsgmii)
99 SWITCH_PORT(23, 24, qsgmii)
101 SWITCH_PORT(24, 25, qsgmii)
102 SWITCH_PORT(25, 26, qsgmii)
103 SWITCH_PORT(26, 27, qsgmii)
104 SWITCH_PORT(27, 28, qsgmii)
107 ethernet = <ðernet0>;
109 phy-mode = "internal";