From 83e38d0ae05b32976da1968b1ac14a87b0d95eb3 Mon Sep 17 00:00:00 2001 From: LiamRay11 <228416644+LiamRay11@users.noreply.github.com> Date: Mon, 16 Nov 2026 09:04:10 -0800 Subject: [PATCH 1/2] dt-bindings: cpu: apple,t8140-cpuidle: add apple,t8152-cpuidle As on T8140, the OS cannot request core power-down on T8152 (M6) and WFI is the only idle state. Allow "apple,t8152-cpuidle" with the T8140 compatible as its fallback, which the driver already matches. Signed-off-by: LiamRay11 <228416644+LiamRay11@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 --- .../bindings/cpu/apple,t8140-cpuidle.yaml | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/Documentation/devicetree/bindings/cpu/apple,t8140-cpuidle.yaml b/Documentation/devicetree/bindings/cpu/apple,t8140-cpuidle.yaml index 9ffa89ece40cd..430e20dd605b4 100644 --- a/Documentation/devicetree/bindings/cpu/apple,t8140-cpuidle.yaml +++ b/Documentation/devicetree/bindings/cpu/apple,t8140-cpuidle.yaml @@ -4,26 +4,30 @@ $id: http://devicetree.org/schemas/cpu/apple,t8140-cpuidle.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# -title: Apple T6040, T8132 and T8140 CPU idle controller +title: Apple T6040, T8132, T8140 and T8152 CPU idle controller maintainers: - Ryan Murray description: - Selects the Apple CPU idle driver on T6040, T8132 and T8140 systems. On these - SoCs the hardware decides when an idle core is power-gated after WFI; - software cannot request core or cluster power-down, so WFI is the only - idle state. + Selects the Apple CPU idle driver on T6040, T8132, T8140 and T8152 systems. + On these SoCs the hardware decides when an idle core is power-gated after + WFI; software cannot request core or cluster power-down, so WFI is the only + idle state. T8152 uses the T8140 driver profile. properties: $nodename: const: cpuidle compatible: - enum: - - apple,t6041-cpuidle - - apple,t8132-cpuidle - - apple,t8140-cpuidle + oneOf: + - enum: + - apple,t6041-cpuidle + - apple,t8132-cpuidle + - apple,t8140-cpuidle + - items: + - const: apple,t8152-cpuidle + - const: apple,t8140-cpuidle required: - compatible From 16c25d457fa5a97d958e929d4d3161c4d208e535 Mon Sep 17 00:00:00 2001 From: Ryan Murray Date: Thu, 19 Nov 2026 23:52:30 +1100 Subject: [PATCH 2/2] arm64: dts: apple: t8152: CPU idle driver on every M6 The J873g (Mac mini, M6) has no cpuidle node, so cpuidle-apple never binds there: the CPUs idle through the default WFI without a cpuidle driver, and s2idle cannot freeze the tick or suspend timekeeping. The J804 board file in #2107 adds the node for that board only. The cores and their idle behaviour are the SoC's: as on T8140, the OS cannot request core power-down and WFI is the only state, which the T8140 profile of the driver already handles (CYC_OVRD is left alone on anything newer than M3). Put the node in t8152-peripherals.dtsi, which both the J873g tree and t8152.dtsi (J804, J833ct) include. Signed-off-by: Ryan Murray --- arch/arm64/boot/dts/apple/t8152-peripherals.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/apple/t8152-peripherals.dtsi b/arch/arm64/boot/dts/apple/t8152-peripherals.dtsi index 1cbd604c41a47..578e7730ef5f1 100644 --- a/arch/arm64/boot/dts/apple/t8152-peripherals.dtsi +++ b/arch/arm64/boot/dts/apple/t8152-peripherals.dtsi @@ -1,6 +1,19 @@ // SPDX-License-Identifier: GPL-2.0+ OR MIT /* Shared SoC resources; firmware ownership and enables need qualification. */ +/ { + /* + * As on T8140, the OS cannot request core power-down on T8152 (no + * writable CYC_OVRD): the hardware power-gates an idle core after WFI, + * so both of the driver's idle states are WFI. The driver must be bound + * for s2idle to freeze the tick and suspend timekeeping. Every T8152 + * board has the same cores, so the node lives here. + */ + cpuidle { + compatible = "apple,t8152-cpuidle", "apple,t8140-cpuidle"; + }; +}; + &{/soc} { pcie2_dart: iommu@38a000000 { compatible = "apple,t8152-dart", "apple,t8110-dart";