From patchwork Mon Sep 2 10:19:27 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: 13787002 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 18510CD13CF for ; Mon, 2 Sep 2024 10:17:20 +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=A8mat9suUtYAPJP4UkIo/H+F6U psBUYVLN8dwhndbrE1sCVfsMjGwKwIlTnFB1OqeyxScs/zDc9IAeuDW1hOGdLxzAKt2EmbtwRLDOv M41++yXEIX3BpHoYMkeB0NWG702SAH34A6LF9AOTy4sNwRUjmxGp6++yd4BElwWtDJfalxIh/Wmp7 UqiOBkIjowAbXdK1kg5APaNYt/BtuwlKz51NOiCLXwMSiWRLjNfrvM8y4utEYsL4lantklWcrptzX j8NI/4zwWii6B7zZPedIBtIDNmA6MIbV9H9Sa/lcnRx1A/KU1YVA6JC9gOtfDI8ZpFnyg/0olTASX co9SeOmA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sl47Q-0000000Ds6c-19n8; Mon, 02 Sep 2024 10:17:08 +0000 Received: from mail-northeuropeazlp170130004.outbound.protection.outlook.com ([2a01:111:f403:c200::4] helo=DUZPR83CU001.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sl41P-0000000DqK3-3Wom for linux-arm-kernel@lists.infradead.org; Mon, 02 Sep 2024 10:10:57 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=GYfUF1V/h/jEJGOLWJdemElj4OHvK004KiGZ4CH3q/oyZVR0pH0HXpDwRdC3dkSlsRrX7Hz+kHyDOeSer7H3RwTEnnZyqG5PaqEpyoSbNEuNetnD30LAIN/IVqOCkL/M3pzCuHOe3GH+oqG6j8Nn5WBUN7ZYo1UxtOCHDCjNlOzyYzZn+yrlSGbVEazx5B5FNH9OPJ7lPyLCNW3fGvLCCjlo1O9LbHg7dCwZvKD3DkRsPGWPHY7pXdIJYZD0EXDNtxInbXsT6QWapDJ91jv/TX4TnKaa9O3reVx1qzFIjSlZJAnERGKpLTOhf9l1TDp1HwssM6n0UKOuWSfXrgy3pA== 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=Clgg/Jkbm0FTdjjN21Dzu4deRvHX/kUBST7nWA3U7w7q2BbX39jRGhQE3ZB/q/kl9BVVIxFmelm5lqF8DpHzUZXytZ5cO8Ue40tYC5UtXHNxwCJusznV6kFmuIDcHufOZV9av0T8NlqxZPi/IiXPBpAqPMEsBPAmsrDcS9Kmf/cyjPIDBrh1eYJbwWA2mWRW9m1JT4NkwmZqP44F6wV8gJ6dniFFGwMejQ6OYSYGH8amyXUkFq4c0zC+YIv4hk6mlb3iHgzCt7Fhl+Yhwmvuz4XzwDdDKVyn96ksukj+P8upA6nvm1BQV+mZHjHGPdYN0EMNWeqUr1fWE4o/Ugp2vQ== 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=EfOXM/vUvHIbDhw/Sll1TtbWzyQepSohXx8UHhIhJB0lL2xu3CZ4g0IonDs6jndq8rFUTiPTFkvuERcs0wuEi6m/krplp743GBf9N4cNHEm0nTs64/zLNieQISgo7MVxY+DFKwXxhuMUwLyxmIKHzhtVAHz3sEjWmz+ZAo5ahFstu5EQKItwST6x6rqaWDcoBgwOcK9r4DU84OStuovvbAvxddiBPICDP6LHvYry5SdkxYZSkbYf+SMOJEitEA7G4mljWtmvSorduvQ+ca8IID5aD3O4iIufjEbjbCSKA2n9v5cdvMHa4DshZI10EVwlBZ4AI472jdwoFH2azlDPVw== 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 PA1PR04MB10099.eurprd04.prod.outlook.com (2603:10a6:102:45d::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.25; Mon, 2 Sep 2024 10:10:53 +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.020; Mon, 2 Sep 2024 10:10:53 +0000 From: "Peng Fan (OSS)" Date: Mon, 02 Sep 2024 18:19:27 +0800 Subject: [PATCH 5/7] arm64: dts: freescale: imx95: enable A55 cpuidle Message-Id: <20240902-imx95-dts-new-v1-5-a1f798f4f746@nxp.com> References: <20240902-imx95-dts-new-v1-0-a1f798f4f746@nxp.com> In-Reply-To: <20240902-imx95-dts-new-v1-0-a1f798f4f746@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=1725272373; l=2478; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=rzWCgPVY+Scu1I6HkQDGLw1kH0NbKbPzqEDgDkYWCVU=; b=CqlTjMOavZZKr1WWw5yOm1OFCUlM6HTclDg+j9RWEq/CZpgImi6U3oZ/BootyKdp08jfFRths fbJbp4VnvlrDE69t290O/NXrVwF6E5iOIxvG3hpBawZIA03dc0a9oAL X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SGXP274CA0021.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b8::33) 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_|PA1PR04MB10099:EE_ X-MS-Office365-Filtering-Correlation-Id: 528025c6-903d-4092-d17d-08dccb37876c 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|52116014|376014|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?5qDWJfh6hc3vBroGH9vW54Aj5zjTzeK?= =?utf-8?q?o2/lHny+pVMdgTTcTAUlGEFZLIE+Pr64fAyo7oG0pP2ctMd9I+oi6KdvuQzoLLS8O?= =?utf-8?q?AiOcWy62cNtMDYkk6wrclLN7yxH7YEpDmXhZKY9ihHqrfgcf2HLg95Lt6xSNRmi3F?= =?utf-8?q?Bc/sEdwogK/OCURfmPKJvumVPv7FDE5lyLf1xWhKrWrTs5nf0hnonwokSciZoJ7xv?= =?utf-8?q?d/ZP+zFK65Cz5LH3suft26YxTm0T/U7CKfHdM3wZQSUCVlZdOisE6blgu7YA7xIZH?= =?utf-8?q?FWgz/+JlKvdYE/XXPZ6KfkaGcrii7rGhsG6/C+426+rkrmFmXQAxDbHoBCY9edmb7?= =?utf-8?q?J3BKLjM3r5kOkgLWgWVxWE9d9yBvbX4kw7nD0s6B1YfCn2wQWg4EkNe+ZPi/adBjp?= =?utf-8?q?eGku6+pl5Ij3R+LcEk51XUTpV0qYReJgCDXrfx5kje54/mE0IUpiWvL574wRqkQEn?= =?utf-8?q?V37rYHtydMjwptPuFcHt3dnuCYXw1O8+DJYQCU/a9YVwrPwxKqWHb9qjr5aR/GhAf?= =?utf-8?q?t7zg0m2hL8XW+ndQ/z8ZWeMmz4Q1P0N2dWlkQVJHwl8pu104KxXYkOlj7X6dV3st/?= =?utf-8?q?rWXEF4CK3zUPYuZTr37kOS8DATeExivWhyb7qw9J/XF6m/PftvIepYrq+jVDNvW0z?= =?utf-8?q?ELq97L6Na+6+akRFGtsw/cmHfzAkEA1B9ZzqsmpqAvPBcSUNLd4kihUZhk5bhSwVG?= =?utf-8?q?SOzLrh0mU6xNRY4rLdAWdn6MbWI4bUJe1icYrzGlJgpO4wCfTVp3vz5GWI1sapk+9?= =?utf-8?q?UeoQJ5K2k8XTu32vXmk5MQ9lFaaGZp9tdq43+nT7WMlHcxL+FpDp0oIsJ4IQ/FTYM?= =?utf-8?q?QNX9rlm6AaO4OOrN6LFzBTk9sD8/sHIveL/t78WFZKP1aPKdYPYXW9Tb3+JMPAecG?= =?utf-8?q?bCa7nKW6AJ+j+35DHS7o/XeYtbCqIE7NGxkmYcfSP5XWvKqbdmnla8m8VK5H43jqH?= =?utf-8?q?4hvMHLWAqGvtqDyO8QQUn9Hkh7YPnwp+WLbD2A56DUzV5N3Xwf8GHRTpTw+oVXuoM?= =?utf-8?q?7SGca/Y0VpvZkyAqiwLoFybNgtCFJ3eZ4uel3oK/X1ictMkeS+A/8oyAFYjlQQycl?= =?utf-8?q?JQJyikLkRN9d28K1rcRdEs1M0Nc/DtChLd2vCjRcIGo+z+ME8GJoGa855E0Rs/jA8?= =?utf-8?q?NjV3Wx5wloV2ceZHRpQBssd9mh6p3TH9wD/u7pwk/3xCKEmOtT5QL9KbNSIIKra89?= =?utf-8?q?Hb6/lROsPZpcgAZKtut8DijDYQOlms9k3zz3ia5wE3svBEq7Fbnod+4SjGjYlnXXQ?= =?utf-8?q?Pdv7ARXvbdr71KMtCfRIuv7rJl/xY0iiEYFgMC/RFk3BbgESU9AyogOep89C8542N?= =?utf-8?q?zQr1P6tXUrDb1Gjzee4Vdd86YSGgmO8jQA=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)(52116014)(376014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?bDRVMGiIxdsghATwKPx7dSF8k1Tn?= =?utf-8?q?IdkK60KANMyitYXnnBhZadiSM61Rg0TXRBMxA3f9r0R5kgrejnjSzNv5tpd192H/2?= =?utf-8?q?eNRBr3av+xiOWqjiJcHi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41zdoVPWMt51LCQincaFit2u3jGF3jM?= =?utf-8?q?tszCtX4S3ENn9X9OGvwqdUpFBEIxzBTCdDqLX3PHAfz358a+LIiUo4cLa3jsX0VZf?= =?utf-8?q?E2ioy+2nXHCgeFAcwfvDU4ZJVhzi/+EdJ45TBAqwDxKZH9KvcrSnj4m9DSkTsdkVf?= =?utf-8?q?D80oQXvbaQD/BWTwmq+KWZhKTThjggVP+WidXAEMMNSFW/cicYNQXrjGwbaJFJyCw?= =?utf-8?q?Bty6KBtqwO1vDMwC7dkDyuuwqsteVMm8deKNR6ggbSI2WjdNHT7qvv1m2I4CVrHAY?= =?utf-8?q?IeR2F/X3u5sSmtQr4urVa40vq53sh7qw6f0Rrj35aG+9Bq32Udl0qIBIG893ph3DO?= =?utf-8?q?ja7EE48OvLm+hH6kC4z9hOrffldq39P9dgbM9UHtSMGPDfEDNbBu0ZHSh5NZYmQF4?= =?utf-8?q?Z3OVDv9/BOelSECFvqEDcokmygd1svcBx2u62DsuWTe15qcLBqOnTVRBu5Rv2Lm91?= =?utf-8?q?5x8uuVCYKJl1XmfMhAewyTGh2ghOCxBOBEf6YlvXKlAe9tPt36++uvGsmBnxa6XeU?= =?utf-8?q?f8w2CVChCZ1l?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 528025c6-903d-4092-d17d-08dccb37876c X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8459.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Sep 2024 10:10:53.6557 (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: EmNL4Y3aVdA+HQM/DPL5f6tj8r6OzVyZ3dCMgAhFtvvUgedrmzEwdOMKTN2hzGD1oN2E3jSFV4P4ATferGzHyg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA1PR04MB10099 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240902_031055_938929_08BF93B5 X-CRM114-Status: UNSURE ( 9.25 ) 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>;