| 1 |
// SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 |
/* |
| 3 |
* Copyright (c) 2018 Amlogic, Inc. All rights reserved. |
| 4 |
*/ |
| 5 |
|
| 6 |
#include "meson-g12.dtsi" |
| 7 |
|
| 8 |
/ { |
| 9 |
compatible = "amlogic,g12a"; |
| 10 |
|
| 11 |
cpus { |
| 12 |
#address-cells = <0x2>; |
| 13 |
#size-cells = <0x0>; |
| 14 |
|
| 15 |
cpu0: cpu@0 { |
| 16 |
device_type = "cpu"; |
| 17 |
compatible = "arm,cortex-a53"; |
| 18 |
reg = <0x0 0x0>; |
| 19 |
enable-method = "psci"; |
| 20 |
d-cache-line-size = <32>; |
| 21 |
d-cache-size = <0x8000>; |
| 22 |
d-cache-sets = <32>; |
| 23 |
i-cache-line-size = <32>; |
| 24 |
i-cache-size = <0x8000>; |
| 25 |
i-cache-sets = <32>; |
| 26 |
next-level-cache = <&l2>; |
| 27 |
#cooling-cells = <2>; |
| 28 |
operating-points-v2 = <&cpu_opp_table>; |
| 29 |
clocks = <&clkc CLKID_CPU_CLK>; |
| 30 |
}; |
| 31 |
|
| 32 |
cpu1: cpu@1 { |
| 33 |
device_type = "cpu"; |
| 34 |
compatible = "arm,cortex-a53"; |
| 35 |
reg = <0x0 0x1>; |
| 36 |
enable-method = "psci"; |
| 37 |
d-cache-line-size = <32>; |
| 38 |
d-cache-size = <0x8000>; |
| 39 |
d-cache-sets = <32>; |
| 40 |
i-cache-line-size = <32>; |
| 41 |
i-cache-size = <0x8000>; |
| 42 |
i-cache-sets = <32>; |
| 43 |
next-level-cache = <&l2>; |
| 44 |
#cooling-cells = <2>; |
| 45 |
operating-points-v2 = <&cpu_opp_table>; |
| 46 |
clocks = <&clkc CLKID_CPU_CLK>; |
| 47 |
}; |
| 48 |
|
| 49 |
cpu2: cpu@2 { |
| 50 |
device_type = "cpu"; |
| 51 |
compatible = "arm,cortex-a53"; |
| 52 |
reg = <0x0 0x2>; |
| 53 |
enable-method = "psci"; |
| 54 |
d-cache-line-size = <32>; |
| 55 |
d-cache-size = <0x8000>; |
| 56 |
d-cache-sets = <32>; |
| 57 |
i-cache-line-size = <32>; |
| 58 |
i-cache-size = <0x8000>; |
| 59 |
i-cache-sets = <32>; |
| 60 |
next-level-cache = <&l2>; |
| 61 |
#cooling-cells = <2>; |
| 62 |
operating-points-v2 = <&cpu_opp_table>; |
| 63 |
clocks = <&clkc CLKID_CPU_CLK>; |
| 64 |
}; |
| 65 |
|
| 66 |
cpu3: cpu@3 { |
| 67 |
device_type = "cpu"; |
| 68 |
compatible = "arm,cortex-a53"; |
| 69 |
reg = <0x0 0x3>; |
| 70 |
enable-method = "psci"; |
| 71 |
d-cache-line-size = <32>; |
| 72 |
d-cache-size = <0x8000>; |
| 73 |
d-cache-sets = <32>; |
| 74 |
i-cache-line-size = <32>; |
| 75 |
i-cache-size = <0x8000>; |
| 76 |
i-cache-sets = <32>; |
| 77 |
next-level-cache = <&l2>; |
| 78 |
#cooling-cells = <2>; |
| 79 |
operating-points-v2 = <&cpu_opp_table>; |
| 80 |
clocks = <&clkc CLKID_CPU_CLK>; |
| 81 |
}; |
| 82 |
|
| 83 |
l2: l2-cache0 { |
| 84 |
compatible = "cache"; |
| 85 |
cache-level = <2>; |
| 86 |
cache-unified; |
| 87 |
cache-size = <0x80000>; /* L2. 512 KB */ |
| 88 |
cache-line-size = <64>; |
| 89 |
cache-sets = <512>; |
| 90 |
}; |
| 91 |
}; |
| 92 |
|
| 93 |
cpu_opp_table: opp-table { |
| 94 |
compatible = "operating-points-v2"; |
| 95 |
opp-shared; |
| 96 |
|
| 97 |
opp-1000000000 { |
| 98 |
opp-hz = /bits/ 64 <1000000000>; |
| 99 |
opp-microvolt = <731000>; |
| 100 |
clock-latency-ns = <50000>; |
| 101 |
}; |
| 102 |
|
| 103 |
opp-1200000000 { |
| 104 |
opp-hz = /bits/ 64 <1200000000>; |
| 105 |
opp-microvolt = <731000>; |
| 106 |
}; |
| 107 |
|
| 108 |
opp-1398000000 { |
| 109 |
opp-hz = /bits/ 64 <1398000000>; |
| 110 |
opp-microvolt = <761000>; |
| 111 |
}; |
| 112 |
|
| 113 |
opp-1512000000 { |
| 114 |
opp-hz = /bits/ 64 <1512000000>; |
| 115 |
opp-microvolt = <791000>; |
| 116 |
}; |
| 117 |
|
| 118 |
opp-1608000000 { |
| 119 |
opp-hz = /bits/ 64 <1608000000>; |
| 120 |
opp-microvolt = <831000>; |
| 121 |
}; |
| 122 |
|
| 123 |
opp-1704000000 { |
| 124 |
opp-hz = /bits/ 64 <1704000000>; |
| 125 |
opp-microvolt = <861000>; |
| 126 |
}; |
| 127 |
|
| 128 |
opp-1800000000 { |
| 129 |
opp-hz = /bits/ 64 <1800000000>; |
| 130 |
opp-microvolt = <981000>; |
| 131 |
}; |
| 132 |
}; |
| 133 |
}; |
| 134 |
|
| 135 |
&cpu_thermal { |
| 136 |
cooling-maps { |
| 137 |
map0 { |
| 138 |
trip = <&cpu_passive>; |
| 139 |
cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 140 |
<&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 141 |
<&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 142 |
<&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; |
| 143 |
}; |
| 144 |
|
| 145 |
map1 { |
| 146 |
trip = <&cpu_hot>; |
| 147 |
cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 148 |
<&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 149 |
<&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 150 |
<&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; |
| 151 |
}; |
| 152 |
}; |
| 153 |
}; |
| 154 |
|
| 155 |
&pmu { |
| 156 |
compatible = "amlogic,g12a-ddr-pmu"; |
| 157 |
}; |