From patchwork Sat Oct 12 11:19:12 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: 13833972 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 EC531CF2566 for ; Sat, 12 Oct 2024 11:19:09 +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=pHtZJfnKYH4Raz62u/mXr3814p/67aHo/XXP6EMdTy0=; b=iUsAXwcRvVIq6fu2j+uaG7UK1J +qBtUO6wFgPdyv0YOAyhbt9mGEOFsZXcHvx6tXjj5xXl2BDNJp4n6JZKbNaHWIKGHQtyKCW9GqOXw 8V65dtwZ5CojtxPlU1tA8yLjTzO5MEre6D+tvQkSBHcx8dp6XxXdIQDJGX6wjaxzS4N4rCTvX3efn nTeeuuzBjXrc6xa20XVcy6st4xOcF4Se/jji+oVzPgyKZeTMxQCsCn+g+/SA64ig5ZPiEvCHRXUeW XhXtF2FZLinr8H/jLU3slLBD9TXEtguzZBIQUgRQWJg7LqVFggqHsW5rCbo+M5c05XhXC8qZ0tBGl uPZ9Cv1w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sza9E-000000012gq-41EZ; Sat, 12 Oct 2024 11:19:00 +0000 Received: from mail-am6eur05on20611.outbound.protection.outlook.com ([2a01:111:f403:2612::611] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sza1N-000000011oy-2IL0 for linux-arm-kernel@lists.infradead.org; Sat, 12 Oct 2024 11:10:55 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=lckGyceTZCBh0q4p/m0zvoEDY7habk5GnU24sCoodPB4qyUYBIT7qc188aevcNt5RsMsr0Piwp9wJS2nkGDTblUSOJb4StIb1cs3bZeZDtKsthsxeYQ29o3CuTq1NjUroylNd6fj93ApttwU0cUFeL/VC3gDmBG/DtKUcB0OKfCLBkGnUtAXV6K7A402VKnI+B3faOZ53U7v0WE7WMfmh6SxGJjILryP5sllGENwyK1WGwsPrA1K8OHPeTGJTP5unZLHpQEz01qNZYqmrU6iHNLPv3VaMYO+IV0uUFxpN5cJuwhEy21zI6PxUR1J3I+ncOuxzJjYvTlejRR9HSRNkw== 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=pHtZJfnKYH4Raz62u/mXr3814p/67aHo/XXP6EMdTy0=; b=pa++AqjCUOBsO+yhZDYCDEdoHPiudbJOaqGKqbgyrqDKJam3DyXW4uWmEEspvPXgsJ5mRbkUie55m1H2QaVvINcurcP2GltSpEVDuyLRJpPiOnftt3ZXabpN8dBcIwfzlnjjPppRJOwJAYrEN7ulGv9ax8AiSSzlJ4b2HBaViFUCu9iJeGXUmXDxuH/vtIe6+OnnfU9X8AZl2oTYpuenilxjXQn7UcxbR1zuEXoKByb2yHHAmlurKE4cJYD/5pvQWgMN/X2yr6xmquYqA4MNf44REz34KvgXFeA4M3K143TbGW3d5/WDEmHm1rbJ3KyXIGJ35YGxTf8w4UClGrAVCA== 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=pHtZJfnKYH4Raz62u/mXr3814p/67aHo/XXP6EMdTy0=; b=mQ27Bf51VwXQr8BuxkMFFGNgKYdjqIplNfF44SsRdlsRrAT7Oobz3NHqPcA1B+/QupZU/kV8fLw6Ow7CAx93eMoXA4YAegmNqRDSgt+fASJZhJdMF/p/j2KPMwVAmf/5xnsQnUtj6c8GtqC6DzvcPTOMs+GW8kquezAzKzdmsy8PY4fHEHBwr/Wz+azn3Sa0Dia7VFt6si9Ib7jFeb5GUJY711nhLZ47sjIu7ITmLbKcbBy/GkqWrR6Cx3hhR3hOzUZ3dT+4o3WO/Kfl5v9w/wkYyjSdojtDBrB7v+6X09EH0DoPEKcYm1puKX5qXtTbzXXOygZkHA8ayr4FLXacxg== 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 AM0PR04MB6771.eurprd04.prod.outlook.com (2603:10a6:208:18d::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.16; Sat, 12 Oct 2024 11:10:52 +0000 Received: from PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630]) by PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630%5]) with mapi id 15.20.8048.020; Sat, 12 Oct 2024 11:10:52 +0000 From: "Peng Fan (OSS)" Date: Sat, 12 Oct 2024 19:19:12 +0800 Subject: [PATCH v3 5/7] arm64: dts: imx95: enable A55 cpuidle Message-Id: <20241012-imx95-dts-new-v3-5-edfab0054c71@nxp.com> References: <20241012-imx95-dts-new-v3-0-edfab0054c71@nxp.com> In-Reply-To: <20241012-imx95-dts-new-v3-0-edfab0054c71@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.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1728731962; l=2534; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=3oXehUSG9ONYaFOa4/UhRkXn4vzA3SRO/Jg+dr7/9zk=; b=Zy8DIIDcf1phPv4q4Ap67SipL04rHqtbL0iZEX3y/NnrEsMC4yem/35Dnvdw2OGRGgK8iYP2I okoKZUKhNPzC9hwKeQayyO2VXXFnLuCB7iVP5brM8qp1oG+TR9GmVmw X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SG3P274CA0020.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:be::32) 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_|AM0PR04MB6771:EE_ X-MS-Office365-Filtering-Correlation-Id: d77e501a-0a18-4e53-d91f-08dceaae88b9 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|7416014|52116014|1800799024|376014|366016|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?pIK/5gd6jQ0LbZjyP1kCBHNvvSQb068?= =?utf-8?q?X8zAm7erE1LmqgFDtlPNe3LeQ/+G+8JP5Vid25RkszbthBq0c5dEUkH+ME4acSnT5?= =?utf-8?q?xJMudG3jYRj7/6/AS4ExdorsbMPByOe0JHBWIGf1upuS8HZcD/4xiGn7XC5SKr20f?= =?utf-8?q?9S6dTkCrCjMLJz4T4DZl5Qi5FCi6AWmSsOSV9CxRCB2Smrhu5aqHbJvPlh5lNL7EN?= =?utf-8?q?ofBR9wmp6ctqNe6RwT+L8lCspoP6+iVsqOTceGsGusDckm2VqmP/gK8t5gCgH0aYp?= =?utf-8?q?eAx6YkI37mU4jpL8hSqY/nJChG5y206cq1n4aPioVFh3lAkgKrtP8Mt7sTw6KpIUi?= =?utf-8?q?1x1ROZtOxaDrGpXvsin8WtNassqOGo0DKzOy+QkyQtme5TCUk726cIF0GT0Ua12NR?= =?utf-8?q?HxuetYR2TYhiUmOpHxPg7L95QX5XZYxCUcDb+tE0dGHKW4vgm48nh78WXFpvps+7W?= =?utf-8?q?7Tj/h8gRi6YxKC92DbJhgEPCm8+dWw1r+d3aPQotwVzH6XEU/YTQIlXU+lB1cCn5g?= =?utf-8?q?lF6MfImLciiDDwb+QmFeow/CEQ+ynmQ1AhYwC21veELze97/8HJ66ows1STpDbAj2?= =?utf-8?q?t26bM8x0gE24nE10X6BQdldY95UuIIS7qTlPUIRqeYLHXybwzH2ViPUgxeMjhH2pR?= =?utf-8?q?jiGoP4BSCPp/SuqoBqoEqBUvahtm0EvfXMCpTlKA2teoW9ZJRyujWW7Uzw7CHrZT7?= =?utf-8?q?uDNfSYOo1CEcfMciF7FET1VD1X2zAFG5BM2IIsjzRkuZ1WpxAlnwsUKImya4XPQoU?= =?utf-8?q?RQXr/UCzq5TQBxw+xLWT8C2Y4gu5Scp46G0KkERnR10PlgDgbnLPZLlMATWDGOCse?= =?utf-8?q?pXGdufzYKgBs36w+dcZ2Qa5+OIj+L60pVjTyNwvHaMgG8dp9Opq2Ue9Kinq7j/zS0?= =?utf-8?q?FJ1JWsoUrBb8L8CpLHmU6Z2lz3MSRx+b7kRYMvZbFLuaSYu8GVEvM0x8W77y0Fs0N?= =?utf-8?q?xXkX/CWNF5UJ2sUnK5L3+pNZbduEvFsSLqKjO9ImgZ7reJSbopR8hhPfkviXXhys2?= =?utf-8?q?tw1ozsIjx/Bn+aYWk/yJCHqywiMonCUn+bx50GQWf/uPzZk5TMUAzepWZG+fhB52+?= =?utf-8?q?m8sBJbuPx7IUqn/6AsCMcSdw9nFhlbNNfDnCtSUx84TA/Fafwh41GsqQc+j3pr8FS?= =?utf-8?q?5W6XOD3kprdV3p7H7OIknWESpbvdxKYb3aUHrOoClcFFglC4Y0eJWC82kVNALZ2jU?= =?utf-8?q?iksPh+soPQPVedHcuACaQk49mNgqdTWzAXvW7pIfzXjX4h6OFATsdxuHS/LkYjUUQ?= =?utf-8?q?kwTUDCaBYfIDfhMhOQc1PRKZ41NMr2tglzw=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)(7416014)(52116014)(1800799024)(376014)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?WKIpKg9VTcI7SvEZDKUAq1CNib8x?= =?utf-8?q?cGbRRP/ZeVQf1MDuoGzhhHotS7b6LyvLkIpQOKAk2FiXfcaVj8fLWETb7jHZ9NyNS?= =?utf-8?q?r5W0Ld/eXwybAlLvWSD6GbcObM/kk9bk+03PhJLNTnizBcFBXWKJy5N81/h1fTHlz?= =?utf-8?q?yStB+Qq60CPqIx25fr4inGdUQKekr+M1Yu+NlSml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lXXhOALb0H3S7Z?= =?utf-8?q?yH4pjrLZPL0CfCbqDW0x/b5MGa850HBkP8hR1V5nMG9PHmi85kMeYgEa8ZniYAyoG?= =?utf-8?q?jEDKYUMTiVlZZwzZsTSEfPFcl+xRkxK+1yvw606cvy2uaqdNxvbiqxdWU+yeRWVx0?= =?utf-8?q?zte8KBsKm+eTuqre3Cf03x1QyfmHOs2IkwJATbPK6OwN2/vmfhzc3NNUFVU9bzPhd?= =?utf-8?q?cfFKNqIQTRotLGE0Skwhpl2CRdm0N5A9UK3B3cijvkDP1r+nb/uY9RsTiaKEuB9iV?= =?utf-8?q?k7UGDfgAa4ENlFjtn3a9tTJqYzFIYIocPniqDjkRGZLbYDdiJ4PIG/elfazq62rcw?= =?utf-8?q?LIv+Nrqy3h5tfgmJikSTmAdjTqiRKgZ8ApHiaKXjyU/T6xsBx4WXWpdUc5UXEcfb4?= =?utf-8?q?nnWKGfRZtxpzU4FIyw3WwCWY6rNi1rQKmq5hUeMIYpBVdufaZ770tEVRLgW4Wmcnk?= =?utf-8?q?ruUznHV8tODX?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d77e501a-0a18-4e53-d91f-08dceaae88b9 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8459.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Oct 2024 11:10:51.9715 (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: 33XSyO7m2P0LxKGUylvotAvNjFVISvNSiiixve1G9TKVYwDcY31KIzjkJD49s6TX88S6JdPQ7vLRBXigkdTZxQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6771 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241012_041053_643660_A2000E62 X-CRM114-Status: UNSURE ( 8.72 ) 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 ae8e09203ef431d8869fdce79df9f31a3e55971c..62bb526ba507b9fefc8d90743d653e9dadf030ef 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>;