xref: /linux/scripts/dtc/include-prefixes/mips/mti/sead3.dts (revision 762f99f4f3cb41a775b5157dd761217beba65873)
1b2441318SGreg Kroah-Hartman// SPDX-License-Identifier: GPL-2.0
28c0b9ee8SAndrew Bresticker/dts-v1/;
38c0b9ee8SAndrew Bresticker
48c0b9ee8SAndrew Bresticker/memreserve/ 0x00000000 0x00001000;	// reserved
58c0b9ee8SAndrew Bresticker/memreserve/ 0x00001000 0x000ef000;	// ROM data
68c0b9ee8SAndrew Bresticker/memreserve/ 0x000f0000 0x004cc000;	// reserved
78c0b9ee8SAndrew Bresticker
8b6d5e47eSPaul Burton#include <dt-bindings/interrupt-controller/mips-gic.h>
9b6d5e47eSPaul Burton
108c0b9ee8SAndrew Bresticker/ {
118c0b9ee8SAndrew Bresticker	#address-cells = <1>;
128c0b9ee8SAndrew Bresticker	#size-cells = <1>;
138c0b9ee8SAndrew Bresticker	compatible = "mti,sead-3";
143f5f0a44SPaul Burton	model = "MIPS SEAD-3";
158c0b9ee8SAndrew Bresticker
16c11e3b48SPaul Burton	chosen {
17c3d62fc6SPaul Burton		stdout-path = "serial1:115200";
18c11e3b48SPaul Burton	};
19c11e3b48SPaul Burton
20c11e3b48SPaul Burton	aliases {
21c3d62fc6SPaul Burton		serial0 = &uart0;
22c3d62fc6SPaul Burton		serial1 = &uart1;
23c11e3b48SPaul Burton	};
24c11e3b48SPaul Burton
258c0b9ee8SAndrew Bresticker	cpus {
268c0b9ee8SAndrew Bresticker		cpu@0 {
278c0b9ee8SAndrew Bresticker			compatible = "mti,mips14KEc", "mti,mips14Kc";
288c0b9ee8SAndrew Bresticker		};
298c0b9ee8SAndrew Bresticker	};
308c0b9ee8SAndrew Bresticker
318c0b9ee8SAndrew Bresticker	memory {
328c0b9ee8SAndrew Bresticker		device_type = "memory";
338c0b9ee8SAndrew Bresticker		reg = <0x0 0x08000000>;
348c0b9ee8SAndrew Bresticker	};
35b6d5e47eSPaul Burton
36b6d5e47eSPaul Burton	cpu_intc: interrupt-controller {
37b6d5e47eSPaul Burton		compatible = "mti,cpu-interrupt-controller";
38b6d5e47eSPaul Burton
39b6d5e47eSPaul Burton		interrupt-controller;
40b6d5e47eSPaul Burton		#interrupt-cells = <1>;
41b6d5e47eSPaul Burton	};
42b6d5e47eSPaul Burton
43b6d5e47eSPaul Burton	gic: interrupt-controller@1b1c0000 {
44b6d5e47eSPaul Burton		compatible = "mti,gic";
45b6d5e47eSPaul Burton		reg = <0x1b1c0000 0x20000>;
46b6d5e47eSPaul Burton
47b6d5e47eSPaul Burton		interrupt-controller;
48b6d5e47eSPaul Burton		#interrupt-cells = <3>;
49b6d5e47eSPaul Burton
50b6d5e47eSPaul Burton		/*
51b6d5e47eSPaul Burton		 * Declare the interrupt-parent even though the mti,gic
52b6d5e47eSPaul Burton		 * binding doesn't require it, such that the kernel can
53b6d5e47eSPaul Burton		 * figure out that cpu_intc is the root interrupt
54b6d5e47eSPaul Burton		 * controller & should be probed first.
55b6d5e47eSPaul Burton		 */
56b6d5e47eSPaul Burton		interrupt-parent = <&cpu_intc>;
57b6d5e47eSPaul Burton	};
58c11e3b48SPaul Burton
59f4fc91afSSerge Semin	usb@1b200000 {
607afd2a5aSPaul Burton		compatible = "generic-ehci";
617afd2a5aSPaul Burton		reg = <0x1b200000 0x1000>;
627afd2a5aSPaul Burton
63fbdc674bSPaul Burton		interrupt-parent = <&gic>;
64d3f61634SPaul Burton		interrupts = <GIC_SHARED 0 IRQ_TYPE_LEVEL_HIGH>; /* GIC 0 or CPU 6 */
657afd2a5aSPaul Burton
667afd2a5aSPaul Burton		has-transaction-translator;
677afd2a5aSPaul Burton	};
687afd2a5aSPaul Burton
693aefc655SPaul Burton	flash@1c000000 {
703aefc655SPaul Burton		compatible = "intel,28f128j3", "cfi-flash";
713aefc655SPaul Burton		reg = <0x1c000000 0x2000000>;
723aefc655SPaul Burton		#address-cells = <1>;
733aefc655SPaul Burton		#size-cells = <1>;
743aefc655SPaul Burton		bank-width = <4>;
753aefc655SPaul Burton
763aefc655SPaul Burton		partitions {
773aefc655SPaul Burton			compatible = "fixed-partitions";
783aefc655SPaul Burton			#address-cells = <1>;
793aefc655SPaul Burton			#size-cells = <1>;
803aefc655SPaul Burton
813aefc655SPaul Burton			user-fs@0 {
823aefc655SPaul Burton				label = "User FS";
833aefc655SPaul Burton				reg = <0x0 0x1fc0000>;
843aefc655SPaul Burton			};
853aefc655SPaul Burton
863aefc655SPaul Burton			board-config@3e0000 {
873aefc655SPaul Burton				label = "Board Config";
883aefc655SPaul Burton				reg = <0x1fc0000 0x40000>;
893aefc655SPaul Burton			};
903aefc655SPaul Burton		};
913aefc655SPaul Burton	};
923aefc655SPaul Burton
9370bfdcecSPaul Burton	fpga_regs: system-controller@1f000000 {
9470bfdcecSPaul Burton		compatible = "mti,sead3-fpga", "syscon", "simple-mfd";
9570bfdcecSPaul Burton		reg = <0x1f000000 0x200>;
9670bfdcecSPaul Burton
9770bfdcecSPaul Burton		reboot {
9870bfdcecSPaul Burton			compatible = "syscon-reboot";
9970bfdcecSPaul Burton			regmap = <&fpga_regs>;
10070bfdcecSPaul Burton			offset = <0x50>;
10170bfdcecSPaul Burton			mask = <0x4d>;
10270bfdcecSPaul Burton		};
103a1ec6003SPaul Burton
104a1ec6003SPaul Burton		poweroff {
105a1ec6003SPaul Burton			compatible = "restart-poweroff";
106a1ec6003SPaul Burton		};
10770bfdcecSPaul Burton	};
10870bfdcecSPaul Burton
109c764583fSPaul Burton	system-controller@1f000200 {
110c764583fSPaul Burton		compatible = "mti,sead3-cpld", "syscon", "simple-mfd";
111c764583fSPaul Burton		reg = <0x1f000200 0x300>;
112c764583fSPaul Burton
113c764583fSPaul Burton		led@10.0 {
114c764583fSPaul Burton			compatible = "register-bit-led";
115c764583fSPaul Burton			offset = <0x10>;
116c764583fSPaul Burton			mask = <0x1>;
117c764583fSPaul Burton			label = "pled0";
118c764583fSPaul Burton		};
119c764583fSPaul Burton		led@10.1 {
120c764583fSPaul Burton			compatible = "register-bit-led";
121c764583fSPaul Burton			offset = <0x10>;
122c764583fSPaul Burton			mask = <0x2>;
123c764583fSPaul Burton			label = "pled1";
124c764583fSPaul Burton		};
125c764583fSPaul Burton		led@10.2 {
126c764583fSPaul Burton			compatible = "register-bit-led";
127c764583fSPaul Burton			offset = <0x10>;
128c764583fSPaul Burton			mask = <0x4>;
129c764583fSPaul Burton			label = "pled2";
130c764583fSPaul Burton		};
131c764583fSPaul Burton		led@10.3 {
132c764583fSPaul Burton			compatible = "register-bit-led";
133c764583fSPaul Burton			offset = <0x10>;
134c764583fSPaul Burton			mask = <0x8>;
135c764583fSPaul Burton			label = "pled3";
136c764583fSPaul Burton		};
137c764583fSPaul Burton		led@10.4 {
138c764583fSPaul Burton			compatible = "register-bit-led";
139c764583fSPaul Burton			offset = <0x10>;
140c764583fSPaul Burton			mask = <0x10>;
141c764583fSPaul Burton			label = "pled4";
142c764583fSPaul Burton		};
143c764583fSPaul Burton		led@10.5 {
144c764583fSPaul Burton			compatible = "register-bit-led";
145c764583fSPaul Burton			offset = <0x10>;
146c764583fSPaul Burton			mask = <0x20>;
147c764583fSPaul Burton			label = "pled5";
148c764583fSPaul Burton		};
149c764583fSPaul Burton		led@10.6 {
150c764583fSPaul Burton			compatible = "register-bit-led";
151c764583fSPaul Burton			offset = <0x10>;
152c764583fSPaul Burton			mask = <0x40>;
153c764583fSPaul Burton			label = "pled6";
154c764583fSPaul Burton		};
155c764583fSPaul Burton		led@10.7 {
156c764583fSPaul Burton			compatible = "register-bit-led";
157c764583fSPaul Burton			offset = <0x10>;
158c764583fSPaul Burton			mask = <0x80>;
159c764583fSPaul Burton			label = "pled7";
160c764583fSPaul Burton		};
161c764583fSPaul Burton
162c764583fSPaul Burton		led@18.0 {
163c764583fSPaul Burton			compatible = "register-bit-led";
164c764583fSPaul Burton			offset = <0x18>;
165c764583fSPaul Burton			mask = <0x1>;
166c764583fSPaul Burton			label = "fled0";
167c764583fSPaul Burton		};
168c764583fSPaul Burton		led@18.1 {
169c764583fSPaul Burton			compatible = "register-bit-led";
170c764583fSPaul Burton			offset = <0x18>;
171c764583fSPaul Burton			mask = <0x2>;
172c764583fSPaul Burton			label = "fled1";
173c764583fSPaul Burton		};
174c764583fSPaul Burton		led@18.2 {
175c764583fSPaul Burton			compatible = "register-bit-led";
176c764583fSPaul Burton			offset = <0x18>;
177c764583fSPaul Burton			mask = <0x4>;
178c764583fSPaul Burton			label = "fled2";
179c764583fSPaul Burton		};
180c764583fSPaul Burton		led@18.3 {
181c764583fSPaul Burton			compatible = "register-bit-led";
182c764583fSPaul Burton			offset = <0x18>;
183c764583fSPaul Burton			mask = <0x8>;
184c764583fSPaul Burton			label = "fled3";
185c764583fSPaul Burton		};
186c764583fSPaul Burton		led@18.4 {
187c764583fSPaul Burton			compatible = "register-bit-led";
188c764583fSPaul Burton			offset = <0x18>;
189c764583fSPaul Burton			mask = <0x10>;
190c764583fSPaul Burton			label = "fled4";
191c764583fSPaul Burton		};
192c764583fSPaul Burton		led@18.5 {
193c764583fSPaul Burton			compatible = "register-bit-led";
194c764583fSPaul Burton			offset = <0x18>;
195c764583fSPaul Burton			mask = <0x20>;
196c764583fSPaul Burton			label = "fled5";
197c764583fSPaul Burton		};
198c764583fSPaul Burton		led@18.6 {
199c764583fSPaul Burton			compatible = "register-bit-led";
200c764583fSPaul Burton			offset = <0x18>;
201c764583fSPaul Burton			mask = <0x40>;
202c764583fSPaul Burton			label = "fled6";
203c764583fSPaul Burton		};
204c764583fSPaul Burton		led@18.7 {
205c764583fSPaul Burton			compatible = "register-bit-led";
206c764583fSPaul Burton			offset = <0x18>;
207c764583fSPaul Burton			mask = <0x80>;
208c764583fSPaul Burton			label = "fled7";
209c764583fSPaul Burton		};
2105e189564SPaul Burton
2115e189564SPaul Burton		lcd@200 {
2125e189564SPaul Burton			compatible = "mti,sead3-lcd";
2135e189564SPaul Burton			offset = <0x200>;
2145e189564SPaul Burton		};
215c764583fSPaul Burton	};
216c764583fSPaul Burton
217c11e3b48SPaul Burton	/* UART connected to FTDI & miniUSB socket */
218c11e3b48SPaul Burton	uart0: uart@1f000900 {
219c11e3b48SPaul Burton		compatible = "ns16550a";
220c11e3b48SPaul Burton		reg = <0x1f000900 0x20>;
221c11e3b48SPaul Burton		reg-io-width = <4>;
222c11e3b48SPaul Burton		reg-shift = <2>;
223c11e3b48SPaul Burton
224c11e3b48SPaul Burton		clock-frequency = <14745600>;
225c11e3b48SPaul Burton
226fbdc674bSPaul Burton		interrupt-parent = <&gic>;
227d3f61634SPaul Burton		interrupts = <GIC_SHARED 3 IRQ_TYPE_LEVEL_HIGH>; /* GIC 3 or CPU 4 */
228c11e3b48SPaul Burton
229c11e3b48SPaul Burton		no-loopback-test;
230c11e3b48SPaul Burton	};
231c11e3b48SPaul Burton
232c11e3b48SPaul Burton	/* UART connected to RS232 socket */
233c11e3b48SPaul Burton	uart1: uart@1f000800 {
234c11e3b48SPaul Burton		compatible = "ns16550a";
235c11e3b48SPaul Burton		reg = <0x1f000800 0x20>;
236c11e3b48SPaul Burton		reg-io-width = <4>;
237c11e3b48SPaul Burton		reg-shift = <2>;
238c11e3b48SPaul Burton
239c11e3b48SPaul Burton		clock-frequency = <14745600>;
240c11e3b48SPaul Burton
241fbdc674bSPaul Burton		interrupt-parent = <&gic>;
242d3f61634SPaul Burton		interrupts = <GIC_SHARED 2 IRQ_TYPE_LEVEL_HIGH>; /* GIC 2 or CPU 4 */
243c11e3b48SPaul Burton
244c11e3b48SPaul Burton		no-loopback-test;
245c11e3b48SPaul Burton	};
246a34e9388SPaul Burton
247*5334d983SGeert Uytterhoeven	ethernet@1f010000 {
248a34e9388SPaul Burton		compatible = "smsc,lan9115";
249a34e9388SPaul Burton		reg = <0x1f010000 0x10000>;
250a34e9388SPaul Burton		reg-io-width = <4>;
251a34e9388SPaul Burton
252fbdc674bSPaul Burton		interrupt-parent = <&gic>;
253d3f61634SPaul Burton		interrupts = <GIC_SHARED 0 IRQ_TYPE_LEVEL_HIGH>; /* GIC 0 or CPU 6 */
254a34e9388SPaul Burton
255a34e9388SPaul Burton		phy-mode = "mii";
256a34e9388SPaul Burton		smsc,irq-push-pull;
257a34e9388SPaul Burton		smsc,save-mac-address;
258a34e9388SPaul Burton	};
2598c0b9ee8SAndrew Bresticker};
260