| 1 |
// SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 |
/* |
| 3 |
* Copyright (c) 2019 BayLibre, SAS |
| 4 |
* Author: Neil Armstrong <[email protected]> |
| 5 |
*/ |
| 6 |
|
| 7 |
#include "meson-g12.dtsi" |
| 8 |
|
| 9 |
/ { |
| 10 |
compatible = "amlogic,g12b"; |
| 11 |
|
| 12 |
cpus { |
| 13 |
#address-cells = <0x2>; |
| 14 |
#size-cells = <0x0>; |
| 15 |
|
| 16 |
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 |
|
| 46 |
cpu0: cpu@0 { |
| 47 |
device_type = "cpu"; |
| 48 |
compatible = "arm,cortex-a53"; |
| 49 |
reg = <0x0 0x0>; |
| 50 |
enable-method = "psci"; |
| 51 |
capacity-dmips-mhz = <592>; |
| 52 |
d-cache-line-size = <32>; |
| 53 |
d-cache-size = <0x8000>; |
| 54 |
d-cache-sets = <32>; |
| 55 |
i-cache-line-size = <32>; |
| 56 |
i-cache-size = <0x8000>; |
| 57 |
i-cache-sets = <32>; |
| 58 |
next-level-cache = <&l2_cache_l>; |
| 59 |
#cooling-cells = <2>; |
| 60 |
clocks = <&clkc CLKID_CPU_CLK>; |
| 61 |
}; |
| 62 |
|
| 63 |
cpu1: cpu@1 { |
| 64 |
device_type = "cpu"; |
| 65 |
compatible = "arm,cortex-a53"; |
| 66 |
reg = <0x0 0x1>; |
| 67 |
enable-method = "psci"; |
| 68 |
capacity-dmips-mhz = <592>; |
| 69 |
d-cache-line-size = <32>; |
| 70 |
d-cache-size = <0x8000>; |
| 71 |
d-cache-sets = <32>; |
| 72 |
i-cache-line-size = <32>; |
| 73 |
i-cache-size = <0x8000>; |
| 74 |
i-cache-sets = <32>; |
| 75 |
next-level-cache = <&l2_cache_l>; |
| 76 |
#cooling-cells = <2>; |
| 77 |
clocks = <&clkc CLKID_CPU_CLK>; |
| 78 |
}; |
| 79 |
|
| 80 |
cpu100: cpu@100 { |
| 81 |
device_type = "cpu"; |
| 82 |
compatible = "arm,cortex-a73"; |
| 83 |
reg = <0x0 0x100>; |
| 84 |
enable-method = "psci"; |
| 85 |
capacity-dmips-mhz = <1024>; |
| 86 |
d-cache-line-size = <32>; |
| 87 |
d-cache-size = <0x8000>; |
| 88 |
d-cache-sets = <32>; |
| 89 |
i-cache-line-size = <32>; |
| 90 |
i-cache-size = <0x8000>; |
| 91 |
i-cache-sets = <32>; |
| 92 |
next-level-cache = <&l2_cache_b>; |
| 93 |
#cooling-cells = <2>; |
| 94 |
clocks = <&clkc CLKID_CPUB_CLK>; |
| 95 |
}; |
| 96 |
|
| 97 |
cpu101: cpu@101 { |
| 98 |
device_type = "cpu"; |
| 99 |
compatible = "arm,cortex-a73"; |
| 100 |
reg = <0x0 0x101>; |
| 101 |
enable-method = "psci"; |
| 102 |
capacity-dmips-mhz = <1024>; |
| 103 |
d-cache-line-size = <32>; |
| 104 |
d-cache-size = <0x8000>; |
| 105 |
d-cache-sets = <32>; |
| 106 |
i-cache-line-size = <32>; |
| 107 |
i-cache-size = <0x8000>; |
| 108 |
i-cache-sets = <32>; |
| 109 |
next-level-cache = <&l2_cache_b>; |
| 110 |
#cooling-cells = <2>; |
| 111 |
clocks = <&clkc CLKID_CPUB_CLK>; |
| 112 |
}; |
| 113 |
|
| 114 |
cpu102: cpu@102 { |
| 115 |
device_type = "cpu"; |
| 116 |
compatible = "arm,cortex-a73"; |
| 117 |
reg = <0x0 0x102>; |
| 118 |
enable-method = "psci"; |
| 119 |
capacity-dmips-mhz = <1024>; |
| 120 |
d-cache-line-size = <64>; |
| 121 |
d-cache-size = <0x10000>; |
| 122 |
d-cache-sets = <64>; |
| 123 |
i-cache-line-size = <64>; |
| 124 |
i-cache-size = <0x10000>; |
| 125 |
i-cache-sets = <64>; |
| 126 |
next-level-cache = <&l2_cache_b>; |
| 127 |
#cooling-cells = <2>; |
| 128 |
clocks = <&clkc CLKID_CPUB_CLK>; |
| 129 |
}; |
| 130 |
|
| 131 |
cpu103: cpu@103 { |
| 132 |
device_type = "cpu"; |
| 133 |
compatible = "arm,cortex-a73"; |
| 134 |
reg = <0x0 0x103>; |
| 135 |
enable-method = "psci"; |
| 136 |
capacity-dmips-mhz = <1024>; |
| 137 |
d-cache-line-size = <64>; |
| 138 |
d-cache-size = <0x10000>; |
| 139 |
d-cache-sets = <64>; |
| 140 |
i-cache-line-size = <64>; |
| 141 |
i-cache-size = <0x10000>; |
| 142 |
i-cache-sets = <64>; |
| 143 |
next-level-cache = <&l2_cache_b>; |
| 144 |
#cooling-cells = <2>; |
| 145 |
operating-points-v2 = <&cpub_opp_table_1>; |
| 146 |
clocks = <&clkc CLKID_CPUB_CLK>; |
| 147 |
}; |
| 148 |
|
| 149 |
l2_cache_l: l2-cache-cluster0 { |
| 150 |
compatible = "cache"; |
| 151 |
cache-level = <2>; |
| 152 |
cache-unified; |
| 153 |
cache-size = <0x40000>; /* L2. 256 KB */ |
| 154 |
cache-line-size = <64>; |
| 155 |
cache-sets = <512>; |
| 156 |
}; |
| 157 |
|
| 158 |
l2_cache_b: l2-cache-cluster1 { |
| 159 |
compatible = "cache"; |
| 160 |
cache-level = <2>; |
| 161 |
cache-unified; |
| 162 |
cache-size = <0x100000>; /* L2. 1MB */ |
| 163 |
cache-line-size = <64>; |
| 164 |
cache-sets = <512>; |
| 165 |
}; |
| 166 |
}; |
| 167 |
}; |
| 168 |
|
| 169 |
&clkc { |
| 170 |
compatible = "amlogic,g12b-clkc"; |
| 171 |
}; |
| 172 |
|
| 173 |
&cpu_thermal { |
| 174 |
cooling-maps { |
| 175 |
map0 { |
| 176 |
trip = <&cpu_passive>; |
| 177 |
cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 178 |
<&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 179 |
<&cpu100 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 180 |
<&cpu101 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 181 |
<&cpu102 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 182 |
<&cpu103 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; |
| 183 |
}; |
| 184 |
map1 { |
| 185 |
trip = <&cpu_hot>; |
| 186 |
cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 187 |
<&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 188 |
<&cpu100 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 189 |
<&cpu101 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 190 |
<&cpu102 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 191 |
<&cpu103 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; |
| 192 |
}; |
| 193 |
}; |
| 194 |
}; |
| 195 |
|
| 196 |
&mali { |
| 197 |
dma-coherent; |
| 198 |
}; |
| 199 |
|
| 200 |
&pmu { |
| 201 |
compatible = "amlogic,g12b-ddr-pmu"; |
| 202 |
}; |
| 203 |
|
| 204 |
&npu { |
| 205 |
power-domains = <&pwrc PWRC_G12A_NNA_ID>; |
| 206 |
}; |