ath79: apply Engenius ECB1750 style to OpenMesh MR900 RGMII cfg
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar7242_ubnt_edgeswitch-8xp.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar7242_ubnt_sw.dtsi"
4
5 / {
6 compatible = "ubnt,edgeswitch-8xp", "qca,ar7242";
7 model = "Ubiquiti EdgeSwitch 8XP";
8
9 gpio-export {
10 compatible = "gpio-export";
11
12 poe_24v_port1 {
13 gpio-export,name = "ubnt:24v-poe:port1";
14 gpio-export,output = <0>;
15 gpios = <&gpio_hc595 1 GPIO_ACTIVE_HIGH>;
16 };
17
18 poe_48v_port1 {
19 gpio-export,name = "ubnt:48v-poe:port1";
20 gpio-export,output = <0>;
21 gpios = <&gpio_hc595 0 GPIO_ACTIVE_HIGH>;
22 };
23
24 poe_24v_port2 {
25 gpio-export,name = "ubnt:24v-poe:port2";
26 gpio-export,output = <0>;
27 gpios = <&gpio_hc595 3 GPIO_ACTIVE_HIGH>;
28 };
29
30 poe_48v_port2 {
31 gpio-export,name = "ubnt:48v-poe:port2";
32 gpio-export,output = <0>;
33 gpios = <&gpio_hc595 2 GPIO_ACTIVE_HIGH>;
34 };
35
36 poe_24v_port3 {
37 gpio-export,name = "ubnt:24v-poe:port3";
38 gpio-export,output = <0>;
39 gpios = <&gpio_hc595 5 GPIO_ACTIVE_HIGH>;
40 };
41
42 poe_48v_port3 {
43 gpio-export,name = "ubnt:48v-poe:port3";
44 gpio-export,output = <0>;
45 gpios = <&gpio_hc595 4 GPIO_ACTIVE_HIGH>;
46 };
47
48 poe_24v_port4 {
49 gpio-export,name = "ubnt:24v-poe:port4";
50 gpio-export,output = <0>;
51 gpios = <&gpio_hc595 7 GPIO_ACTIVE_HIGH>;
52 };
53
54 poe_48v_port4 {
55 gpio-export,name = "ubnt:48v-poe:port4";
56 gpio-export,output = <0>;
57 gpios = <&gpio_hc595 6 GPIO_ACTIVE_HIGH>;
58 };
59
60 poe_24v_port5 {
61 gpio-export,name = "ubnt:24v-poe:port5";
62 gpio-export,output = <0>;
63 gpios = <&gpio_hc595 9 GPIO_ACTIVE_HIGH>;
64 };
65
66 poe_48v_port5 {
67 gpio-export,name = "ubnt:48v-poe:port5";
68 gpio-export,output = <0>;
69 gpios = <&gpio_hc595 8 GPIO_ACTIVE_HIGH>;
70 };
71
72 poe_24v_port6 {
73 gpio-export,name = "ubnt:24v-poe:port6";
74 gpio-export,output = <0>;
75 gpios = <&gpio_hc595 11 GPIO_ACTIVE_HIGH>;
76 };
77
78 poe_48v_port6 {
79 gpio-export,name = "ubnt:48v-poe:port6";
80 gpio-export,output = <0>;
81 gpios = <&gpio_hc595 10 GPIO_ACTIVE_HIGH>;
82 };
83
84 poe_24v_port7 {
85 gpio-export,name = "ubnt:24v-poe:port7";
86 gpio-export,output = <0>;
87 gpios = <&gpio_hc595 13 GPIO_ACTIVE_HIGH>;
88 };
89
90 poe_48v_port7 {
91 gpio-export,name = "ubnt:48v-poe:port7";
92 gpio-export,output = <0>;
93 gpios = <&gpio_hc595 12 GPIO_ACTIVE_HIGH>;
94 };
95
96 poe_24v_port8 {
97 gpio-export,name = "ubnt:24v-poe:port8";
98 gpio-export,output = <0>;
99 gpios = <&gpio_hc595 15 GPIO_ACTIVE_HIGH>;
100 };
101
102 poe_48v_port8 {
103 gpio-export,name = "ubnt:48v-poe:port8";
104 gpio-export,output = <0>;
105 gpios = <&gpio_hc595 14 GPIO_ACTIVE_HIGH>;
106 };
107 };
108 };
109
110 &mdio0 {
111 status = "okay";
112
113 phy-mask = <0x10>;
114
115 ethernet-switch@1e {
116 compatible = "brcm,bcm53128";
117 #address-cells = <1>;
118 #size-cells = <0>;
119 reg = <0x1e>;
120
121 ports {
122 port0@0 {
123 reg = <0>;
124 label = "lan1";
125 };
126
127 port1@1 {
128 reg = <1>;
129 label = "lan2";
130 };
131
132 port2@2 {
133 reg = <2>;
134 label = "lan3";
135 };
136
137 port3@3 {
138 reg = <3>;
139 label = "lan4";
140 };
141
142 port4@4 {
143 reg = <4>;
144 label = "lan5";
145 };
146
147 port5@5 {
148 reg = <5>;
149 label = "lan6";
150 };
151
152 port6@6 {
153 reg = <6>;
154 label = "lan7";
155 };
156
157 port7@7 {
158 reg = <7>;
159 label = "lan8";
160 };
161
162 phy0: port8@8 {
163 reg = <8>;
164 label = "cpu";
165 ethernet = <&eth0>;
166
167 fixed-link {
168 speed = <1000>;
169 full-duplex;
170 };
171 };
172
173 };
174 };
175 };
176
177 &eth0 {
178 status = "okay";
179
180 phy-mode = "rgmii-rxid";
181 pll-data = <0x16000000 0x00000101 0x00001313>;
182 mtd-mac-address = <&art 0x0>;
183
184 phy-handle = <&phy0>;
185 fixed-link {
186 speed = <1000>;
187 full-duplex;
188 };
189 };