From patchwork Tue Sep 3 07:17:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 13788141 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2058.outbound.protection.outlook.com [40.107.20.58]) (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 627C520124C for ; Tue, 3 Sep 2024 07:09:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.58 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725347359; cv=fail; b=o/EW+xL4d60S/61i0YpA3JLPLa9x+cJhg41i6lLMsVk0H1fINpc//Z8c9BMaBAIkpJ0tE10Bvgvbw/UI+Wg7p9e5doqRF8XdoTFtdo/iK15iXlWSl/0Dno0Aza2zFc8uT1S+GWf155onBBkn+IEG2suRm0jsQbtMRcfR20nPYD0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725347359; c=relaxed/simple; bh=iv+Xnp6szQwP0LlAEm9s69JzGawGSXHr8OrgUbO7BrA=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=ecztVpibmdNIRtTVhYn3ADXnLigB1b5YODmynRs3Ee+MWqEGDuHJBtXubflGd+6oJjBJg5Ys5iplkDuRgSUD4F3BfSPlwc9zfzBDa0Pa6hVt6IxJpNzsT4ILELtDHWGmj8iphCiCXJVQ+sU8WBZorkIhYPfpo4a37UTebHWluio= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com; spf=pass smtp.mailfrom=oss.nxp.com; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=lkLi4SeF; arc=fail smtp.client-ip=40.107.20.58 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="lkLi4SeF" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=rUyNu8Msfw7HaQjnKbpuAJx2g0q6FPd1zgEZjpuQ7mIgYSSu65VjjORZ/p5psVqCu0BvGqcASINCxu3yNMk6EltqOZ//i/dRPUABrVy0nWle0Pgq/P6TdWjlTcz6qJY/fTtVSuhuC9R9D6Mmep2dXdGbUKtVMZ2sed4A+AyKNiCUvmQAmNwAs+RqOUW3ux/j7wqWE9Xio30vwsONfptrYzCRq6nnFBDENBhP1kwfZmHpNO/V/7IqyANNEcAqtAiVJSYlKu9DRnwuFQl4RvML0Qrs7gT6Itjvg26fGF6GE81XWeO7bEX/zN5MRlbkn0NtT7jJcslzTN0hDFgjiasb2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/fzeVCk2IEOiCOL05rfNNFErdeSeG1XWUkm4nAespeY=; b=uRdfqpFgTfa+yH+oiP701FQnYHZGDaYHb8/ksYO6fZQt7w7xlJVkKw9mCMk6Zr/ibyS5yIcve/PiojiLO5OLZX7zreLCgcMHciEt3PKBytEjjv91a2CGXQAbq5KTeaBtEJymy59t0eGBnw/wOmNF/zfDaWY/cPvMdhHoUMi+XfE95+f6jC0MMwKwfsO8AnTbCn4+STugct1C4GA1UC6djmyBpeWC2MCBivKGeT/4F/XNQ3cFe/IjlmNbB7MbAPGg6F5QcCMhrFK7WMrm2Q6XNx2oAL6rwcfcY3lroLttEyMmz4ftxM+u5/XOdBQi3MauvxJLGNhahTwFQJz9zBoVsA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/fzeVCk2IEOiCOL05rfNNFErdeSeG1XWUkm4nAespeY=; b=lkLi4SeFTtFX4OYnMAmk5b+5KwSWNOxKCaVq4UMWgLkMsoHCAy0xHXnXC1y8yeH9V5BIVdWGbXKgHHJKX0YjX3WCS7XqvfmDe440I+CXSox+1sxQUAFX5VUGH+3r3mUENXbAjjwd2WjKSvS4OidutTinWG5X5w+T/yRLDLwYBc2opuCuv62xnmUUz2VFrda9kf31urGKCPEtL08+quNjaRC1NKQwLznuSGpMI/Oia/93lohVfKF/soib7/hlftKUrjeNSpVbPap4vWAJuY+8zSwbZUQ8jiIxHUqV8uBq1643ul8GqeO7mO+9d/0vKoV2JteYM/w+AXDgO8JJ5ZCsfQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) by PA4PR04MB9365.eurprd04.prod.outlook.com (2603:10a6:102:2a8::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.25; Tue, 3 Sep 2024 07:09:15 +0000 Received: from PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630]) by PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630%6]) with mapi id 15.20.7918.024; Tue, 3 Sep 2024 07:09:15 +0000 From: "Peng Fan (OSS)" Date: Tue, 03 Sep 2024 15:17:50 +0800 Subject: [PATCH v2 5/7] arm64: dts: freescale: imx95: enable A55 cpuidle Message-Id: <20240903-imx95-dts-new-v2-5-8ed795d61358@nxp.com> References: <20240903-imx95-dts-new-v2-0-8ed795d61358@nxp.com> In-Reply-To: <20240903-imx95-dts-new-v2-0-8ed795d61358@nxp.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1725347874; l=2478; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=rzWCgPVY+Scu1I6HkQDGLw1kH0NbKbPzqEDgDkYWCVU=; b=e83oKjPJ1iKUD4sLPuTyuKc7LyYemaJgzZBDzfMnetRdZj2Kai4p/FOKU2uD03bpnnBPkgSea VLFebpF4BR9BkBUeV96zcpswgHJ19v6NCdebHtPdsdoMlj6+zb11FrY X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI2P153CA0026.APCP153.PROD.OUTLOOK.COM (2603:1096:4:190::18) To PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8459:EE_|PA4PR04MB9365:EE_ X-MS-Office365-Filtering-Correlation-Id: 158d0ef4-1bb5-4ab1-49fa-08dccbe751ff X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|7416014|376014|52116014|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?Vr6J+KAKYWVyAfhRZut5JzDRplMM/xK?= =?utf-8?q?9G/EY+aoUyhRkgP56eYLX6i763pSoSA38lvTiXxuVzGpKG39h7O5U5t5yvTonoYd+?= =?utf-8?q?YvoxP2y9+PpL2zs/ROSIadYYUEZENTWgOLO65dxtZavoc0Z8S+mJgDGHDldyCRH/O?= =?utf-8?q?y2VPuTGB+xytyPahRDibux5T3qUYlcxG9+G0uk4On9Ta9z4pBrHzEwe2JPkDn65h5?= =?utf-8?q?YBxfaSCdunBUuzF8DNMFPCzKEwrVFkBz7o9mSm1myJLsQb4PLsIt3P1K8pNdPkYOn?= =?utf-8?q?zsUS39yLw1kkjT1ONa8HyGTPUhvnSSDo5t5IPzylO0r3dHEhrwMt3QrvYctpxB4FE?= =?utf-8?q?m5DwJdhjJWV63TPn67sJa1mydUIK6w3d5ii9dJMeKPbcHng1UFP32Y8DeT5VCpyJl?= =?utf-8?q?mUJCYwvaE962Xcj9SU7P5DHdKwi38PmE4Ex9BXAre5eBYzPyfkrqS1+13GsesSdNX?= =?utf-8?q?3ckeAIBTCL1PXEMnJAjDuGw1hxKGH9L8bpNGPeDuFF3xcsTfX9Wk5fURls4pVEN6m?= =?utf-8?q?iAJqyLEXIC/pb4GgB5/aKrqRjEsklGS/NenEoJGVBTTw9+RNK//v/GDywiR9b8fNH?= =?utf-8?q?cH/tLpRMdRl/feKG5T8FGq9AeF9EuxXR85WL8y+EFaIIgkluSo86vnzL3AWkvmxk1?= =?utf-8?q?LmxjkuYz8tY6TzMygAmOAdKaNVU2tnrm1YHJu8V4f1vW8vsS4TmW5yugwn36kLGpP?= =?utf-8?q?DD9nTcqppb6GbweYP28+eMXf1z8B2iNLNHB19PeYiWFQ6W/xa/fkASEz6ehUt2S/Y?= =?utf-8?q?+qxxWfA5GnoS8/oFjUmDQPJNAvpW14/Nox1VCJOHxk98HcVDvLtxdw+qLNiZJ76V9?= =?utf-8?q?/8JUkRtRjU9sMHCt0M8Z8+4gvGTtkZKugGeWgO8Tx1MMhgsC6M4g/ZR+rok5erIqI?= =?utf-8?q?8SD5B1HS8PpX3BiWzUub7sWv7g5IMI86cvapptgwZ2C+kUIWdVdWqMKDCNs8Umwqa?= =?utf-8?q?FKg2SHUrgqJyq7T370pZ+5+fwo4AN3C3JkG6QbQWaRBxeWCBxH1BUog29PzWV8gal?= =?utf-8?q?Qn+uiNpNaqut3v3AydwSTKUdQNCiIirvBwyQwylFjQUTBzHrRuAWXj7XYsq4wQpHv?= =?utf-8?q?BtFSy/URGt115xrNj3ei2X4ieOTsD94F/0uFx+IvBQKQSoEeVPEt2i67gaCcq/Ryh?= =?utf-8?q?bA/wH+DywvsgSJJvADKVGSy1w6+L70me2dzLqj+MALjieibc6vo/kcEr0TqGzxa+H?= =?utf-8?q?NL6ZXg93zF5RcNlhsfHlBpufXI4eavIfVSCQ3MPyJ4qWWmUCm2ysKMn6sWI4Y9e7E?= =?utf-8?q?WpZs+VzBJ7gdsIczs4HtUtqr2No/Tid66w4IcikunWppFKyoPLOTp4+mjAQlQRvvS?= =?utf-8?q?OkcvKwUUW8aYOPXIEc2ba02Z8yS3fEROcg=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB8459.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(7416014)(376014)(52116014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?GTO+/Qmo9pSaAhHI+8/0zXR40s5J?= =?utf-8?q?5rizmDTJirT37aKzz66alBmSp1Iv4flGUkFUC0B9PDrMgtpMT65AXTw2CNZ6uj/99?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6/053a?= =?utf-8?q?5LGmfj2IDy3ffQjqq0Fca73kwLi5dyJygVZ0vyc7eEbGmJ7Wv7x9ndwDCJPaM9Omh?= =?utf-8?q?XTPyzTOyphf0OMSOhynPk55mME4Zb08mgTe40+Qrusc8YqvzGYc/GxopbqgHvQO9f?= =?utf-8?q?RgK2FlqVR1ssrpMTAe4X1dGZVWbuWQxyknc7V5KsOH6AsyvTU22P7G8WWCh+0hAmb?= =?utf-8?q?mNRtxGFpcLvR/iJUH2h8i7+cGdLuLGbe7pXklpE35ocyapwd7CBWLwniKvWc8oZds?= =?utf-8?q?Iy+oqoW3mqK21c5ZVRe3R2bI4DMrdJbN+YQVMaTEnHJsI0tPzkFyYvEshKMIYcMca?= =?utf-8?q?N1rPTyrKSgGUBsV7frWHiSixAeyfvr71yTCmgkgLCTO7CPPO4yoM9vMtuMeM5Fjuu?= =?utf-8?q?cmvkYFIc83fBODA7FN52DM3S4HdXk8olhSZyiSj3SYpjCyZadtOecfsEt6/xwaheA?= =?utf-8?q?8kFks5dS0MRIO62XM9AKZfG1SVWeV/MVUsLN53ZMCsv7N7Do7oqlsLtClQwfiAllZ?= =?utf-8?q?4ku1pUSmSOSmljUspo1tE5WEcOnhfXQvvvBydoMl0RhJ5sk6QN1MhZ2bsjKd6+DFX?= =?utf-8?q?9WhcBIk736Ap?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 158d0ef4-1bb5-4ab1-49fa-08dccbe751ff X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8459.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Sep 2024 07:09:15.4268 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 8IE688/sobZniVYe0VCJ1gswfYp369hu+B49qngJhbvu1gvNHdan6blQpjtqePzIV3YKJbRbqmhX+wMk1mP8DQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB9365 From: Peng Fan Add cpuidle node and enable cpuidle for A55. Signed-off-by: Peng Fan --- arch/arm64/boot/dts/freescale/imx95.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx95.dtsi b/arch/arm64/boot/dts/freescale/imx95.dtsi index d031b9548aaf..a7e411f1daa6 100644 --- a/arch/arm64/boot/dts/freescale/imx95.dtsi +++ b/arch/arm64/boot/dts/freescale/imx95.dtsi @@ -22,12 +22,27 @@ cpus { #address-cells = <1>; #size-cells = <0>; + idle-states { + entry-method = "psci"; + + cpu_pd_wait: cpu-pd-wait { + compatible = "arm,idle-state"; + arm,psci-suspend-param = <0x0010033>; + local-timer-stop; + entry-latency-us = <10000>; + exit-latency-us = <7000>; + min-residency-us = <27000>; + wakeup-latency-us = <15000>; + }; + }; + A55_0: cpu@0 { device_type = "cpu"; compatible = "arm,cortex-a55"; reg = <0x0>; enable-method = "psci"; #cooling-cells = <2>; + cpu-idle-states = <&cpu_pd_wait>; power-domains = <&scmi_perf IMX95_PERF_A55>; power-domain-names = "perf"; i-cache-size = <32768>; @@ -45,6 +60,7 @@ A55_1: cpu@100 { reg = <0x100>; enable-method = "psci"; #cooling-cells = <2>; + cpu-idle-states = <&cpu_pd_wait>; power-domains = <&scmi_perf IMX95_PERF_A55>; power-domain-names = "perf"; i-cache-size = <32768>; @@ -62,6 +78,7 @@ A55_2: cpu@200 { reg = <0x200>; enable-method = "psci"; #cooling-cells = <2>; + cpu-idle-states = <&cpu_pd_wait>; power-domains = <&scmi_perf IMX95_PERF_A55>; power-domain-names = "perf"; i-cache-size = <32768>; @@ -79,6 +96,7 @@ A55_3: cpu@300 { reg = <0x300>; enable-method = "psci"; #cooling-cells = <2>; + cpu-idle-states = <&cpu_pd_wait>; power-domains = <&scmi_perf IMX95_PERF_A55>; power-domain-names = "perf"; i-cache-size = <32768>; @@ -98,6 +116,7 @@ A55_4: cpu@400 { power-domain-names = "perf"; enable-method = "psci"; #cooling-cells = <2>; + cpu-idle-states = <&cpu_pd_wait>; i-cache-size = <32768>; i-cache-line-size = <64>; i-cache-sets = <128>; @@ -115,6 +134,7 @@ A55_5: cpu@500 { power-domain-names = "perf"; enable-method = "psci"; #cooling-cells = <2>; + cpu-idle-states = <&cpu_pd_wait>; i-cache-size = <32768>; i-cache-line-size = <64>; i-cache-sets = <128>;