aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mpc85xx/files/arch/powerpc/boot/dts/red-15w-rev1.dts
blob: 1fd6a4aa497133a0ccec2bc74acb8164787b966d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
// SPDX-License-Identifier: GPL-2.0-or-later or MIT

#include <dt-bindings/gpio/gpio.h>

/include/ "fsl/p1010si-pre.dtsi"

/ {
	model = "Sophos RED 15w Rev.1";
	compatible = "sophos,red-15w-rev1";

	aliases {
		led-boot = &system_green;
		led-failsafe = &system_red;
		led-running = &system_green;
		led-upgrade = &system_red;
	};

	memory {
		device_type = "memory";
	};

	leds {
		compatible = "gpio-leds";

		system_green: system_green {
			gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
			label = "red-15w-rev1:green:system";
		};

		system_red: system_red {
			gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>;
			label = "red-15w-rev1:red:system";
		};

		router {
			gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
			label = "red-15w-rev1:green:router";
		};

		internet {
			gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
			label = "red-15w-rev1:green:internet";
		};

		tunnel {
			gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
			label = "red-15w-rev1:green:tunnel";
		};
	};

	soc: soc@ffe00000 {
		ranges = <0x0 0x0 0xffe00000 0x100000>;

		i2c@3000 {
			eeprom@50 {
				compatible = "st,24c256";
				reg = <0x50>;
			};
		};

		i2c@3100 {
			eeprom@52 {
				compatible = "atmel,24c01";
				reg = < 0x52 >;
			};
		};

		gpio0: gpio-controller@fc00 {
		};

		usb@22000 {
			phy_type = "utmi";
			dr_mode = "host";
		};

		mdio@24000 {
			phy0: ethernet-phy@0 {
				reg = <0x0>;
			};
		};

		mdio@25000 {
			tbi_phy: tbi-phy@11 {
				reg = <0x11>;
			};
		};

		mdio@26000 {
			status = "disabled";
		};

		enet0: ethernet@b0000 {
			phy-connection-type = "rgmii-id";

			fixed-link {
				speed = <1000>;
				full-duplex;
			};
		};

		enet1: ethernet@b1000 {
			phy-handle = <&phy0>;
			phy-connection-type = "sgmii";

			tbi-handle = <&tbi_phy>;
		};

		enet2: ethernet@b2000 {
			status = "disabled";
		};

		sdhc@2e000 {
			status = "disabled";
		};
	};

	ifc: ifc@ffe1e000 {
		reg = <0x0 0xffe1e000 0 0x2000>;

		/* NOR, NAND Flashes and CPLD on board */
		ranges = <0x0 0x0 0x0 0xee000000 0x02000000
			0x1 0x0 0x0 0xff800000 0x00010000
			0x3 0x0 0x0 0xffb00000 0x00000020>;

		nand@1,0 {
			compatible = "fsl,ifc-nand";
			reg = <0x1 0x0 0x10000>;

			partitions {
				compatible = "fixed-partitions";
				#address-cells = <1>;
				#size-cells = <1>;

				/*
				 * Original partition layout:
				 * 0x000000000000-0x000000100000 : "NAND U-Boot Image"
				 * 0x000000100000-0x000000200000 : "NAND U-Boot Environment"
				 * 0x000000200000-0x000000300000 : "Provisioning"
				 *  - OS-Image 1
				 * 0x000000300000-0x000000400000 : "fdt1"
				 * 0x000000400000-0x000000c00000 : "uimage1"
				 * 0x000000c00000-0x000001c00000 : "rootfs1"
				 *  - OS-Image 2
				 * 0x000001c00000-0x000001d00000 : "fdt2"
				 * 0x000001d00000-0x000002500000 : "uimage2"
				 * 0x000002500000-0x000003500000 : "rootfs2"
				 *  - Empty
				 * 0x000003500000-0x000008000000 : "data"
				 */

				partition@0 {
					reg = <0x0 0x100000>;
					label = "u-boot";
					read-only;
				};

				partition@100000 {
					reg = <0x100000 0x100000>;
					label = "u-boot-env";
				};

				partition@200000 {
					reg = <0x200000 0x100000>;
					label = "provisioning";
					read-only;
				};

				partition@300000 {
					reg = <0x300000 0x800000>;
					label = "kernel";
				};

				partition@b00000 {
					reg = <0xb00000 0x7500000>;
					label = "ubi";
				};

				oem-partition@300000 {
					reg = <0x300000 0x1900000>;
					label = "sophos-os1";
				};

				oem-partition@1c00000 {
					reg = <0x1c00000 0x1900000>;
					label = "sophos-os2";
				};

				oem-partition@3500000 {
					reg = <0x3500000 0x4b00000>;
					label = "sophos-data";
				};
			};
		};
	};

	pci0: pcie@ffe09000 {
		status = "disabled";
	};

	pci1: pcie@ffe0a000 {
		reg = <0 0xffe0a000 0 0x1000>;
		ranges = <0x2000000 0x0 0x80000000 0 0x80000000 0x0 0x20000000
			  0x1000000 0x0 0x00000000 0 0xffc00000 0x0 0x10000>;
		pcie@0 {
			ranges = <0x2000000 0x0 0x80000000
				  0x2000000 0x0 0x80000000
				  0x0 0x20000000

				  0x1000000 0x0 0x0
				  0x1000000 0x0 0x0
				  0x0 0x100000>;
		};
	};
};

/include/ "fsl/p1010si-post.dtsi"