2019-03-08 14:09:40 +00:00
|
|
|
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
|
|
/*
|
|
|
|
* Copyright (c) 2018 Amlogic, Inc. All rights reserved.
|
|
|
|
*/
|
|
|
|
|
2020-03-05 11:12:38 +00:00
|
|
|
#include "meson-g12.dtsi"
|
2019-03-08 14:09:40 +00:00
|
|
|
|
|
|
|
/ {
|
|
|
|
compatible = "amlogic,g12a";
|
|
|
|
|
|
|
|
cpus {
|
|
|
|
#address-cells = <0x2>;
|
|
|
|
#size-cells = <0x0>;
|
|
|
|
|
|
|
|
cpu0: cpu@0 {
|
|
|
|
device_type = "cpu";
|
|
|
|
compatible = "arm,cortex-a53";
|
|
|
|
reg = <0x0 0x0>;
|
|
|
|
enable-method = "psci";
|
|
|
|
next-level-cache = <&l2>;
|
2020-03-05 11:12:38 +00:00
|
|
|
#cooling-cells = <2>;
|
2019-03-08 14:09:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cpu1: cpu@1 {
|
|
|
|
device_type = "cpu";
|
|
|
|
compatible = "arm,cortex-a53";
|
|
|
|
reg = <0x0 0x1>;
|
|
|
|
enable-method = "psci";
|
|
|
|
next-level-cache = <&l2>;
|
2020-03-05 11:12:38 +00:00
|
|
|
#cooling-cells = <2>;
|
2019-03-08 14:09:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cpu2: cpu@2 {
|
|
|
|
device_type = "cpu";
|
|
|
|
compatible = "arm,cortex-a53";
|
|
|
|
reg = <0x0 0x2>;
|
|
|
|
enable-method = "psci";
|
|
|
|
next-level-cache = <&l2>;
|
2020-03-05 11:12:38 +00:00
|
|
|
#cooling-cells = <2>;
|
2019-03-08 14:09:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cpu3: cpu@3 {
|
|
|
|
device_type = "cpu";
|
|
|
|
compatible = "arm,cortex-a53";
|
|
|
|
reg = <0x0 0x3>;
|
|
|
|
enable-method = "psci";
|
|
|
|
next-level-cache = <&l2>;
|
2020-03-05 11:12:38 +00:00
|
|
|
#cooling-cells = <2>;
|
2019-03-08 14:09:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
l2: l2-cache0 {
|
|
|
|
compatible = "cache";
|
2023-01-19 13:44:17 +00:00
|
|
|
cache-level = <2>;
|
2019-03-08 14:09:40 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-10-09 14:03:54 +00:00
|
|
|
cpu_opp_table: opp-table {
|
|
|
|
compatible = "operating-points-v2";
|
|
|
|
opp-shared;
|
2019-05-28 08:50:36 +00:00
|
|
|
|
2019-10-09 14:03:54 +00:00
|
|
|
opp-100000000 {
|
|
|
|
opp-hz = /bits/ 64 <100000000>;
|
|
|
|
opp-microvolt = <731000>;
|
2019-03-08 14:09:40 +00:00
|
|
|
};
|
2019-05-28 08:50:36 +00:00
|
|
|
|
2019-10-09 14:03:54 +00:00
|
|
|
opp-250000000 {
|
|
|
|
opp-hz = /bits/ 64 <250000000>;
|
|
|
|
opp-microvolt = <731000>;
|
2019-05-28 08:50:36 +00:00
|
|
|
};
|
2019-03-08 14:09:40 +00:00
|
|
|
|
2019-10-09 14:03:54 +00:00
|
|
|
opp-500000000 {
|
|
|
|
opp-hz = /bits/ 64 <500000000>;
|
|
|
|
opp-microvolt = <731000>;
|
2019-07-22 08:06:11 +00:00
|
|
|
};
|
|
|
|
|
2019-10-09 14:03:54 +00:00
|
|
|
opp-667000000 {
|
|
|
|
opp-hz = /bits/ 64 <666666666>;
|
|
|
|
opp-microvolt = <731000>;
|
2019-03-08 14:09:40 +00:00
|
|
|
};
|
|
|
|
|
2019-10-09 14:03:54 +00:00
|
|
|
opp-1000000000 {
|
|
|
|
opp-hz = /bits/ 64 <1000000000>;
|
|
|
|
opp-microvolt = <731000>;
|
2019-05-28 08:50:36 +00:00
|
|
|
};
|
|
|
|
|
2019-10-09 14:03:54 +00:00
|
|
|
opp-1200000000 {
|
|
|
|
opp-hz = /bits/ 64 <1200000000>;
|
|
|
|
opp-microvolt = <731000>;
|
2019-03-08 14:09:40 +00:00
|
|
|
};
|
|
|
|
|
2019-10-09 14:03:54 +00:00
|
|
|
opp-1398000000 {
|
|
|
|
opp-hz = /bits/ 64 <1398000000>;
|
|
|
|
opp-microvolt = <761000>;
|
2019-03-08 14:09:40 +00:00
|
|
|
};
|
|
|
|
|
2019-10-09 14:03:54 +00:00
|
|
|
opp-1512000000 {
|
|
|
|
opp-hz = /bits/ 64 <1512000000>;
|
|
|
|
opp-microvolt = <791000>;
|
2019-07-22 08:06:11 +00:00
|
|
|
};
|
|
|
|
|
2019-10-09 14:03:54 +00:00
|
|
|
opp-1608000000 {
|
|
|
|
opp-hz = /bits/ 64 <1608000000>;
|
|
|
|
opp-microvolt = <831000>;
|
2019-07-22 08:06:11 +00:00
|
|
|
};
|
|
|
|
|
2019-10-09 14:03:54 +00:00
|
|
|
opp-1704000000 {
|
|
|
|
opp-hz = /bits/ 64 <1704000000>;
|
|
|
|
opp-microvolt = <861000>;
|
2019-05-28 08:50:36 +00:00
|
|
|
};
|
|
|
|
|
2019-10-09 14:03:54 +00:00
|
|
|
opp-1800000000 {
|
|
|
|
opp-hz = /bits/ 64 <1800000000>;
|
|
|
|
opp-microvolt = <981000>;
|
2019-03-08 14:09:40 +00:00
|
|
|
};
|
|
|
|
};
|
2019-10-09 14:03:54 +00:00
|
|
|
};
|
2019-03-08 14:09:40 +00:00
|
|
|
|
2020-03-05 11:12:38 +00:00
|
|
|
&cpu_thermal {
|
|
|
|
cooling-maps {
|
|
|
|
map0 {
|
|
|
|
trip = <&cpu_passive>;
|
|
|
|
cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
|
|
|
|
<&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
|
|
|
|
<&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
|
|
|
|
<&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
|
|
|
|
};
|
2019-03-08 14:09:40 +00:00
|
|
|
|
2020-03-05 11:12:38 +00:00
|
|
|
map1 {
|
|
|
|
trip = <&cpu_hot>;
|
|
|
|
cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
|
|
|
|
<&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
|
|
|
|
<&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
|
|
|
|
<&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
|
|
|
|
};
|
|
|
|
};
|
2019-03-08 14:09:40 +00:00
|
|
|
};
|
2023-01-19 13:44:17 +00:00
|
|
|
|
|
|
|
&pmu {
|
|
|
|
compatible = "amlogic,g12a-ddr-pmu";
|
|
|
|
};
|