Linux Audio

Check our new training course

Linux BSP upgrade and security maintenance

Need help to get security updates for your Linux BSP?
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 License
 20 *     along with this program. If not, see <http://www.gnu.org/licenses/>.
 21 *
 22 * Or, alternatively,
 23 *
 24 *  b) Permission is hereby granted, free of charge, to any person
 25 *     obtaining a copy of this software and associated documentation
 26 *     files (the "Software"), to deal in the Software without
 27 *     restriction, including without limitation the rights to use,
 28 *     copy, modify, merge, publish, distribute, sublicense, and/or
 29 *     sell copies of the Software, and to permit persons to whom the
 30 *     Software is furnished to do so, subject to the following
 31 *     conditions:
 32 *
 33 *     The above copyright notice and this permission notice shall be
 34 *     included in all copies or substantial portions of the Software.
 35 *
 36 *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 37 *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 38 *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 39 *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 40 *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 41 *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 42 *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 43 *     OTHER DEALINGS IN THE SOFTWARE.
 44 */
 45
 
 46#include <dt-bindings/clock/meson8b-clkc.h>
 47#include <dt-bindings/gpio/meson8-gpio.h>
 
 48#include <dt-bindings/reset/amlogic,meson8b-clkc-reset.h>
 49#include <dt-bindings/reset/amlogic,meson8b-reset.h>
 
 50#include "meson.dtsi"
 51
 52/ {
 53	model = "Amlogic Meson8 SoC";
 54	compatible = "amlogic,meson8";
 55
 56	cpus {
 57		#address-cells = <1>;
 58		#size-cells = <0>;
 59
 60		cpu@200 {
 61			device_type = "cpu";
 62			compatible = "arm,cortex-a9";
 63			next-level-cache = <&L2>;
 64			reg = <0x200>;
 65			enable-method = "amlogic,meson8-smp";
 66			resets = <&clkc CLKC_RESET_CPU0_SOFT_RESET>;
 
 
 
 67		};
 68
 69		cpu@201 {
 70			device_type = "cpu";
 71			compatible = "arm,cortex-a9";
 72			next-level-cache = <&L2>;
 73			reg = <0x201>;
 74			enable-method = "amlogic,meson8-smp";
 75			resets = <&clkc CLKC_RESET_CPU1_SOFT_RESET>;
 
 
 
 76		};
 77
 78		cpu@202 {
 79			device_type = "cpu";
 80			compatible = "arm,cortex-a9";
 81			next-level-cache = <&L2>;
 82			reg = <0x202>;
 83			enable-method = "amlogic,meson8-smp";
 84			resets = <&clkc CLKC_RESET_CPU2_SOFT_RESET>;
 
 
 
 85		};
 86
 87		cpu@203 {
 88			device_type = "cpu";
 89			compatible = "arm,cortex-a9";
 90			next-level-cache = <&L2>;
 91			reg = <0x203>;
 92			enable-method = "amlogic,meson8-smp";
 93			resets = <&clkc CLKC_RESET_CPU3_SOFT_RESET>;
 
 
 
 94		};
 95	};
 96
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 97	reserved-memory {
 98		#address-cells = <1>;
 99		#size-cells = <1>;
100		ranges;
101
102		/* 2 MiB reserved for Hardware ROM Firmware? */
103		hwrom@0 {
104			reg = <0x0 0x200000>;
105			no-map;
106		};
107
108		/*
109		 * 1 MiB reserved for the "ARM Power Firmware": this is ARM
110		 * code which is responsible for system suspend. It loads a
111		 * piece of ARC code ("arc_power" in the vendor u-boot tree)
112		 * into SRAM, executes that and shuts down the (last) ARM core.
113		 * The arc_power firmware then checks various wakeup sources
114		 * (IR remote receiver, HDMI CEC, WIFI and Bluetooth wakeup or
115		 * simply the power key) and re-starts the ARM core once it
116		 * detects a wakeup request.
117		 */
118		power-firmware@4f00000 {
119			reg = <0x4f00000 0x100000>;
120			no-map;
121		};
122	};
123
124	scu@c4300000 {
125		compatible = "arm,cortex-a9-scu";
126		reg = <0xc4300000 0x100>;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
127	};
128}; /* end of / */
129
130&aobus {
131	pmu: pmu@e0 {
132		compatible = "amlogic,meson8-pmu", "syscon";
133		reg = <0xe0 0x8>;
134	};
135
136	pinctrl_aobus: pinctrl@84 {
137		compatible = "amlogic,meson8-aobus-pinctrl";
138		reg = <0x84 0xc>;
139		#address-cells = <1>;
140		#size-cells = <1>;
141		ranges;
142
143		gpio_ao: ao-bank@14 {
144			reg = <0x14 0x4>,
145			      <0x2c 0x4>,
146			      <0x24 0x8>;
147			reg-names = "mux", "pull", "gpio";
148			gpio-controller;
149			#gpio-cells = <2>;
150			gpio-ranges = <&pinctrl_aobus 0 0 16>;
151		};
152
153		uart_ao_a_pins: uart_ao_a {
154			mux {
155				groups = "uart_tx_ao_a", "uart_rx_ao_a";
156				function = "uart_ao";
 
157			};
158		};
159
160		i2c_ao_pins: i2c_mst_ao {
161			mux {
162				groups = "i2c_mst_sck_ao", "i2c_mst_sda_ao";
163				function = "i2c_mst_ao";
 
164			};
165		};
166
167		ir_recv_pins: remote {
168			mux {
169				groups = "remote_input";
170				function = "remote";
 
171			};
172		};
173
174		pwm_f_ao_pins: pwm-f-ao {
175			mux {
176				groups = "pwm_f_ao";
177				function = "pwm_f_ao";
 
178			};
179		};
180	};
181};
182
183&cbus {
184	clkc: clock-controller@4000 {
185		#clock-cells = <1>;
186		#reset-cells = <1>;
187		compatible = "amlogic,meson8-clkc";
188		reg = <0x8000 0x4>, <0x4000 0x460>;
189	};
190
 
191	reset: reset-controller@4404 {
192		compatible = "amlogic,meson8b-reset";
193		reg = <0x4404 0x9c>;
194		#reset-cells = <1>;
195	};
196
197	analog_top: analog-top@81a8 {
198		compatible = "amlogic,meson8-analog-top", "syscon";
199		reg = <0x81a8 0x14>;
200	};
201
202	pwm_ef: pwm@86c0 {
203		compatible = "amlogic,meson8-pwm", "amlogic,meson8b-pwm";
204		reg = <0x86c0 0x10>;
205		#pwm-cells = <3>;
206		status = "disabled";
207	};
208
 
 
 
 
 
209	pinctrl_cbus: pinctrl@9880 {
210		compatible = "amlogic,meson8-cbus-pinctrl";
211		reg = <0x9880 0x10>;
212		#address-cells = <1>;
213		#size-cells = <1>;
214		ranges;
215
216		gpio: banks@80b0 {
217			reg = <0x80b0 0x28>,
218			      <0x80e8 0x18>,
219			      <0x8120 0x18>,
220			      <0x8030 0x30>;
221			reg-names = "mux", "pull", "pull-enable", "gpio";
222			gpio-controller;
223			#gpio-cells = <2>;
224			gpio-ranges = <&pinctrl_cbus 0 0 120>;
225		};
226
227		sd_a_pins: sd-a {
228			mux {
229				groups = "sd_d0_a", "sd_d1_a", "sd_d2_a",
230					"sd_d3_a", "sd_clk_a", "sd_cmd_a";
231				function = "sd_a";
 
232			};
233		};
234
235		sd_b_pins: sd-b {
236			mux {
237				groups = "sd_d0_b", "sd_d1_b", "sd_d2_b",
238					"sd_d3_b", "sd_clk_b", "sd_cmd_b";
239				function = "sd_b";
 
240			};
241		};
242
243		sd_c_pins: sd-c {
244			mux {
245				groups = "sd_d0_c", "sd_d1_c", "sd_d2_c",
246					"sd_d3_c", "sd_clk_c", "sd_cmd_c";
247				function = "sd_c";
 
 
 
 
 
 
 
 
 
 
248			};
249		};
250
251		spi_nor_pins: nor {
252			mux {
253				groups = "nor_d", "nor_q", "nor_c", "nor_cs";
254				function = "nor";
 
255			};
256		};
257
258		eth_pins: ethernet {
259			mux {
260				groups = "eth_tx_clk_50m", "eth_tx_en",
261					 "eth_txd1", "eth_txd0",
262					 "eth_rx_clk_in", "eth_rx_dv",
263					 "eth_rxd1", "eth_rxd0", "eth_mdio",
264					 "eth_mdc";
265				function = "ethernet";
 
266			};
267		};
268
269		pwm_e_pins: pwm-e {
270			mux {
271				groups = "pwm_e";
272				function = "pwm_e";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
273			};
274		};
275	};
276};
277
278&ahb_sram {
 
 
 
 
 
 
279	smp-sram@1ff80 {
280		compatible = "amlogic,meson8-smp-sram";
281		reg = <0x1ff80 0x8>;
282	};
283};
284
285&efuse {
286	compatible = "amlogic,meson8-efuse";
287	clocks = <&clkc CLKID_EFUSE>;
288	clock-names = "core";
 
 
 
 
 
289};
290
291&ethmac {
292	clocks = <&clkc CLKID_ETH>;
293	clock-names = "stmmaceth";
 
 
294};
295
296&gpio_intc {
297	compatible = "amlogic,meson8-gpio-intc", "amlogic,meson-gpio-intc";
298	status = "okay";
299};
300
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
301&hwrng {
302	compatible = "amlogic,meson8-rng", "amlogic,meson-rng";
303	clocks = <&clkc CLKID_RNG0>;
304	clock-names = "core";
305};
306
307&i2c_AO {
308	clocks = <&clkc CLKID_CLK81>;
309};
310
311&i2c_A {
312	clocks = <&clkc CLKID_CLK81>;
313};
314
315&i2c_B {
316	clocks = <&clkc CLKID_CLK81>;
317};
318
319&L2 {
320	arm,data-latency = <3 3 3>;
321	arm,tag-latency = <2 2 2>;
322	arm,filter-ranges = <0x100000 0xc0000000>;
323	prefetch-data = <1>;
324	prefetch-instr = <1>;
325	arm,shared-override;
326};
327
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
328&pwm_ab {
329	compatible = "amlogic,meson8-pwm", "amlogic,meson8b-pwm";
330};
331
332&pwm_cd {
333	compatible = "amlogic,meson8-pwm", "amlogic,meson8b-pwm";
334};
335
 
 
 
 
 
336&saradc {
337	compatible = "amlogic,meson8-saradc", "amlogic,meson-saradc";
338	clocks = <&clkc CLKID_XTAL>,
339		<&clkc CLKID_SAR_ADC>;
340	clock-names = "clkin", "core";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
341};
342
343&sdio {
344	compatible = "amlogic,meson8-sdio", "amlogic,meson-mx-sdio";
345	clocks = <&clkc CLKID_SDIO>, <&clkc CLKID_CLK81>;
346	clock-names = "core", "clkin";
347};
348
349&spifc {
350	clocks = <&clkc CLKID_CLK81>;
351};
352
 
 
 
 
 
353&uart_AO {
354	compatible = "amlogic,meson8-uart", "amlogic,meson-uart";
355	clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_XTAL>, <&clkc CLKID_CLK81>;
356	clock-names = "baud", "xtal", "pclk";
357};
358
359&uart_A {
360	compatible = "amlogic,meson8-uart", "amlogic,meson-uart";
361	clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_XTAL>, <&clkc CLKID_UART0>;
362	clock-names = "baud", "xtal", "pclk";
363};
364
365&uart_B {
366	compatible = "amlogic,meson8-uart", "amlogic,meson-uart";
367	clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_XTAL>, <&clkc CLKID_UART1>;
368	clock-names = "baud", "xtal", "pclk";
369};
370
371&uart_C {
372	compatible = "amlogic,meson8-uart", "amlogic,meson-uart";
373	clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_XTAL>, <&clkc CLKID_UART2>;
374	clock-names = "baud", "xtal", "pclk";
375};
376
377&usb0 {
378	compatible = "amlogic,meson8-usb", "snps,dwc2";
379	clocks = <&clkc CLKID_USB0_DDR_BRIDGE>;
380	clock-names = "otg";
381};
382
383&usb1 {
384	compatible = "amlogic,meson8-usb", "snps,dwc2";
385	clocks = <&clkc CLKID_USB1_DDR_BRIDGE>;
386	clock-names = "otg";
387};
388
389&usb0_phy {
390	compatible = "amlogic,meson8-usb2-phy", "amlogic,meson-mx-usb2-phy";
391	clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB0>;
392	clock-names = "usb_general", "usb";
393	resets = <&reset RESET_USB_OTG>;
394};
395
396&usb1_phy {
397	compatible = "amlogic,meson8-usb2-phy", "amlogic,meson-mx-usb2-phy";
398	clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB1>;
399	clock-names = "usb_general", "usb";
400	resets = <&reset RESET_USB_OTG>;
401};
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/clock/meson8-ddr-clkc.h>
  7#include <dt-bindings/clock/meson8b-clkc.h>
  8#include <dt-bindings/gpio/meson8-gpio.h>
  9#include <dt-bindings/power/meson8-power.h>
 10#include <dt-bindings/reset/amlogic,meson8b-clkc-reset.h>
 11#include <dt-bindings/reset/amlogic,meson8b-reset.h>
 12#include <dt-bindings/thermal/thermal.h>
 13#include "meson.dtsi"
 14
 15/ {
 16	model = "Amlogic Meson8 SoC";
 17	compatible = "amlogic,meson8";
 18
 19	cpus {
 20		#address-cells = <1>;
 21		#size-cells = <0>;
 22
 23		cpu0: cpu@200 {
 24			device_type = "cpu";
 25			compatible = "arm,cortex-a9";
 26			next-level-cache = <&L2>;
 27			reg = <0x200>;
 28			enable-method = "amlogic,meson8-smp";
 29			resets = <&clkc CLKC_RESET_CPU0_SOFT_RESET>;
 30			operating-points-v2 = <&cpu_opp_table>;
 31			clocks = <&clkc CLKID_CPUCLK>;
 32			#cooling-cells = <2>; /* min followed by max */
 33		};
 34
 35		cpu1: cpu@201 {
 36			device_type = "cpu";
 37			compatible = "arm,cortex-a9";
 38			next-level-cache = <&L2>;
 39			reg = <0x201>;
 40			enable-method = "amlogic,meson8-smp";
 41			resets = <&clkc CLKC_RESET_CPU1_SOFT_RESET>;
 42			operating-points-v2 = <&cpu_opp_table>;
 43			clocks = <&clkc CLKID_CPUCLK>;
 44			#cooling-cells = <2>; /* min followed by max */
 45		};
 46
 47		cpu2: cpu@202 {
 48			device_type = "cpu";
 49			compatible = "arm,cortex-a9";
 50			next-level-cache = <&L2>;
 51			reg = <0x202>;
 52			enable-method = "amlogic,meson8-smp";
 53			resets = <&clkc CLKC_RESET_CPU2_SOFT_RESET>;
 54			operating-points-v2 = <&cpu_opp_table>;
 55			clocks = <&clkc CLKID_CPUCLK>;
 56			#cooling-cells = <2>; /* min followed by max */
 57		};
 58
 59		cpu3: cpu@203 {
 60			device_type = "cpu";
 61			compatible = "arm,cortex-a9";
 62			next-level-cache = <&L2>;
 63			reg = <0x203>;
 64			enable-method = "amlogic,meson8-smp";
 65			resets = <&clkc CLKC_RESET_CPU3_SOFT_RESET>;
 66			operating-points-v2 = <&cpu_opp_table>;
 67			clocks = <&clkc CLKID_CPUCLK>;
 68			#cooling-cells = <2>; /* min followed by max */
 69		};
 70	};
 71
 72	cpu_opp_table: opp-table {
 73		compatible = "operating-points-v2";
 74		opp-shared;
 75
 76		opp-96000000 {
 77			opp-hz = /bits/ 64 <96000000>;
 78			opp-microvolt = <825000>;
 79		};
 80		opp-192000000 {
 81			opp-hz = /bits/ 64 <192000000>;
 82			opp-microvolt = <825000>;
 83		};
 84		opp-312000000 {
 85			opp-hz = /bits/ 64 <312000000>;
 86			opp-microvolt = <825000>;
 87		};
 88		opp-408000000 {
 89			opp-hz = /bits/ 64 <408000000>;
 90			opp-microvolt = <825000>;
 91		};
 92		opp-504000000 {
 93			opp-hz = /bits/ 64 <504000000>;
 94			opp-microvolt = <825000>;
 95		};
 96		opp-600000000 {
 97			opp-hz = /bits/ 64 <600000000>;
 98			opp-microvolt = <850000>;
 99		};
100		opp-720000000 {
101			opp-hz = /bits/ 64 <720000000>;
102			opp-microvolt = <850000>;
103		};
104		opp-816000000 {
105			opp-hz = /bits/ 64 <816000000>;
106			opp-microvolt = <875000>;
107		};
108		opp-1008000000 {
109			opp-hz = /bits/ 64 <1008000000>;
110			opp-microvolt = <925000>;
111		};
112		opp-1200000000 {
113			opp-hz = /bits/ 64 <1200000000>;
114			opp-microvolt = <975000>;
115		};
116		opp-1416000000 {
117			opp-hz = /bits/ 64 <1416000000>;
118			opp-microvolt = <1025000>;
119		};
120		opp-1608000000 {
121			opp-hz = /bits/ 64 <1608000000>;
122			opp-microvolt = <1100000>;
123		};
124		opp-1800000000 {
125			status = "disabled";
126			opp-hz = /bits/ 64 <1800000000>;
127			opp-microvolt = <1125000>;
128		};
129		opp-1992000000 {
130			status = "disabled";
131			opp-hz = /bits/ 64 <1992000000>;
132			opp-microvolt = <1150000>;
133		};
134	};
135
136	gpu_opp_table: gpu-opp-table {
137		compatible = "operating-points-v2";
138
139		opp-182142857 {
140			opp-hz = /bits/ 64 <182142857>;
141			opp-microvolt = <1150000>;
142		};
143		opp-318750000 {
144			opp-hz = /bits/ 64 <318750000>;
145			opp-microvolt = <1150000>;
146		};
147		opp-425000000 {
148			opp-hz = /bits/ 64 <425000000>;
149			opp-microvolt = <1150000>;
150		};
151		opp-510000000 {
152			opp-hz = /bits/ 64 <510000000>;
153			opp-microvolt = <1150000>;
154		};
155		opp-637500000 {
156			opp-hz = /bits/ 64 <637500000>;
157			opp-microvolt = <1150000>;
158			turbo-mode;
159		};
160	};
161
162	pmu {
163		compatible = "arm,cortex-a9-pmu";
164		interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>,
165			     <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>,
166			     <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>,
167			     <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>;
168		interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
169	};
170
171	reserved-memory {
172		#address-cells = <1>;
173		#size-cells = <1>;
174		ranges;
175
176		/* 2 MiB reserved for Hardware ROM Firmware? */
177		hwrom@0 {
178			reg = <0x0 0x200000>;
179			no-map;
180		};
181
182		/*
183		 * 1 MiB reserved for the "ARM Power Firmware": this is ARM
184		 * code which is responsible for system suspend. It loads a
185		 * piece of ARC code ("arc_power" in the vendor u-boot tree)
186		 * into SRAM, executes that and shuts down the (last) ARM core.
187		 * The arc_power firmware then checks various wakeup sources
188		 * (IR remote receiver, HDMI CEC, WIFI and Bluetooth wakeup or
189		 * simply the power key) and re-starts the ARM core once it
190		 * detects a wakeup request.
191		 */
192		power-firmware@4f00000 {
193			reg = <0x4f00000 0x100000>;
194			no-map;
195		};
196	};
197
198	thermal-zones {
199		soc {
200			polling-delay-passive = <250>; /* milliseconds */
201			polling-delay = <1000>; /* milliseconds */
202			thermal-sensors = <&thermal_sensor>;
203
204			cooling-maps {
205				map0 {
206					trip = <&soc_passive>;
207					cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
208							 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
209							 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
210							 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
211							 <&mali THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
212				};
213
214				map1 {
215					trip = <&soc_hot>;
216					cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
217							 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
218							 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
219							 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
220							 <&mali THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
221				};
222			};
223
224			trips {
225				soc_passive: soc-passive {
226					temperature = <80000>; /* millicelsius */
227					hysteresis = <2000>; /* millicelsius */
228					type = "passive";
229				};
230
231				soc_hot: soc-hot {
232					temperature = <90000>; /* millicelsius */
233					hysteresis = <2000>; /* millicelsius */
234					type = "hot";
235				};
236
237				soc_critical: soc-critical {
238					temperature = <110000>; /* millicelsius */
239					hysteresis = <2000>; /* millicelsius */
240					type = "critical";
241				};
242			};
243		};
244	};
245
246	mmcbus: bus@c8000000 {
247		compatible = "simple-bus";
248		reg = <0xc8000000 0x8000>;
249		#address-cells = <1>;
250		#size-cells = <1>;
251		ranges = <0x0 0xc8000000 0x8000>;
252
253		ddr_clkc: clock-controller@400 {
254			compatible = "amlogic,meson8-ddr-clkc";
255			reg = <0x400 0x20>;
256			clocks = <&xtal>;
257			clock-names = "xtal";
258			#clock-cells = <1>;
259		};
260
261		dmcbus: bus@6000 {
262			compatible = "simple-bus";
263			reg = <0x6000 0x400>;
264			#address-cells = <1>;
265			#size-cells = <1>;
266			ranges = <0x0 0x6000 0x400>;
267
268			canvas: video-lut@20 {
269				compatible = "amlogic,meson8-canvas",
270					     "amlogic,canvas";
271				reg = <0x20 0x14>;
272			};
273		};
274	};
275
276	apb: bus@d0000000 {
277		compatible = "simple-bus";
278		reg = <0xd0000000 0x200000>;
279		#address-cells = <1>;
280		#size-cells = <1>;
281		ranges = <0x0 0xd0000000 0x200000>;
282
283		mali: gpu@c0000 {
284			compatible = "amlogic,meson8-mali", "arm,mali-450";
285			reg = <0xc0000 0x40000>;
286			interrupts = <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>,
287				     <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>,
288				     <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>,
289				     <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>,
290				     <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>,
291				     <GIC_SPI 165 IRQ_TYPE_LEVEL_HIGH>,
292				     <GIC_SPI 166 IRQ_TYPE_LEVEL_HIGH>,
293				     <GIC_SPI 167 IRQ_TYPE_LEVEL_HIGH>,
294				     <GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>,
295				     <GIC_SPI 169 IRQ_TYPE_LEVEL_HIGH>,
296				     <GIC_SPI 172 IRQ_TYPE_LEVEL_HIGH>,
297				     <GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH>,
298				     <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>,
299				     <GIC_SPI 175 IRQ_TYPE_LEVEL_HIGH>,
300				     <GIC_SPI 176 IRQ_TYPE_LEVEL_HIGH>,
301				     <GIC_SPI 177 IRQ_TYPE_LEVEL_HIGH>;
302			interrupt-names = "gp", "gpmmu", "pp", "pmu",
303					  "pp0", "ppmmu0", "pp1", "ppmmu1",
304					  "pp2", "ppmmu2", "pp4", "ppmmu4",
305					  "pp5", "ppmmu5", "pp6", "ppmmu6";
306			resets = <&reset RESET_MALI>;
307
308			clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_MALI>;
309			clock-names = "bus", "core";
310
311			assigned-clocks = <&clkc CLKID_MALI>;
312			assigned-clock-rates = <318750000>;
313
314			operating-points-v2 = <&gpu_opp_table>;
315			#cooling-cells = <2>; /* min followed by max */
316		};
317	};
318}; /* end of / */
319
320&aobus {
321	pmu: pmu@e0 {
322		compatible = "amlogic,meson8-pmu", "syscon";
323		reg = <0xe0 0x18>;
324	};
325
326	pinctrl_aobus: pinctrl@84 {
327		compatible = "amlogic,meson8-aobus-pinctrl";
328		reg = <0x84 0xc>;
329		#address-cells = <1>;
330		#size-cells = <1>;
331		ranges;
332
333		gpio_ao: ao-bank@14 {
334			reg = <0x14 0x4>,
335			      <0x2c 0x4>,
336			      <0x24 0x8>;
337			reg-names = "mux", "pull", "gpio";
338			gpio-controller;
339			#gpio-cells = <2>;
340			gpio-ranges = <&pinctrl_aobus 0 0 16>;
341		};
342
343		uart_ao_a_pins: uart_ao_a {
344			mux {
345				groups = "uart_tx_ao_a", "uart_rx_ao_a";
346				function = "uart_ao";
347				bias-disable;
348			};
349		};
350
351		i2c_ao_pins: i2c_mst_ao {
352			mux {
353				groups = "i2c_mst_sck_ao", "i2c_mst_sda_ao";
354				function = "i2c_mst_ao";
355				bias-disable;
356			};
357		};
358
359		ir_recv_pins: remote {
360			mux {
361				groups = "remote_input";
362				function = "remote";
363				bias-disable;
364			};
365		};
366
367		pwm_f_ao_pins: pwm-f-ao {
368			mux {
369				groups = "pwm_f_ao";
370				function = "pwm_f_ao";
371				bias-disable;
372			};
373		};
374	};
375};
376
377&ao_arc_rproc {
378	compatible= "amlogic,meson8-ao-arc", "amlogic,meson-mx-ao-arc";
379	amlogic,secbus2 = <&secbus2>;
380	sram = <&ao_arc_sram>;
381	resets = <&reset RESET_MEDIA_CPU>;
382	clocks = <&clkc CLKID_AO_MEDIA_CPU>;
383};
384
385&cbus {
386	reset: reset-controller@4404 {
387		compatible = "amlogic,meson8b-reset";
388		reg = <0x4404 0x9c>;
389		#reset-cells = <1>;
390	};
391
392	analog_top: analog-top@81a8 {
393		compatible = "amlogic,meson8-analog-top", "syscon";
394		reg = <0x81a8 0x14>;
395	};
396
397	pwm_ef: pwm@86c0 {
398		compatible = "amlogic,meson8-pwm", "amlogic,meson8b-pwm";
399		reg = <0x86c0 0x10>;
400		#pwm-cells = <3>;
401		status = "disabled";
402	};
403
404	clock-measure@8758 {
405		compatible = "amlogic,meson8-clk-measure";
406		reg = <0x8758 0x1c>;
407	};
408
409	pinctrl_cbus: pinctrl@9880 {
410		compatible = "amlogic,meson8-cbus-pinctrl";
411		reg = <0x9880 0x10>;
412		#address-cells = <1>;
413		#size-cells = <1>;
414		ranges;
415
416		gpio: banks@80b0 {
417			reg = <0x80b0 0x28>,
418			      <0x80e8 0x18>,
419			      <0x8120 0x18>,
420			      <0x8030 0x30>;
421			reg-names = "mux", "pull", "pull-enable", "gpio";
422			gpio-controller;
423			#gpio-cells = <2>;
424			gpio-ranges = <&pinctrl_cbus 0 0 120>;
425		};
426
427		sd_a_pins: sd-a {
428			mux {
429				groups = "sd_d0_a", "sd_d1_a", "sd_d2_a",
430					"sd_d3_a", "sd_clk_a", "sd_cmd_a";
431				function = "sd_a";
432				bias-disable;
433			};
434		};
435
436		sd_b_pins: sd-b {
437			mux {
438				groups = "sd_d0_b", "sd_d1_b", "sd_d2_b",
439					"sd_d3_b", "sd_clk_b", "sd_cmd_b";
440				function = "sd_b";
441				bias-disable;
442			};
443		};
444
445		sd_c_pins: sd-c {
446			mux {
447				groups = "sd_d0_c", "sd_d1_c", "sd_d2_c",
448					"sd_d3_c", "sd_clk_c", "sd_cmd_c";
449				function = "sd_c";
450				bias-disable;
451			};
452		};
453
454		sdxc_b_pins: sdxc-b {
455			mux {
456				groups = "sdxc_d0_b", "sdxc_d13_b",
457					 "sdxc_clk_b", "sdxc_cmd_b";
458				function = "sdxc_b";
459				bias-pull-up;
460			};
461		};
462
463		spi_nor_pins: nor {
464			mux {
465				groups = "nor_d", "nor_q", "nor_c", "nor_cs";
466				function = "nor";
467				bias-disable;
468			};
469		};
470
471		eth_pins: ethernet {
472			mux {
473				groups = "eth_tx_clk_50m", "eth_tx_en",
474					 "eth_txd1", "eth_txd0",
475					 "eth_rx_clk_in", "eth_rx_dv",
476					 "eth_rxd1", "eth_rxd0", "eth_mdio",
477					 "eth_mdc";
478				function = "ethernet";
479				bias-disable;
480			};
481		};
482
483		pwm_e_pins: pwm-e {
484			mux {
485				groups = "pwm_e";
486				function = "pwm_e";
487				bias-disable;
488			};
489		};
490
491		uart_a1_pins: uart-a1 {
492			mux {
493				groups = "uart_tx_a1",
494				       "uart_rx_a1";
495				function = "uart_a";
496				bias-disable;
497			};
498		};
499
500		uart_a1_cts_rts_pins: uart-a1-cts-rts {
501			mux {
502				groups = "uart_cts_a1",
503				       "uart_rts_a1";
504				function = "uart_a";
505				bias-disable;
506			};
507		};
508	};
509};
510
511&ahb_sram {
512	ao_arc_sram: ao-arc-sram@0 {
513		compatible = "amlogic,meson8-ao-arc-sram";
514		reg = <0x0 0x8000>;
515		pool;
516	};
517
518	smp-sram@1ff80 {
519		compatible = "amlogic,meson8-smp-sram";
520		reg = <0x1ff80 0x8>;
521	};
522};
523
524&efuse {
525	compatible = "amlogic,meson8-efuse";
526	clocks = <&clkc CLKID_EFUSE>;
527	clock-names = "core";
528
529	temperature_calib: calib@1f4 {
530		/* only the upper two bytes are relevant */
531		reg = <0x1f4 0x4>;
532	};
533};
534
535&ethmac {
536	clocks = <&clkc CLKID_ETH>;
537	clock-names = "stmmaceth";
538
539	power-domains = <&pwrc PWRC_MESON8_ETHERNET_MEM_ID>;
540};
541
542&gpio_intc {
543	compatible = "amlogic,meson8-gpio-intc", "amlogic,meson-gpio-intc";
544	status = "okay";
545};
546
547&hhi {
548	clkc: clock-controller {
549		compatible = "amlogic,meson8-clkc";
550		clocks = <&xtal>, <&ddr_clkc DDR_CLKID_DDR_PLL>;
551		clock-names = "xtal", "ddr_pll";
552		#clock-cells = <1>;
553		#reset-cells = <1>;
554	};
555
556	pwrc: power-controller {
557		compatible = "amlogic,meson8-pwrc";
558		#power-domain-cells = <1>;
559		amlogic,ao-sysctrl = <&pmu>;
560		clocks = <&clkc CLKID_VPU>;
561		clock-names = "vpu";
562		assigned-clocks = <&clkc CLKID_VPU>;
563		assigned-clock-rates = <364285714>;
564	};
565};
566
567&hwrng {
568	compatible = "amlogic,meson8-rng", "amlogic,meson-rng";
569	clocks = <&clkc CLKID_RNG0>;
570	clock-names = "core";
571};
572
573&i2c_AO {
574	clocks = <&clkc CLKID_CLK81>;
575};
576
577&i2c_A {
578	clocks = <&clkc CLKID_CLK81>;
579};
580
581&i2c_B {
582	clocks = <&clkc CLKID_CLK81>;
583};
584
585&L2 {
586	arm,data-latency = <3 3 3>;
587	arm,tag-latency = <2 2 2>;
588	arm,filter-ranges = <0x100000 0xc0000000>;
589	prefetch-data = <1>;
590	prefetch-instr = <1>;
591	arm,shared-override;
592};
593
594&periph {
595	scu@0 {
596		compatible = "arm,cortex-a9-scu";
597		reg = <0x0 0x100>;
598	};
599
600	timer@200 {
601		compatible = "arm,cortex-a9-global-timer";
602		reg = <0x200 0x20>;
603		interrupts = <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>;
604		clocks = <&clkc CLKID_PERIPH>;
605
606		/*
607		 * the arm_global_timer driver currently does not handle clock
608		 * rate changes. Keep it disabled for now.
609		 */
610		status = "disabled";
611	};
612
613	timer@600 {
614		compatible = "arm,cortex-a9-twd-timer";
615		reg = <0x600 0x20>;
616		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>;
617		clocks = <&clkc CLKID_PERIPH>;
618	};
619};
620
621&pwm_ab {
622	compatible = "amlogic,meson8-pwm", "amlogic,meson8b-pwm";
623};
624
625&pwm_cd {
626	compatible = "amlogic,meson8-pwm", "amlogic,meson8b-pwm";
627};
628
629&rtc {
630	compatible = "amlogic,meson8-rtc";
631	resets = <&reset RESET_RTC>;
632};
633
634&saradc {
635	compatible = "amlogic,meson8-saradc", "amlogic,meson-saradc";
636	clocks = <&xtal>, <&clkc CLKID_SAR_ADC>;
 
637	clock-names = "clkin", "core";
638	amlogic,hhi-sysctrl = <&hhi>;
639	nvmem-cells = <&temperature_calib>;
640	nvmem-cell-names = "temperature_calib";
641};
642
643&sdhc {
644	compatible = "amlogic,meson8-sdhc", "amlogic,meson-mx-sdhc";
645	clocks = <&xtal>,
646		 <&clkc CLKID_FCLK_DIV4>,
647		 <&clkc CLKID_FCLK_DIV3>,
648		 <&clkc CLKID_FCLK_DIV5>,
649		 <&clkc CLKID_SDHC>;
650	clock-names = "clkin0", "clkin1", "clkin2", "clkin3", "pclk";
651};
652
653&secbus {
654	secbus2: system-controller@4000 {
655		compatible = "amlogic,meson8-secbus2", "syscon";
656		reg = <0x4000 0x2000>;
657	};
658};
659
660&sdio {
661	compatible = "amlogic,meson8-sdio", "amlogic,meson-mx-sdio";
662	clocks = <&clkc CLKID_SDIO>, <&clkc CLKID_CLK81>;
663	clock-names = "core", "clkin";
664};
665
666&spifc {
667	clocks = <&clkc CLKID_CLK81>;
668};
669
670&timer_abcde {
671	clocks = <&xtal>, <&clkc CLKID_CLK81>;
672	clock-names = "xtal", "pclk";
673};
674
675&uart_AO {
676	compatible = "amlogic,meson8-uart", "amlogic,meson-uart";
677	clocks = <&clkc CLKID_CLK81>, <&xtal>, <&clkc CLKID_CLK81>;
678	clock-names = "baud", "xtal", "pclk";
679};
680
681&uart_A {
682	compatible = "amlogic,meson8-uart", "amlogic,meson-uart";
683	clocks = <&clkc CLKID_CLK81>, <&xtal>, <&clkc CLKID_UART0>;
684	clock-names = "baud", "xtal", "pclk";
685};
686
687&uart_B {
688	compatible = "amlogic,meson8-uart", "amlogic,meson-uart";
689	clocks = <&clkc CLKID_CLK81>, <&xtal>, <&clkc CLKID_UART1>;
690	clock-names = "baud", "xtal", "pclk";
691};
692
693&uart_C {
694	compatible = "amlogic,meson8-uart", "amlogic,meson-uart";
695	clocks = <&clkc CLKID_CLK81>, <&xtal>, <&clkc CLKID_UART2>;
696	clock-names = "baud", "xtal", "pclk";
697};
698
699&usb0 {
700	compatible = "amlogic,meson8-usb", "snps,dwc2";
701	clocks = <&clkc CLKID_USB0_DDR_BRIDGE>;
702	clock-names = "otg";
703};
704
705&usb1 {
706	compatible = "amlogic,meson8-usb", "snps,dwc2";
707	clocks = <&clkc CLKID_USB1_DDR_BRIDGE>;
708	clock-names = "otg";
709};
710
711&usb0_phy {
712	compatible = "amlogic,meson8-usb2-phy", "amlogic,meson-mx-usb2-phy";
713	clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB0>;
714	clock-names = "usb_general", "usb";
715	resets = <&reset RESET_USB_OTG>;
716};
717
718&usb1_phy {
719	compatible = "amlogic,meson8-usb2-phy", "amlogic,meson-mx-usb2-phy";
720	clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB1>;
721	clock-names = "usb_general", "usb";
722	resets = <&reset RESET_USB_OTG>;
723};