From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B0E963F6C2F; Wed, 8 Jul 2026 07:16:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783494962; cv=none; b=eNKLWahAny/nNZyKO0IoH4Iq0rf+o4lwSjiizMDPQFxfm/fPpx5T/qNCyZBuDP9xW+KFM2daAS9IdBjSZ/1HIVxTnIChr4Jq4Q+1MQKgGZtN5YpNVCCxr017EkJd6Imuo0elsS8hAsduq7VvXD/xi5wjZg1NPDV+83RC0WGhNHY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783494962; c=relaxed/simple; bh=T2hjJ4VW2vv/BzLonzPN9qyF2cwvwXce9kLJVx7y2NI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=EU3PR/XiS03EMMKFYflmg9u9t9EHzxrqR3IiI8TP8NkCRHSRTuF5HshYKtKAOmqEUm0IPjNrdr3SEzbaC2yIA3lZJeWYmKfXB1jWMKIEUYCIn0zJODSh4neBiq65/v4AgVtycgQqOGdKktsd+qw3ChI4caB2gUDJ0VgRgU81IW8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=fn6fKnGu; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="fn6fKnGu" Received: by smtp.kernel.org (Postfix) with ESMTPS id ECF24C2BCF7; Wed, 8 Jul 2026 07:16:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1783494961; bh=T2hjJ4VW2vv/BzLonzPN9qyF2cwvwXce9kLJVx7y2NI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=fn6fKnGuJBujzL/KyGm3delqzpXmsKW5dP3Wq3eESKOtVlwlaqpdIedUcj3AuW2rF KgUul1NOxy9OL71gCR9ZWwBoVscieLPJWKgGRwz0E36GpAXUB5RhyuokztQrqCb2vw M8cdhTuehgpBUhUdN9jet/gVFt/+i+vfhKXzE3CQrylP13HvK0OLGT4luzacu82mi8 ZPKFHV0Y00NLMozbs8tVFUYUXq9XVR/cw7hmUN4FJDd3Z6RntzTVCSUXr4kbqLbn+C ZIBnsBSZu5OOm/kLZPe3z6QztDtkx29JWyGu6xn3NuazO1AUay84AYmXIcCAzNOfds lY5AlYcn9M/1g== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id D5F26C43602; Wed, 8 Jul 2026 07:16:00 +0000 (UTC) From: Sven Peter Date: Wed, 08 Jul 2026 09:15:42 +0200 Subject: [PATCH RFC 6/6] arm64: dts: apple: t8103: Add PSCI and CPU idle states Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260708-efi-psci-v1-6-9efb3abf0e4c@kernel.org> References: <20260708-efi-psci-v1-0-9efb3abf0e4c@kernel.org> In-Reply-To: <20260708-efi-psci-v1-0-9efb3abf0e4c@kernel.org> To: Mark Rutland , Lorenzo Pieralisi , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Ard Biesheuvel , Ilias Apalodimas , Catalin Marinas , Will Deacon , Sudeep Holla , Janne Grunau , Neal Gompa Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-efi@vger.kernel.org, asahi@lists.linux.dev, Sven Peter X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=4506; i=sven@kernel.org; h=from:subject:message-id; bh=T2hjJ4VW2vv/BzLonzPN9qyF2cwvwXce9kLJVx7y2NI=; b=owGbwMvMwCXmIlirolUq95LxtFoSQ5bvT91/7B+f1b4PCA9wehDms1b2+923e2YwzGTVqba8E tnh8467o5SFQYyLQVZMkWX7fnvTJw/fCC7ddOk9zBxWJpAhDFycAjCRS+UM/zSFc+T7pFeZbvEw ZXvzfb5XeJaBj7ex5MnovTJzT70MLmNkaI8yWerEprTO85ndrj4Nxdql25j5Ahw4f65xPjfJxqC JFwA= X-Developer-Key: i=sven@kernel.org; a=openpgp; fpr=A1E3E34A2B3C820DBC4955E5993B08092F131F93 X-Endpoint-Received: by B4 Relay for sven@kernel.org/default with auth_id=407 Switch the base M1 from spin-table to PSCI and also add two basic idle states that we support for now. Signed-off-by: Sven Peter --- arch/arm64/boot/dts/apple/t8103.dtsi | 51 ++++++++++++++++++++++++++++++------ 1 file changed, 43 insertions(+), 8 deletions(-) diff --git a/arch/arm64/boot/dts/apple/t8103.dtsi b/arch/arm64/boot/dts/apple/t8103.dtsi index da774096b667..3dbcaa698a90 100644 --- a/arch/arm64/boot/dts/apple/t8103.dtsi +++ b/arch/arm64/boot/dts/apple/t8103.dtsi @@ -24,6 +24,11 @@ aliases { gpu = &gpu; }; + psci { + compatible = "arm,psci-1.0"; + method = "efi"; + }; + cpus { #address-cells = <2>; #size-cells = <0>; @@ -64,7 +69,8 @@ cpu_e0: cpu@0 { compatible = "apple,icestorm"; device_type = "cpu"; reg = <0x0 0x0>; - enable-method = "spin-table"; + enable-method = "psci"; + cpu-idle-states = <&cpu_retention_wfi &cpu_deep_wfi>; cpu-release-addr = <0 0>; /* To be filled by loader */ operating-points-v2 = <&ecluster_opp>; capacity-dmips-mhz = <714>; @@ -78,7 +84,8 @@ cpu_e1: cpu@1 { compatible = "apple,icestorm"; device_type = "cpu"; reg = <0x0 0x1>; - enable-method = "spin-table"; + enable-method = "psci"; + cpu-idle-states = <&cpu_retention_wfi &cpu_deep_wfi>; cpu-release-addr = <0 0>; /* To be filled by loader */ operating-points-v2 = <&ecluster_opp>; capacity-dmips-mhz = <714>; @@ -92,7 +99,8 @@ cpu_e2: cpu@2 { compatible = "apple,icestorm"; device_type = "cpu"; reg = <0x0 0x2>; - enable-method = "spin-table"; + enable-method = "psci"; + cpu-idle-states = <&cpu_retention_wfi &cpu_deep_wfi>; cpu-release-addr = <0 0>; /* To be filled by loader */ operating-points-v2 = <&ecluster_opp>; capacity-dmips-mhz = <714>; @@ -106,7 +114,8 @@ cpu_e3: cpu@3 { compatible = "apple,icestorm"; device_type = "cpu"; reg = <0x0 0x3>; - enable-method = "spin-table"; + enable-method = "psci"; + cpu-idle-states = <&cpu_retention_wfi &cpu_deep_wfi>; cpu-release-addr = <0 0>; /* To be filled by loader */ operating-points-v2 = <&ecluster_opp>; capacity-dmips-mhz = <714>; @@ -120,7 +129,8 @@ cpu_p0: cpu@10100 { compatible = "apple,firestorm"; device_type = "cpu"; reg = <0x0 0x10100>; - enable-method = "spin-table"; + enable-method = "psci"; + cpu-idle-states = <&cpu_retention_wfi &cpu_deep_wfi>; cpu-release-addr = <0 0>; /* To be filled by loader */ operating-points-v2 = <&pcluster_opp>; capacity-dmips-mhz = <1024>; @@ -134,7 +144,8 @@ cpu_p1: cpu@10101 { compatible = "apple,firestorm"; device_type = "cpu"; reg = <0x0 0x10101>; - enable-method = "spin-table"; + enable-method = "psci"; + cpu-idle-states = <&cpu_retention_wfi &cpu_deep_wfi>; cpu-release-addr = <0 0>; /* To be filled by loader */ operating-points-v2 = <&pcluster_opp>; capacity-dmips-mhz = <1024>; @@ -148,7 +159,8 @@ cpu_p2: cpu@10102 { compatible = "apple,firestorm"; device_type = "cpu"; reg = <0x0 0x10102>; - enable-method = "spin-table"; + enable-method = "psci"; + cpu-idle-states = <&cpu_retention_wfi &cpu_deep_wfi>; cpu-release-addr = <0 0>; /* To be filled by loader */ operating-points-v2 = <&pcluster_opp>; capacity-dmips-mhz = <1024>; @@ -162,7 +174,8 @@ cpu_p3: cpu@10103 { compatible = "apple,firestorm"; device_type = "cpu"; reg = <0x0 0x10103>; - enable-method = "spin-table"; + enable-method = "psci"; + cpu-idle-states = <&cpu_retention_wfi &cpu_deep_wfi>; cpu-release-addr = <0 0>; /* To be filled by loader */ operating-points-v2 = <&pcluster_opp>; capacity-dmips-mhz = <1024>; @@ -185,6 +198,28 @@ l2_cache_1: l2-cache-1 { cache-unified; cache-size = <0xc00000>; }; + + idle-states { + entry-method = "psci"; + + cpu_retention_wfi: cpu-retention-wfi { + compatible = "arm,idle-state"; + idle-state-name = "wfi"; + arm,psci-suspend-param = <0x00000000>; + entry-latency-us = <1>; + exit-latency-us = <1>; + min-residency-us = <1>; + }; + + cpu_deep_wfi: cpu-deep-wfi { + compatible = "arm,idle-state"; + idle-state-name = "deep-wfi"; + arm,psci-suspend-param = <0x00000001>; + entry-latency-us = <5>; + exit-latency-us = <5>; + min-residency-us = <10000>; + }; + }; }; ecluster_opp: opp-table-0 { -- 2.55.0