Linux Audio

Check our new training course

Loading...
v4.17
 
  1/*
  2 * Copyright 2014 Carlo Caione <carlo@caione.org>
  3 *
  4 * This file is dual-licensed: you can use it either under the terms
  5 * of the GPL or the X11 license, at your option. Note that this dual
  6 * licensing only applies to this file, and not this project as a
  7 * whole.
  8 *
  9 *  a) This library is free software; you can redistribute it and/or
 10 *     modify it under the terms of the GNU General Public License as
 11 *     published by the Free Software Foundation; either version 2 of the
 12 *     License, or (at your option) any later version.
 13 *
 14 *     This library is distributed in the hope that it will be useful,
 15 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 16 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 17 *     GNU General Public License for more details.
 18 *
 19 *     You should have received a copy of the GNU General Public
 20 *     License along with this library; if not, write to the Free
 21 *     Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
 22 *     MA 02110-1301 USA
 23 *
 24 * Or, alternatively,
 25 *
 26 *  b) Permission is hereby granted, free of charge, to any person
 27 *     obtaining a copy of this software and associated documentation
 28 *     files (the "Software"), to deal in the Software without
 29 *     restriction, including without limitation the rights to use,
 30 *     copy, modify, merge, publish, distribute, sublicense, and/or
 31 *     sell copies of the Software, and to permit persons to whom the
 32 *     Software is furnished to do so, subject to the following
 33 *     conditions:
 34 *
 35 *     The above copyright notice and this permission notice shall be
 36 *     included in all copies or substantial portions of the Software.
 37 *
 38 *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 39 *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 40 *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 41 *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 42 *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 43 *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 44 *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 45 *     OTHER DEALINGS IN THE SOFTWARE.
 46 */
 47
 48#include <dt-bindings/interrupt-controller/irq.h>
 49#include <dt-bindings/interrupt-controller/arm-gic.h>
 50/include/ "skeleton.dtsi"
 51
 52/ {
 
 
 53	interrupt-parent = <&gic>;
 54
 55	L2: l2-cache-controller@c4200000 {
 56		compatible = "arm,pl310-cache";
 57		reg = <0xc4200000 0x1000>;
 58		cache-unified;
 59		cache-level = <2>;
 60	};
 61
 62	gic: interrupt-controller@c4301000 {
 63		compatible = "arm,cortex-a9-gic";
 64		reg = <0xc4301000 0x1000>,
 65		      <0xc4300100 0x0100>;
 66		interrupt-controller;
 67		#interrupt-cells = <3>;
 68	};
 69
 70	soc {
 71		compatible = "simple-bus";
 72		#address-cells = <1>;
 73		#size-cells = <1>;
 74		ranges;
 75
 76		cbus: cbus@c1100000 {
 77			compatible = "simple-bus";
 78			reg = <0xc1100000 0x200000>;
 79			#address-cells = <1>;
 80			#size-cells = <1>;
 81			ranges = <0x0 0xc1100000 0x200000>;
 82
 
 
 
 
 
 
 
 83			assist: assist@7c00 {
 84				compatible = "amlogic,meson-mx-assist", "syscon";
 85				reg = <0x7c00 0x200>;
 86			};
 87
 88			hwrng: rng@8100 {
 89				compatible = "amlogic,meson-rng";
 90				reg = <0x8100 0x8>;
 91			};
 92
 93			uart_A: serial@84c0 {
 94				compatible = "amlogic,meson6-uart", "amlogic,meson-uart";
 95				reg = <0x84c0 0x18>;
 96				interrupts = <GIC_SPI 26 IRQ_TYPE_EDGE_RISING>;
 97				status = "disabled";
 98			};
 99
100			uart_B: serial@84dc {
101				compatible = "amlogic,meson6-uart", "amlogic,meson-uart";
102				reg = <0x84dc 0x18>;
103				interrupts = <GIC_SPI 75 IRQ_TYPE_EDGE_RISING>;
104				status = "disabled";
105			};
106
107			i2c_A: i2c@8500 {
108				compatible = "amlogic,meson6-i2c";
109				reg = <0x8500 0x20>;
110				interrupts = <GIC_SPI 21 IRQ_TYPE_EDGE_RISING>;
111				#address-cells = <1>;
112				#size-cells = <0>;
113				status = "disabled";
114			};
115
116			pwm_ab: pwm@8550 {
117				compatible = "amlogic,meson-pwm";
118				reg = <0x8550 0x10>;
119				#pwm-cells = <3>;
120				status = "disabled";
121			};
122
123			pwm_cd: pwm@8650 {
124				compatible = "amlogic,meson-pwm";
125				reg = <0x8650 0x10>;
126				#pwm-cells = <3>;
127				status = "disabled";
128			};
129
130			saradc: adc@8680 {
131				compatible = "amlogic,meson-saradc";
132				reg = <0x8680 0x34>;
133				#io-channel-cells = <1>;
134				interrupts = <GIC_SPI 73 IRQ_TYPE_EDGE_RISING>;
135				status = "disabled";
136			};
137
138			uart_C: serial@8700 {
139				compatible = "amlogic,meson6-uart", "amlogic,meson-uart";
140				reg = <0x8700 0x18>;
141				interrupts = <GIC_SPI 93 IRQ_TYPE_EDGE_RISING>;
142				status = "disabled";
143			};
144
145			i2c_B: i2c@87c0 {
146				compatible = "amlogic,meson6-i2c";
147				reg = <0x87c0 0x20>;
148				interrupts = <GIC_SPI 128 IRQ_TYPE_EDGE_RISING>;
149				#address-cells = <1>;
150				#size-cells = <0>;
151				status = "disabled";
152			};
153
154			usb0_phy: phy@8800 {
155				compatible = "amlogic,meson-mx-usb2-phy";
156				#phy-cells = <0>;
157				reg = <0x8800 0x20>;
158				status = "disabled";
159			};
160
161			usb1_phy: phy@8820 {
162				compatible = "amlogic,meson-mx-usb2-phy";
163				#phy-cells = <0>;
164				reg = <0x8820 0x20>;
165				status = "disabled";
166			};
167
168			sdio: mmc@8c20 {
169				compatible = "amlogic,meson-mx-sdio";
170				reg = <0x8c20 0x20>;
171				interrupts = <GIC_SPI 28 IRQ_TYPE_EDGE_RISING>;
172				#address-cells = <1>;
173				#size-cells = <0>;
174				status = "disabled";
175			};
176
177			spifc: spi@8c80 {
178				compatible = "amlogic,meson6-spifc";
179				reg = <0x8c80 0x80>;
180				#address-cells = <1>;
181				#size-cells = <0>;
182				status = "disabled";
183			};
184
185			gpio_intc: interrupt-controller@9880 {
186				compatible = "amlogic,meson-gpio-intc";
187				reg = <0x9880 0x10>;
188				interrupt-controller;
189				#interrupt-cells = <2>;
190				amlogic,channel-interrupts = <64 65 66 67 68 69 70 71>;
191				status = "disabled";
192			};
193
194			wdt: watchdog@9900 {
195				compatible = "amlogic,meson6-wdt";
196				reg = <0x9900 0x8>;
197				interrupts = <GIC_SPI 0 IRQ_TYPE_EDGE_RISING>;
198			};
199
200			timer@9940 {
201				compatible = "amlogic,meson6-timer";
202				reg = <0x9940 0x18>;
203				interrupts = <GIC_SPI 10 IRQ_TYPE_EDGE_RISING>;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
204			};
205		};
206
207		aobus: aobus@c8100000 {
208			compatible = "simple-bus";
209			reg = <0xc8100000 0x100000>;
210			#address-cells = <1>;
211			#size-cells = <1>;
212			ranges = <0x0 0xc8100000 0x100000>;
213
214			ir_receiver: ir-receiver@480 {
215				compatible= "amlogic,meson6-ir";
216				reg = <0x480 0x20>;
217				interrupts = <GIC_SPI 15 IRQ_TYPE_EDGE_RISING>;
218				status = "disabled";
219			};
220
221			uart_AO: serial@4c0 {
222				compatible = "amlogic,meson6-uart", "amlogic,meson-ao-uart", "amlogic,meson-uart";
223				reg = <0x4c0 0x18>;
224				interrupts = <GIC_SPI 90 IRQ_TYPE_EDGE_RISING>;
225				status = "disabled";
226			};
227
228			i2c_AO: i2c@500 {
229				compatible = "amlogic,meson6-i2c";
230				reg = <0x500 0x20>;
231				interrupts = <GIC_SPI 92 IRQ_TYPE_EDGE_RISING>;
232				#address-cells = <1>;
233				#size-cells = <0>;
234				status = "disabled";
235			};
 
 
 
 
 
 
 
 
 
236		};
237
238		usb0: usb@c9040000 {
239			compatible = "snps,dwc2";
240			#address-cells = <1>;
241			#size-cells = <0>;
242			reg = <0xc9040000 0x40000>;
243			interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
244			phys = <&usb0_phy>;
245			phy-names = "usb2-phy";
246			dr_mode = "host";
247			status = "disabled";
248		};
249
250		usb1: usb@c90c0000 {
251			compatible = "snps,dwc2";
252			#address-cells = <1>;
253			#size-cells = <0>;
254			reg = <0xc90c0000 0x40000>;
255			interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
256			phys = <&usb1_phy>;
257			phy-names = "usb2-phy";
258			dr_mode = "host";
259			status = "disabled";
260		};
261
262		ethmac: ethernet@c9410000 {
263			compatible = "amlogic,meson6-dwmac", "snps,dwmac";
264			reg = <0xc9410000 0x10000
265			       0xc1108108 0x4>;
266			interrupts = <GIC_SPI 8 IRQ_TYPE_EDGE_RISING>;
267			interrupt-names = "macirq";
268			status = "disabled";
269		};
270
271		ahb_sram: sram@d9000000 {
272			compatible = "mmio-sram";
273			reg = <0xd9000000 0x20000>;
274			#address-cells = <1>;
275			#size-cells = <1>;
276			ranges = <0 0xd9000000 0x20000>;
277		};
278
279		bootrom: bootrom@d9040000 {
280			compatible = "amlogic,meson-mx-bootrom", "syscon";
281			reg = <0xd9040000 0x10000>;
282		};
283
284		secbus: secbus@da000000 {
285			compatible = "simple-bus";
286			reg = <0xda000000 0x6000>;
287			#address-cells = <1>;
288			#size-cells = <1>;
289			ranges = <0x0 0xda000000 0x6000>;
290
291			efuse: nvmem@0 {
292				compatible = "amlogic,meson6-efuse";
293				reg = <0x0 0x2000>;
294				#address-cells = <1>;
295				#size-cells = <1>;
296			};
297		};
298	};
299}; /* end of / */
v5.4
  1// SPDX-License-Identifier: GPL-2.0 OR MIT
  2/*
  3 * Copyright 2014 Carlo Caione <carlo@caione.org>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  4 */
  5
  6#include <dt-bindings/interrupt-controller/irq.h>
  7#include <dt-bindings/interrupt-controller/arm-gic.h>
 
  8
  9/ {
 10	#address-cells = <1>;
 11	#size-cells = <1>;
 12	interrupt-parent = <&gic>;
 13
 14	L2: l2-cache-controller@c4200000 {
 15		compatible = "arm,pl310-cache";
 16		reg = <0xc4200000 0x1000>;
 17		cache-unified;
 18		cache-level = <2>;
 19	};
 20
 
 
 
 
 
 
 
 
 21	soc {
 22		compatible = "simple-bus";
 23		#address-cells = <1>;
 24		#size-cells = <1>;
 25		ranges;
 26
 27		cbus: cbus@c1100000 {
 28			compatible = "simple-bus";
 29			reg = <0xc1100000 0x200000>;
 30			#address-cells = <1>;
 31			#size-cells = <1>;
 32			ranges = <0x0 0xc1100000 0x200000>;
 33
 34			hhi: system-controller@4000 {
 35				compatible = "amlogic,meson-hhi-sysctrl",
 36					     "simple-mfd",
 37					     "syscon";
 38				reg = <0x4000 0x400>;
 39			};
 40
 41			assist: assist@7c00 {
 42				compatible = "amlogic,meson-mx-assist", "syscon";
 43				reg = <0x7c00 0x200>;
 44			};
 45
 46			hwrng: rng@8100 {
 47				compatible = "amlogic,meson-rng";
 48				reg = <0x8100 0x8>;
 49			};
 50
 51			uart_A: serial@84c0 {
 52				compatible = "amlogic,meson6-uart", "amlogic,meson-uart";
 53				reg = <0x84c0 0x18>;
 54				interrupts = <GIC_SPI 26 IRQ_TYPE_EDGE_RISING>;
 55				status = "disabled";
 56			};
 57
 58			uart_B: serial@84dc {
 59				compatible = "amlogic,meson6-uart", "amlogic,meson-uart";
 60				reg = <0x84dc 0x18>;
 61				interrupts = <GIC_SPI 75 IRQ_TYPE_EDGE_RISING>;
 62				status = "disabled";
 63			};
 64
 65			i2c_A: i2c@8500 {
 66				compatible = "amlogic,meson6-i2c";
 67				reg = <0x8500 0x20>;
 68				interrupts = <GIC_SPI 21 IRQ_TYPE_EDGE_RISING>;
 69				#address-cells = <1>;
 70				#size-cells = <0>;
 71				status = "disabled";
 72			};
 73
 74			pwm_ab: pwm@8550 {
 75				compatible = "amlogic,meson-pwm";
 76				reg = <0x8550 0x10>;
 77				#pwm-cells = <3>;
 78				status = "disabled";
 79			};
 80
 81			pwm_cd: pwm@8650 {
 82				compatible = "amlogic,meson-pwm";
 83				reg = <0x8650 0x10>;
 84				#pwm-cells = <3>;
 85				status = "disabled";
 86			};
 87
 88			saradc: adc@8680 {
 89				compatible = "amlogic,meson-saradc";
 90				reg = <0x8680 0x34>;
 91				#io-channel-cells = <1>;
 92				interrupts = <GIC_SPI 73 IRQ_TYPE_EDGE_RISING>;
 93				status = "disabled";
 94			};
 95
 96			uart_C: serial@8700 {
 97				compatible = "amlogic,meson6-uart", "amlogic,meson-uart";
 98				reg = <0x8700 0x18>;
 99				interrupts = <GIC_SPI 93 IRQ_TYPE_EDGE_RISING>;
100				status = "disabled";
101			};
102
103			i2c_B: i2c@87c0 {
104				compatible = "amlogic,meson6-i2c";
105				reg = <0x87c0 0x20>;
106				interrupts = <GIC_SPI 128 IRQ_TYPE_EDGE_RISING>;
107				#address-cells = <1>;
108				#size-cells = <0>;
109				status = "disabled";
110			};
111
112			usb0_phy: phy@8800 {
113				compatible = "amlogic,meson-mx-usb2-phy";
114				#phy-cells = <0>;
115				reg = <0x8800 0x20>;
116				status = "disabled";
117			};
118
119			usb1_phy: phy@8820 {
120				compatible = "amlogic,meson-mx-usb2-phy";
121				#phy-cells = <0>;
122				reg = <0x8820 0x20>;
123				status = "disabled";
124			};
125
126			sdio: mmc@8c20 {
127				compatible = "amlogic,meson-mx-sdio";
128				reg = <0x8c20 0x20>;
129				interrupts = <GIC_SPI 28 IRQ_TYPE_EDGE_RISING>;
130				#address-cells = <1>;
131				#size-cells = <0>;
132				status = "disabled";
133			};
134
135			spifc: spi@8c80 {
136				compatible = "amlogic,meson6-spifc";
137				reg = <0x8c80 0x80>;
138				#address-cells = <1>;
139				#size-cells = <0>;
140				status = "disabled";
141			};
142
143			gpio_intc: interrupt-controller@9880 {
144				compatible = "amlogic,meson-gpio-intc";
145				reg = <0x9880 0x10>;
146				interrupt-controller;
147				#interrupt-cells = <2>;
148				amlogic,channel-interrupts = <64 65 66 67 68 69 70 71>;
149				status = "disabled";
150			};
151
152			wdt: watchdog@9900 {
153				compatible = "amlogic,meson6-wdt";
154				reg = <0x9900 0x8>;
155				interrupts = <GIC_SPI 0 IRQ_TYPE_EDGE_RISING>;
156			};
157
158			timer_abcde: timer@9940 {
159				compatible = "amlogic,meson6-timer";
160				reg = <0x9940 0x18>;
161				interrupts = <GIC_SPI 10 IRQ_TYPE_EDGE_RISING>,
162					     <GIC_SPI 11 IRQ_TYPE_EDGE_RISING>,
163					     <GIC_SPI 6 IRQ_TYPE_EDGE_RISING>,
164					     <GIC_SPI 29 IRQ_TYPE_EDGE_RISING>;
165			};
166		};
167
168		periph: bus@c4300000 {
169			compatible = "simple-bus";
170			reg = <0xc4300000 0x10000>;
171			#address-cells = <1>;
172			#size-cells = <1>;
173			ranges = <0x0 0xc4300000 0x10000>;
174
175			gic: interrupt-controller@1000 {
176				compatible = "arm,cortex-a9-gic";
177				reg = <0x1000 0x1000>,
178				      <0x100 0x100>;
179				interrupt-controller;
180				#interrupt-cells = <3>;
181			};
182		};
183
184		aobus: aobus@c8100000 {
185			compatible = "simple-bus";
186			reg = <0xc8100000 0x100000>;
187			#address-cells = <1>;
188			#size-cells = <1>;
189			ranges = <0x0 0xc8100000 0x100000>;
190
191			ir_receiver: ir-receiver@480 {
192				compatible= "amlogic,meson6-ir";
193				reg = <0x480 0x20>;
194				interrupts = <GIC_SPI 15 IRQ_TYPE_EDGE_RISING>;
195				status = "disabled";
196			};
197
198			uart_AO: serial@4c0 {
199				compatible = "amlogic,meson6-uart", "amlogic,meson-ao-uart", "amlogic,meson-uart";
200				reg = <0x4c0 0x18>;
201				interrupts = <GIC_SPI 90 IRQ_TYPE_EDGE_RISING>;
202				status = "disabled";
203			};
204
205			i2c_AO: i2c@500 {
206				compatible = "amlogic,meson6-i2c";
207				reg = <0x500 0x20>;
208				interrupts = <GIC_SPI 92 IRQ_TYPE_EDGE_RISING>;
209				#address-cells = <1>;
210				#size-cells = <0>;
211				status = "disabled";
212			};
213
214			rtc: rtc@740 {
215				compatible = "amlogic,meson6-rtc";
216				reg = <0x740 0x14>;
217				interrupts = <GIC_SPI 72 IRQ_TYPE_EDGE_RISING>;
218				#address-cells = <1>;
219				#size-cells = <1>;
220				status = "disabled";
221			};
222		};
223
224		usb0: usb@c9040000 {
225			compatible = "snps,dwc2";
226			#address-cells = <1>;
227			#size-cells = <0>;
228			reg = <0xc9040000 0x40000>;
229			interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
230			phys = <&usb0_phy>;
231			phy-names = "usb2-phy";
232			dr_mode = "host";
233			status = "disabled";
234		};
235
236		usb1: usb@c90c0000 {
237			compatible = "snps,dwc2";
238			#address-cells = <1>;
239			#size-cells = <0>;
240			reg = <0xc90c0000 0x40000>;
241			interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
242			phys = <&usb1_phy>;
243			phy-names = "usb2-phy";
244			dr_mode = "host";
245			status = "disabled";
246		};
247
248		ethmac: ethernet@c9410000 {
249			compatible = "amlogic,meson6-dwmac", "snps,dwmac";
250			reg = <0xc9410000 0x10000
251			       0xc1108108 0x4>;
252			interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
253			interrupt-names = "macirq";
254			status = "disabled";
255		};
256
257		ahb_sram: sram@d9000000 {
258			compatible = "mmio-sram";
259			reg = <0xd9000000 0x20000>;
260			#address-cells = <1>;
261			#size-cells = <1>;
262			ranges = <0 0xd9000000 0x20000>;
263		};
264
265		bootrom: bootrom@d9040000 {
266			compatible = "amlogic,meson-mx-bootrom", "syscon";
267			reg = <0xd9040000 0x10000>;
268		};
269
270		secbus: secbus@da000000 {
271			compatible = "simple-bus";
272			reg = <0xda000000 0x6000>;
273			#address-cells = <1>;
274			#size-cells = <1>;
275			ranges = <0x0 0xda000000 0x6000>;
276
277			efuse: nvmem@0 {
278				compatible = "amlogic,meson6-efuse";
279				reg = <0x0 0x2000>;
280				#address-cells = <1>;
281				#size-cells = <1>;
282			};
283		};
284	};
285}; /* end of / */