ath79: fix various dts warnings
[openwrt/staging/nbd.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 reg = <0x1e>;
118
119 ports {
120 #address-cells = <1>;
121 #size-cells = <0>;
122
123 port0@0 {
124 reg = <0>;
125 label = "lan1";
126 };
127
128 port1@1 {
129 reg = <1>;
130 label = "lan2";
131 };
132
133 port2@2 {
134 reg = <2>;
135 label = "lan3";
136 };
137
138 port3@3 {
139 reg = <3>;
140 label = "lan4";
141 };
142
143 port4@4 {
144 reg = <4>;
145 label = "lan5";
146 };
147
148 port5@5 {
149 reg = <5>;
150 label = "lan6";
151 };
152
153 port6@6 {
154 reg = <6>;
155 label = "lan7";
156 };
157
158 port7@7 {
159 reg = <7>;
160 label = "lan8";
161 };
162
163 phy0: port8@8 {
164 reg = <8>;
165 label = "cpu";
166 ethernet = <&eth0>;
167
168 fixed-link {
169 speed = <1000>;
170 full-duplex;
171 };
172 };
173 };
174 };
175 };
176
177 &eth0 {
178 status = "okay";
179
180 phy-handle = <&phy0>;
181 phy-mode = "rgmii-rxid";
182 pll-data = <0x16000000 0x00000101 0x00001313>;
183
184 nvmem-cells = <&macaddr_art_0>;
185 nvmem-cell-names = "mac-address";
186
187 fixed-link {
188 speed = <1000>;
189 full-duplex;
190 };
191 };
192
193 &art {
194 compatible = "nvmem-cells";
195 #address-cells = <1>;
196 #size-cells = <1>;
197
198 macaddr_art_0: macaddr@0 {
199 reg = <0x0 0x6>;
200 };
201 };