Linux Audio

Check our new training course

Loading...
v6.2
  1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2/*
  3 * Device Tree Include file for Marvell Armada 370 and Armada XP SoC
  4 *
  5 * Copyright (C) 2012 Marvell
  6 *
  7 * Lior Amsalem <alior@marvell.com>
  8 * Gregory CLEMENT <gregory.clement@free-electrons.com>
  9 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
 10 * Ben Dooks <ben.dooks@codethink.co.uk>
 11 *
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 12 * This file contains the definitions that are common to the Armada
 13 * 370 and Armada XP SoC.
 14 */
 15
 
 
 16#define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16))
 17
 18/ {
 19	model = "Marvell Armada 370 and XP SoC";
 20	compatible = "marvell,armada-370-xp";
 21
 22	aliases {
 23		serial0 = &uart0;
 24		serial1 = &uart1;
 25	};
 26
 27	cpus {
 28		#address-cells = <1>;
 29		#size-cells = <0>;
 30		cpu@0 {
 31			compatible = "marvell,sheeva-v7";
 32			device_type = "cpu";
 33			reg = <0>;
 34		};
 35	};
 36
 37	pmu {
 38		compatible = "arm,cortex-a9-pmu";
 39		interrupts-extended = <&mpic 3>;
 40	};
 41
 42	soc {
 43		#address-cells = <2>;
 44		#size-cells = <1>;
 45		controller = <&mbusc>;
 46		interrupt-parent = <&mpic>;
 47		pcie-mem-aperture = <0xf8000000 0x7e00000>;
 48		pcie-io-aperture  = <0xffe00000 0x100000>;
 49
 50		devbus_bootcs: devbus-bootcs {
 51			compatible = "marvell,mvebu-devbus";
 52			reg = <MBUS_ID(0xf0, 0x01) 0x10400 0x8>;
 53			ranges = <0 MBUS_ID(0x01, 0x2f) 0 0xffffffff>;
 54			#address-cells = <1>;
 55			#size-cells = <1>;
 56			clocks = <&coreclk 0>;
 57			status = "disabled";
 58		};
 59
 60		devbus_cs0: devbus-cs0 {
 61			compatible = "marvell,mvebu-devbus";
 62			reg = <MBUS_ID(0xf0, 0x01) 0x10408 0x8>;
 63			ranges = <0 MBUS_ID(0x01, 0x3e) 0 0xffffffff>;
 64			#address-cells = <1>;
 65			#size-cells = <1>;
 66			clocks = <&coreclk 0>;
 67			status = "disabled";
 68		};
 69
 70		devbus_cs1: devbus-cs1 {
 71			compatible = "marvell,mvebu-devbus";
 72			reg = <MBUS_ID(0xf0, 0x01) 0x10410 0x8>;
 73			ranges = <0 MBUS_ID(0x01, 0x3d) 0 0xffffffff>;
 74			#address-cells = <1>;
 75			#size-cells = <1>;
 76			clocks = <&coreclk 0>;
 77			status = "disabled";
 78		};
 79
 80		devbus_cs2: devbus-cs2 {
 81			compatible = "marvell,mvebu-devbus";
 82			reg = <MBUS_ID(0xf0, 0x01) 0x10418 0x8>;
 83			ranges = <0 MBUS_ID(0x01, 0x3b) 0 0xffffffff>;
 84			#address-cells = <1>;
 85			#size-cells = <1>;
 86			clocks = <&coreclk 0>;
 87			status = "disabled";
 88		};
 89
 90		devbus_cs3: devbus-cs3 {
 91			compatible = "marvell,mvebu-devbus";
 92			reg = <MBUS_ID(0xf0, 0x01) 0x10420 0x8>;
 93			ranges = <0 MBUS_ID(0x01, 0x37) 0 0xffffffff>;
 94			#address-cells = <1>;
 95			#size-cells = <1>;
 96			clocks = <&coreclk 0>;
 97			status = "disabled";
 98		};
 99
100		internal-regs {
101			compatible = "simple-bus";
102			#address-cells = <1>;
103			#size-cells = <1>;
104			ranges = <0 MBUS_ID(0xf0, 0x01) 0 0x100000>;
105
106			rtc: rtc@10300 {
107				compatible = "marvell,orion-rtc";
108				reg = <0x10300 0x20>;
109				interrupts = <50>;
110			};
111
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
112			i2c0: i2c@11000 {
113				compatible = "marvell,mv64xxx-i2c";
114				#address-cells = <1>;
115				#size-cells = <0>;
116				interrupts = <31>;
 
117				clocks = <&coreclk 0>;
118				status = "disabled";
119			};
120
121			i2c1: i2c@11100 {
122				compatible = "marvell,mv64xxx-i2c";
123				#address-cells = <1>;
124				#size-cells = <0>;
125				interrupts = <32>;
 
126				clocks = <&coreclk 0>;
127				status = "disabled";
128			};
129
130			uart0: serial@12000 {
131				compatible = "snps,dw-apb-uart";
132				reg = <0x12000 0x100>;
133				reg-shift = <2>;
134				interrupts = <41>;
135				reg-io-width = <1>;
136				clocks = <&coreclk 0>;
137				status = "disabled";
138			};
139
140			uart1: serial@12100 {
141				compatible = "snps,dw-apb-uart";
142				reg = <0x12100 0x100>;
143				reg-shift = <2>;
144				interrupts = <42>;
145				reg-io-width = <1>;
146				clocks = <&coreclk 0>;
147				status = "disabled";
148			};
149
150			pinctrl: pin-ctrl@18000 {
151				reg = <0x18000 0x38>;
152			};
153
154			coredivclk: corediv-clock@18740 {
155				compatible = "marvell,armada-370-corediv-clock";
156				reg = <0x18740 0xc>;
157				#clock-cells = <1>;
158				clocks = <&mainpll>;
159				clock-output-names = "nand";
160			};
161
162			mbusc: mbus-controller@20000 {
163				compatible = "marvell,mbus-controller";
164				reg = <0x20000 0x100>, <0x20180 0x20>,
165				      <0x20250 0x8>;
166			};
167
168			mpic: interrupt-controller@20a00 {
169				compatible = "marvell,mpic";
170				#interrupt-cells = <1>;
171				#size-cells = <1>;
172				interrupt-controller;
173				msi-controller;
174			};
175
176			coherencyfab: coherency-fabric@20200 {
177				compatible = "marvell,coherency-fabric";
178				reg = <0x20200 0xb0>, <0x21010 0x1c>;
179			};
180
181			timer: timer@20300 {
182				reg = <0x20300 0x30>, <0x21040 0x30>;
183				interrupts = <37>, <38>, <39>, <40>, <5>, <6>;
184			};
185
186			watchdog: watchdog@20300 {
187				reg = <0x20300 0x34>, <0x20704 0x4>;
188			};
189
190			cpurst: cpurst@20800 {
191				compatible = "marvell,armada-370-cpu-reset";
192				reg = <0x20800 0x8>;
193			};
194
195			pmsu: pmsu@22000 {
196				compatible = "marvell,armada-370-pmsu";
197				reg = <0x22000 0x1000>;
198			};
199
200			usb0: usb@50000 {
201				compatible = "marvell,orion-ehci";
202				reg = <0x50000 0x500>;
203				interrupts = <45>;
204				status = "disabled";
205			};
206
207			usb1: usb@51000 {
208				compatible = "marvell,orion-ehci";
209				reg = <0x51000 0x500>;
210				interrupts = <46>;
211				status = "disabled";
212			};
213
214			eth0: ethernet@70000 {
215				reg = <0x70000 0x4000>;
216				interrupts = <8>;
217				clocks = <&gateclk 4>;
218				status = "disabled";
219			};
220
221			mdio: mdio@72004 {
222				#address-cells = <1>;
223				#size-cells = <0>;
224				compatible = "marvell,orion-mdio";
225				reg = <0x72004 0x4>;
226				clocks = <&gateclk 4>;
227			};
228
229			eth1: ethernet@74000 {
230				reg = <0x74000 0x4000>;
231				interrupts = <10>;
232				clocks = <&gateclk 3>;
233				status = "disabled";
234			};
235
236			sata: sata@a0000 {
237				compatible = "marvell,armada-370-sata";
238				reg = <0xa0000 0x5000>;
239				interrupts = <55>;
240				clocks = <&gateclk 15>, <&gateclk 30>;
241				clock-names = "0", "1";
242				status = "disabled";
243			};
244
245			nand_controller: nand-controller@d0000 {
246				compatible = "marvell,armada370-nand-controller";
247				reg = <0xd0000 0x54>;
248				#address-cells = <1>;
249				#size-cells = <0>;
250				interrupts = <113>;
251				clocks = <&coredivclk 0>;
252				status = "disabled";
253			};
254
255			sdio: mvsdio@d4000 {
256				compatible = "marvell,orion-sdio";
257				reg = <0xd4000 0x200>;
258				interrupts = <54>;
259				clocks = <&gateclk 17>;
260				bus-width = <4>;
261				cap-sdio-irq;
262				cap-sd-highspeed;
263				cap-mmc-highspeed;
264				status = "disabled";
265			};
266		};
267
268		spi0: spi@10600 {
269			reg = <MBUS_ID(0xf0, 0x01) 0x10600 0x28>, /* control */
270			      <MBUS_ID(0x01, 0x1e) 0 0xffffffff>, /* CS0 */
271			      <MBUS_ID(0x01, 0x5e) 0 0xffffffff>, /* CS1 */
272			      <MBUS_ID(0x01, 0x9e) 0 0xffffffff>, /* CS2 */
273			      <MBUS_ID(0x01, 0xde) 0 0xffffffff>, /* CS3 */
274			      <MBUS_ID(0x01, 0x1f) 0 0xffffffff>, /* CS4 */
275			      <MBUS_ID(0x01, 0x5f) 0 0xffffffff>, /* CS5 */
276			      <MBUS_ID(0x01, 0x9f) 0 0xffffffff>, /* CS6 */
277			      <MBUS_ID(0x01, 0xdf) 0 0xffffffff>; /* CS7 */
278			#address-cells = <1>;
279			#size-cells = <0>;
280			cell-index = <0>;
281			interrupts = <30>;
282			clocks = <&coreclk 0>;
283			status = "disabled";
284		};
285
286		spi1: spi@10680 {
287			reg = <MBUS_ID(0xf0, 0x01) 0x10680 0x28>, /* control */
288			      <MBUS_ID(0x01, 0x1a) 0 0xffffffff>, /* CS0 */
289			      <MBUS_ID(0x01, 0x5a) 0 0xffffffff>, /* CS1 */
290			      <MBUS_ID(0x01, 0x9a) 0 0xffffffff>, /* CS2 */
291			      <MBUS_ID(0x01, 0xda) 0 0xffffffff>, /* CS3 */
292			      <MBUS_ID(0x01, 0x1b) 0 0xffffffff>, /* CS4 */
293			      <MBUS_ID(0x01, 0x5b) 0 0xffffffff>, /* CS5 */
294			      <MBUS_ID(0x01, 0x9b) 0 0xffffffff>, /* CS6 */
295			      <MBUS_ID(0x01, 0xdb) 0 0xffffffff>; /* CS7 */
296			#address-cells = <1>;
297			#size-cells = <0>;
298			cell-index = <1>;
299			interrupts = <92>;
300			clocks = <&coreclk 0>;
301			status = "disabled";
302		};
303	};
304
305	clocks {
306		/* 2 GHz fixed main PLL */
307		mainpll: mainpll {
308			compatible = "fixed-clock";
309			#clock-cells = <0>;
310			clock-frequency = <2000000000>;
311		};
312	};
313 };
v4.6
 
  1/*
  2 * Device Tree Include file for Marvell Armada 370 and Armada XP SoC
  3 *
  4 * Copyright (C) 2012 Marvell
  5 *
  6 * Lior Amsalem <alior@marvell.com>
  7 * Gregory CLEMENT <gregory.clement@free-electrons.com>
  8 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  9 * Ben Dooks <ben.dooks@codethink.co.uk>
 10 *
 11 * This file is dual-licensed: you can use it either under the terms
 12 * of the GPL or the X11 license, at your option. Note that this dual
 13 * licensing only applies to this file, and not this project as a
 14 * whole.
 15 *
 16 *  a) This file is free software; you can redistribute it and/or
 17 *     modify it under the terms of the GNU General Public License as
 18 *     published by the Free Software Foundation; either version 2 of the
 19 *     License, or (at your option) any later version.
 20 *
 21 *     This file is distributed in the hope that it will be useful
 22 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 23 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 24 *     GNU General Public License for more details.
 25 *
 26 * Or, alternatively
 27 *
 28 *  b) Permission is hereby granted, free of charge, to any person
 29 *     obtaining a copy of this software and associated documentation
 30 *     files (the "Software"), to deal in the Software without
 31 *     restriction, including without limitation the rights to use
 32 *     copy, modify, merge, publish, distribute, sublicense, and/or
 33 *     sell copies of the Software, and to permit persons to whom the
 34 *     Software is furnished to do so, subject to the following
 35 *     conditions:
 36 *
 37 *     The above copyright notice and this permission notice shall be
 38 *     included in all copies or substantial portions of the Software.
 39 *
 40 *     THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND
 41 *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 42 *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 43 *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 44 *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY
 45 *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 46 *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 47 *     OTHER DEALINGS IN THE SOFTWARE.
 48 *
 49 * This file contains the definitions that are common to the Armada
 50 * 370 and Armada XP SoC.
 51 */
 52
 53/include/ "skeleton64.dtsi"
 54
 55#define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16))
 56
 57/ {
 58	model = "Marvell Armada 370 and XP SoC";
 59	compatible = "marvell,armada-370-xp";
 60
 61	aliases {
 62		serial0 = &uart0;
 63		serial1 = &uart1;
 64	};
 65
 66	cpus {
 67		#address-cells = <1>;
 68		#size-cells = <0>;
 69		cpu@0 {
 70			compatible = "marvell,sheeva-v7";
 71			device_type = "cpu";
 72			reg = <0>;
 73		};
 74	};
 75
 76	pmu {
 77		compatible = "arm,cortex-a9-pmu";
 78		interrupts-extended = <&mpic 3>;
 79	};
 80
 81	soc {
 82		#address-cells = <2>;
 83		#size-cells = <1>;
 84		controller = <&mbusc>;
 85		interrupt-parent = <&mpic>;
 86		pcie-mem-aperture = <0xf8000000 0x7e00000>;
 87		pcie-io-aperture  = <0xffe00000 0x100000>;
 88
 89		devbus-bootcs {
 90			compatible = "marvell,mvebu-devbus";
 91			reg = <MBUS_ID(0xf0, 0x01) 0x10400 0x8>;
 92			ranges = <0 MBUS_ID(0x01, 0x2f) 0 0xffffffff>;
 93			#address-cells = <1>;
 94			#size-cells = <1>;
 95			clocks = <&coreclk 0>;
 96			status = "disabled";
 97		};
 98
 99		devbus-cs0 {
100			compatible = "marvell,mvebu-devbus";
101			reg = <MBUS_ID(0xf0, 0x01) 0x10408 0x8>;
102			ranges = <0 MBUS_ID(0x01, 0x3e) 0 0xffffffff>;
103			#address-cells = <1>;
104			#size-cells = <1>;
105			clocks = <&coreclk 0>;
106			status = "disabled";
107		};
108
109		devbus-cs1 {
110			compatible = "marvell,mvebu-devbus";
111			reg = <MBUS_ID(0xf0, 0x01) 0x10410 0x8>;
112			ranges = <0 MBUS_ID(0x01, 0x3d) 0 0xffffffff>;
113			#address-cells = <1>;
114			#size-cells = <1>;
115			clocks = <&coreclk 0>;
116			status = "disabled";
117		};
118
119		devbus-cs2 {
120			compatible = "marvell,mvebu-devbus";
121			reg = <MBUS_ID(0xf0, 0x01) 0x10418 0x8>;
122			ranges = <0 MBUS_ID(0x01, 0x3b) 0 0xffffffff>;
123			#address-cells = <1>;
124			#size-cells = <1>;
125			clocks = <&coreclk 0>;
126			status = "disabled";
127		};
128
129		devbus-cs3 {
130			compatible = "marvell,mvebu-devbus";
131			reg = <MBUS_ID(0xf0, 0x01) 0x10420 0x8>;
132			ranges = <0 MBUS_ID(0x01, 0x37) 0 0xffffffff>;
133			#address-cells = <1>;
134			#size-cells = <1>;
135			clocks = <&coreclk 0>;
136			status = "disabled";
137		};
138
139		internal-regs {
140			compatible = "simple-bus";
141			#address-cells = <1>;
142			#size-cells = <1>;
143			ranges = <0 MBUS_ID(0xf0, 0x01) 0 0x100000>;
144
145			rtc@10300 {
146				compatible = "marvell,orion-rtc";
147				reg = <0x10300 0x20>;
148				interrupts = <50>;
149			};
150
151			spi0: spi@10600 {
152				reg = <0x10600 0x28>;
153				#address-cells = <1>;
154				#size-cells = <0>;
155				cell-index = <0>;
156				interrupts = <30>;
157				clocks = <&coreclk 0>;
158				status = "disabled";
159			};
160
161			spi1: spi@10680 {
162				reg = <0x10680 0x28>;
163				#address-cells = <1>;
164				#size-cells = <0>;
165				cell-index = <1>;
166				interrupts = <92>;
167				clocks = <&coreclk 0>;
168				status = "disabled";
169			};
170
171			i2c0: i2c@11000 {
172				compatible = "marvell,mv64xxx-i2c";
173				#address-cells = <1>;
174				#size-cells = <0>;
175				interrupts = <31>;
176				timeout-ms = <1000>;
177				clocks = <&coreclk 0>;
178				status = "disabled";
179			};
180
181			i2c1: i2c@11100 {
182				compatible = "marvell,mv64xxx-i2c";
183				#address-cells = <1>;
184				#size-cells = <0>;
185				interrupts = <32>;
186				timeout-ms = <1000>;
187				clocks = <&coreclk 0>;
188				status = "disabled";
189			};
190
191			uart0: serial@12000 {
192				compatible = "snps,dw-apb-uart";
193				reg = <0x12000 0x100>;
194				reg-shift = <2>;
195				interrupts = <41>;
196				reg-io-width = <1>;
197				clocks = <&coreclk 0>;
198				status = "disabled";
199			};
200
201			uart1: serial@12100 {
202				compatible = "snps,dw-apb-uart";
203				reg = <0x12100 0x100>;
204				reg-shift = <2>;
205				interrupts = <42>;
206				reg-io-width = <1>;
207				clocks = <&coreclk 0>;
208				status = "disabled";
209			};
210
211			pinctrl: pin-ctrl@18000 {
212				reg = <0x18000 0x38>;
213			};
214
215			coredivclk: corediv-clock@18740 {
216				compatible = "marvell,armada-370-corediv-clock";
217				reg = <0x18740 0xc>;
218				#clock-cells = <1>;
219				clocks = <&mainpll>;
220				clock-output-names = "nand";
221			};
222
223			mbusc: mbus-controller@20000 {
224				compatible = "marvell,mbus-controller";
225				reg = <0x20000 0x100>, <0x20180 0x20>,
226				      <0x20250 0x8>;
227			};
228
229			mpic: interrupt-controller@20a00 {
230				compatible = "marvell,mpic";
231				#interrupt-cells = <1>;
232				#size-cells = <1>;
233				interrupt-controller;
234				msi-controller;
235			};
236
237			coherency-fabric@20200 {
238				compatible = "marvell,coherency-fabric";
239				reg = <0x20200 0xb0>, <0x21010 0x1c>;
240			};
241
242			timer@20300 {
243				reg = <0x20300 0x30>, <0x21040 0x30>;
244				interrupts = <37>, <38>, <39>, <40>, <5>, <6>;
245			};
246
247			watchdog@20300 {
248				reg = <0x20300 0x34>, <0x20704 0x4>;
249			};
250
251			pmsu@22000 {
 
 
 
 
 
252				compatible = "marvell,armada-370-pmsu";
253				reg = <0x22000 0x1000>;
254			};
255
256			usb@50000 {
257				compatible = "marvell,orion-ehci";
258				reg = <0x50000 0x500>;
259				interrupts = <45>;
260				status = "disabled";
261			};
262
263			usb@51000 {
264				compatible = "marvell,orion-ehci";
265				reg = <0x51000 0x500>;
266				interrupts = <46>;
267				status = "disabled";
268			};
269
270			eth0: ethernet@70000 {
271				reg = <0x70000 0x4000>;
272				interrupts = <8>;
273				clocks = <&gateclk 4>;
274				status = "disabled";
275			};
276
277			mdio: mdio {
278				#address-cells = <1>;
279				#size-cells = <0>;
280				compatible = "marvell,orion-mdio";
281				reg = <0x72004 0x4>;
282				clocks = <&gateclk 4>;
283			};
284
285			eth1: ethernet@74000 {
286				reg = <0x74000 0x4000>;
287				interrupts = <10>;
288				clocks = <&gateclk 3>;
289				status = "disabled";
290			};
291
292			sata@a0000 {
293				compatible = "marvell,armada-370-sata";
294				reg = <0xa0000 0x5000>;
295				interrupts = <55>;
296				clocks = <&gateclk 15>, <&gateclk 30>;
297				clock-names = "0", "1";
298				status = "disabled";
299			};
300
301			nand@d0000 {
302				compatible = "marvell,armada370-nand";
303				reg = <0xd0000 0x54>;
304				#address-cells = <1>;
305				#size-cells = <1>;
306				interrupts = <113>;
307				clocks = <&coredivclk 0>;
308				status = "disabled";
309			};
310
311			mvsdio@d4000 {
312				compatible = "marvell,orion-sdio";
313				reg = <0xd4000 0x200>;
314				interrupts = <54>;
315				clocks = <&gateclk 17>;
316				bus-width = <4>;
317				cap-sdio-irq;
318				cap-sd-highspeed;
319				cap-mmc-highspeed;
320				status = "disabled";
321			};
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
322		};
323	};
324
325	clocks {
326		/* 2 GHz fixed main PLL */
327		mainpll: mainpll {
328			compatible = "fixed-clock";
329			#clock-cells = <0>;
330			clock-frequency = <2000000000>;
331		};
332	};
333 };