blob: 75ff00fb2e4cf9cd92c99c25b3dfd4fd448f305d [file] [log] [blame]
Neil Armstrong836bfad2019-07-22 11:27:59 +02001// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (c) 2019 BayLibre, SAS
4 * Author: Neil Armstrong <narmstrong@baylibre.com>
5 */
6
Jerome Brunetd34d5ef2020-03-05 12:12:38 +01007#include "meson-g12.dtsi"
Neil Armstrong836bfad2019-07-22 11:27:59 +02008
9/ {
10 compatible = "amlogic,g12b";
11
12 cpus {
Andreas Färber5851dcb2019-10-09 16:03:54 +020013 #address-cells = <0x2>;
14 #size-cells = <0x0>;
15
Neil Armstrong836bfad2019-07-22 11:27:59 +020016 cpu-map {
17 cluster0 {
18 core0 {
19 cpu = <&cpu0>;
20 };
21
22 core1 {
23 cpu = <&cpu1>;
24 };
25 };
26
27 cluster1 {
28 core0 {
29 cpu = <&cpu100>;
30 };
31
32 core1 {
33 cpu = <&cpu101>;
34 };
35
36 core2 {
37 cpu = <&cpu102>;
38 };
39
40 core3 {
41 cpu = <&cpu103>;
42 };
43 };
44 };
45
Andreas Färber5851dcb2019-10-09 16:03:54 +020046 cpu0: cpu@0 {
47 device_type = "cpu";
48 compatible = "arm,cortex-a53";
49 reg = <0x0 0x0>;
50 enable-method = "psci";
Jerome Brunetd34d5ef2020-03-05 12:12:38 +010051 capacity-dmips-mhz = <592>;
Andreas Färber5851dcb2019-10-09 16:03:54 +020052 next-level-cache = <&l2>;
Jerome Brunetd34d5ef2020-03-05 12:12:38 +010053 #cooling-cells = <2>;
Andreas Färber5851dcb2019-10-09 16:03:54 +020054 };
55
56 cpu1: cpu@1 {
57 device_type = "cpu";
58 compatible = "arm,cortex-a53";
59 reg = <0x0 0x1>;
60 enable-method = "psci";
Jerome Brunetd34d5ef2020-03-05 12:12:38 +010061 capacity-dmips-mhz = <592>;
Andreas Färber5851dcb2019-10-09 16:03:54 +020062 next-level-cache = <&l2>;
Jerome Brunetd34d5ef2020-03-05 12:12:38 +010063 #cooling-cells = <2>;
Andreas Färber5851dcb2019-10-09 16:03:54 +020064 };
Neil Armstrong836bfad2019-07-22 11:27:59 +020065
66 cpu100: cpu@100 {
67 device_type = "cpu";
68 compatible = "arm,cortex-a73";
69 reg = <0x0 0x100>;
70 enable-method = "psci";
Jerome Brunetd34d5ef2020-03-05 12:12:38 +010071 capacity-dmips-mhz = <1024>;
Neil Armstrong836bfad2019-07-22 11:27:59 +020072 next-level-cache = <&l2>;
Jerome Brunetd34d5ef2020-03-05 12:12:38 +010073 #cooling-cells = <2>;
Neil Armstrong836bfad2019-07-22 11:27:59 +020074 };
75
76 cpu101: cpu@101 {
77 device_type = "cpu";
78 compatible = "arm,cortex-a73";
79 reg = <0x0 0x101>;
80 enable-method = "psci";
Jerome Brunetd34d5ef2020-03-05 12:12:38 +010081 capacity-dmips-mhz = <1024>;
Neil Armstrong836bfad2019-07-22 11:27:59 +020082 next-level-cache = <&l2>;
Jerome Brunetd34d5ef2020-03-05 12:12:38 +010083 #cooling-cells = <2>;
Neil Armstrong836bfad2019-07-22 11:27:59 +020084 };
85
86 cpu102: cpu@102 {
87 device_type = "cpu";
88 compatible = "arm,cortex-a73";
89 reg = <0x0 0x102>;
90 enable-method = "psci";
Jerome Brunetd34d5ef2020-03-05 12:12:38 +010091 capacity-dmips-mhz = <1024>;
Neil Armstrong836bfad2019-07-22 11:27:59 +020092 next-level-cache = <&l2>;
Jerome Brunetd34d5ef2020-03-05 12:12:38 +010093 #cooling-cells = <2>;
Neil Armstrong836bfad2019-07-22 11:27:59 +020094 };
95
96 cpu103: cpu@103 {
97 device_type = "cpu";
98 compatible = "arm,cortex-a73";
99 reg = <0x0 0x103>;
100 enable-method = "psci";
Jerome Brunetd34d5ef2020-03-05 12:12:38 +0100101 capacity-dmips-mhz = <1024>;
Neil Armstrong836bfad2019-07-22 11:27:59 +0200102 next-level-cache = <&l2>;
Jerome Brunetd34d5ef2020-03-05 12:12:38 +0100103 #cooling-cells = <2>;
Neil Armstrong836bfad2019-07-22 11:27:59 +0200104 };
Andreas Färber5851dcb2019-10-09 16:03:54 +0200105
106 l2: l2-cache0 {
107 compatible = "cache";
Neil Armstrongec6da9f2023-01-19 14:44:17 +0100108 cache-level = <2>;
Andreas Färber5851dcb2019-10-09 16:03:54 +0200109 };
Neil Armstrong836bfad2019-07-22 11:27:59 +0200110 };
111};
112
113&clkc {
114 compatible = "amlogic,g12b-clkc";
115};
Andreas Färber5851dcb2019-10-09 16:03:54 +0200116
Christian Hewittde649e62020-04-24 02:58:30 +0000117&cpu_thermal {
118 cooling-maps {
119 map0 {
120 trip = <&cpu_passive>;
121 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
122 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
123 <&cpu100 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
124 <&cpu101 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
125 <&cpu102 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
126 <&cpu103 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
127 };
128 map1 {
129 trip = <&cpu_hot>;
130 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
131 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
132 <&cpu100 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
133 <&cpu101 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
134 <&cpu102 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
135 <&cpu103 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
136 };
137 };
138};
Neil Armstrong425d9d52021-09-17 09:37:00 +0200139
140&mali {
141 dma-coherent;
142};
Neil Armstrongec6da9f2023-01-19 14:44:17 +0100143
144&pmu {
145 compatible = "amlogic,g12b-ddr-pmu";
146};