db35602b94b5b7a77dc7c08fc830f80fba56522c
[openwrt/staging/jow.git] / target / linux / mpc85xx / files / arch / powerpc / boot / dts / red-15w-rev1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later or MIT
2
3 #include <dt-bindings/gpio/gpio.h>
4
5 /include/ "fsl/p1010si-pre.dtsi"
6
7 / {
8 model = "Sophos RED 15w Rev.1";
9 compatible = "sophos,red-15w-rev1";
10
11 aliases {
12 led-boot = &system_green;
13 led-failsafe = &system_red;
14 led-running = &system_green;
15 led-upgrade = &system_red;
16 };
17
18 memory {
19 device_type = "memory";
20 };
21
22 leds {
23 compatible = "gpio-leds";
24
25 system_green: system_green {
26 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
27 label = "red-15w-rev1:green:system";
28 };
29
30 system_red: system_red {
31 gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>;
32 label = "red-15w-rev1:red:system";
33 };
34
35 router {
36 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
37 label = "red-15w-rev1:green:router";
38 };
39
40 internet {
41 gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
42 label = "red-15w-rev1:green:internet";
43 };
44
45 tunnel {
46 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
47 label = "red-15w-rev1:green:tunnel";
48 };
49 };
50
51 soc: soc@ffe00000 {
52 ranges = <0x0 0x0 0xffe00000 0x100000>;
53
54 i2c@3000 {
55 eeprom@50 {
56 compatible = "st,24c256";
57 reg = <0x50>;
58 };
59 };
60
61 i2c@3100 {
62 eeprom@52 {
63 compatible = "atmel,24c01";
64 reg = < 0x52 >;
65 };
66 };
67
68 gpio0: gpio-controller@fc00 {
69 };
70
71 usb@22000 {
72 phy_type = "utmi";
73 dr_mode = "host";
74 };
75
76 mdio@24000 {
77 phy0: ethernet-phy@0 {
78 reg = <0x0>;
79 };
80 };
81
82 mdio@25000 {
83 tbi_phy: tbi-phy@11 {
84 reg = <0x11>;
85 };
86 };
87
88 mdio@26000 {
89 status = "disabled";
90 };
91
92 enet0: ethernet@b0000 {
93 phy-connection-type = "rgmii-id";
94
95 fixed-link {
96 speed = <1000>;
97 full-duplex;
98 };
99 };
100
101 enet1: ethernet@b1000 {
102 phy-handle = <&phy0>;
103 phy-connection-type = "sgmii";
104
105 tbi-handle = <&tbi_phy>;
106 };
107
108 enet2: ethernet@b2000 {
109 status = "disabled";
110 };
111
112 sdhc@2e000 {
113 status = "disabled";
114 };
115 };
116
117 ifc: ifc@ffe1e000 {
118 reg = <0x0 0xffe1e000 0 0x2000>;
119
120 /* NOR, NAND Flashes and CPLD on board */
121 ranges = <0x0 0x0 0x0 0xee000000 0x02000000
122 0x1 0x0 0x0 0xff800000 0x00010000
123 0x3 0x0 0x0 0xffb00000 0x00000020>;
124
125 nand@1,0 {
126 compatible = "fsl,ifc-nand";
127 reg = <0x1 0x0 0x10000>;
128
129 partitions {
130 compatible = "fixed-partitions";
131 #address-cells = <1>;
132 #size-cells = <1>;
133
134 /*
135 * Original partition layout:
136 * 0x000000000000-0x000000100000 : "NAND U-Boot Image"
137 * 0x000000100000-0x000000200000 : "NAND U-Boot Environment"
138 * 0x000000200000-0x000000300000 : "Provisioning"
139 * - OS-Image 1
140 * 0x000000300000-0x000000400000 : "fdt1"
141 * 0x000000400000-0x000000c00000 : "uimage1"
142 * 0x000000c00000-0x000001c00000 : "rootfs1"
143 * - OS-Image 2
144 * 0x000001c00000-0x000001d00000 : "fdt2"
145 * 0x000001d00000-0x000002500000 : "uimage2"
146 * 0x000002500000-0x000003500000 : "rootfs2"
147 * - Empty
148 * 0x000003500000-0x000008000000 : "data"
149 */
150
151 partition@0 {
152 reg = <0x0 0x100000>;
153 label = "u-boot";
154 read-only;
155 };
156
157 partition@100000 {
158 reg = <0x100000 0x100000>;
159 label = "u-boot-env";
160 };
161
162 partition@200000 {
163 reg = <0x200000 0x100000>;
164 label = "provisioning";
165 read-only;
166 };
167
168 partition@300000 {
169 reg = <0x300000 0x800000>;
170 label = "kernel";
171 };
172
173 partition@b00000 {
174 reg = <0xb00000 0x7500000>;
175 label = "ubi";
176 };
177
178 oem-partition@300000 {
179 reg = <0x300000 0x1900000>;
180 label = "sophos-os1";
181 };
182
183 oem-partition@1c00000 {
184 reg = <0x1c00000 0x1900000>;
185 label = "sophos-os2";
186 };
187
188 oem-partition@3500000 {
189 reg = <0x3500000 0x4b00000>;
190 label = "sophos-data";
191 };
192 };
193 };
194 };
195
196 pci0: pcie@ffe09000 {
197 status = "disabled";
198 };
199
200 pci1: pcie@ffe0a000 {
201 reg = <0 0xffe0a000 0 0x1000>;
202 ranges = <0x2000000 0x0 0x80000000 0 0x80000000 0x0 0x20000000
203 0x1000000 0x0 0x00000000 0 0xffc00000 0x0 0x10000>;
204 pcie@0 {
205 ranges = <0x2000000 0x0 0x80000000
206 0x2000000 0x0 0x80000000
207 0x0 0x20000000
208
209 0x1000000 0x0 0x0
210 0x1000000 0x0 0x0
211 0x0 0x100000>;
212 };
213 };
214 };
215
216 /include/ "fsl/p1010si-post.dtsi"
217
218 /*
219 * For the OpenWrt 22.03 release, since Linux 5.10.138 now uses
220 * aliases to determine PCI domain numbers, drop aliases so as not to
221 * change the sysfs path of our wireless netdevs.
222 */
223
224 / {
225 aliases {
226 /delete-property/ pci0;
227 /delete-property/ pci1;
228 };
229 };
230