Linux Audio

Check our new training course

Loading...
v5.4
  1/*
  2 *  BSD LICENSE
  3 *
  4 *  Copyright(c) 2014 Broadcom Corporation.  All rights reserved.
  5 *
  6 *  Redistribution and use in source and binary forms, with or without
  7 *  modification, are permitted provided that the following conditions
  8 *  are met:
  9 *
 10 *    * Redistributions of source code must retain the above copyright
 11 *      notice, this list of conditions and the following disclaimer.
 12 *    * Redistributions in binary form must reproduce the above copyright
 13 *      notice, this list of conditions and the following disclaimer in
 14 *      the documentation and/or other materials provided with the
 15 *      distribution.
 16 *    * Neither the name of Broadcom Corporation nor the names of its
 17 *      contributors may be used to endorse or promote products derived
 18 *      from this software without specific prior written permission.
 19 *
 20 *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 21 *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 22 *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 23 *  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
 24 *  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 25 *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 26 *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 27 *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 28 *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 29 *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 30 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 31 */
 32
 33#include <dt-bindings/interrupt-controller/arm-gic.h>
 34#include <dt-bindings/interrupt-controller/irq.h>
 35#include <dt-bindings/clock/bcm-cygnus.h>
 36
 
 
 37/ {
 38	#address-cells = <1>;
 39	#size-cells = <1>;
 40	compatible = "brcm,cygnus";
 41	model = "Broadcom Cygnus SoC";
 42	interrupt-parent = <&gic>;
 43
 44	aliases {
 45		ethernet0 = &eth0;
 46	};
 47
 48	memory@0 {
 49		device_type = "memory";
 50		reg = <0 0>;
 51	};
 52
 53	cpus {
 54		#address-cells = <1>;
 55		#size-cells = <0>;
 56
 57		cpu@0 {
 58			device_type = "cpu";
 59			compatible = "arm,cortex-a9";
 60			next-level-cache = <&L2>;
 61			reg = <0x0>;
 62		};
 63	};
 64
 65	/include/ "bcm-cygnus-clock.dtsi"
 66
 67	pmu {
 68		compatible = "arm,cortex-a9-pmu";
 69		interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
 70	};
 71
 72	core@19000000 {
 73		compatible = "simple-bus";
 74		ranges = <0x00000000 0x19000000 0x1000000>;
 75		#address-cells = <1>;
 76		#size-cells = <1>;
 77
 78		timer@20200 {
 79			compatible = "arm,cortex-a9-global-timer";
 80			reg = <0x20200 0x100>;
 81			interrupts = <GIC_PPI 11 IRQ_TYPE_EDGE_RISING>;
 82			clocks = <&periph_clk>;
 83		};
 84
 85		gic: interrupt-controller@21000 {
 86			compatible = "arm,cortex-a9-gic";
 87			#interrupt-cells = <3>;
 88			#address-cells = <0>;
 89			interrupt-controller;
 90			reg = <0x21000 0x1000>,
 91			      <0x20100 0x100>;
 92		};
 93
 94		L2: l2-cache@22000 {
 95			compatible = "arm,pl310-cache";
 96			reg = <0x22000 0x1000>;
 97			cache-unified;
 98			cache-level = <2>;
 99		};
100	};
101
102	axi {
103		compatible = "simple-bus";
104		ranges;
105		#address-cells = <1>;
106		#size-cells = <1>;
107
108		otp: otp@301c800 {
109			compatible = "brcm,ocotp";
110			reg = <0x0301c800 0x2c>;
111			brcm,ocotp-size = <2048>;
112			status = "disabled";
113		};
114
115		pcie_phy: phy@301d0a0 {
116			compatible = "brcm,cygnus-pcie-phy";
117			reg = <0x0301d0a0 0x14>;
118			#address-cells = <1>;
119			#size-cells = <0>;
120
121			pcie0_phy: phy@0 {
122				reg = <0>;
123				#phy-cells = <0>;
124			};
125
126			pcie1_phy: phy@1 {
127				reg = <1>;
128				#phy-cells = <0>;
129			};
130		};
131
132		pinctrl: pinctrl@301d0c8 {
133			compatible = "brcm,cygnus-pinmux";
134			reg = <0x0301d0c8 0x30>,
135			      <0x0301d24c 0x2c>;
136
137			spi_0: spi_0 {
138				function = "spi0";
139				groups = "spi0_grp";
140			};
141
142			spi_1: spi_1 {
143				function = "spi1";
144				groups = "spi1_grp";
145			};
146
147			spi_2: spi_2 {
148				function = "spi2";
149				groups = "spi2_grp";
150			};
151		};
152
153		mailbox: mailbox@3024024 {
154			compatible = "brcm,iproc-mailbox";
155			reg = <0x03024024 0x40>;
156			interrupts = <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>;
157			#interrupt-cells = <1>;
158			interrupt-controller;
159			#mbox-cells = <1>;
160		};
161
162		gpio_crmu: gpio@3024800 {
163			compatible = "brcm,cygnus-crmu-gpio";
164			reg = <0x03024800 0x50>,
165			      <0x03024008 0x18>;
166			ngpios = <6>;
167			#gpio-cells = <2>;
168			gpio-controller;
169			interrupt-controller;
170			interrupt-parent = <&mailbox>;
171			interrupts = <0>;
172		};
173
174		mdio: mdio@18002000 {
175			compatible = "brcm,iproc-mdio";
176			reg = <0x18002000 0x8>;
177			#size-cells = <1>;
178			#address-cells = <0>;
179			status = "disabled";
180
181			gphy0: ethernet-phy@0 {
182				reg = <0>;
183			};
184
185			gphy1: ethernet-phy@1 {
186				reg = <1>;
187			};
188		};
189
190		switch: switch@18007000 {
191			compatible = "brcm,bcm11360-srab", "brcm,cygnus-srab";
192			reg = <0x18007000 0x1000>;
193			status = "disabled";
194
195			ports {
196				#address-cells = <1>;
197				#size-cells = <0>;
198
199				port@0 {
200					reg = <0>;
201					phy-handle = <&gphy0>;
202					phy-mode = "rgmii";
203				};
204
205				port@1 {
206					reg = <1>;
207					phy-handle = <&gphy1>;
208					phy-mode = "rgmii";
209				};
210
211				port@8 {
212					reg = <8>;
213					label = "cpu";
214					ethernet = <&eth0>;
215					fixed-link {
216						speed = <1000>;
217						full-duplex;
218					};
219				};
220			};
221		};
222
223		i2c0: i2c@18008000 {
224			compatible = "brcm,cygnus-iproc-i2c", "brcm,iproc-i2c";
225			reg = <0x18008000 0x100>;
226			#address-cells = <1>;
227			#size-cells = <0>;
228			interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
229			clock-frequency = <100000>;
230			status = "disabled";
231		};
232
233		wdt0: wdt@18009000 {
234			compatible = "arm,sp805" , "arm,primecell";
235			reg = <0x18009000 0x1000>;
236			interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
237			clocks = <&axi81_clk>;
238			clock-names = "apb_pclk";
239		};
240
241		gpio_ccm: gpio@1800a000 {
242			compatible = "brcm,cygnus-ccm-gpio";
243			reg = <0x1800a000 0x50>,
244			      <0x0301d164 0x20>;
245			ngpios = <24>;
246			#gpio-cells = <2>;
247			gpio-controller;
248			interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
249			interrupt-controller;
250		};
251
252		i2c1: i2c@1800b000 {
253			compatible = "brcm,cygnus-iproc-i2c", "brcm,iproc-i2c";
254			reg = <0x1800b000 0x100>;
255			#address-cells = <1>;
256			#size-cells = <0>;
257			interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
258			clock-frequency = <100000>;
259			status = "disabled";
260		};
261
262		pcie0: pcie@18012000 {
263			compatible = "brcm,iproc-pcie";
264			reg = <0x18012000 0x1000>;
265
266			#interrupt-cells = <1>;
267			interrupt-map-mask = <0 0 0 0>;
268			interrupt-map = <0 0 0 0 &gic GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>;
269
270			linux,pci-domain = <0>;
271
272			bus-range = <0x00 0xff>;
273
274			#address-cells = <3>;
275			#size-cells = <2>;
276			device_type = "pci";
277			ranges = <0x81000000 0 0	  0x28000000 0 0x00010000
278				  0x82000000 0 0x20000000 0x20000000 0 0x04000000>;
279
280			phys = <&pcie0_phy>;
281			phy-names = "pcie-phy";
282
283			status = "disabled";
284
285			msi-parent = <&msi0>;
286			msi0: msi-controller {
287				compatible = "brcm,iproc-msi";
288				msi-controller;
289				interrupt-parent = <&gic>;
290				interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>,
291					     <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>,
292					     <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>,
293					     <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>;
294			};
295		};
296
297		pcie1: pcie@18013000 {
298			compatible = "brcm,iproc-pcie";
299			reg = <0x18013000 0x1000>;
300
301			#interrupt-cells = <1>;
302			interrupt-map-mask = <0 0 0 0>;
303			interrupt-map = <0 0 0 0 &gic GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
304
305			linux,pci-domain = <1>;
306
307			bus-range = <0x00 0xff>;
308
309			#address-cells = <3>;
310			#size-cells = <2>;
311			device_type = "pci";
312			ranges = <0x81000000 0 0	  0x48000000 0 0x00010000
313				  0x82000000 0 0x40000000 0x40000000 0 0x04000000>;
314
315			phys = <&pcie1_phy>;
316			phy-names = "pcie-phy";
317
318			status = "disabled";
319
320			msi-parent = <&msi1>;
321			msi1: msi-controller {
322				compatible = "brcm,iproc-msi";
323				msi-controller;
324				interrupt-parent = <&gic>;
325				interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>,
326					     <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>,
327					     <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>,
328					     <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
329			};
330		};
331
332		dma0: dma@18018000 {
333			compatible = "arm,pl330", "arm,primecell";
334			reg = <0x18018000 0x1000>;
335			interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>,
336				     <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>,
337				     <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>,
338				     <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>,
339				     <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>,
340				     <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>,
341				     <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>,
342				     <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
343				     <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
344			clocks = <&apb_clk>;
345			clock-names = "apb_pclk";
346			#dma-cells = <1>;
347		};
348
349		uart0: serial@18020000 {
350			compatible = "snps,dw-apb-uart";
351			reg = <0x18020000 0x100>;
352			reg-shift = <2>;
353			reg-io-width = <4>;
354			interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
355			clocks = <&axi81_clk>;
356			clock-frequency = <100000000>;
357			status = "disabled";
358		};
359
360		uart1: serial@18021000 {
361			compatible = "snps,dw-apb-uart";
362			reg = <0x18021000 0x100>;
363			reg-shift = <2>;
364			reg-io-width = <4>;
365			interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
366			clocks = <&axi81_clk>;
367			clock-frequency = <100000000>;
368			status = "disabled";
369		};
370
371		uart2: serial@18022000 {
372			compatible = "snps,dw-apb-uart";
373			reg = <0x18022000 0x100>;
374			reg-shift = <2>;
375			reg-io-width = <4>;
376			interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
377			clocks = <&axi81_clk>;
378			clock-frequency = <100000000>;
379			status = "disabled";
380		};
381
382		uart3: serial@18023000 {
383			compatible = "snps,dw-apb-uart";
384			reg = <0x18023000 0x100>;
385			reg-shift = <2>;
386			reg-io-width = <4>;
387			interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
388			clocks = <&axi81_clk>;
389			clock-frequency = <100000000>;
390			status = "disabled";
391		};
392
393		spi0: spi@18028000 {
394			compatible = "arm,pl022", "arm,primecell";
395			reg = <0x18028000 0x1000>;
396			#address-cells = <1>;
397			#size-cells = <0>;
398			interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
399			pinctrl-0 = <&spi_0>;
400			clocks = <&axi81_clk>;
401			clock-names = "apb_pclk";
402			status = "disabled";
403		};
404
405		spi1: spi@18029000 {
406			compatible = "arm,pl022", "arm,primecell";
407			reg = <0x18029000 0x1000>;
408			#address-cells = <1>;
409			#size-cells = <0>;
410			interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
411			pinctrl-0 = <&spi_1>;
412			clocks = <&axi81_clk>;
413			clock-names = "apb_pclk";
414			status = "disabled";
415		};
416
417		spi2: spi@1802a000 {
418			compatible = "arm,pl022", "arm,primecell";
419			reg = <0x1802a000 0x1000>;
420			#address-cells = <1>;
421			#size-cells = <0>;
422			interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
423			pinctrl-0 = <&spi_2>;
424			clocks = <&axi81_clk>;
425			clock-names = "apb_pclk";
426			status = "disabled";
427		};
428
429		rng: rng@18032000 {
430			compatible = "brcm,iproc-rng200";
431			reg = <0x18032000 0x28>;
432		};
433
434		sdhci0: sdhci@18041000 {
435			compatible = "brcm,sdhci-iproc-cygnus";
436			reg = <0x18041000 0x100>;
437			interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;
438			clocks = <&lcpll0 BCM_CYGNUS_LCPLL0_SDIO_CLK>;
439			bus-width = <4>;
440			sdhci,auto-cmd12;
441			status = "disabled";
442		};
443
444		eth0: ethernet@18042000 {
445			compatible = "brcm,amac";
446			reg = <0x18042000 0x1000>,
447			      <0x18110000 0x1000>;
448			reg-names = "amac_base", "idm_base";
449			interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>;
450			status = "disabled";
451		};
452
453		sdhci1: sdhci@18043000 {
454			compatible = "brcm,sdhci-iproc-cygnus";
455			reg = <0x18043000 0x100>;
456			interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>;
457			clocks = <&lcpll0 BCM_CYGNUS_LCPLL0_SDIO_CLK>;
458			bus-width = <4>;
459			sdhci,auto-cmd12;
460			status = "disabled";
461		};
462
463		nand: nand@18046000 {
464			compatible = "brcm,nand-iproc", "brcm,brcmnand-v6.1";
465			reg = <0x18046000 0x600>, <0xf8105408 0x600>,
466			      <0x18046f00 0x20>;
467			reg-names = "nand", "iproc-idm", "iproc-ext";
468			interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
469
470			#address-cells = <1>;
471			#size-cells = <0>;
472
473			brcm,nand-has-wp;
474		};
475
476		ehci0: usb@18048000 {
477			compatible = "generic-ehci";
478			reg = <0x18048000 0x100>;
479			interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
480			status = "disabled";
481		};
482
483		ohci0: usb@18048800 {
484			compatible = "generic-ohci";
485			reg = <0x18048800 0x100>;
486			interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
487			status = "disabled";
488		};
489
490		clcd: clcd@180a0000 {
491			compatible = "arm,pl111", "arm,primecell";
492			reg = <0x180a0000 0x1000>;
493			interrupts = <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>;
494			interrupt-names = "combined";
495			clocks = <&axi41_clk>, <&apb_clk>;
496			clock-names = "clcdclk", "apb_pclk";
497			status = "disabled";
498		};
499
500		v3d: v3d@180a2000 {
501			compatible = "brcm,cygnus-v3d";
502			reg = <0x180a2000 0x1000>;
503			clocks = <&mipipll BCM_CYGNUS_MIPIPLL_CH2_V3D>;
504			clock-names = "v3d_clk";
505			interrupts = <GIC_SPI 182 IRQ_TYPE_LEVEL_HIGH>;
506			status = "disabled";
507		};
508
509		vc4: gpu {
510			compatible = "brcm,cygnus-vc4";
511		};
512
513		gpio_asiu: gpio@180a5000 {
514			compatible = "brcm,cygnus-asiu-gpio";
515			reg = <0x180a5000 0x668>;
516			ngpios = <146>;
517			#gpio-cells = <2>;
518			gpio-controller;
519
520			interrupt-controller;
521			interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>;
522			gpio-ranges = <&pinctrl 0 42 1>,
523					<&pinctrl 1 44 3>,
524					<&pinctrl 4 48 1>,
525					<&pinctrl 5 50 3>,
526					<&pinctrl 8 126 1>,
527					<&pinctrl 9 155 1>,
528					<&pinctrl 10 152 1>,
529					<&pinctrl 11 154 1>,
530					<&pinctrl 12 153 1>,
531					<&pinctrl 13 127 3>,
532					<&pinctrl 16 140 1>,
533					<&pinctrl 17 145 7>,
534					<&pinctrl 24 130 10>,
535					<&pinctrl 34 141 4>,
536					<&pinctrl 38 54 1>,
537					<&pinctrl 39 56 3>,
538					<&pinctrl 42 60 3>,
539					<&pinctrl 45 64 3>,
540					<&pinctrl 48 68 2>,
541					<&pinctrl 50 84 6>,
542					<&pinctrl 56 94 6>,
543					<&pinctrl 62 72 1>,
544					<&pinctrl 63 70 1>,
545					<&pinctrl 64 80 1>,
546					<&pinctrl 65 74 3>,
547					<&pinctrl 68 78 1>,
548					<&pinctrl 69 82 1>,
549					<&pinctrl 70 156 17>,
550					<&pinctrl 87 104 12>,
551					<&pinctrl 99 102 2>,
552					<&pinctrl 101 90 4>,
553					<&pinctrl 105 116 6>,
554					<&pinctrl 111 100 2>,
555					<&pinctrl 113 122 4>,
556					<&pinctrl 123 11 1>,
557					<&pinctrl 124 38 4>,
558					<&pinctrl 128 43 1>,
559					<&pinctrl 129 47 1>,
560					<&pinctrl 130 49 1>,
561					<&pinctrl 131 53 1>,
562					<&pinctrl 132 55 1>,
563					<&pinctrl 133 59 1>,
564					<&pinctrl 134 63 1>,
565					<&pinctrl 135 67 1>,
566					<&pinctrl 136 71 1>,
567					<&pinctrl 137 73 1>,
568					<&pinctrl 138 77 1>,
569					<&pinctrl 139 79 1>,
570					<&pinctrl 140 81 1>,
571					<&pinctrl 141 83 1>,
572					<&pinctrl 142 10 1>;
573		};
574
575		ts_adc_syscon: ts_adc_syscon@180a6000 {
576			compatible = "brcm,iproc-ts-adc-syscon", "syscon";
577			reg = <0x180a6000 0xc30>;
578		};
579
580		touchscreen: touchscreen@180a6000 {
581			compatible = "brcm,iproc-touchscreen";
582			#address-cells = <1>;
583			#size-cells = <1>;
584			ts_syscon = <&ts_adc_syscon>;
585			clocks = <&asiu_clks BCM_CYGNUS_ASIU_ADC_CLK>;
586			clock-names = "tsc_clk";
587			interrupts = <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>;
588			status = "disabled";
589		};
590
591		adc: adc@180a6000 {
592			compatible = "brcm,iproc-static-adc";
593			#io-channel-cells = <1>;
594			io-channel-ranges;
595			adc-syscon = <&ts_adc_syscon>;
596			clocks = <&asiu_clks BCM_CYGNUS_ASIU_ADC_CLK>;
597			clock-names = "tsc_clk";
598			interrupts = <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>;
599			status = "disabled";
600		};
601
602		pwm: pwm@180aa500 {
603			compatible = "brcm,kona-pwm";
604			reg = <0x180aa500 0xc4>;
605			#pwm-cells = <3>;
606			clocks = <&asiu_clks BCM_CYGNUS_ASIU_PWM_CLK>;
607			status = "disabled";
608		};
609
610		keypad: keypad@180ac000 {
611			compatible = "brcm,bcm-keypad";
612			reg = <0x180ac000 0x14c>;
613			interrupts = <GIC_SPI 165 IRQ_TYPE_LEVEL_HIGH>;
614			clocks = <&asiu_clks BCM_CYGNUS_ASIU_KEYPAD_CLK>;
615			clock-names = "peri_clk";
616			clock-frequency = <31250>;
617			pull-up-enabled;
618			col-debounce-filter-period = <0>;
619			status-debounce-filter-period = <0>;
620			row-output-enabled;
621			status = "disabled";
622		};
623	};
624};
v4.10.11
  1/*
  2 *  BSD LICENSE
  3 *
  4 *  Copyright(c) 2014 Broadcom Corporation.  All rights reserved.
  5 *
  6 *  Redistribution and use in source and binary forms, with or without
  7 *  modification, are permitted provided that the following conditions
  8 *  are met:
  9 *
 10 *    * Redistributions of source code must retain the above copyright
 11 *      notice, this list of conditions and the following disclaimer.
 12 *    * Redistributions in binary form must reproduce the above copyright
 13 *      notice, this list of conditions and the following disclaimer in
 14 *      the documentation and/or other materials provided with the
 15 *      distribution.
 16 *    * Neither the name of Broadcom Corporation nor the names of its
 17 *      contributors may be used to endorse or promote products derived
 18 *      from this software without specific prior written permission.
 19 *
 20 *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 21 *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 22 *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 23 *  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
 24 *  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 25 *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 26 *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 27 *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 28 *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 29 *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 30 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 31 */
 32
 33#include <dt-bindings/interrupt-controller/arm-gic.h>
 34#include <dt-bindings/interrupt-controller/irq.h>
 35#include <dt-bindings/clock/bcm-cygnus.h>
 36
 37#include "skeleton.dtsi"
 38
 39/ {
 
 
 40	compatible = "brcm,cygnus";
 41	model = "Broadcom Cygnus SoC";
 42	interrupt-parent = <&gic>;
 43
 
 
 
 
 
 
 
 
 
 44	cpus {
 45		#address-cells = <1>;
 46		#size-cells = <0>;
 47
 48		cpu@0 {
 49			device_type = "cpu";
 50			compatible = "arm,cortex-a9";
 51			next-level-cache = <&L2>;
 52			reg = <0x0>;
 53		};
 54	};
 55
 56	/include/ "bcm-cygnus-clock.dtsi"
 57
 58	core {
 
 
 
 
 
 59		compatible = "simple-bus";
 60		ranges = <0x00000000 0x19000000 0x1000000>;
 61		#address-cells = <1>;
 62		#size-cells = <1>;
 63
 64		timer@20200 {
 65			compatible = "arm,cortex-a9-global-timer";
 66			reg = <0x20200 0x100>;
 67			interrupts = <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH>;
 68			clocks = <&periph_clk>;
 69		};
 70
 71		gic: interrupt-controller@21000 {
 72			compatible = "arm,cortex-a9-gic";
 73			#interrupt-cells = <3>;
 74			#address-cells = <0>;
 75			interrupt-controller;
 76			reg = <0x21000 0x1000>,
 77			      <0x20100 0x100>;
 78		};
 79
 80		L2: l2-cache {
 81			compatible = "arm,pl310-cache";
 82			reg = <0x22000 0x1000>;
 83			cache-unified;
 84			cache-level = <2>;
 85		};
 86	};
 87
 88	axi {
 89		compatible = "simple-bus";
 90		ranges;
 91		#address-cells = <1>;
 92		#size-cells = <1>;
 93
 94		otp: otp@0301c800 {
 95			compatible = "brcm,ocotp";
 96			reg = <0x0301c800 0x2c>;
 97			brcm,ocotp-size = <2048>;
 98			status = "disabled";
 99		};
100
101		pcie_phy: phy@0301d0a0 {
102			compatible = "brcm,cygnus-pcie-phy";
103			reg = <0x0301d0a0 0x14>;
104			#address-cells = <1>;
105			#size-cells = <0>;
106
107			pcie0_phy: phy@0 {
108				reg = <0>;
109				#phy-cells = <0>;
110			};
111
112			pcie1_phy: phy@1 {
113				reg = <1>;
114				#phy-cells = <0>;
115			};
116		};
117
118		pinctrl: pinctrl@0301d0c8 {
119			compatible = "brcm,cygnus-pinmux";
120			reg = <0x0301d0c8 0x30>,
121			      <0x0301d24c 0x2c>;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
122		};
123
124		mailbox: mailbox@03024024 {
125			compatible = "brcm,iproc-mailbox";
126			reg = <0x03024024 0x40>;
127			interrupts = <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>;
128			#interrupt-cells = <1>;
129			interrupt-controller;
130			#mbox-cells = <1>;
131		};
132
133		gpio_crmu: gpio@03024800 {
134			compatible = "brcm,cygnus-crmu-gpio";
135			reg = <0x03024800 0x50>,
136			      <0x03024008 0x18>;
137			ngpios = <6>;
138			#gpio-cells = <2>;
139			gpio-controller;
140			interrupt-controller;
141			interrupt-parent = <&mailbox>;
142			interrupts = <0>;
143		};
144
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
145		i2c0: i2c@18008000 {
146			compatible = "brcm,cygnus-iproc-i2c", "brcm,iproc-i2c";
147			reg = <0x18008000 0x100>;
148			#address-cells = <1>;
149			#size-cells = <0>;
150			interrupts = <GIC_SPI 85 IRQ_TYPE_NONE>;
151			clock-frequency = <100000>;
152			status = "disabled";
153		};
154
155		wdt0: wdt@18009000 {
156			compatible = "arm,sp805" , "arm,primecell";
157			reg = <0x18009000 0x1000>;
158			interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
159			clocks = <&axi81_clk>;
160			clock-names = "apb_pclk";
161		};
162
163		gpio_ccm: gpio@1800a000 {
164			compatible = "brcm,cygnus-ccm-gpio";
165			reg = <0x1800a000 0x50>,
166			      <0x0301d164 0x20>;
167			ngpios = <24>;
168			#gpio-cells = <2>;
169			gpio-controller;
170			interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
171			interrupt-controller;
172		};
173
174		i2c1: i2c@1800b000 {
175			compatible = "brcm,cygnus-iproc-i2c", "brcm,iproc-i2c";
176			reg = <0x1800b000 0x100>;
177			#address-cells = <1>;
178			#size-cells = <0>;
179			interrupts = <GIC_SPI 86 IRQ_TYPE_NONE>;
180			clock-frequency = <100000>;
181			status = "disabled";
182		};
183
184		pcie0: pcie@18012000 {
185			compatible = "brcm,iproc-pcie";
186			reg = <0x18012000 0x1000>;
187
188			#interrupt-cells = <1>;
189			interrupt-map-mask = <0 0 0 0>;
190			interrupt-map = <0 0 0 0 &gic GIC_SPI 100 IRQ_TYPE_NONE>;
191
192			linux,pci-domain = <0>;
193
194			bus-range = <0x00 0xff>;
195
196			#address-cells = <3>;
197			#size-cells = <2>;
198			device_type = "pci";
199			ranges = <0x81000000 0 0	  0x28000000 0 0x00010000
200				  0x82000000 0 0x20000000 0x20000000 0 0x04000000>;
201
202			phys = <&pcie0_phy>;
203			phy-names = "pcie-phy";
204
205			status = "disabled";
206
207			msi-parent = <&msi0>;
208			msi0: msi@18012000 {
209				compatible = "brcm,iproc-msi";
210				msi-controller;
211				interrupt-parent = <&gic>;
212				interrupts = <GIC_SPI 96 IRQ_TYPE_NONE>,
213					     <GIC_SPI 97 IRQ_TYPE_NONE>,
214					     <GIC_SPI 98 IRQ_TYPE_NONE>,
215					     <GIC_SPI 99 IRQ_TYPE_NONE>;
216			};
217		};
218
219		pcie1: pcie@18013000 {
220			compatible = "brcm,iproc-pcie";
221			reg = <0x18013000 0x1000>;
222
223			#interrupt-cells = <1>;
224			interrupt-map-mask = <0 0 0 0>;
225			interrupt-map = <0 0 0 0 &gic GIC_SPI 106 IRQ_TYPE_NONE>;
226
227			linux,pci-domain = <1>;
228
229			bus-range = <0x00 0xff>;
230
231			#address-cells = <3>;
232			#size-cells = <2>;
233			device_type = "pci";
234			ranges = <0x81000000 0 0	  0x48000000 0 0x00010000
235				  0x82000000 0 0x40000000 0x40000000 0 0x04000000>;
236
237			phys = <&pcie1_phy>;
238			phy-names = "pcie-phy";
239
240			status = "disabled";
241
242			msi-parent = <&msi1>;
243			msi1: msi@18013000 {
244				compatible = "brcm,iproc-msi";
245				msi-controller;
246				interrupt-parent = <&gic>;
247				interrupts = <GIC_SPI 102 IRQ_TYPE_NONE>,
248					     <GIC_SPI 103 IRQ_TYPE_NONE>,
249					     <GIC_SPI 104 IRQ_TYPE_NONE>,
250					     <GIC_SPI 105 IRQ_TYPE_NONE>;
251			};
252		};
253
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
254		uart0: serial@18020000 {
255			compatible = "snps,dw-apb-uart";
256			reg = <0x18020000 0x100>;
257			reg-shift = <2>;
258			reg-io-width = <4>;
259			interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
260			clocks = <&axi81_clk>;
261			clock-frequency = <100000000>;
262			status = "disabled";
263		};
264
265		uart1: serial@18021000 {
266			compatible = "snps,dw-apb-uart";
267			reg = <0x18021000 0x100>;
268			reg-shift = <2>;
269			reg-io-width = <4>;
270			interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
271			clocks = <&axi81_clk>;
272			clock-frequency = <100000000>;
273			status = "disabled";
274		};
275
276		uart2: serial@18022000 {
277			compatible = "snps,dw-apb-uart";
278			reg = <0x18020000 0x100>;
279			reg-shift = <2>;
280			reg-io-width = <4>;
281			interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
282			clocks = <&axi81_clk>;
283			clock-frequency = <100000000>;
284			status = "disabled";
285		};
286
287		uart3: serial@18023000 {
288			compatible = "snps,dw-apb-uart";
289			reg = <0x18023000 0x100>;
290			reg-shift = <2>;
291			reg-io-width = <4>;
292			interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
293			clocks = <&axi81_clk>;
294			clock-frequency = <100000000>;
295			status = "disabled";
296		};
297
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
298		nand: nand@18046000 {
299			compatible = "brcm,nand-iproc", "brcm,brcmnand-v6.1";
300			reg = <0x18046000 0x600>, <0xf8105408 0x600>,
301			      <0x18046f00 0x20>;
302			reg-names = "nand", "iproc-idm", "iproc-ext";
303			interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
304
305			#address-cells = <1>;
306			#size-cells = <0>;
307
308			brcm,nand-has-wp;
309		};
310
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
311		gpio_asiu: gpio@180a5000 {
312			compatible = "brcm,cygnus-asiu-gpio";
313			reg = <0x180a5000 0x668>;
314			ngpios = <146>;
315			#gpio-cells = <2>;
316			gpio-controller;
317
318			interrupt-controller;
319			interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>;
320			gpio-ranges = <&pinctrl 0 42 1>,
321					<&pinctrl 1 44 3>,
322					<&pinctrl 4 48 1>,
323					<&pinctrl 5 50 3>,
324					<&pinctrl 8 126 1>,
325					<&pinctrl 9 155 1>,
326					<&pinctrl 10 152 1>,
327					<&pinctrl 11 154 1>,
328					<&pinctrl 12 153 1>,
329					<&pinctrl 13 127 3>,
330					<&pinctrl 16 140 1>,
331					<&pinctrl 17 145 7>,
332					<&pinctrl 24 130 10>,
333					<&pinctrl 34 141 4>,
334					<&pinctrl 38 54 1>,
335					<&pinctrl 39 56 3>,
336					<&pinctrl 42 60 3>,
337					<&pinctrl 45 64 3>,
338					<&pinctrl 48 68 2>,
339					<&pinctrl 50 84 6>,
340					<&pinctrl 56 94 6>,
341					<&pinctrl 62 72 1>,
342					<&pinctrl 63 70 1>,
343					<&pinctrl 64 80 1>,
344					<&pinctrl 65 74 3>,
345					<&pinctrl 68 78 1>,
346					<&pinctrl 69 82 1>,
347					<&pinctrl 70 156 17>,
348					<&pinctrl 87 104 12>,
349					<&pinctrl 99 102 2>,
350					<&pinctrl 101 90 4>,
351					<&pinctrl 105 116 6>,
352					<&pinctrl 111 100 2>,
353					<&pinctrl 113 122 4>,
354					<&pinctrl 123 11 1>,
355					<&pinctrl 124 38 4>,
356					<&pinctrl 128 43 1>,
357					<&pinctrl 129 47 1>,
358					<&pinctrl 130 49 1>,
359					<&pinctrl 131 53 1>,
360					<&pinctrl 132 55 1>,
361					<&pinctrl 133 59 1>,
362					<&pinctrl 134 63 1>,
363					<&pinctrl 135 67 1>,
364					<&pinctrl 136 71 1>,
365					<&pinctrl 137 73 1>,
366					<&pinctrl 138 77 1>,
367					<&pinctrl 139 79 1>,
368					<&pinctrl 140 81 1>,
369					<&pinctrl 141 83 1>,
370					<&pinctrl 142 10 1>;
371		};
372
373		ts_adc_syscon: ts_adc_syscon@180a6000 {
374			compatible = "brcm,iproc-ts-adc-syscon", "syscon";
375			reg = <0x180a6000 0xc30>;
376		};
377
378		touchscreen: touchscreen@180a6000 {
379			compatible = "brcm,iproc-touchscreen";
380			#address-cells = <1>;
381			#size-cells = <1>;
382			ts_syscon = <&ts_adc_syscon>;
383			clocks = <&asiu_clks BCM_CYGNUS_ASIU_ADC_CLK>;
384			clock-names = "tsc_clk";
385			interrupts = <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>;
386			status = "disabled";
387		};
388
389		adc: adc@180a6000 {
390			compatible = "brcm,iproc-static-adc";
391			#io-channel-cells = <1>;
392			io-channel-ranges;
393			adc-syscon = <&ts_adc_syscon>;
394			clocks = <&asiu_clks BCM_CYGNUS_ASIU_ADC_CLK>;
395			clock-names = "tsc_clk";
396			interrupts = <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
397			status = "disabled";
398		};
399	};
400};