x86: Add kmod-dwmac-intel
[openwrt/staging/hauke.git] / target / linux / mpc85xx / files / arch / powerpc / boot / dts / hiveap-330.dts
1 /*
2 * Aerohive HiveAP-330 Device Tree Source
3 *
4 * Copyright (C) 2017 Chris Blake <chrisrblake93@gmail.com>
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version.
10 */
11
12 #include <dt-bindings/leds/common.h>
13 #include <dt-bindings/input/input.h>
14 #include <dt-bindings/gpio/gpio.h>
15
16 /include/ "fsl/p1020si-pre.dtsi"
17 / {
18 model = "Aerohive HiveAP-330";
19 compatible = "aerohive,hiveap-330";
20
21 aliases {
22 led-boot = &led_power_green;
23 led-failsafe = &led_fault_red;
24 led-running = &led_power_green;
25 led-upgrade = &led_fault_red;
26 label-mac-device = &enet0;
27 spi0 = &spi0;
28 };
29
30 memory {
31 device_type = "memory";
32 };
33
34 board_lbc: lbc: localbus@ffe05000 {
35 reg = <0 0xffe05000 0 0x1000>;
36 ranges = <0x0 0x0 0x0 0xec000000 0x4000000>;
37
38 nor@0,0 {
39 #address-cells = <1>;
40 #size-cells = <1>;
41 compatible = "cfi-flash";
42 reg = <0x0 0x0 0x4000000>;
43 bank-width = <2>;
44 device-width = <1>;
45
46 partitions {
47 compatible = "fixed-partitions";
48 #address-cells = <1>;
49 #size-cells = <1>;
50
51 firmware@0 {
52 reg = <0x0 0x3f00000>;
53 label = "firmware";
54 /*
55 * This unknown/invalid compatible prevents
56 * openwrt's mtdsplit_fit to go off a tangent if it
57 * finds a magic value inside the uncompressed kernel
58 * at a blocksized aligned place.
59 */
60 compatible = "areohive,hiveap-330-image";
61 };
62
63 partition@0 {
64 reg = <0x0 0x40000>;
65 label = "dtb";
66 };
67
68 partition@40000 {
69 compatible = "openwrt,uimage", "denx,uimage";
70 reg = <0x40000 0x3ec0000>;
71 label = "kernel";
72 };
73
74 partition@3f00000 {
75 reg = <0x3f00000 0x20000>;
76 label = "hw-info";
77 read-only;
78
79 nvmem-layout {
80 compatible = "fixed-layout";
81 #address-cells = <1>;
82 #size-cells = <1>;
83
84 macaddr_hwinfo_0: macaddr@0 {
85 compatible = "mac-base";
86 reg = <0x0 0x6>;
87 #nvmem-cell-cells = <1>;
88 };
89 };
90 };
91
92 partition@3f20000 {
93 reg = <0x3f20000 0x20000>;
94 label = "boot-info";
95 read-only;
96 };
97
98 partition@3f40000 {
99 reg = <0x3f40000 0x20000>;
100 label = "boot-info-backup";
101 read-only;
102 };
103
104 partition@3f60000 {
105 reg = <0x3f60000 0x20000>;
106 label = "u-boot-env";
107 };
108
109 partition@3f80000 {
110 reg = <0x3f80000 0x80000>;
111 label = "u-boot";
112 read-only;
113 };
114 };
115 };
116 };
117
118 board_soc: soc: soc@ffe00000 {
119 ranges = <0x0 0x0 0xffe00000 0x100000>;
120
121 spi0: spi@7000 {
122 temperature-sensor@1 {
123 compatible = "ti,tmp125";
124 reg = <1>;
125 spi-max-frequency = <5000000>;
126 };
127 };
128
129 i2c@3100 {
130 tpm@29 {
131 compatible = "atmel,at97sc3204t";
132 reg = <0x29>;
133 };
134
135 lp5521@32 {
136 compatible = "national,lp5521";
137 reg = <0x32>;
138 clock-mode = /bits/ 8 <2>;
139 #if 1
140 led_fault_red: led@0 {
141 reg = <0>;
142 chan-name = "fault:red";
143 led-cur = /bits/ 8 <0x2f>;
144 max-cur = /bits/ 8 <0x5f>;
145 color = <LED_COLOR_ID_RED>;
146 function = LED_FUNCTION_FAULT;
147 };
148 led_power_green: led@1 {
149 reg = <1>;
150 chan-name = "power:green";
151 led-cur = /bits/ 8 <0x2f>;
152 max-cur = /bits/ 8 <0x5f>;
153 color = <LED_COLOR_ID_GREEN>;
154 function = LED_FUNCTION_POWER;
155 };
156 led@2{
157 reg = <2>;
158 chan-name = "blue";
159 led-cur = /bits/ 8 <0x2f>;
160 max-cur = /bits/ 8 <0x5f>;
161 color = <LED_COLOR_ID_BLUE>;
162 };
163 #else
164 /*
165 * openwrt isn't ready to handle multi-intensity leds yet
166 * # echo 255 255 255 > /sys/class/leds/tricolor/multi_intensity
167 * # echo 255 > /sys/class/leds/tricolor/brightness
168 */
169
170 rgbled-0 {
171 function = LED_FUNCTION_POWER;
172 color = <LED_COLOR_ID_RGB>;
173 #address-cells = <1>;
174 #size-cells = <0>;
175
176 led@0 {
177 reg = <0>;
178 chan-name = "tricolor";
179 led-cur = /bits/ 8 <0x2f>;
180 max-cur = /bits/ 8 <0x5f>;
181 color = <LED_COLOR_ID_RED>;
182 };
183 led@1 {
184 reg = <1>;
185 chan-name = "tricolor";
186 led-cur = /bits/ 8 <0x2f>;
187 max-cur = /bits/ 8 <0x5f>;
188 color = <LED_COLOR_ID_GREEN>;
189 };
190 led@2{
191 reg = <2>;
192 chan-name = "tricolor";
193 led-cur = /bits/ 8 <0x2f>;
194 max-cur = /bits/ 8 <0x5f>;
195 color = <LED_COLOR_ID_BLUE>;
196 };
197 };
198 #endif
199 };
200
201 eeprom@51 {
202 /*
203 * 1Kbit I2C/SMBus EEPROM with SHA-1 Engine
204 * Aerohive calls it "dallas".
205 */
206 compatible = "adi,ds28cn01";
207 reg = <0x51>;
208 read-only;
209 };
210 };
211
212 mdio@24000 {
213 phy0: ethernet-phy@0 {
214 /* interrupts = <3 1 0 0>; */
215 reg = <0x1>;
216 };
217
218 phy1: ethernet-phy@1 {
219 /* interrupts = <2 1 0 0>; */
220 reg = <0x2>;
221 };
222 };
223
224 mdio@25000 {
225 status = "disabled";
226 };
227
228 mdio@26000 {
229 status = "disabled";
230 };
231
232 enet0: ethernet@b0000 {
233 status = "okay";
234 phy-handle = <&phy0>;
235 phy-connection-type = "rgmii-id";
236 nvmem-cells = <&macaddr_hwinfo_0 0>;
237 nvmem-cell-names = "mac-address";
238 };
239
240 enet1: ethernet@b1000 {
241 status = "disabled";
242 };
243
244 enet2: ethernet@b2000 {
245 status = "okay";
246 phy-handle = <&phy1>;
247 phy-connection-type = "rgmii-id";
248 nvmem-cells = <&macaddr_hwinfo_0 1>;
249 nvmem-cell-names = "mac-address";
250 };
251
252 gpio0: gpio-controller@fc00 {
253 };
254
255 usb@22000 {
256 phy_type = "ulpi";
257 dr_mode = "host";
258 };
259
260 usb@23000 {
261 status = "disabled";
262 };
263 };
264
265 pci0: pcie@ffe09000 {
266 reg = <0x0 0xffe09000 0x0 0x1000>;
267 ranges = <0x2000000 0x0 0xa0000000 0x0 0xa0000000 0x0 0x20000000
268 0x1000000 0x0 0x00000000 0x0 0xffc30000 0x0 0x10000>;
269 pcie@0 {
270 ranges = <0x2000000 0x0 0xa0000000
271 0x2000000 0x0 0xa0000000
272 0x0 0x20000000
273
274 0x1000000 0x0 0x0
275 0x1000000 0x0 0x0
276 0x0 0x100000>;
277 };
278 };
279
280 pci1: pcie@ffe0a000 {
281 reg = <0x0 0xffe0a000 0x0 0x1000>;
282 ranges = <0x2000000 0x0 0xc0000000 0x0 0xc0000000 0x0 0x20000000
283 0x1000000 0x0 0x00000000 0x0 0xffc20000 0x0 0x10000>;
284 pcie@0 {
285 ranges = <0x2000000 0x0 0xc0000000
286 0x2000000 0x0 0xc0000000
287 0x0 0x20000000
288
289 0x1000000 0x0 0x0
290 0x1000000 0x0 0x0
291 0x0 0x100000>;
292 };
293 };
294
295 buttons {
296 compatible = "gpio-keys";
297
298 reset {
299 label = "Reset button";
300 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
301 linux,code = <KEY_RESTART>;
302 };
303 };
304 };
305 /include/ "fsl/p1020si-post.dtsi"
306
307 /*
308 * For the OpenWrt 22.03 release, since Linux 5.10.138 now uses
309 * aliases to determine PCI domain numbers, drop aliases so as not to
310 * change the sysfs path of our wireless netdevs.
311 */
312
313 / {
314 aliases {
315 /delete-property/ pci0;
316 /delete-property/ pci1;
317 };
318 };