mpc85xx: add support for Extreme Networks WS-AP3825i
[openwrt/staging/dedeckeh.git] / target / linux / mpc85xx / files / arch / powerpc / boot / dts / ws-ap3825i.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later or MIT
2
3 /include/ "fsl/p1020si-pre.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 model = "Extreme Networks WS-AP3825i";
10 compatible = "extreme-networks,ws-ap3825i";
11
12 aliases {
13 ethernet0 = &enet0;
14 ethernet1 = &enet2;
15 led-boot = &led_power_green;
16 led-failsafe = &led_power_red;
17 led-running = &led_power_green;
18 led-upgrade = &led_power_red;
19 };
20
21 chosen {
22 bootargs-override = "console=ttyS0,115200";
23 };
24
25 memory {
26 device_type = "memory";
27 };
28
29 led_spi {
30 /*
31 * This is currently non-functioning because the spi-gpio
32 * driver refuses to register when presented with this node.
33 */
34 compatible = "spi-gpio";
35 #address-cells = <1>;
36 #size-cells = <0>;
37
38 sck-gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
39 mosi-gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
40 num-chipselects = <0>;
41
42 spi_gpio: led_gpio@0 {
43 compatible = "fairchild,74hc595";
44 reg = <0>;
45 gpio-controller;
46 #gpio-cells = <2>;
47 registers-number = <1>;
48 spi-max-frequency = <100000>;
49 };
50 };
51
52 leds {
53 compatible = "gpio-leds";
54
55 wifi1 {
56 gpios = <&spi_gpio 3 GPIO_ACTIVE_HIGH>;
57 label = "ws-ap3825i:green:radio1";
58 linux,default-trigger = "phy0tpt";
59 };
60
61 wifi2 {
62 gpios = <&spi_gpio 2 GPIO_ACTIVE_HIGH>;
63 label = "ws-ap3825i:green:radio2";
64 linux,default-trigger = "phy1tpt";
65 };
66
67 led_power_green: power_green {
68 gpios = <&spi_gpio 0 GPIO_ACTIVE_HIGH>;
69 label = "ws-ap3825i:green:power";
70 };
71
72 led_power_red: power_red {
73 gpios = <&spi_gpio 1 GPIO_ACTIVE_HIGH>;
74 label = "ws-ap3825i:red:power";
75 };
76
77 eth0_red {
78 gpios = <&spi_gpio 6 GPIO_ACTIVE_HIGH>;
79 label = "ws-ap3825i:red:eth0";
80 };
81
82 eth0_green {
83 gpios = <&spi_gpio 4 GPIO_ACTIVE_HIGH>;
84 label = "ws-ap3825i:green:eth0";
85 };
86
87 eth1_red {
88 gpios = <&spi_gpio 7 GPIO_ACTIVE_HIGH>;
89 label = "ws-ap3825i:red:eth1";
90 };
91
92 eth1_green {
93 gpios = <&spi_gpio 5 GPIO_ACTIVE_HIGH>;
94 label = "ws-ap3825i:green:eth1";
95 };
96 };
97
98 keys {
99 compatible = "gpio-keys";
100
101 reset {
102 label = "Reset button";
103 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
104 linux,code = <KEY_RESTART>;
105 };
106 };
107
108 lbc: localbus@ffe05000 {
109 reg = <0 0xffe05000 0 0x1000>;
110 ranges = <0x0 0x0 0x0 0xec000000 0x4000000>;
111
112 nor@0 {
113 #address-cells = <1>;
114 #size-cells = <1>;
115 compatible = "cfi-flash";
116 reg = <0x0 0x0 0x4000000>;
117 bank-width = <2>;
118 device-width = <1>;
119
120 partitions {
121 compatible = "fixed-partitions";
122 #address-cells = <1>;
123 #size-cells = <1>;
124
125 partition@0 {
126 compatible = "denx,fit";
127 reg = <0x0 0x3d60000>;
128 label = "firmware";
129 };
130
131 partition@3d60000 {
132 reg = <0x3d60000 0x20000>;
133 label = "calib";
134 read-only;
135 };
136
137 partition@3d80000{
138 reg = <0x3d80000 0x80000>;
139 label = "u-boot";
140 read-only;
141 };
142
143 partition@3e00000{
144 reg = <0x3e00000 0x100000>;
145 label = "nvram";
146 read-only;
147 };
148
149 partition@3f00000 {
150 reg = <0x3f00000 0x20000>;
151 label = "cfg2";
152 read-only;
153 };
154
155 partition@3f20000 {
156 reg = <0x3f20000 0x20000>;
157 label = "cfg1";
158 read-only;
159 };
160 };
161 };
162 };
163
164 soc: soc@ffe00000 {
165 ranges = <0x0 0x0 0xffe00000 0x100000>;
166
167 gpio0: gpio-controller@fc00 {
168 };
169
170 mdio@24000 {
171 phy0: ethernet-phy@0 {
172 interrupts = <3 1 0 0>;
173 reg = <0x5>;
174 reset-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
175 };
176
177 phy2: ethernet-phy@2 {
178 interrupts = <1 1 0 0>;
179 reg = <0x6>;
180 reset-gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
181 };
182 };
183
184 mdio@25000 {
185 status = "disabled";
186 };
187
188 mdio@26000 {
189 status = "disabled";
190 };
191
192 enet0: ethernet@b0000 {
193 status = "okay";
194 phy-handle = <&phy0>;
195 phy-connection-type = "rgmii-id";
196 };
197
198 enet1: ethernet@b1000 {
199 status = "disabled";
200 };
201
202 enet2: ethernet@b2000 {
203 status = "okay";
204 phy-handle = <&phy2>;
205 phy-connection-type = "rgmii-id";
206 };
207
208 usb@22000 {
209 phy_type = "ulpi";
210 dr_mode = "host";
211 };
212
213 usb@23000 {
214 status = "disabled";
215 };
216 };
217
218 pci0: pcie@ffe09000 {
219 ranges = <0x2000000 0x0 0xa0000000 0 0xa0000000 0x0 0x20000000
220 0x1000000 0x0 0x00000000 0 0xffc10000 0x0 0x10000>;
221 reg = <0 0xffe09000 0 0x1000>;
222 pcie@0 {
223 ranges = <0x2000000 0x0 0xa0000000
224 0x2000000 0x0 0xa0000000
225 0x0 0x20000000
226
227 0x1000000 0x0 0x0
228 0x1000000 0x0 0x0
229 0x0 0x100000>;
230 };
231 };
232
233 pci1: pcie@ffe0a000 {
234 reg = <0 0xffe0a000 0 0x1000>;
235 ranges = <0x2000000 0x0 0x80000000 0 0x80000000 0x0 0x20000000
236 0x1000000 0x0 0x00000000 0 0xffc00000 0x0 0x10000>;
237 pcie@0 {
238 ranges = <0x2000000 0x0 0x80000000
239 0x2000000 0x0 0x80000000
240 0x0 0x20000000
241
242 0x1000000 0x0 0x0
243 0x1000000 0x0 0x0
244 0x0 0x100000>;
245 };
246 };
247 };
248
249 /include/ "fsl/p1020si-post.dtsi"