18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (c) 2019 BayLibre, SAS
48c2ecf20Sopenharmony_ci * Author: Neil Armstrong <narmstrong@baylibre.com>
58c2ecf20Sopenharmony_ci */
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci#include "meson-g12.dtsi"
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci/ {
108c2ecf20Sopenharmony_ci	compatible = "amlogic,g12b";
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci	cpus {
138c2ecf20Sopenharmony_ci		#address-cells = <0x2>;
148c2ecf20Sopenharmony_ci		#size-cells = <0x0>;
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ci		cpu-map {
178c2ecf20Sopenharmony_ci			cluster0 {
188c2ecf20Sopenharmony_ci				core0 {
198c2ecf20Sopenharmony_ci					cpu = <&cpu0>;
208c2ecf20Sopenharmony_ci				};
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ci				core1 {
238c2ecf20Sopenharmony_ci					cpu = <&cpu1>;
248c2ecf20Sopenharmony_ci				};
258c2ecf20Sopenharmony_ci			};
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ci			cluster1 {
288c2ecf20Sopenharmony_ci				core0 {
298c2ecf20Sopenharmony_ci					cpu = <&cpu100>;
308c2ecf20Sopenharmony_ci				};
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ci				core1 {
338c2ecf20Sopenharmony_ci					cpu = <&cpu101>;
348c2ecf20Sopenharmony_ci				};
358c2ecf20Sopenharmony_ci
368c2ecf20Sopenharmony_ci				core2 {
378c2ecf20Sopenharmony_ci					cpu = <&cpu102>;
388c2ecf20Sopenharmony_ci				};
398c2ecf20Sopenharmony_ci
408c2ecf20Sopenharmony_ci				core3 {
418c2ecf20Sopenharmony_ci					cpu = <&cpu103>;
428c2ecf20Sopenharmony_ci				};
438c2ecf20Sopenharmony_ci			};
448c2ecf20Sopenharmony_ci		};
458c2ecf20Sopenharmony_ci
468c2ecf20Sopenharmony_ci		cpu0: cpu@0 {
478c2ecf20Sopenharmony_ci			device_type = "cpu";
488c2ecf20Sopenharmony_ci			compatible = "arm,cortex-a53";
498c2ecf20Sopenharmony_ci			reg = <0x0 0x0>;
508c2ecf20Sopenharmony_ci			enable-method = "psci";
518c2ecf20Sopenharmony_ci			capacity-dmips-mhz = <592>;
528c2ecf20Sopenharmony_ci			next-level-cache = <&l2>;
538c2ecf20Sopenharmony_ci			#cooling-cells = <2>;
548c2ecf20Sopenharmony_ci		};
558c2ecf20Sopenharmony_ci
568c2ecf20Sopenharmony_ci		cpu1: cpu@1 {
578c2ecf20Sopenharmony_ci			device_type = "cpu";
588c2ecf20Sopenharmony_ci			compatible = "arm,cortex-a53";
598c2ecf20Sopenharmony_ci			reg = <0x0 0x1>;
608c2ecf20Sopenharmony_ci			enable-method = "psci";
618c2ecf20Sopenharmony_ci			capacity-dmips-mhz = <592>;
628c2ecf20Sopenharmony_ci			next-level-cache = <&l2>;
638c2ecf20Sopenharmony_ci			#cooling-cells = <2>;
648c2ecf20Sopenharmony_ci		};
658c2ecf20Sopenharmony_ci
668c2ecf20Sopenharmony_ci		cpu100: cpu@100 {
678c2ecf20Sopenharmony_ci			device_type = "cpu";
688c2ecf20Sopenharmony_ci			compatible = "arm,cortex-a73";
698c2ecf20Sopenharmony_ci			reg = <0x0 0x100>;
708c2ecf20Sopenharmony_ci			enable-method = "psci";
718c2ecf20Sopenharmony_ci			capacity-dmips-mhz = <1024>;
728c2ecf20Sopenharmony_ci			next-level-cache = <&l2>;
738c2ecf20Sopenharmony_ci			#cooling-cells = <2>;
748c2ecf20Sopenharmony_ci		};
758c2ecf20Sopenharmony_ci
768c2ecf20Sopenharmony_ci		cpu101: cpu@101 {
778c2ecf20Sopenharmony_ci			device_type = "cpu";
788c2ecf20Sopenharmony_ci			compatible = "arm,cortex-a73";
798c2ecf20Sopenharmony_ci			reg = <0x0 0x101>;
808c2ecf20Sopenharmony_ci			enable-method = "psci";
818c2ecf20Sopenharmony_ci			capacity-dmips-mhz = <1024>;
828c2ecf20Sopenharmony_ci			next-level-cache = <&l2>;
838c2ecf20Sopenharmony_ci			#cooling-cells = <2>;
848c2ecf20Sopenharmony_ci		};
858c2ecf20Sopenharmony_ci
868c2ecf20Sopenharmony_ci		cpu102: cpu@102 {
878c2ecf20Sopenharmony_ci			device_type = "cpu";
888c2ecf20Sopenharmony_ci			compatible = "arm,cortex-a73";
898c2ecf20Sopenharmony_ci			reg = <0x0 0x102>;
908c2ecf20Sopenharmony_ci			enable-method = "psci";
918c2ecf20Sopenharmony_ci			capacity-dmips-mhz = <1024>;
928c2ecf20Sopenharmony_ci			next-level-cache = <&l2>;
938c2ecf20Sopenharmony_ci			#cooling-cells = <2>;
948c2ecf20Sopenharmony_ci		};
958c2ecf20Sopenharmony_ci
968c2ecf20Sopenharmony_ci		cpu103: cpu@103 {
978c2ecf20Sopenharmony_ci			device_type = "cpu";
988c2ecf20Sopenharmony_ci			compatible = "arm,cortex-a73";
998c2ecf20Sopenharmony_ci			reg = <0x0 0x103>;
1008c2ecf20Sopenharmony_ci			enable-method = "psci";
1018c2ecf20Sopenharmony_ci			capacity-dmips-mhz = <1024>;
1028c2ecf20Sopenharmony_ci			next-level-cache = <&l2>;
1038c2ecf20Sopenharmony_ci			#cooling-cells = <2>;
1048c2ecf20Sopenharmony_ci		};
1058c2ecf20Sopenharmony_ci
1068c2ecf20Sopenharmony_ci		l2: l2-cache0 {
1078c2ecf20Sopenharmony_ci			compatible = "cache";
1088c2ecf20Sopenharmony_ci		};
1098c2ecf20Sopenharmony_ci	};
1108c2ecf20Sopenharmony_ci};
1118c2ecf20Sopenharmony_ci
1128c2ecf20Sopenharmony_ci&clkc {
1138c2ecf20Sopenharmony_ci	compatible = "amlogic,g12b-clkc";
1148c2ecf20Sopenharmony_ci};
1158c2ecf20Sopenharmony_ci
1168c2ecf20Sopenharmony_ci&cpu_thermal {
1178c2ecf20Sopenharmony_ci	cooling-maps {
1188c2ecf20Sopenharmony_ci		map0 {
1198c2ecf20Sopenharmony_ci			trip = <&cpu_passive>;
1208c2ecf20Sopenharmony_ci			cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
1218c2ecf20Sopenharmony_ci					 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
1228c2ecf20Sopenharmony_ci					 <&cpu100 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
1238c2ecf20Sopenharmony_ci					 <&cpu101 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
1248c2ecf20Sopenharmony_ci					 <&cpu102 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
1258c2ecf20Sopenharmony_ci					 <&cpu103 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
1268c2ecf20Sopenharmony_ci		};
1278c2ecf20Sopenharmony_ci		map1 {
1288c2ecf20Sopenharmony_ci			trip = <&cpu_hot>;
1298c2ecf20Sopenharmony_ci			cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
1308c2ecf20Sopenharmony_ci					 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
1318c2ecf20Sopenharmony_ci					 <&cpu100 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
1328c2ecf20Sopenharmony_ci					 <&cpu101 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
1338c2ecf20Sopenharmony_ci					 <&cpu102 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
1348c2ecf20Sopenharmony_ci					 <&cpu103 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
1358c2ecf20Sopenharmony_ci		};
1368c2ecf20Sopenharmony_ci	};
1378c2ecf20Sopenharmony_ci};
1388c2ecf20Sopenharmony_ci
1398c2ecf20Sopenharmony_ci&mali {
1408c2ecf20Sopenharmony_ci	dma-coherent;
1418c2ecf20Sopenharmony_ci};
142