Linux Audio

Check our new training course

Loading...
v6.2
  1/*
  2 * Copyright 2014 Linaro Ltd
  3 *
  4 * Permission is hereby granted, free of charge, to any person obtaining a copy
  5 * of this software and associated documentation files (the "Software"), to deal
  6 * in the Software without restriction, including without limitation the rights
  7 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  8 * copies of the Software, and to permit persons to whom the Software is
  9 * furnished to do so, subject to the following conditions:
 10 *
 11 * The above copyright notice and this permission notice shall be included in
 12 * all copies or substantial portions of the Software.
 13 *
 14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
 17 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 19 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 20 * THE SOFTWARE.
 21 */
 22
 23/dts-v1/;
 24#include <dt-bindings/interrupt-controller/irq.h>
 25#include <dt-bindings/gpio/gpio.h>
 
 26
 27/ {
 28	#address-cells = <1>;
 29	#size-cells = <1>;
 30	model = "ARM RealView PB1176";
 31	compatible = "arm,realview-pb1176";
 32
 33	chosen { };
 34
 35	aliases {
 36		serial0 = &pb1176_serial0;
 37		serial1 = &pb1176_serial1;
 38		serial2 = &pb1176_serial2;
 39		serial3 = &pb1176_serial3;
 40		serial4 = &fpga_serial;
 41	};
 42
 43	memory {
 44		device_type = "memory";
 45		/* 128 MiB memory @ 0x0 */
 46		reg = <0x00000000 0x08000000>;
 47	};
 48
 49	/* The voltage to the MMC card is hardwired at 3.3V */
 50	vmmc: regulator-vmmc {
 51		compatible = "regulator-fixed";
 52		regulator-name = "vmmc";
 53		regulator-min-microvolt = <3300000>;
 54		regulator-max-microvolt = <3300000>;
 55		regulator-boot-on;
 56        };
 57
 58	veth: regulator-veth {
 59		compatible = "regulator-fixed";
 60		regulator-name = "veth";
 61		regulator-min-microvolt = <3300000>;
 62		regulator-max-microvolt = <3300000>;
 63		regulator-boot-on;
 64	};
 65
 66	xtal24mhz: xtal24mhz@24M {
 67		#clock-cells = <0>;
 68		compatible = "fixed-clock";
 69		clock-frequency = <24000000>;
 70	};
 71
 72	timclk: timclk@1M {
 73		#clock-cells = <0>;
 74		compatible = "fixed-factor-clock";
 75		clock-div = <24>;
 76		clock-mult = <1>;
 77		clocks = <&xtal24mhz>;
 78	};
 79
 80	mclk: mclk@24M {
 81		#clock-cells = <0>;
 82		compatible = "fixed-factor-clock";
 83		clock-div = <1>;
 84		clock-mult = <1>;
 85		clocks = <&xtal24mhz>;
 86	};
 87
 88	kmiclk: kmiclk@24M {
 89		#clock-cells = <0>;
 90		compatible = "fixed-factor-clock";
 91		clock-div = <1>;
 92		clock-mult = <1>;
 93		clocks = <&xtal24mhz>;
 94	};
 95
 96	sspclk: sspclk@24M {
 97		#clock-cells = <0>;
 98		compatible = "fixed-factor-clock";
 99		clock-div = <1>;
100		clock-mult = <1>;
101		clocks = <&xtal24mhz>;
102	};
103
104	uartclk: uartclk@24M {
105		#clock-cells = <0>;
106		compatible = "fixed-factor-clock";
107		clock-div = <1>;
108		clock-mult = <1>;
109		clocks = <&xtal24mhz>;
110	};
111
112	/* FIXME: this actually hangs off the PLL clocks */
113	pclk: pclk@0 {
114		#clock-cells = <0>;
115		compatible = "fixed-clock";
116		clock-frequency = <0>;
117	};
118
119	flash@30000000 {
120		compatible = "arm,versatile-flash", "cfi-flash";
121		reg = <0x30000000 0x4000000>;
122		bank-width = <4>;
123		partitions {
124			compatible = "arm,arm-firmware-suite";
125		};
126	};
127
128	fpga_flash@38000000 {
129		compatible = "arm,versatile-flash", "cfi-flash";
130		reg = <0x38000000 0x800000>;
131		bank-width = <4>;
132		partitions {
133			compatible = "arm,arm-firmware-suite";
134		};
135	};
136
137	/*
138	 * The "secure flash" contains things like the boot
139	 * monitor so we don't want people to accidentally
140	 * screw this up. Mark the device tree node disabled
141	 * by default.
142	 */
143	secflash@3c000000 {
144		compatible = "arm,versatile-flash", "cfi-flash";
145		reg = <0x3c000000 0x4000000>;
146		bank-width = <4>;
147		status = "disabled";
148	};
149
150	/* SMSC 9118 ethernet with PHY and EEPROM */
151	ethernet@3a000000 {
152		compatible = "smsc,lan9118", "smsc,lan9115";
153		reg = <0x3a000000 0x10000>;
154		interrupt-parent = <&intc_fpga1176>;
155		interrupts = <0 10 IRQ_TYPE_LEVEL_HIGH>;
156		phy-mode = "mii";
157		reg-io-width = <4>;
158		smsc,irq-active-high;
159		smsc,irq-push-pull;
160		vdd33a-supply = <&veth>;
161		vddvario-supply = <&veth>;
162	};
163
164	usb@3b000000 {
165		compatible = "nxp,usb-isp1761";
166		reg = <0x3b000000 0x20000>;
167		interrupt-parent = <&intc_fpga1176>;
168		interrupts = <0 11 IRQ_TYPE_LEVEL_HIGH>;
169		dr_mode = "peripheral";
170	};
171
172	bridge {
173		compatible = "ti,ths8134a", "ti,ths8134";
174		#address-cells = <1>;
175		#size-cells = <0>;
176
177		ports {
178			#address-cells = <1>;
179			#size-cells = <0>;
180
181			port@0 {
182				reg = <0>;
183
184				vga_bridge_in: endpoint {
185					remote-endpoint = <&clcd_pads>;
186				};
187			};
188
189			port@1 {
190				reg = <1>;
191
192				vga_bridge_out: endpoint {
193					remote-endpoint = <&vga_con_in>;
194				};
195			};
196		};
197	};
198
199	vga {
200		compatible = "vga-connector";
201
202		port {
203			vga_con_in: endpoint {
204				remote-endpoint = <&vga_bridge_out>;
205			};
206		};
207	};
208
209	soc {
210		#address-cells = <1>;
211		#size-cells = <1>;
212		compatible = "arm,realview-pb1176-soc", "simple-bus";
213		regmap = <&syscon>;
214		ranges;
215
216		syscon: syscon@10000000 {
217			compatible = "arm,realview-pb1176-syscon", "syscon", "simple-mfd";
218			reg = <0x10000000 0x1000>;
219			ranges = <0x0 0x10000000 0x1000>;
220			#address-cells = <1>;
221			#size-cells = <1>;
222
223			led@8,0 {
224				compatible = "register-bit-led";
225				reg = <0x08 0x04>;
226				offset = <0x08>;
227				mask = <0x01>;
228				label = "versatile:0";
229				linux,default-trigger = "heartbeat";
230				default-state = "on";
231			};
232			led@8,1 {
233				compatible = "register-bit-led";
234				reg = <0x08 0x04>;
235				offset = <0x08>;
236				mask = <0x02>;
237				label = "versatile:1";
238				linux,default-trigger = "mmc0";
239				default-state = "off";
240			};
241			led@8,2 {
242				compatible = "register-bit-led";
243				reg = <0x08 0x04>;
244				offset = <0x08>;
245				mask = <0x04>;
246				label = "versatile:2";
247				linux,default-trigger = "cpu0";
248				default-state = "off";
249			};
250			led@8,3 {
251				compatible = "register-bit-led";
252				reg = <0x08 0x04>;
253				offset = <0x08>;
254				mask = <0x08>;
255				label = "versatile:3";
256				default-state = "off";
257			};
258			led@8,4 {
259				compatible = "register-bit-led";
260				reg = <0x08 0x04>;
261				offset = <0x08>;
262				mask = <0x10>;
263				label = "versatile:4";
264				default-state = "off";
265			};
266			led@8,5 {
267				compatible = "register-bit-led";
268				reg = <0x08 0x04>;
269				offset = <0x08>;
270				mask = <0x20>;
271				label = "versatile:5";
272				default-state = "off";
273			};
274			led@8,6 {
275				compatible = "register-bit-led";
276				reg = <0x08 0x04>;
277				offset = <0x08>;
278				mask = <0x40>;
279				label = "versatile:6";
280				default-state = "off";
281			};
282			led@8,7 {
283				compatible = "register-bit-led";
284				reg = <0x08 0x04>;
285				offset = <0x08>;
286				mask = <0x80>;
287				label = "versatile:7";
288				default-state = "off";
289			};
290			oscclk0: clock-controller@c {
291				compatible = "arm,syscon-icst307";
292				reg = <0x0c 0x04>;
293				#clock-cells = <0>;
294				lock-offset = <0x20>;
295				vco-offset = <0x0C>;
296				clocks = <&xtal24mhz>;
297			};
298			oscclk1: clock-controller@10 {
299				compatible = "arm,syscon-icst307";
300				reg = <0x10 0x04>;
301				#clock-cells = <0>;
302				lock-offset = <0x20>;
303				vco-offset = <0x10>;
304				clocks = <&xtal24mhz>;
305			};
306			oscclk2: clock-controller@14 {
307				compatible = "arm,syscon-icst307";
308				reg = <0x14 0x04>;
309				#clock-cells = <0>;
310				lock-offset = <0x20>;
311				vco-offset = <0x14>;
312				clocks = <&xtal24mhz>;
313			};
314			oscclk3: clock-controller@18 {
315				compatible = "arm,syscon-icst307";
316				reg = <0x18 0x04>;
317				#clock-cells = <0>;
318				lock-offset = <0x20>;
319				vco-offset = <0x18>;
320				clocks = <&xtal24mhz>;
321			};
322			oscclk4: clock-controller@1c {
323				compatible = "arm,syscon-icst307";
324				reg = <0x1c 0x04>;
325				#clock-cells = <0>;
326				lock-offset = <0x20>;
327				vco-offset = <0x1c>;
328				clocks = <&xtal24mhz>;
329			};
330		};
331
332		/* Primary DevChip GIC synthesized with the CPU */
333		intc_dc1176: interrupt-controller@10120000 {
334			compatible = "arm,arm1176jzf-devchip-gic", "arm,arm11mp-gic";
335			#interrupt-cells = <3>;
336			#address-cells = <1>;
337			interrupt-controller;
338			reg = <0x10121000 0x1000>,
339			      <0x10120000 0x100>;
340		};
341
342		L2: cache-controller {
343			compatible = "arm,l220-cache";
344			reg = <0x10110000 0x1000>;
345			interrupt-parent = <&intc_dc1176>;
346			interrupts = <0 13 IRQ_TYPE_LEVEL_HIGH>;
347			cache-unified;
348			cache-level = <2>;
349			/*
350			 * Override default cache size, sets and
351			 * associativity as these may be erroneously set
352			 * up by boot loader(s).
353			 */
354			arm,override-auxreg;
355			cache-size = <131072>; // 128kB
356			cache-sets = <512>;
357			cache-line-size = <32>;
358		};
359
360		pmu {
361			compatible = "arm,arm1176-pmu";
362			interrupt-parent = <&intc_dc1176>;
363			interrupts = <0 7 IRQ_TYPE_LEVEL_HIGH>;
364		};
365
366		timer01: timer@10104000 {
367			compatible = "arm,sp804", "arm,primecell";
368			reg = <0x10104000 0x1000>;
369			interrupt-parent = <&intc_dc1176>;
370			interrupts = <0 8 IRQ_TYPE_LEVEL_HIGH>, <0 9 IRQ_TYPE_LEVEL_HIGH>;
371			clocks = <&timclk>, <&timclk>, <&pclk>;
372			clock-names = "timer1", "timer2", "apb_pclk";
373		};
374
375		timer23: timer@10105000 {
376			compatible = "arm,sp804", "arm,primecell";
377			reg = <0x10105000 0x1000>;
378			interrupt-parent = <&intc_dc1176>;
379			interrupts = <0 10 IRQ_TYPE_LEVEL_HIGH>;
380			arm,sp804-has-irq = <1>;
381			clocks = <&timclk>, <&timclk>, <&pclk>;
382			clock-names = "timer1", "timer2", "apb_pclk";
383		};
384
385		pb1176_rtc: rtc@10108000 {
386			compatible = "arm,pl031", "arm,primecell";
387			reg = <0x10108000 0x1000>;
388			interrupt-parent = <&intc_dc1176>;
389			interrupts = <0 14 IRQ_TYPE_LEVEL_HIGH>;
390			clocks = <&pclk>;
391			clock-names = "apb_pclk";
392		};
393
394		pb1176_gpio0: gpio@1010a000 {
395			compatible = "arm,pl061", "arm,primecell";
396			reg = <0x1010a000 0x1000>;
397			gpio-controller;
398			interrupt-parent = <&intc_dc1176>;
399			interrupts = <0 16 IRQ_TYPE_LEVEL_HIGH>;
400			#gpio-cells = <2>;
401			interrupt-controller;
402			#interrupt-cells = <2>;
403			clocks = <&pclk>;
404			clock-names = "apb_pclk";
405		};
406
407		pb1176_ssp: spi@1010b000 {
408			compatible = "arm,pl022", "arm,primecell";
409			reg = <0x1010b000 0x1000>;
410			interrupt-parent = <&intc_dc1176>;
411			interrupts = <0 17 IRQ_TYPE_LEVEL_HIGH>;
412			clocks = <&sspclk>, <&pclk>;
413			clock-names = "sspclk", "apb_pclk";
414		};
415
416		pb1176_serial0: serial@1010c000 {
417			compatible = "arm,pl011", "arm,primecell";
418			reg = <0x1010c000 0x1000>;
419			interrupt-parent = <&intc_dc1176>;
420			interrupts = <0 18 IRQ_TYPE_LEVEL_HIGH>;
421			clocks = <&uartclk>, <&pclk>;
422			clock-names = "uartclk", "apb_pclk";
423		};
424
425		pb1176_serial1: serial@1010d000 {
426			compatible = "arm,pl011", "arm,primecell";
427			reg = <0x1010d000 0x1000>;
428			interrupt-parent = <&intc_dc1176>;
429			interrupts = <0 19 IRQ_TYPE_LEVEL_HIGH>;
430			clocks = <&uartclk>, <&pclk>;
431			clock-names = "uartclk", "apb_pclk";
432		};
433
434		pb1176_serial2: serial@1010e000 {
435			compatible = "arm,pl011", "arm,primecell";
436			reg = <0x1010e000 0x1000>;
437			interrupt-parent = <&intc_dc1176>;
438			interrupts = <0 20 IRQ_TYPE_LEVEL_HIGH>;
439			clocks = <&uartclk>, <&pclk>;
440			clock-names = "uartclk", "apb_pclk";
441		};
442
443		pb1176_serial3: serial@1010f000 {
444			compatible = "arm,pl011", "arm,primecell";
445			reg = <0x1010f000 0x1000>;
446			interrupt-parent = <&intc_dc1176>;
447			interrupts = <0 21 IRQ_TYPE_LEVEL_HIGH>;
448			clocks = <&uartclk>, <&pclk>;
449			clock-names = "uartclk", "apb_pclk";
450		};
451
452		/* Direct-mapped development chip ROM */
453		pb1176_rom@10200000 {
454			compatible = "direct-mapped";
455			reg = <0x10200000 0x4000>;
456			bank-width = <1>;
457		};
458
459		clcd@10112000 {
460			compatible = "arm,pl111", "arm,primecell";
461			reg = <0x10112000 0x1000>;
462			interrupt-parent = <&intc_dc1176>;
463			interrupt-names = "combined";
464			interrupts = <0 47 IRQ_TYPE_LEVEL_HIGH>;
465			clocks = <&oscclk0>, <&pclk>;
466			clock-names = "clcdclk", "apb_pclk";
467			/* 1024x768 16bpp @65MHz works fine */
468			max-memory-bandwidth = <95000000>;
469
470			port {
471				clcd_pads: endpoint {
472					remote-endpoint = <&vga_bridge_in>;
473					arm,pl11x,tft-r0g0b0-pads = <0 8 16>;
474				};
475			};
476		};
477	};
478
479	/* These peripherals are inside the FPGA rather than the DevChip */
480	fpga {
481		#address-cells = <1>;
482		#size-cells = <1>;
483		compatible = "simple-bus";
484		ranges;
485
486		i2c0: i2c@10002000 {
487			#address-cells = <1>;
488			#size-cells = <0>;
489			compatible = "arm,versatile-i2c";
490			reg = <0x10002000 0x1000>;
491
492			rtc@68 {
493				compatible = "dallas,ds1338";
494				reg = <0x68>;
495			};
496		};
497
498		fpga_aaci: aaci@10004000 {
499			compatible = "arm,pl041", "arm,primecell";
500			reg = <0x10004000 0x1000>;
501			interrupt-parent = <&intc_fpga1176>;
502			interrupts = <0 19 IRQ_TYPE_LEVEL_HIGH>;
503			clocks = <&pclk>;
504			clock-names = "apb_pclk";
505		};
506
507		fpga_mci: mmcsd@10005000 {
508			compatible = "arm,pl18x", "arm,primecell";
509			reg = <0x10005000 0x1000>;
510			interrupt-parent = <&intc_fpga1176>;
511			interrupts = <0 1 IRQ_TYPE_LEVEL_HIGH>,
512					<0 2 IRQ_TYPE_LEVEL_HIGH>;
513			/* Due to frequent FIFO overruns, use just 500 kHz */
514			max-frequency = <500000>;
515			bus-width = <4>;
516			cap-sd-highspeed;
517			cap-mmc-highspeed;
518			clocks = <&mclk>, <&pclk>;
519			clock-names = "mclk", "apb_pclk";
520			vmmc-supply = <&vmmc>;
521			cd-gpios = <&fpga_gpio1 0 GPIO_ACTIVE_LOW>;
522			wp-gpios = <&fpga_gpio1 1 GPIO_ACTIVE_HIGH>;
523		};
524
525		fpga_kmi0: kmi@10006000 {
526			compatible = "arm,pl050", "arm,primecell";
527			reg = <0x10006000 0x1000>;
528			interrupt-parent = <&intc_fpga1176>;
529			interrupts = <0 3 IRQ_TYPE_LEVEL_HIGH>;
530			clocks = <&kmiclk>, <&pclk>;
531			clock-names = "KMIREFCLK", "apb_pclk";
532		};
533
534		fpga_kmi1: kmi@10007000 {
535			compatible = "arm,pl050", "arm,primecell";
536			reg = <0x10007000 0x1000>;
537			interrupt-parent = <&intc_fpga1176>;
538			interrupts = <0 4 IRQ_TYPE_LEVEL_HIGH>;
539			clocks = <&kmiclk>, <&pclk>;
540			clock-names = "KMIREFCLK", "apb_pclk";
541		};
542
543		fpga_charlcd: charlcd@10008000 {
544			compatible = "arm,versatile-lcd";
545			reg = <0x10008000 0x1000>;
546			interrupt-parent = <&intc_fpga1176>;
547			interrupts = <0 7 IRQ_TYPE_LEVEL_HIGH>;
548			clocks = <&pclk>;
549			clock-names = "apb_pclk";
550		};
551
552		fpga_serial: serial@10009000 {
553			compatible = "arm,pl011", "arm,primecell";
554			reg = <0x10009000 0x1000>;
555			interrupt-parent = <&intc_fpga1176>;
556			interrupts = <0 6 IRQ_TYPE_LEVEL_HIGH>;
557			clocks = <&uartclk>, <&pclk>;
558			clock-names = "uartclk", "apb_pclk";
559		};
560
561		/* This GIC on the board is cascaded off the DevChip GIC */
562		intc_fpga1176: interrupt-controller@10040000 {
563			compatible = "arm,arm1176jzf-devchip-gic", "arm,arm11mp-gic";
564			#interrupt-cells = <3>;
565			#address-cells = <1>;
566			interrupt-controller;
567			reg = <0x10041000 0x1000>,
568			      <0x10040000 0x100>;
569			interrupt-parent = <&intc_dc1176>;
570			interrupts = <0 31 IRQ_TYPE_LEVEL_HIGH>;
571		};
572
573		fpga_gpio0: gpio@10014000 {
574			compatible = "arm,pl061", "arm,primecell";
575			reg = <0x10014000 0x1000>;
576			gpio-controller;
577			interrupt-parent = <&intc_fpga1176>;
578			interrupts = <0 8 IRQ_TYPE_LEVEL_HIGH>;
579			#gpio-cells = <2>;
580			interrupt-controller;
581			#interrupt-cells = <2>;
582			clocks = <&pclk>;
583			clock-names = "apb_pclk";
584		};
585
586		fpga_gpio1: gpio@10015000 {
587			compatible = "arm,pl061", "arm,primecell";
588			reg = <0x10015000 0x1000>;
589			gpio-controller;
590			interrupt-parent = <&intc_fpga1176>;
591			interrupts = <0 9 IRQ_TYPE_LEVEL_HIGH>;
592			#gpio-cells = <2>;
593			interrupt-controller;
594			#interrupt-cells = <2>;
595			clocks = <&pclk>;
596			clock-names = "apb_pclk";
597		};
598
599		fpga_rtc: rtc@10017000 {
600			compatible = "arm,pl031", "arm,primecell";
601			reg = <0x10017000 0x1000>;
602			interrupt-parent = <&intc_fpga1176>;
603			interrupts = <0 25 IRQ_TYPE_LEVEL_HIGH>;
604			clocks = <&pclk>;
605			clock-names = "apb_pclk";
606		};
 
 
607	};
608};
v4.6
  1/*
  2 * Copyright 2014 Linaro Ltd
  3 *
  4 * Permission is hereby granted, free of charge, to any person obtaining a copy
  5 * of this software and associated documentation files (the "Software"), to deal
  6 * in the Software without restriction, including without limitation the rights
  7 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  8 * copies of the Software, and to permit persons to whom the Software is
  9 * furnished to do so, subject to the following conditions:
 10 *
 11 * The above copyright notice and this permission notice shall be included in
 12 * all copies or substantial portions of the Software.
 13 *
 14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
 17 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 19 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 20 * THE SOFTWARE.
 21 */
 22
 23/dts-v1/;
 24#include <dt-bindings/interrupt-controller/irq.h>
 25#include <dt-bindings/gpio/gpio.h>
 26#include "skeleton.dtsi"
 27
 28/ {
 
 
 29	model = "ARM RealView PB1176";
 30	compatible = "arm,realview-pb1176";
 31
 32	chosen { };
 33
 34	aliases {
 35		serial0 = &pb1176_serial0;
 36		serial1 = &pb1176_serial1;
 37		serial2 = &pb1176_serial2;
 38		serial3 = &pb1176_serial3;
 39		serial4 = &fpga_serial;
 40	};
 41
 42	memory {
 
 43		/* 128 MiB memory @ 0x0 */
 44		reg = <0x00000000 0x08000000>;
 45	};
 46
 47	/* The voltage to the MMC card is hardwired at 3.3V */
 48	vmmc: fixedregulator@0 {
 49		compatible = "regulator-fixed";
 50		regulator-name = "vmmc";
 51		regulator-min-microvolt = <3300000>;
 52		regulator-max-microvolt = <3300000>;
 53		regulator-boot-on;
 54        };
 55
 56	veth: fixedregulator@0 {
 57		compatible = "regulator-fixed";
 58		regulator-name = "veth";
 59		regulator-min-microvolt = <3300000>;
 60		regulator-max-microvolt = <3300000>;
 61		regulator-boot-on;
 62	};
 63
 64	xtal24mhz: xtal24mhz@24M {
 65		#clock-cells = <0>;
 66		compatible = "fixed-clock";
 67		clock-frequency = <24000000>;
 68	};
 69
 70	timclk: timclk@1M {
 71		#clock-cells = <0>;
 72		compatible = "fixed-factor-clock";
 73		clock-div = <24>;
 74		clock-mult = <1>;
 75		clocks = <&xtal24mhz>;
 76	};
 77
 78	mclk: mclk@24M {
 79		#clock-cells = <0>;
 80		compatible = "fixed-factor-clock";
 81		clock-div = <1>;
 82		clock-mult = <1>;
 83		clocks = <&xtal24mhz>;
 84	};
 85
 86	kmiclk: kmiclk@24M {
 87		#clock-cells = <0>;
 88		compatible = "fixed-factor-clock";
 89		clock-div = <1>;
 90		clock-mult = <1>;
 91		clocks = <&xtal24mhz>;
 92	};
 93
 94	sspclk: sspclk@24M {
 95		#clock-cells = <0>;
 96		compatible = "fixed-factor-clock";
 97		clock-div = <1>;
 98		clock-mult = <1>;
 99		clocks = <&xtal24mhz>;
100	};
101
102	uartclk: uartclk@24M {
103		#clock-cells = <0>;
104		compatible = "fixed-factor-clock";
105		clock-div = <1>;
106		clock-mult = <1>;
107		clocks = <&xtal24mhz>;
108	};
109
110	/* FIXME: this actually hangs off the PLL clocks */
111	pclk: pclk@0 {
112		#clock-cells = <0>;
113		compatible = "fixed-clock";
114		clock-frequency = <0>;
115	};
116
117	flash@30000000 {
118		compatible = "arm,versatile-flash", "cfi-flash";
119		reg = <0x30000000 0x4000000>;
120		bank-width = <4>;
 
 
 
121	};
122
123	fpga_flash@38000000 {
124		compatible = "arm,versatile-flash", "cfi-flash";
125		reg = <0x38000000 0x800000>;
126		bank-width = <4>;
 
 
 
127	};
128
129	/*
130	 * The "secure flash" contains things like the boot
131	 * monitor so we don't want people to accidentally
132	 * screw this up. Mark the device tree node disabled
133	 * by default.
134	 */
135	secflash@3c000000 {
136		compatible = "arm,versatile-flash", "cfi-flash";
137		reg = <0x3c000000 0x4000000>;
138		bank-width = <4>;
139		status = "disabled";
140	};
141
142	/* SMSC 9118 ethernet with PHY and EEPROM */
143	ethernet@3a000000 {
144		compatible = "smsc,lan9118", "smsc,lan9115";
145		reg = <0x3a000000 0x10000>;
146		interrupt-parent = <&intc_fpga1176>;
147		interrupts = <0 10 IRQ_TYPE_LEVEL_HIGH>;
148		phy-mode = "mii";
149		reg-io-width = <4>;
150		smsc,irq-active-high;
151		smsc,irq-push-pull;
152		vdd33a-supply = <&veth>;
153		vddvario-supply = <&veth>;
154	};
155
156	usb@3b000000 {
157		compatible = "nxp,usb-isp1761";
158		reg = <0x3b000000 0x20000>;
159		interrupt-parent = <&intc_fpga1176>;
160		interrupts = <0 11 IRQ_TYPE_LEVEL_HIGH>;
161		port1-otg;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
162	};
163
164	soc {
165		#address-cells = <1>;
166		#size-cells = <1>;
167		compatible = "arm,realview-pb1176-soc", "simple-bus";
168		regmap = <&syscon>;
169		ranges;
170
171		syscon: syscon@10000000 {
172			compatible = "arm,realview-pb1176-syscon", "syscon", "simple-mfd";
173			reg = <0x10000000 0x1000>;
 
 
 
174
175			led@08.0 {
176				compatible = "register-bit-led";
 
177				offset = <0x08>;
178				mask = <0x01>;
179				label = "versatile:0";
180				linux,default-trigger = "heartbeat";
181				default-state = "on";
182			};
183			led@08.1 {
184				compatible = "register-bit-led";
 
185				offset = <0x08>;
186				mask = <0x02>;
187				label = "versatile:1";
188				linux,default-trigger = "mmc0";
189				default-state = "off";
190			};
191			led@08.2 {
192				compatible = "register-bit-led";
 
193				offset = <0x08>;
194				mask = <0x04>;
195				label = "versatile:2";
196				linux,default-trigger = "cpu0";
197				default-state = "off";
198			};
199			led@08.3 {
200				compatible = "register-bit-led";
 
201				offset = <0x08>;
202				mask = <0x08>;
203				label = "versatile:3";
204				default-state = "off";
205			};
206			led@08.4 {
207				compatible = "register-bit-led";
 
208				offset = <0x08>;
209				mask = <0x10>;
210				label = "versatile:4";
211				default-state = "off";
212			};
213			led@08.5 {
214				compatible = "register-bit-led";
 
215				offset = <0x08>;
216				mask = <0x20>;
217				label = "versatile:5";
218				default-state = "off";
219			};
220			led@08.6 {
221				compatible = "register-bit-led";
 
222				offset = <0x08>;
223				mask = <0x40>;
224				label = "versatile:6";
225				default-state = "off";
226			};
227			led@08.7 {
228				compatible = "register-bit-led";
 
229				offset = <0x08>;
230				mask = <0x80>;
231				label = "versatile:7";
232				default-state = "off";
233			};
234			oscclk0: osc0@0c {
235				compatible = "arm,syscon-icst307";
 
236				#clock-cells = <0>;
237				lock-offset = <0x20>;
238				vco-offset = <0x0C>;
239				clocks = <&xtal24mhz>;
240			};
241			oscclk1: osc1@10 {
242				compatible = "arm,syscon-icst307";
 
243				#clock-cells = <0>;
244				lock-offset = <0x20>;
245				vco-offset = <0x10>;
246				clocks = <&xtal24mhz>;
247			};
248			oscclk2: osc2@14 {
249				compatible = "arm,syscon-icst307";
 
250				#clock-cells = <0>;
251				lock-offset = <0x20>;
252				vco-offset = <0x14>;
253				clocks = <&xtal24mhz>;
254			};
255			oscclk3: osc3@18 {
256				compatible = "arm,syscon-icst307";
 
257				#clock-cells = <0>;
258				lock-offset = <0x20>;
259				vco-offset = <0x18>;
260				clocks = <&xtal24mhz>;
261			};
262			oscclk4: osc4@1c {
263				compatible = "arm,syscon-icst307";
 
264				#clock-cells = <0>;
265				lock-offset = <0x20>;
266				vco-offset = <0x1c>;
267				clocks = <&xtal24mhz>;
268			};
269		};
270
271		/* Primary DevChip GIC synthesized with the CPU */
272		intc_dc1176: interrupt-controller@10120000 {
273			compatible = "arm,arm1176jzf-devchip-gic", "arm,arm11mp-gic";
274			#interrupt-cells = <3>;
275			#address-cells = <1>;
276			interrupt-controller;
277			reg = <0x10121000 0x1000>,
278			      <0x10120000 0x100>;
279		};
280
281		L2: l2-cache {
282			compatible = "arm,l220-cache";
283			reg = <0x10110000 0x1000>;
284			interrupt-parent = <&intc_dc1176>;
285			interrupts = <0 13 IRQ_TYPE_LEVEL_HIGH>;
286			cache-unified;
287			cache-level = <2>;
288			/*
289			 * Override default cache size, sets and
290			 * associativity as these may be erroneously set
291			 * up by boot loader(s).
292			 */
293			arm,override-auxreg;
294			cache-size = <131072>; // 128kB
295			cache-sets = <512>;
296			cache-line-size = <32>;
297		};
298
299		pmu {
300			compatible = "arm,arm1176-pmu";
301			interrupt-parent = <&intc_dc1176>;
302			interrupts = <0 7 IRQ_TYPE_LEVEL_HIGH>;
303		};
304
305		timer01: timer@10104000 {
306			compatible = "arm,sp804", "arm,primecell";
307			reg = <0x10104000 0x1000>;
308			interrupt-parent = <&intc_dc1176>;
309			interrupts = <0 8 IRQ_TYPE_LEVEL_HIGH>, <0 9 IRQ_TYPE_LEVEL_HIGH>;
310			clocks = <&timclk>, <&timclk>, <&pclk>;
311			clock-names = "timer1", "timer2", "apb_pclk";
312		};
313
314		timer23: timer@10105000 {
315			compatible = "arm,sp804", "arm,primecell";
316			reg = <0x10105000 0x1000>;
317			interrupt-parent = <&intc_dc1176>;
318			interrupts = <0 10 IRQ_TYPE_LEVEL_HIGH>;
319			arm,sp804-has-irq = <1>;
320			clocks = <&timclk>, <&timclk>, <&pclk>;
321			clock-names = "timer1", "timer2", "apb_pclk";
322		};
323
324		pb1176_rtc: rtc@10108000 {
325			compatible = "arm,pl031", "arm,primecell";
326			reg = <0x10108000 0x1000>;
327			interrupt-parent = <&intc_dc1176>;
328			interrupts = <0 14 IRQ_TYPE_LEVEL_HIGH>;
329			clocks = <&pclk>;
330			clock-names = "apb_pclk";
331		};
332
333		pb1176_gpio0: gpio@1010a000 {
334			compatible = "arm,pl061", "arm,primecell";
335			reg = <0x1010a000 0x1000>;
336			gpio-controller;
337			interrupt-parent = <&intc_dc1176>;
338			interrupts = <0 16 IRQ_TYPE_LEVEL_HIGH>;
339			#gpio-cells = <2>;
340			interrupt-controller;
341			#interrupt-cells = <2>;
342			clocks = <&pclk>;
343			clock-names = "apb_pclk";
344		};
345
346		pb1176_ssp: ssp@1010b000 {
347			compatible = "arm,pl022", "arm,primecell";
348			reg = <0x1010b000 0x1000>;
349			interrupt-parent = <&intc_dc1176>;
350			interrupts = <0 17 IRQ_TYPE_LEVEL_HIGH>;
351			clocks = <&sspclk>, <&pclk>;
352			clock-names = "SSPCLK", "apb_pclk";
353		};
354
355		pb1176_serial0: serial@1010c000 {
356			compatible = "arm,pl011", "arm,primecell";
357			reg = <0x1010c000 0x1000>;
358			interrupt-parent = <&intc_dc1176>;
359			interrupts = <0 18 IRQ_TYPE_LEVEL_HIGH>;
360			clocks = <&uartclk>, <&pclk>;
361			clock-names = "uartclk", "apb_pclk";
362		};
363
364		pb1176_serial1: serial@1010d000 {
365			compatible = "arm,pl011", "arm,primecell";
366			reg = <0x1010d000 0x1000>;
367			interrupt-parent = <&intc_dc1176>;
368			interrupts = <0 19 IRQ_TYPE_LEVEL_HIGH>;
369			clocks = <&uartclk>, <&pclk>;
370			clock-names = "uartclk", "apb_pclk";
371		};
372
373		pb1176_serial2: serial@1010e000 {
374			compatible = "arm,pl011", "arm,primecell";
375			reg = <0x1010e000 0x1000>;
376			interrupt-parent = <&intc_dc1176>;
377			interrupts = <0 20 IRQ_TYPE_LEVEL_HIGH>;
378			clocks = <&uartclk>, <&pclk>;
379			clock-names = "uartclk", "apb_pclk";
380		};
381
382		pb1176_serial3: serial@1010f000 {
383			compatible = "arm,pl011", "arm,primecell";
384			reg = <0x1010f000 0x1000>;
385			interrupt-parent = <&intc_dc1176>;
386			interrupts = <0 21 IRQ_TYPE_LEVEL_HIGH>;
387			clocks = <&uartclk>, <&pclk>;
388			clock-names = "uartclk", "apb_pclk";
389		};
390
391		/* Direct-mapped development chip ROM */
392		pb1176_rom@10200000 {
393			compatible = "direct-mapped";
394			reg = <0x10200000 0x4000>;
395			bank-width = <1>;
396		};
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
397	};
398
399	/* These peripherals are inside the FPGA rather than the DevChip */
400	fpga {
401		#address-cells = <1>;
402		#size-cells = <1>;
403		compatible = "simple-bus";
404		ranges;
405
406		i2c0: i2c@10002000 {
407			#address-cells = <1>;
408			#size-cells = <0>;
409			compatible = "arm,versatile-i2c";
410			reg = <0x10002000 0x1000>;
411
412			rtc@68 {
413				compatible = "dallas,ds1338";
414				reg = <0x68>;
415			};
416		};
417
418		fpga_aaci: aaci@10004000 {
419			compatible = "arm,pl041", "arm,primecell";
420			reg = <0x10004000 0x1000>;
421			interrupt-parent = <&intc_fpga1176>;
422			interrupts = <0 19 IRQ_TYPE_LEVEL_HIGH>;
423			clocks = <&pclk>;
424			clock-names = "apb_pclk";
425		};
426
427		fpga_mci: mmcsd@10005000 {
428			compatible = "arm,pl18x", "arm,primecell";
429			reg = <0x10005000 0x1000>;
430			interrupt-parent = <&intc_fpga1176>;
431			interrupts = <0 1 IRQ_TYPE_LEVEL_HIGH>,
432					<0 2 IRQ_TYPE_LEVEL_HIGH>;
433			/* Due to frequent FIFO overruns, use just 500 kHz */
434			max-frequency = <500000>;
435			bus-width = <4>;
436			cap-sd-highspeed;
437			cap-mmc-highspeed;
438			clocks = <&mclk>, <&pclk>;
439			clock-names = "mclk", "apb_pclk";
440			vmmc-supply = <&vmmc>;
441			cd-gpios = <&fpga_gpio1 0 GPIO_ACTIVE_LOW>;
442			wp-gpios = <&fpga_gpio1 1 GPIO_ACTIVE_HIGH>;
443		};
444
445		fpga_kmi0: kmi@10006000 {
446			compatible = "arm,pl050", "arm,primecell";
447			reg = <0x10006000 0x1000>;
448			interrupt-parent = <&intc_fpga1176>;
449			interrupts = <0 3 IRQ_TYPE_LEVEL_HIGH>;
450			clocks = <&kmiclk>, <&pclk>;
451			clock-names = "KMIREFCLK", "apb_pclk";
452		};
453
454		fpga_kmi1: kmi@10007000 {
455			compatible = "arm,pl050", "arm,primecell";
456			reg = <0x10007000 0x1000>;
457			interrupt-parent = <&intc_fpga1176>;
458			interrupts = <0 4 IRQ_TYPE_LEVEL_HIGH>;
459			clocks = <&kmiclk>, <&pclk>;
460			clock-names = "KMIREFCLK", "apb_pclk";
461		};
462
463		fpga_charlcd: charlcd@10008000 {
464			compatible = "arm,versatile-lcd";
465			reg = <0x10008000 0x1000>;
466			interrupt-parent = <&intc_fpga1176>;
467			interrupts = <0 7 IRQ_TYPE_LEVEL_HIGH>;
468			clocks = <&pclk>;
469			clock-names = "apb_pclk";
470		};
471
472		fpga_serial: serial@10009000 {
473			compatible = "arm,pl011", "arm,primecell";
474			reg = <0x10009000 0x1000>;
475			interrupt-parent = <&intc_fpga1176>;
476			interrupts = <0 6 IRQ_TYPE_LEVEL_HIGH>;
477			clocks = <&uartclk>, <&pclk>;
478			clock-names = "uartclk", "apb_pclk";
479		};
480
481		/* This GIC on the board is cascaded off the DevChip GIC */
482		intc_fpga1176: interrupt-controller@10040000 {
483			compatible = "arm,arm1176jzf-devchip-gic", "arm,arm11mp-gic";
484			#interrupt-cells = <3>;
485			#address-cells = <1>;
486			interrupt-controller;
487			reg = <0x10041000 0x1000>,
488			      <0x10040000 0x100>;
489			interrupt-parent = <&intc_dc1176>;
490			interrupts = <0 31 IRQ_TYPE_LEVEL_HIGH>;
491		};
492
493		fpga_gpio0: gpio@10014000 {
494			compatible = "arm,pl061", "arm,primecell";
495			reg = <0x10014000 0x1000>;
496			gpio-controller;
497			interrupt-parent = <&intc_fpga1176>;
498			interrupts = <0 8 IRQ_TYPE_LEVEL_HIGH>;
499			#gpio-cells = <2>;
500			interrupt-controller;
501			#interrupt-cells = <2>;
502			clocks = <&pclk>;
503			clock-names = "apb_pclk";
504		};
505
506		fpga_gpio1: gpio@10015000 {
507			compatible = "arm,pl061", "arm,primecell";
508			reg = <0x10015000 0x1000>;
509			gpio-controller;
510			interrupt-parent = <&intc_fpga1176>;
511			interrupts = <0 9 IRQ_TYPE_LEVEL_HIGH>;
512			#gpio-cells = <2>;
513			interrupt-controller;
514			#interrupt-cells = <2>;
515			clocks = <&pclk>;
516			clock-names = "apb_pclk";
517		};
518
519		fpga_rtc: rtc@10017000 {
520			compatible = "arm,pl031", "arm,primecell";
521			reg = <0x10017000 0x1000>;
522			interrupt-parent = <&intc_fpga1176>;
523			interrupts = <0 25 IRQ_TYPE_LEVEL_HIGH>;
524			clocks = <&pclk>;
525			clock-names = "apb_pclk";
526		};
527
528
529	};
530};