89d8afe463a4a12e07f8c57cbdbedeac886eca3f
[openwrt/staging/jow.git] / target / linux / mpc85xx / files / arch / powerpc / boot / dts / firebox-t10.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later or MIT
2
3 #include <dt-bindings/input/input.h>
4 #include <dt-bindings/gpio/gpio.h>
5
6 /include/ "fsl/p1010si-pre.dtsi"
7
8 / {
9 model = "Watchguard Firebox T10";
10 compatible = "watchguard,firebox-t10";
11
12 chosen {
13 bootargs = "console=ttyS0,115200";
14 bootargs-override = "console=ttyS0,115200";
15 };
16
17 aliases {
18 spi0 = &spi0;
19 led-boot = &led_mode;
20 led-failsafe = &led_failover;
21 led-running = &led_mode;
22 led-upgrade = &led_attention;
23 };
24
25 memory {
26 device_type = "memory";
27 };
28
29 leds {
30 compatible = "gpio-leds";
31
32 led_attention: attention_orange {
33 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
34 label = "orange:attention";
35 };
36
37 status_red {
38 gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
39 label = "red:status";
40 };
41
42 led_mode: mode_green {
43 gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
44 label = "green:mode";
45 };
46
47 led_failover: failover_green {
48 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
49 label = "green:failover";
50 };
51 };
52
53 buttons {
54 compatible = "gpio-keys";
55
56 reset {
57 label = "Reset button";
58 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
59 linux,code = <KEY_RESTART>;
60 };
61 };
62
63
64 soc: soc@ffe00000 {
65 ranges = <0x0 0x0 0xffe00000 0x100000>;
66
67 i2c@3000 {
68 rtc@30 {
69 compatible = "sii,s35390a";
70 reg = <0x30>;
71 };
72 };
73
74 spi0: spi@7000 {
75 flash@0 {
76 compatible = "jedec,spi-nor";
77 reg = <0>;
78 spi-max-frequency = <25000000>;
79
80 partitions {
81 compatible = "fixed-partitions";
82 #address-cells = <1>;
83 #size-cells = <1>;
84
85 uboot: partition@0 {
86 reg = <0x0 0x90000>;
87 label = "u-boot";
88 read-only;
89 };
90
91 partition@90000 {
92 reg = <0x90000 0x10000>;
93 label = "u-boot-env";
94 };
95
96 partition@a0000 {
97 reg = <0xa0000 0x20000>;
98 label = "cfgxxx";
99 read-only;
100 };
101
102 partition@c0000 {
103 reg = <0xc0000 0x40000>;
104 label = "device_id";
105 read-only;
106 };
107 };
108 };
109 };
110
111 gpio0: gpio-controller@fc00 {
112 };
113
114 usb@22000 {
115 phy_type = "utmi";
116 dr_mode = "host";
117 };
118
119 mdio@24000 {
120 phy1: ethernet-phy@1 {
121 reg = <0x1>;
122 };
123
124 phy2: ethernet-phy@2 {
125 reg = <0x2>;
126 };
127
128 phy3: ethernet-phy@3 {
129 reg = <0x3>;
130 };
131 };
132
133 mdio@25000 {
134 tbi_phy1: tbi-phy@11 {
135 reg = <0x11>;
136 device_type = "tbi-phy";
137 };
138 };
139
140 mdio@26000 {
141 tbi_phy2: tbi-phy@11 {
142 reg = <0x11>;
143 device_type = "tbi-phy";
144 };
145 };
146
147 enet0: ethernet@b0000 {
148 phy-handle = <&phy1>;
149 phy-connection-type = "rgmii-id";
150 };
151
152 enet1: ethernet@b1000 {
153 tbi-handle = <&tbi_phy1>;
154 phy-handle = <&phy2>;
155 phy-connection-type = "sgmii";
156 };
157
158 enet2: ethernet@b2000 {
159 tbi-handle = <&tbi_phy2>;
160 phy-handle = <&phy3>;
161 phy-connection-type = "sgmii";
162 };
163
164 sdhc@2e000 {
165 status = "disabled";
166 };
167
168 serial1: serial@4600 {
169 status = "disabled";
170 };
171
172 can0: can@1c000 {
173 status = "disabled";
174 };
175
176 can1: can@1d000 {
177 status = "disabled";
178 };
179 };
180
181 pci0: pcie@ffe09000 {
182 status = "disabled";
183 };
184
185 pci1: pcie@ffe0a000 {
186 status = "disabled";
187 };
188
189 ifc: ifc@ffe1e000 {
190 reg = <0x0 0xffe1e000 0 0x2000>;
191
192 /* NOR, NAND Flashes and CPLD on board */
193 ranges = <0x0 0x0 0x0 0xee000000 0x02000000
194 0x1 0x0 0x0 0xff800000 0x00010000
195 0x3 0x0 0x0 0xffb00000 0x00000020>;
196
197 nand@100000000 {
198 compatible = "fsl,ifc-nand";
199 reg = <0x1 0x0 0x10000>;
200
201 partitions {
202 compatible = "fixed-partitions";
203 #address-cells = <1>;
204 #size-cells = <1>;
205
206 /*
207 * Original partition layout:
208 * 0x000000000000-0x000000020000 : "NAND (RW) WG DTB Image"
209 * 0x000000020000-0x000000520000 : "NAND (RW) WG SYSA Kernel"
210 * 0x000000520000-0x000007f00000 : "NAND (RW) WG SYSA_CODE"
211 * 0x000007f00000-0x000008400000 : "NAND (RW) WG SYSB Kernel"
212 * 0x000008400000-0x000009c00000 : "NAND (RW) WG SYSB_CODE"
213 * 0x000009c00000-0x00000a100000 : "NAND (RW) WG SYSA2 Kernel"
214 * 0x00000a100000-0x000011ae0000 : "NAND (RW) WG SYSA_CODE2"
215 * 0x000011ae0000-0x000020000000 : "NAND (RW) WG SYSA_DATA"
216 */
217
218 partition@0 {
219 reg = <0x0 0x20000>;
220 label = "wg-dtb";
221 read-only;
222 };
223
224 partition@20000 {
225 reg = <0x20000 0x500000>;
226 label = "kernel";
227 };
228
229 partition@520000 {
230 reg = <0x520000 0x79e0000>;
231 label = "wg-sysa-rootfs";
232 read-only;
233 };
234
235 partition@7f00000 {
236 reg = <0x7f00000 0x500000>;
237 label = "wg-sysb-kernel";
238 read-only;
239 };
240
241 partition@8400000 {
242 reg = <0x8400000 0x1800000>;
243 label = "wg-sysb-rootfs";
244 read-only;
245 };
246
247 partition@9c00000 {
248 reg = <0x9c00000 0x500000>;
249 label = "wg-sysa2-kernel";
250 read-only;
251 };
252
253 partition@a100000 {
254 reg = <0xa100000 0x79e0000>;
255 label = "wg-sysa2-rootfs";
256 read-only;
257 };
258
259 partition@11ae0000 {
260 reg = <0x11ae0000 0xe520000>;
261 label = "ubi";
262 };
263 };
264 };
265 };
266 };
267
268 /include/ "fsl/p1010si-post.dtsi"