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: 13788246 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 982E8CD3427 for ; Tue, 3 Sep 2024 08:15:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To: In-Reply-To:References:Message-Id:Content-Transfer-Encoding:Content-Type: Subject:Date:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=/fzeVCk2IEOiCOL05rfNNFErdeSeG1XWUkm4nAespeY=; b=xzK7kLOmt4mEgkvamSzaTXUGt9 mhxuVOEmk8RDxYuawvf7RnV0oVjSMVogkn1z0eAk6+W4lHTTrgVNZ4lXlPrGoh7hgGD1EG6U/6iKc 91ge5Z9LqwI0oXpM+CodSqVT6I5FrNhF3QzqBg6o0uIOxAYVSNwsaJHm2OU3YXJJrupn0GM7/TBWe Wgw/JVxJIIANCVHdsuOTmBjGdOLp7nghFmnpcMjQDZDzgV/yfkk+YBqHK3WHKYl22D/5Y6ErhzTU3 RSGQrKKiuqnRn59T+R5APOtsUOv5My5lwrKMMz7KqZtwDQHie4NOhYmEtXJBx1z2+4fOiTLAQ6ENA Zad1Zaiw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1slOhI-0000000GrOi-3TgH; Tue, 03 Sep 2024 08:15:32 +0000 Received: from mail-am6eur05on20617.outbound.protection.outlook.com ([2a01:111:f403:2612::617] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1slNfB-0000000GbTX-2KKO for linux-arm-kernel@lists.infradead.org; Tue, 03 Sep 2024 07:09:19 +0000 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) 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?= =?utf-8?q?2YFw/uvB7mX0Ey6ufrv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qq0Fca73kwLi5dyJygVZ0vyc7eEbGmJ7Wv7x9ndwDCJPaM9Omh?= =?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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240903_000917_618322_74FE026D X-CRM114-Status: UNSURE ( 9.42 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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>;