From patchwork Wed Jul 12 21:17:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 701976 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 07487EB64DA for ; Wed, 12 Jul 2023 21:18:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230172AbjGLVS2 (ORCPT ); Wed, 12 Jul 2023 17:18:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233483AbjGLVSU (ORCPT ); Wed, 12 Jul 2023 17:18:20 -0400 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2077.outbound.protection.outlook.com [40.107.20.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A7D7CE; Wed, 12 Jul 2023 14:18:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Kzo6z3JadFL+Ljj78tW0wD1iz86WSy+ZAnypspWTlluSXHb3q4A5UPq2+BCla8ieQU9JuIiA6ovTSN22idgHxsRRh57IkxhvzgAz6cG6zBdSYU0ZQfpHudJYJOeiCmVkckYMFOwdLkl3144UMENRvA6ahECk7dlU5FPY+JKn8PdznQn3vwKk/dy+y6rXJC27G8QfVxl4GgEYY6J9ypspZOh5F8mYIbmLxRfOCA0xLucrLNOGGl6IqjKM/cfA7KnBmm+x4s8jiF+PGVtGcq66hzQYvqI+qO2jNKbUKKPqynoNGa75zoXEXzh+SQau9tuR6ieAUjgneucbx4N77Ap+1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=1UYUAjRarxHoJHWAz0LGhNFQLy4xG1sSfLmiiv/gjeo=; b=DaoirWw+9axnDqQHYE5gNKotbpoUXj9yEwxDHHiq8JV+i0AE/kDHI6Vigd0mcCf9ZEQ2sEuAFVTfqoZrMCC2TIUDeH2nbPd2OS8cgdbZOwdY8GnIuh+/bGH4bMT+3G0S65ZDNHit/AT/I6lTBh/vasHt6wbm/fD08g6LP9pvNqSpwLKzM4Cf4FcxV1Fe19zTcgytLwHRMSYfgQX2yH37G5K7LL2DSYnhDO0NE6n3SS9kNXUDOnSbJSj6D99CJtXqxwsFOvgn0w0joXSFaXsGgoIabz/lQhnH/saL5HglVsKtkyhuKKovXBoGoLLL3ZMzAxfTmSBGHybBS4SaDfnUAQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1UYUAjRarxHoJHWAz0LGhNFQLy4xG1sSfLmiiv/gjeo=; b=eiZOpMoJdRSqq5aDiAIkRTT7qnDCs6euouTeIsLLlST0EvWTL/af+9IWd/FACciNbqDIb+TqfYHzyrXlPykrjXPD0SMFJlFDJT+pmK50jW/j3mxc2NigweZEoIaKtLX5FLWJlQJYqthwGupWXdA4/LOGgP7JB9sgQCae8tZvhx4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) by PAXPR04MB9187.eurprd04.prod.outlook.com (2603:10a6:102:221::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6588.20; Wed, 12 Jul 2023 21:18:15 +0000 Received: from AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::c479:12c5:ce68:5e45]) by AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::c479:12c5:ce68:5e45%3]) with mapi id 15.20.6588.017; Wed, 12 Jul 2023 21:18:15 +0000 From: Frank Li To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Li Yang , Pierre Gondois , Chester Lin , Zhou Peng , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-arm-kernel@lists.infradead.org (moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE), linux-kernel@vger.kernel.org (open list) Cc: imx@lists.linux.dev Subject: [PATCH 1/3] arm64: dts: imx8qm: add cpu frequency table Date: Wed, 12 Jul 2023 17:17:52 -0400 Message-Id: <20230712211755.1538847-1-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: BYAPR05CA0042.namprd05.prod.outlook.com (2603:10b6:a03:74::19) To AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB4838:EE_|PAXPR04MB9187:EE_ X-MS-Office365-Filtering-Correlation-Id: 9920463c-8d02-4b3e-b2a0-08db831d8129 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ZCXHLli99IVe4ZnRl26eF5uZHI2cINnjJK9TPLM06iUe4fjoasyJa01hsqbHwLd16E0sTfNciUoucuUiTsoe8i/RKiaJ2foQlCF++mNmpgOi6oAGRNJdKM35l08yMwB7JQZsd7l7OzqupsT8MXnjdUs+wpw+vaTpYwokawvJ4tTFKJsf8He9sjk4seNMhVY6dP5MVLmxVdl37qYSiJQ0WgcWuGWkQtgQ8u8f2MYzJLcSUSLidn6K6WsSQJbeolPA132Zey+mbb88LkgprQ8dv9gknmSrCBsDPXsgjAFLxDMQIaU+k/B5mku8MVsILm863RblWQ2jVsr3Ua3vlQdAMLH9g01Dl4Dyus+WcHJT4YTiiae0Je8bA0jOUxAwws/UCYW2Ts2QySGWaDDFQejOF/UZa7x5tu7863f22G9hdT9ivPfqpeQ20hf0JP2sZA5OTrwU0wNcMnMWhgxUS33eJW6IH84hZj1eO8x+o1OIhsRr8GcCVC7KPyg8D7Zd1q5PXUBPKDNtSZKwzFsz2uh+6wrnS8xFvj3THZTZ2u2GoSM+w6JLPkCQsTJLk4l7qdunrurpbwkAwtsQa/GqdofymTvPeVebeY53njo3Ff9DJgQwLETWaTMvyYgqTX+R53QD2m4VnPoAgj9JSszYx6R3AAKU5WAoPBxA1KRILrOMO4g= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM6PR04MB4838.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(39860400002)(346002)(136003)(376002)(396003)(366004)(451199021)(41300700001)(8936002)(8676002)(6486002)(6666004)(110136005)(5660300002)(2906002)(7416002)(316002)(4326008)(66556008)(66476007)(66946007)(6512007)(52116002)(36756003)(478600001)(186003)(86362001)(38350700002)(38100700002)(921005)(83380400001)(6506007)(2616005)(26005)(1076003)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: IeCxgOWiGe+iq+NkmD3SEzMJHlTEy8FtsnitG66NLrkFtLAZFs8pA1wCMQOGYfjN1YVGEYSXmdoFWNGXe813lbzko5y6Z/rwkZH+ltewwCvbJdHieLAvAGsSt41kFNY9xgnOWX7qcj0STv5Bfcq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N/bpoYZdg3p9+7DflYEd9j6lDFGRKtZxnMC6ZqyvlEGxq9VMhGZoizu9g74ReHhKg4EM9K35dAgAfzrYaA4WPb/GRP3Mzl0N/OpvetQ3kkTG6oD8IOatS/sS43P6z3qEAdwzj+EcPr71SiP9Gj53e7ihPTdZh3SNTg01cTAaEdVG7gkdWGTb5+iejS9FU9v1VEx4EKsvQwpm8JS6KJcP4BSFfYQICsIOqTxdd6sfOAh5E3mzR3v7mZtq0w1qos1bdWV52mclxbjVMxUwgsHZFnc/9tQNnEKmS070y3t9QCRTh5mcUZv52HNp52++rpgBBuxurkFXJ3UCDnQs0wakPDv4eulOr7Qvl/1/0n3B0= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9920463c-8d02-4b3e-b2a0-08db831d8129 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4838.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jul 2023 21:18:14.9652 (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: W76naZlNu0QhT5v+lSCe7yp9cD7tw4+/JELBABoYOuilzgU+qOk9hSuWLIesxefuQdWX6N7u8zPAZy/xXOCgbQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9187 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add A53 and A72 opp_table. Signed-off-by: Frank Li Reviewed-by: Peng Fan --- arch/arm64/boot/dts/freescale/imx8qm.dtsi | 72 +++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qm.dtsi b/arch/arm64/boot/dts/freescale/imx8qm.dtsi index 9fff867709f0..24508b84804b 100644 --- a/arch/arm64/boot/dts/freescale/imx8qm.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8qm.dtsi @@ -62,6 +62,7 @@ A53_0: cpu@0 { device_type = "cpu"; compatible = "arm,cortex-a53"; reg = <0x0 0x0>; + clocks = <&clk IMX_SC_R_A53 IMX_SC_PM_CLK_CPU>; enable-method = "psci"; i-cache-size = <0x8000>; i-cache-line-size = <64>; @@ -70,12 +71,14 @@ A53_0: cpu@0 { d-cache-line-size = <64>; d-cache-sets = <128>; next-level-cache = <&A53_L2>; + operating-points-v2 = <&a53_opp_table>; }; A53_1: cpu@1 { device_type = "cpu"; compatible = "arm,cortex-a53"; reg = <0x0 0x1>; + clocks = <&clk IMX_SC_R_A53 IMX_SC_PM_CLK_CPU>; enable-method = "psci"; i-cache-size = <0x8000>; i-cache-line-size = <64>; @@ -84,12 +87,14 @@ A53_1: cpu@1 { d-cache-line-size = <64>; d-cache-sets = <128>; next-level-cache = <&A53_L2>; + operating-points-v2 = <&a53_opp_table>; }; A53_2: cpu@2 { device_type = "cpu"; compatible = "arm,cortex-a53"; reg = <0x0 0x2>; + clocks = <&clk IMX_SC_R_A53 IMX_SC_PM_CLK_CPU>; enable-method = "psci"; i-cache-size = <0x8000>; i-cache-line-size = <64>; @@ -98,12 +103,14 @@ A53_2: cpu@2 { d-cache-line-size = <64>; d-cache-sets = <128>; next-level-cache = <&A53_L2>; + operating-points-v2 = <&a53_opp_table>; }; A53_3: cpu@3 { device_type = "cpu"; compatible = "arm,cortex-a53"; reg = <0x0 0x3>; + clocks = <&clk IMX_SC_R_A53 IMX_SC_PM_CLK_CPU>; enable-method = "psci"; i-cache-size = <0x8000>; i-cache-line-size = <64>; @@ -112,12 +119,14 @@ A53_3: cpu@3 { d-cache-line-size = <64>; d-cache-sets = <128>; next-level-cache = <&A53_L2>; + operating-points-v2 = <&a53_opp_table>; }; A72_0: cpu@100 { device_type = "cpu"; compatible = "arm,cortex-a72"; reg = <0x0 0x100>; + clocks = <&clk IMX_SC_R_A72 IMX_SC_PM_CLK_CPU>; enable-method = "psci"; i-cache-size = <0xC000>; i-cache-line-size = <64>; @@ -126,14 +135,17 @@ A72_0: cpu@100 { d-cache-line-size = <64>; d-cache-sets = <256>; next-level-cache = <&A72_L2>; + operating-points-v2 = <&a72_opp_table>; }; A72_1: cpu@101 { device_type = "cpu"; compatible = "arm,cortex-a72"; reg = <0x0 0x101>; + clocks = <&clk IMX_SC_R_A72 IMX_SC_PM_CLK_CPU>; enable-method = "psci"; next-level-cache = <&A72_L2>; + operating-points-v2 = <&a72_opp_table>; }; A53_L2: l2-cache0 { @@ -155,6 +167,66 @@ A72_L2: l2-cache1 { }; }; + a53_opp_table: a53-opp-table { + compatible = "operating-points-v2"; + opp-shared; + + opp-600000000 { + opp-hz = /bits/ 64 <600000000>; + opp-microvolt = <900000>; + clock-latency-ns = <150000>; + }; + + opp-896000000 { + opp-hz = /bits/ 64 <896000000>; + opp-microvolt = <1000000>; + clock-latency-ns = <150000>; + }; + + opp-1104000000 { + opp-hz = /bits/ 64 <1104000000>; + opp-microvolt = <1100000>; + clock-latency-ns = <150000>; + }; + + opp-1200000000 { + opp-hz = /bits/ 64 <1200000000>; + opp-microvolt = <1100000>; + clock-latency-ns = <150000>; + opp-suspend; + }; + }; + + a72_opp_table: a72-opp-table { + compatible = "operating-points-v2"; + opp-shared; + + opp-600000000 { + opp-hz = /bits/ 64 <600000000>; + opp-microvolt = <1000000>; + clock-latency-ns = <150000>; + }; + + opp-1056000000 { + opp-hz = /bits/ 64 <1056000000>; + opp-microvolt = <1000000>; + clock-latency-ns = <150000>; + }; + + opp-1296000000 { + opp-hz = /bits/ 64 <1296000000>; + opp-microvolt = <1100000>; + clock-latency-ns = <150000>; + }; + + opp-1596000000 { + opp-hz = /bits/ 64 <1596000000>; + opp-microvolt = <1100000>; + clock-latency-ns = <150000>; + opp-suspend; + }; + }; + gic: interrupt-controller@51a00000 { compatible = "arm,gic-v3"; reg = <0x0 0x51a00000 0 0x10000>, /* GIC Dist */