Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
312 changes: 312 additions & 0 deletions arch/arm64/boot/dts/apple/t8122-j615.dts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include "t8122-usbpd-spmi.dtsi"
#include "t8122-jxxx.dtsi"
#include <dt-bindings/leds/common.h>
#include <dt-bindings/thermal/thermal.h>

/ {
compatible = "apple,j615", "apple,t8122", "apple,arm-platform";
Expand All @@ -33,6 +34,317 @@
default-state = "keep";
};
};

/*
* The J615 is fanless like the J613, on the same die with the same
* six CPU die sensors, so it takes the J613's zones unchanged: one
* zone per sensor, each throttling both clusters through the power
* allocator, E cluster weighted three to one and capped at cooling
* state 3 (2004 MHz); switch-on 58 C, control 95 C, critical 110 C.
*
* Without zones nothing limits the CPU: eight busy cores passed 105 C
* in 150 s, still rising, and a -j8 kernel build held 110-114.6 C for
* 22 minutes. sustainable-power was checked on a J615: with 6 W eight
* busy cores peaked at 87.7 C with the P cores at 3.1-3.6 GHz, and a
* 20 minute -j8 kernel build held a level 91-92 C at 2.9 GHz (peak
* 97.2 C, 6 of 545 samples at or above 95 C). 8 W peaked at 96.3 C
* under the eight-core load with no gain in P-core frequency.
*/
thermal-zones {
cpu-e0-thermal {
polling-delay-passive = <500>;
polling-delay = <500>;
thermal-sensors = <&smc_hwmon 0>; /* Te05 */
sustainable-power = <6000>;

trips {
cpu_e0_alert: trip-alert {
temperature = <58000>;
hysteresis = <2000>;
type = "passive";
};

cpu_e0_control: trip-control {
temperature = <95000>;
hysteresis = <2000>;
type = "passive";
};

trip-critical {
temperature = <110000>;
hysteresis = <0>;
type = "critical";
};
};

cooling-maps {
map0 {
trip = <&cpu_e0_control>;
cooling-device =
<&cpu_p0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu_p1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu_p2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu_p3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
contribution = <1024>;
};

map1 {
trip = <&cpu_e0_control>;
cooling-device =
<&cpu_e0 THERMAL_NO_LIMIT 3>,
<&cpu_e1 THERMAL_NO_LIMIT 3>,
<&cpu_e2 THERMAL_NO_LIMIT 3>,
<&cpu_e3 THERMAL_NO_LIMIT 3>;
contribution = <3072>;
};
};
};

cpu-e1-thermal {
polling-delay-passive = <500>;
polling-delay = <500>;
thermal-sensors = <&smc_hwmon 1>; /* Te0P */
sustainable-power = <6000>;

trips {
cpu_e1_alert: trip-alert {
temperature = <58000>;
hysteresis = <2000>;
type = "passive";
};

cpu_e1_control: trip-control {
temperature = <95000>;
hysteresis = <2000>;
type = "passive";
};

trip-critical {
temperature = <110000>;
hysteresis = <0>;
type = "critical";
};
};

cooling-maps {
map0 {
trip = <&cpu_e1_control>;
cooling-device =
<&cpu_p0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu_p1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu_p2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu_p3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
contribution = <1024>;
};

map1 {
trip = <&cpu_e1_control>;
cooling-device =
<&cpu_e0 THERMAL_NO_LIMIT 3>,
<&cpu_e1 THERMAL_NO_LIMIT 3>,
<&cpu_e2 THERMAL_NO_LIMIT 3>,
<&cpu_e3 THERMAL_NO_LIMIT 3>;
contribution = <3072>;
};
};
};

cpu-p0-thermal {
polling-delay-passive = <500>;
polling-delay = <500>;
thermal-sensors = <&smc_hwmon 2>; /* Tp05 */
sustainable-power = <6000>;

trips {
cpu_p0_alert: trip-alert {
temperature = <58000>;
hysteresis = <2000>;
type = "passive";
};

cpu_p0_control: trip-control {
temperature = <95000>;
hysteresis = <2000>;
type = "passive";
};

trip-critical {
temperature = <110000>;
hysteresis = <0>;
type = "critical";
};
};

cooling-maps {
map0 {
trip = <&cpu_p0_control>;
cooling-device =
<&cpu_p0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu_p1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu_p2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu_p3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
contribution = <1024>;
};

map1 {
trip = <&cpu_p0_control>;
cooling-device =
<&cpu_e0 THERMAL_NO_LIMIT 3>,
<&cpu_e1 THERMAL_NO_LIMIT 3>,
<&cpu_e2 THERMAL_NO_LIMIT 3>,
<&cpu_e3 THERMAL_NO_LIMIT 3>;
contribution = <3072>;
};
};
};

cpu-p1-thermal {
polling-delay-passive = <500>;
polling-delay = <500>;
thermal-sensors = <&smc_hwmon 3>; /* Tp0L */
sustainable-power = <6000>;

trips {
cpu_p1_alert: trip-alert {
temperature = <58000>;
hysteresis = <2000>;
type = "passive";
};

cpu_p1_control: trip-control {
temperature = <95000>;
hysteresis = <2000>;
type = "passive";
};

trip-critical {
temperature = <110000>;
hysteresis = <0>;
type = "critical";
};
};

cooling-maps {
map0 {
trip = <&cpu_p1_control>;
cooling-device =
<&cpu_p0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu_p1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu_p2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu_p3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
contribution = <1024>;
};

map1 {
trip = <&cpu_p1_control>;
cooling-device =
<&cpu_e0 THERMAL_NO_LIMIT 3>,
<&cpu_e1 THERMAL_NO_LIMIT 3>,
<&cpu_e2 THERMAL_NO_LIMIT 3>,
<&cpu_e3 THERMAL_NO_LIMIT 3>;
contribution = <3072>;
};
};
};

cpu-p2-thermal {
polling-delay-passive = <500>;
polling-delay = <500>;
thermal-sensors = <&smc_hwmon 4>; /* Tp0b */
sustainable-power = <6000>;

trips {
cpu_p2_alert: trip-alert {
temperature = <58000>;
hysteresis = <2000>;
type = "passive";
};

cpu_p2_control: trip-control {
temperature = <95000>;
hysteresis = <2000>;
type = "passive";
};

trip-critical {
temperature = <110000>;
hysteresis = <0>;
type = "critical";
};
};

cooling-maps {
map0 {
trip = <&cpu_p2_control>;
cooling-device =
<&cpu_p0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu_p1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu_p2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu_p3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
contribution = <1024>;
};

map1 {
trip = <&cpu_p2_control>;
cooling-device =
<&cpu_e0 THERMAL_NO_LIMIT 3>,
<&cpu_e1 THERMAL_NO_LIMIT 3>,
<&cpu_e2 THERMAL_NO_LIMIT 3>,
<&cpu_e3 THERMAL_NO_LIMIT 3>;
contribution = <3072>;
};
};
};

cpu-p3-thermal {
polling-delay-passive = <500>;
polling-delay = <500>;
thermal-sensors = <&smc_hwmon 5>; /* Tp0r */
sustainable-power = <6000>;

trips {
cpu_p3_alert: trip-alert {
temperature = <58000>;
hysteresis = <2000>;
type = "passive";
};

cpu_p3_control: trip-control {
temperature = <95000>;
hysteresis = <2000>;
type = "passive";
};

trip-critical {
temperature = <110000>;
hysteresis = <0>;
type = "critical";
};
};

cooling-maps {
map0 {
trip = <&cpu_p3_control>;
cooling-device =
<&cpu_p0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu_p1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu_p2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
<&cpu_p3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
contribution = <1024>;
};

map1 {
trip = <&cpu_p3_control>;
cooling-device =
<&cpu_e0 THERMAL_NO_LIMIT 3>,
<&cpu_e1 THERMAL_NO_LIMIT 3>,
<&cpu_e2 THERMAL_NO_LIMIT 3>,
<&cpu_e3 THERMAL_NO_LIMIT 3>;
contribution = <3072>;
};
};
};
};
};

&dcp {
Expand Down