Linux Audio

Check our new training course

Linux kernel drivers training

Mar 31-Apr 9, 2025, special US time zones
Register
Loading...
v5.14.15
  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	iio-hwmon {
 15		compatible = "iio-hwmon";
 16		io-channels = <&saradc 8>;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 17	};
 18
 19	soc {
 20		compatible = "simple-bus";
 21		#address-cells = <1>;
 22		#size-cells = <1>;
 23		ranges;
 24
 25		cbus: cbus@c1100000 {
 26			compatible = "simple-bus";
 27			reg = <0xc1100000 0x200000>;
 28			#address-cells = <1>;
 29			#size-cells = <1>;
 30			ranges = <0x0 0xc1100000 0x200000>;
 31
 32			hhi: system-controller@4000 {
 33				compatible = "amlogic,meson-hhi-sysctrl",
 34					     "simple-mfd",
 35					     "syscon";
 36				reg = <0x4000 0x400>;
 37			};
 38
 39			assist: assist@7c00 {
 40				compatible = "amlogic,meson-mx-assist", "syscon";
 41				reg = <0x7c00 0x200>;
 42			};
 43
 44			hwrng: rng@8100 {
 45				compatible = "amlogic,meson-rng";
 46				reg = <0x8100 0x8>;
 47			};
 48
 49			uart_A: serial@84c0 {
 50				compatible = "amlogic,meson6-uart", "amlogic,meson-uart";
 51				reg = <0x84c0 0x18>;
 52				interrupts = <GIC_SPI 26 IRQ_TYPE_EDGE_RISING>;
 53				fifo-size = <128>;
 54				status = "disabled";
 55			};
 56
 57			uart_B: serial@84dc {
 58				compatible = "amlogic,meson6-uart", "amlogic,meson-uart";
 59				reg = <0x84dc 0x18>;
 60				interrupts = <GIC_SPI 75 IRQ_TYPE_EDGE_RISING>;
 61				status = "disabled";
 62			};
 63
 64			i2c_A: i2c@8500 {
 65				compatible = "amlogic,meson6-i2c";
 66				reg = <0x8500 0x20>;
 67				interrupts = <GIC_SPI 21 IRQ_TYPE_EDGE_RISING>;
 68				#address-cells = <1>;
 69				#size-cells = <0>;
 70				status = "disabled";
 71			};
 72
 73			pwm_ab: pwm@8550 {
 74				compatible = "amlogic,meson-pwm";
 75				reg = <0x8550 0x10>;
 76				#pwm-cells = <3>;
 77				status = "disabled";
 78			};
 79
 80			pwm_cd: pwm@8650 {
 81				compatible = "amlogic,meson-pwm";
 82				reg = <0x8650 0x10>;
 83				#pwm-cells = <3>;
 84				status = "disabled";
 85			};
 86
 87			saradc: adc@8680 {
 88				compatible = "amlogic,meson-saradc";
 89				reg = <0x8680 0x34>;
 90				#io-channel-cells = <1>;
 91				interrupts = <GIC_SPI 73 IRQ_TYPE_EDGE_RISING>;
 92				status = "disabled";
 93			};
 94
 95			uart_C: serial@8700 {
 96				compatible = "amlogic,meson6-uart", "amlogic,meson-uart";
 97				reg = <0x8700 0x18>;
 98				interrupts = <GIC_SPI 93 IRQ_TYPE_EDGE_RISING>;
 99				status = "disabled";
100			};
101
102			i2c_B: i2c@87c0 {
103				compatible = "amlogic,meson6-i2c";
104				reg = <0x87c0 0x20>;
105				interrupts = <GIC_SPI 128 IRQ_TYPE_EDGE_RISING>;
106				#address-cells = <1>;
107				#size-cells = <0>;
108				status = "disabled";
109			};
110
111			usb0_phy: phy@8800 {
112				compatible = "amlogic,meson-mx-usb2-phy";
113				#phy-cells = <0>;
114				reg = <0x8800 0x20>;
115				status = "disabled";
116			};
117
118			usb1_phy: phy@8820 {
119				compatible = "amlogic,meson-mx-usb2-phy";
120				#phy-cells = <0>;
121				reg = <0x8820 0x20>;
122				status = "disabled";
123			};
124
125			sdio: mmc@8c20 {
126				compatible = "amlogic,meson-mx-sdio";
127				reg = <0x8c20 0x20>;
128				interrupts = <GIC_SPI 28 IRQ_TYPE_EDGE_RISING>;
129				#address-cells = <1>;
130				#size-cells = <0>;
131				status = "disabled";
132			};
133
134			spifc: spi@8c80 {
135				compatible = "amlogic,meson6-spifc";
136				reg = <0x8c80 0x80>;
137				#address-cells = <1>;
138				#size-cells = <0>;
139				status = "disabled";
140			};
141
142			sdhc: mmc@8e00 {
143				compatible = "amlogic,meson-mx-sdhc";
144				reg = <0x8e00 0x42>;
145				interrupts = <GIC_SPI 78 IRQ_TYPE_EDGE_RISING>;
146				status = "disabled";
147			};
148
149			gpio_intc: interrupt-controller@9880 {
150				compatible = "amlogic,meson-gpio-intc";
151				reg = <0x9880 0x10>;
152				interrupt-controller;
153				#interrupt-cells = <2>;
154				amlogic,channel-interrupts = <64 65 66 67 68 69 70 71>;
155				status = "disabled";
156			};
157
158			wdt: watchdog@9900 {
159				compatible = "amlogic,meson6-wdt";
160				reg = <0x9900 0x8>;
161				interrupts = <GIC_SPI 0 IRQ_TYPE_EDGE_RISING>;
162			};
163
164			timer_abcde: timer@9940 {
165				compatible = "amlogic,meson6-timer";
166				reg = <0x9940 0x18>;
167				interrupts = <GIC_SPI 10 IRQ_TYPE_EDGE_RISING>,
168					     <GIC_SPI 11 IRQ_TYPE_EDGE_RISING>,
169					     <GIC_SPI 6 IRQ_TYPE_EDGE_RISING>,
170					     <GIC_SPI 29 IRQ_TYPE_EDGE_RISING>;
171			};
172		};
173
174		L2: cache-controller@c4200000 {
175			compatible = "arm,pl310-cache";
176			reg = <0xc4200000 0x1000>;
177			cache-unified;
178			cache-level = <2>;
179		};
180
181		periph: bus@c4300000 {
182			compatible = "simple-bus";
183			reg = <0xc4300000 0x10000>;
184			#address-cells = <1>;
185			#size-cells = <1>;
186			ranges = <0x0 0xc4300000 0x10000>;
187
188			gic: interrupt-controller@1000 {
189				compatible = "arm,cortex-a9-gic";
190				reg = <0x1000 0x1000>,
191				      <0x100 0x100>;
192				interrupt-controller;
193				#interrupt-cells = <3>;
194			};
195		};
196
197		aobus: aobus@c8100000 {
198			compatible = "simple-bus";
199			reg = <0xc8100000 0x100000>;
200			#address-cells = <1>;
201			#size-cells = <1>;
202			ranges = <0x0 0xc8100000 0x100000>;
 
203
204			ao_arc_rproc: remoteproc@1c {
205				compatible= "amlogic,meson-mx-ao-arc";
206				reg = <0x1c 0x8>, <0x38 0x8>;
207				reg-names = "remap", "cpu";
208				status = "disabled";
209			};
210
211			ir_receiver: ir-receiver@480 {
212				compatible= "amlogic,meson6-ir";
213				reg = <0x480 0x20>;
214				interrupts = <GIC_SPI 15 IRQ_TYPE_EDGE_RISING>;
215				status = "disabled";
216			};
217
218			uart_AO: serial@4c0 {
219				compatible = "amlogic,meson6-uart", "amlogic,meson-ao-uart", "amlogic,meson-uart";
220				reg = <0x4c0 0x18>;
221				interrupts = <GIC_SPI 90 IRQ_TYPE_EDGE_RISING>;
222				status = "disabled";
223			};
224
225			i2c_AO: i2c@500 {
226				compatible = "amlogic,meson6-i2c";
227				reg = <0x500 0x20>;
228				interrupts = <GIC_SPI 92 IRQ_TYPE_EDGE_RISING>;
229				#address-cells = <1>;
230				#size-cells = <0>;
231				status = "disabled";
232			};
233
234			rtc: rtc@740 {
235				compatible = "amlogic,meson6-rtc";
236				reg = <0x740 0x14>;
237				interrupts = <GIC_SPI 72 IRQ_TYPE_EDGE_RISING>;
238				#address-cells = <1>;
239				#size-cells = <1>;
240				status = "disabled";
241			};
242		};
243
244		usb0: usb@c9040000 {
245			compatible = "snps,dwc2";
246			#address-cells = <1>;
247			#size-cells = <0>;
248			reg = <0xc9040000 0x40000>;
249			interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
250			phys = <&usb0_phy>;
251			phy-names = "usb2-phy";
252			g-rx-fifo-size = <512>;
253			g-np-tx-fifo-size = <500>;
254			g-tx-fifo-size = <256 192 128 128 128>;
255			dr_mode = "host";
256			status = "disabled";
257		};
258
259		usb1: usb@c90c0000 {
260			compatible = "snps,dwc2";
 
 
 
261			#address-cells = <1>;
262			#size-cells = <0>;
263			reg = <0xc90c0000 0x40000>;
264			interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
265			phys = <&usb1_phy>;
266			phy-names = "usb2-phy";
267			dr_mode = "host";
268			status = "disabled";
269		};
270
271		ethmac: ethernet@c9410000 {
272			compatible = "amlogic,meson6-dwmac", "snps,dwmac";
273			reg = <0xc9410000 0x10000
274			       0xc1108108 0x4>;
275			interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
276			interrupt-names = "macirq";
 
277			status = "disabled";
278		};
279
280		ahb_sram: sram@d9000000 {
281			compatible = "mmio-sram";
282			reg = <0xd9000000 0x20000>;
 
 
283			#address-cells = <1>;
284			#size-cells = <1>;
285			ranges = <0 0xd9000000 0x20000>;
286		};
287
288		bootrom: bootrom@d9040000 {
289			compatible = "amlogic,meson-mx-bootrom", "syscon";
290			reg = <0xd9040000 0x10000>;
 
 
291		};
292
293		secbus: secbus@da000000 {
294			compatible = "simple-bus";
295			reg = <0xda000000 0x6000>;
296			#address-cells = <1>;
297			#size-cells = <1>;
298			ranges = <0x0 0xda000000 0x6000>;
299
300			efuse: nvmem@0 {
301				compatible = "amlogic,meson6-efuse";
302				reg = <0x0 0x2000>;
303				#address-cells = <1>;
304				#size-cells = <1>;
305			};
306		};
307	};
308
309	thermal_sensor: thermal-sensor {
310		compatible = "generic-adc-thermal";
311		#thermal-sensor-cells = <0>;
312		io-channels = <&saradc 8>;
313		io-channel-names = "sensor-channel";
314	};
315
316	xtal: xtal-clk {
317		compatible = "fixed-clock";
318		clock-frequency = <24000000>;
319		clock-output-names = "xtal";
320		#clock-cells = <0>;
321	};
322}; /* end of / */
v4.6
 
  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/ "skeleton.dtsi"
 
 49
 50/ {
 
 
 51	interrupt-parent = <&gic>;
 52
 53	L2: l2-cache-controller@c4200000 {
 54		compatible = "arm,pl310-cache";
 55		reg = <0xc4200000 0x1000>;
 56		cache-unified;
 57		cache-level = <2>;
 58	};
 59
 60	gic: interrupt-controller@c4301000 {
 61		compatible = "arm,cortex-a9-gic";
 62		reg = <0xc4301000 0x1000>,
 63		      <0xc4300100 0x0100>;
 64		interrupt-controller;
 65		#interrupt-cells = <3>;
 66	};
 67
 68	timer@c1109940 {
 69		compatible = "amlogic,meson6-timer";
 70		reg = <0xc1109940 0x18>;
 71		interrupts = <0 10 1>;
 72	};
 73
 74	soc {
 75		compatible = "simple-bus";
 76		#address-cells = <1>;
 77		#size-cells = <1>;
 78		ranges;
 79
 80		wdt: watchdog@c1109900 {
 81			compatible = "amlogic,meson6-wdt";
 82			reg = <0xc1109900 0x8>;
 83			interrupts = <0 0 1>;
 84		};
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 85
 86		uart_AO: serial@c81004c0 {
 87			compatible = "amlogic,meson-uart";
 88			reg = <0xc81004c0 0x18>;
 89			interrupts = <0 90 1>;
 90			clocks = <&clk81>;
 91			status = "disabled";
 
 92		};
 93
 94		uart_A: serial@c11084c0 {
 95			compatible = "amlogic,meson-uart";
 96			reg = <0xc11084c0 0x18>;
 97			interrupts = <0 26 1>;
 98			clocks = <&clk81>;
 99			status = "disabled";
100		};
101
102		uart_B: serial@c11084dc {
103			compatible = "amlogic,meson-uart";
104			reg = <0xc11084dc 0x18>;
105			interrupts = <0 75 1>;
106			clocks = <&clk81>;
107			status = "disabled";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
108		};
109
110		uart_C: serial@c1108700 {
111			compatible = "amlogic,meson-uart";
112			reg = <0xc1108700 0x18>;
113			interrupts = <0 93 1>;
114			clocks = <&clk81>;
 
 
 
 
 
 
 
115			status = "disabled";
116		};
117
118		i2c_AO: i2c@c8100500 {
119			compatible = "amlogic,meson6-i2c";
120			reg = <0xc8100500 0x20>;
121			interrupts = <0 92 1>;
122			clocks = <&clk81>;
123			#address-cells = <1>;
124			#size-cells = <0>;
 
 
 
 
 
125			status = "disabled";
126		};
127
128		i2c_A: i2c@c1108500 {
129			compatible = "amlogic,meson6-i2c";
130			reg = <0xc1108500 0x20>;
131			interrupts = <0 21 1>;
132			clocks = <&clk81>;
133			#address-cells = <1>;
134			#size-cells = <0>;
135			status = "disabled";
136		};
137
138		i2c_B: i2c@c11087c0 {
139			compatible = "amlogic,meson6-i2c";
140			reg = <0xc11087c0 0x20>;
141			interrupts = <0 128 1>;
142			clocks = <&clk81>;
143			#address-cells = <1>;
144			#size-cells = <0>;
145			status = "disabled";
146		};
147
148		ir_receiver: ir-receiver@c8100480 {
149			compatible= "amlogic,meson6-ir";
150			reg = <0xc8100480 0x20>;
151			interrupts = <0 15 1>;
152			status = "disabled";
153		};
154
155		spifc: spi@c1108c80 {
156			compatible = "amlogic,meson6-spifc";
157			reg = <0xc1108c80 0x80>;
158			#address-cells = <1>;
159			#size-cells = <0>;
160			clocks = <&clk81>;
161			status = "disabled";
 
 
 
 
 
 
162		};
 
163
164		ethmac: ethernet@c9410000 {
165			compatible = "amlogic,meson6-dwmac", "snps,dwmac";
166			reg = <0xc9410000 0x10000
167			       0xc1108108 0x4>;
168			interrupts = <0 8 1>;
169			interrupt-names = "macirq";
170			clocks = <&clk81>;
171			clock-names = "stmmaceth";
172			status = "disabled";
173		};
 
 
174	};
175}; /* end of / */