mpc85xx: fix some dtc warnings
[openwrt/openwrt.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@100000000 {
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 oem-partition@300000 {
169 reg = <0x300000 0x1900000>;
170 label = "sophos-os1";
171
172 compatible = "fixed-partitions";
173 #address-cells = <1>;
174 #size-cells = <1>;
175
176 partition@0 {
177 reg = <0x0 0x800000>;
178 label = "kernel";
179 };
180
181 partition@800000 {
182 reg = <0x800000 0x7500000>;
183 label = "ubi";
184 };
185 };
186
187 oem-partition@1c00000 {
188 reg = <0x1c00000 0x1900000>;
189 label = "sophos-os2";
190 };
191
192 oem-partition@3500000 {
193 reg = <0x3500000 0x4b00000>;
194 label = "sophos-data";
195 };
196 };
197 };
198 };
199
200 pci0: pcie@ffe09000 {
201 status = "disabled";
202 };
203
204 pci1: pcie@ffe0a000 {
205 reg = <0 0xffe0a000 0 0x1000>;
206 ranges = <0x2000000 0x0 0x80000000 0 0x80000000 0x0 0x20000000
207 0x1000000 0x0 0x00000000 0 0xffc00000 0x0 0x10000>;
208 pcie@0 {
209 ranges = <0x2000000 0x0 0x80000000
210 0x2000000 0x0 0x80000000
211 0x0 0x20000000
212
213 0x1000000 0x0 0x0
214 0x1000000 0x0 0x0
215 0x0 0x100000>;
216 };
217 };
218 };
219
220 /include/ "fsl/p1010si-post.dtsi"
221
222 /*
223 * For the OpenWrt 22.03 release, since Linux 5.10.138 now uses
224 * aliases to determine PCI domain numbers, drop aliases so as not to
225 * change the sysfs path of our wireless netdevs.
226 */
227
228 / {
229 aliases {
230 /delete-property/ pci0;
231 /delete-property/ pci1;
232 };
233 };
234