From patchwork Thu Jul 13 20:49:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 120109 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp2096906vqm; Thu, 13 Jul 2023 14:25:49 -0700 (PDT) X-Google-Smtp-Source: APBJJlGQbVGV2AewuXobliyV+HR/dGmOLM0PJMBGfrLRERAKDijQqfio4yjK3jWXagoxB3jaeF4R X-Received: by 2002:a17:902:e5cf:b0:1b8:aee8:a21c with SMTP id u15-20020a170902e5cf00b001b8aee8a21cmr3229558plf.31.1689283548808; Thu, 13 Jul 2023 14:25:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1689283548; cv=pass; d=google.com; s=arc-20160816; b=Tr0cWZ0q5IGoLHOJbzozR4QYNaol3nmnkRHPTGimQW2d4LVW4hUzNhlOyvwsmYHO0E OvltHK0KoXeW9GDRV3NCVYd8496MKGXTmIkjfaZAMztAGtFBpgDv1qwQ2N/2q6IcxRcf FTx5Y5I9wtVNFpZTMupwabeSZLIr3IiSyAVVpd7LV/IUvG2/ah0goptWwOIja3SXE2dt FiMw+YB/S/clTc/D6fG/jyG1alhJL6l+gT0LSC9gzj8LDE6yUqYZPbINHnIsfkvxV1t3 oZYH94x5feN1t6bvBw9tEEzGkKVZo8eeJU3T3wIzhlNtBj/QXNRjFdR41uig6g/tNdaD eifQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=0mH5uFpzxM3A8N74L9x4HxyBQiRdMhUpuF/vJOLsWMU=; fh=nmRgU3opqEq5gaWhYfg+7n8mbHgynlcRlkKq5uShS1M=; b=tIw3jJeol9ZzTfA7BqAXdT5EZnbmqmPW24FSTUcl6wEXlntbrWDj20Kx7wJhlL+33+ +nV/XbkwHyfAget+cyt9J5P+K3nAgy/Z2V8R4VEo4dwEeHCsk5DV6RF3paQqpkQ2V5Ui RVO0do/xHnvfb7Lfvrmn8UoTeAoHb521HGpppCXVO+cIMhV3PBcym1bWrcAtrNQ+aZqQ DmfW/yZfw9EBS9qIFwnf1itoVuaoH4pInZogvxQj9D3dE5m35CCn9iXrMw9pJAKcCQ/U iVvF3HVTbBunqiqIxVRq71fHYiINGGTpVc3wSTd1CZeTknNx3Fw1M8DEEg53Ya0Ofpcp Q/sw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=IFAJ65rE; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x19-20020a170902821300b001b85a2976f0si5657217pln.563.2023.07.13.14.25.35; Thu, 13 Jul 2023 14:25:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=IFAJ65rE; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234028AbjGMUt6 (ORCPT + 99 others); Thu, 13 Jul 2023 16:49:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231777AbjGMUt4 (ORCPT ); Thu, 13 Jul 2023 16:49:56 -0400 Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2063.outbound.protection.outlook.com [40.107.104.63]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44C4D2D57; Thu, 13 Jul 2023 13:49:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oHEID6fliIRYU5vByveVU2zKHZ3Yda3kQ0p7aH04+e/JVoi3WwiSrCYYZvE+h4YMyFHlGp2kUZmFdXvuYgzj/+HethWBI+KZRlus5oetiu82X5X74WY59OLhOTmeHssAYN+IUmNvaETJYYnA1bmdPrWeiUl23sNwG7JsCl8n3t5J5lSGd6q6D+X+SyXRTRVvEafoqtpRTHGRSpaccV9wte1N09FwkDWAcSTFLKHCk5U+/Qq2OvK3WD+0AKuqVSpPgFUyJeL9jaoWhLu57jSOXshXWo34v1iSOsX0mIRZatOEODlppXFPJBUfhNTCfSBtvAsMyz4OtGT9DxuPtJUnuA== 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=0mH5uFpzxM3A8N74L9x4HxyBQiRdMhUpuF/vJOLsWMU=; b=KmZxQR62xNAGGeIJ0B/qFi1xKL+/s61Qa92LSDC//HanBC9eZndV65i/I0YPPoFi8zumjUoWBPSNM4NloLoiX+Z9FDpE6Ylom/qxZcq3DE5Dm7pLdgjwgvYizEDyO4c7l59zg1ZgwqD9GU/qfcTIwfzpVP12BDJa2b3iErcX5VCimVToFrRcAHKiC6NpVBSdQuH5wmfpYp4TImTCR/h/dy5loo+CzcMc3QCfDE9a0JjsEtTDZWFd7h4iot/fQsxbcToQ4WkUjKBaQ1PhV4ayXn0BoA9yhAvAJO0AHkDPNh9vtzjuNvp3XqRMOtRd1NDtkuCZaOwiVs1dyYOFo2Xw4Q== 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=0mH5uFpzxM3A8N74L9x4HxyBQiRdMhUpuF/vJOLsWMU=; b=IFAJ65rEHXxUlEnoQGP/L/xX6miMAHzX+GYbq2XIjdx0CpngUtjto7InkYZm4Aw3HIpsW8BYGcQlDMFo4IsRLjY2vM6PKAgP9CaWD/gX0jURpaH3/6lglo7G3jleROBsvSd3M4FN6lZpGq4eGd8YGkiTmZIwLwU0P7Z2qmXuMJs= 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 AS5PR04MB9731.eurprd04.prod.outlook.com (2603:10a6:20b:654::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6588.20; Thu, 13 Jul 2023 20:49:52 +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; Thu, 13 Jul 2023 20:49:51 +0000 From: Frank Li To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Peng Fan , Chester Lin , Li Yang , Zhou Peng , Pierre Gondois , 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 v2 1/3] arm64: dts: imx8qm: add cpu frequency table Date: Thu, 13 Jul 2023 16:49:29 -0400 Message-Id: <20230713204932.1591255-1-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: BY5PR13CA0030.namprd13.prod.outlook.com (2603:10b6:a03:180::43) To AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB4838:EE_|AS5PR04MB9731:EE_ X-MS-Office365-Filtering-Correlation-Id: 7ca19d71-c101-42b7-36e9-08db83e2b467 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iD3CBSQVUeGAu2GlSxn7RmJbRarloMY78Y2V8ciAVnCyrKaX18Aqhl90HT1QD1SiwcU+6ooydBa/4cxil+GN3ATsO1YtY4ujLM2aIi33oE84PGInTibVJBvCnw7Kd3cbUvGvegeIqXwRYl9VH66hyV8ytWBDcMW+DUqZv55H+zvEcyOug8ZBk4XmRIjR+szRwNPH/N9fEKr9ynfSZqc4TGxuXvV/0Hua+VmobIghTyburpbqj2AlIeyWws5DrEe9JdwTC3KRfmMCvjLSdJHuTnenEhlbNCWI5CdS5nrSTWHfD1WzSr2qc+7R43eOXMpYJ8kC3UlU9DUBFmv5K7WwbaM0Tj+Jz/jSrHS+CcjP3UmcPpNVq6bz8CeIIRymoehlJYnN5E7eEYoqcPPB/KyCepbRpuqCutYFgl3U1ok4x6l7lEfOha9Fw/wP4OZ2RCkmWbyDSCRCIXtGUgbSvGVOIzcj17jnTUabCLvuY22LgHWQaoKUno1DPbzjxgkKccgVgZ3nA6GjED4fAfLMja330iIloP7uzrGgg6Z8r58/scAoAiX1h5nwrl6N2h/YyrUodkP7Mu1erxytyyWVjfeTkkkPhUDAtrA2YmVlBUgHo7I83YUQm1LxS9f0lz3jM5Y8twbFdUC0CCdEeV9X8/Iz2C7d6fy1YnjPhgx+HUzLtIM= 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)(136003)(376002)(39860400002)(346002)(396003)(366004)(451199021)(2906002)(38350700002)(6512007)(38100700002)(921005)(83380400001)(2616005)(1076003)(26005)(186003)(86362001)(5660300002)(6506007)(6666004)(8676002)(36756003)(7416002)(8936002)(478600001)(110136005)(52116002)(66556008)(41300700001)(66946007)(66476007)(316002)(4326008)(6486002)(32563001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: jHyR9Gn/6i33shYkx0RtFjLlYSTeFxcNCzRBO12MDI1FBmi2L/YtlMoxnvYYXkKIATyHvInXANly2lHk5gH5sf+NrFPkPMZSSFUyFu4QdKdLl9qpqr+qc6ckOie+uAz+4Ss40NAht/f+e243w8AWLCYYpae/AnwhEQPLispsbzz6Km8aASZ+jPVs+lrSATO1sFYV1UQhZ6V0Z42aVuFIjlenBSd4fXeMIU5H2tIpK0KGBSV+X3H4M6nJds98mN7fO3rM9DSMFdRYT4nb190QNYch/HibjbvKCn6BaCVyq4Pw9hfZfqmdjtFMBSh/7z7zwvN4rCTYv33DqeEDnlvXo25pvcf1hh8UXiK2GR7S2Gx4cDt04kIsSAzdB4qaELqv/5oiUpPLaAsI6F1W5T43XMNSEL8FuRwkfugpiXZyvcVwajkG8E/MYONSl4EUDMQk8F7mrH8XheRM2nQFJUjLzH40zVKEOPltuWixNDu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72hBgfR86aDJTJAYiCT+2wy X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7ca19d71-c101-42b7-36e9-08db83e2b467 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4838.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jul 2023 20:49:51.7128 (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: E/lbGCSpKI3xlkO2i0gbleV5+2PmNcevEToXD5A+0V/BOFvsluwMuO8Z1Lv7NxBJz0SpZPqh/Ge3ETrFOZNk5Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS5PR04MB9731 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771342186581765195 X-GMAIL-MSGID: 1771342186581765195 Add A53 and A72 opp_table. Reviewed-by: Peng Fan Signed-off-by: Frank Li --- change from v1 to v2 - pass make dtbs_check 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..effd84ebade1 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: opp-table-0 { + 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: opp-table-1 { + 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 */ From patchwork Thu Jul 13 20:49:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 120107 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp2095635vqm; Thu, 13 Jul 2023 14:22:56 -0700 (PDT) X-Google-Smtp-Source: APBJJlF+6bJg6a6eWUJNdrH5D1MkPHZHJfQJHffT110vFbjgf/z5xZArRLElnOWHPAsfYoqnSBLB X-Received: by 2002:a05:6a20:7495:b0:132:d029:e2d7 with SMTP id p21-20020a056a20749500b00132d029e2d7mr2137792pzd.55.1689283376586; Thu, 13 Jul 2023 14:22:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1689283376; cv=pass; d=google.com; s=arc-20160816; b=Ls/WLVsOSGXcGbu7waSMPm0ctCx08B/mCJKLz3E6mJg6kVn2btOO1kOk24cBdgk8pH AN8nIio9f7EOydYjqy4rhbC8Plun4BjcLZ4nRIBlDUP9nsyZ9LyCAEujyC9UdNPMmIx1 5R96w4OPpU5XsvpTo/fxxIJbdZESrL9PkQ5zTXMiWx4AnSu+R7+bjNpe304XflkvtLl2 2Kown3uYAE69ajegpQQUfGNznlLyrhSOVdZJcqgy3M4pd7vbMylZqhJDHMbN+9lxsxKo oqEqINPknhToLyhvscpuloogBhh+z+zZIZxgCcOl66fMmOs3BXbe5WaMfTEGh5nhBN/4 yMvw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=2xvILuE9OtYpuohp6RuCQD53b/yyqAd109GFZiDqHqo=; fh=ce8pOd9rpYwYocINVx2owxsooD/o3wDOPbc/QbN1p+c=; b=cqc/PUMGvC8qMwS+cdD2zYeVh7DiXGaxEmb2hAZK06/BHvYlPeYcjUcrOJh2OKGPTh EXFIoR0bB5t77zgJ75u17/29uAyTIBDIegJWAiF9CcInUUouUh981n3E+VCPL4Jo/9Gc +z3Aq/IAX3xtEEdmEYn6LvPIgwlHK4pfvzLYn5AIVmLGN0HOLHHNMwqwnygd5NfbEC+D AjG4GWZKkuWZoBiQ0fFq9uk3T7pIilowjoSDI8qWWa58+TAJsDyhxwjEWz1Q4HPiYOV2 PTTTQ4oy4kOpgOKN5xGzwKezym3/GLcqAuD9CtsCX2gGvu56PYV/rJfoQQes2p+JVBF1 PPNA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=lpRHTVQg; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c5-20020aa78805000000b0066e608447d4si5608021pfo.102.2023.07.13.14.22.43; Thu, 13 Jul 2023 14:22:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=lpRHTVQg; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234112AbjGMUuG (ORCPT + 99 others); Thu, 13 Jul 2023 16:50:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231777AbjGMUuA (ORCPT ); Thu, 13 Jul 2023 16:50:00 -0400 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2046.outbound.protection.outlook.com [40.107.20.46]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D648CE; Thu, 13 Jul 2023 13:49:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IKQiuV39k6LjkXIg47A4VsxfVfbTT5lRQFcnVMmQCfcpwyU9I4k88Dyz0FgQaWLMIFhM4EJqFKgGUnZMjrlhItQSk6GNyxcPeDNlMK6pdytzO8YNC1KW0AENN60VtRxJ9GBPDI5c9M9/63RAXqVXsxrVjlh1gcWguBqPvOXSY4WIhIS1aVxBjIZuNgM3n/FAvphcMSFptGYplvfOMV9IHNmX87vR7+p01V75oDjqDLtBKjX9p3EKGbhUqVyBWZhLuKiN8EP7QsmI0AF4cNGW9Kia5SK3bzuiRNKLJ/loqWAOqZwU0JY9dsb7qHGTfxI8ta5jX4Y65ID09Q3ixXBofw== 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=2xvILuE9OtYpuohp6RuCQD53b/yyqAd109GFZiDqHqo=; b=YOocdoaZneweYxyI/jyfz9Lk1G0OIOogR/+L241FSXiweiEBBJ06Tgh5dmJBxqX2uEmG9OGofO8xAOagB0O0ZYz4j3GfEZHZ6M2ucK5sqLru/Z2crmvDfsAw8ySWb1oOWftJT4jxH7+L9dQxDEpWnIn9gIyFZgczJMRXb1gFoLlWMmICm5jpgXSDJ6Ut1QRoRG6XlW2jCxJEDG2/UxzTtQslc4NlJPMWaNGsjmr5DCxT/9yiVF0XH+S+4l2LxMXcjG6awfEzSCR4z5hjiURv8Q8ENZ21pyCIVsQhyjgd+poVazg7slun/EVIYtThNrqKbGhvM6ltL10nFr+EVyNi9A== 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=2xvILuE9OtYpuohp6RuCQD53b/yyqAd109GFZiDqHqo=; b=lpRHTVQgfq2UspxJ3pT0oQuO1oKQ7WRUmdDUWmG+lz+6T1DoqGhL5hwuRIfT3KPMFLTHRdnJCYp/lhdgA5J6vUlWF73KdY/0XtYgluE+nm7A00KVFVYOZ1Ha4VfSxoUZtVsTmgA10uMa0AY8ptPJi3q5CgJVrRxr6oBc36fXqD0= 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 AS5PR04MB9731.eurprd04.prod.outlook.com (2603:10a6:20b:654::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6588.20; Thu, 13 Jul 2023 20:49:56 +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; Thu, 13 Jul 2023 20:49:56 +0000 From: Frank Li To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Peng Fan , Li Yang , Marcel Ziswiler , Zhou Peng , Pierre Gondois , 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 v2 2/3] arm64: dts: imx8qm: add thermal zone and cooling map Date: Thu, 13 Jul 2023 16:49:30 -0400 Message-Id: <20230713204932.1591255-2-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230713204932.1591255-1-Frank.Li@nxp.com> References: <20230713204932.1591255-1-Frank.Li@nxp.com> X-ClientProxiedBy: BY5PR13CA0030.namprd13.prod.outlook.com (2603:10b6:a03:180::43) To AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB4838:EE_|AS5PR04MB9731:EE_ X-MS-Office365-Filtering-Correlation-Id: 85b4ddc4-bd7e-40ca-070c-08db83e2b74f X-LD-Processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jD1litjE4jtGp8RrsLPvi7l56KVvDUzDreCJp79MAN/0jQQ/NqdCgNExKpwC+sWxHj9hPnNgvvNueri/g7LnAMThHDCFs5gki2YCEQjPn0/NBxDvjRiNjSdJtv0eldBJGSnfddNrLQ8E2mkwaNDCF8pS46yzVYV0XtYIgfFf0EDCiprNByzlwbREz9g2rpHXysGI1ZPuZGlz5geF1+gwgVO+Pj+7w3O0sau446QYEMsain/SzBnyTU+RVPqiMxe5LRP5OMPF7/vs3UDAzuwFRzWuO8/+ZjdAsHp4xaW2BNeiubjodaW/bNwOBxGwSTqsQPJOjJwmD1tc2gQ9NuJGbKEQxLyoEsim2zhO0k6SDU432HPD90yjvYZDkVQ3+e0vhjxZDP3AvGcoRPNehbWs+q2G3Af1J2aO6IWMcMifMLqTBuAbsoxqnOWIte0VUTfAKoS32lVslj7rSFZWhI9bMh25VBV9rTbzmmCx4Y529hc4qNUI39izZOq8mjGGdD8jPcA6BQWGoJU1fsCZ/ZYs2eaulS6j8Gn0wIHZCP8ld1a5GDVPEpvJsZ41n5nvo6qEV3zxDF6NxE0vvgm9RReyI3hzz8lugDY72AW0mHvvHYd6OCHhsxmcFmpMq5Wq/jQfqidcrFEsYW6yl2AEpBFGm2Ta4YcSaGXMa4mKrMuZBe8= 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)(136003)(376002)(39860400002)(346002)(396003)(366004)(451199021)(2906002)(38350700002)(6512007)(38100700002)(921005)(83380400001)(2616005)(1076003)(26005)(186003)(86362001)(5660300002)(6506007)(6666004)(8676002)(36756003)(7416002)(8936002)(478600001)(110136005)(52116002)(66556008)(41300700001)(66946007)(66476007)(316002)(4326008)(6486002)(32563001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: aGRcXbQwowf3UoyVsNdC3c9wrAQ4hMcUDnFW7ZUmuS1sE9q8F5k0dIaK3L1kz6g8Vks39Po9sDKQVQJlLdmBZg1ELIovMdWwmfY2y2YMfYb+wi9o8GK+OJTza1L+ImfOds6a5C+EdfJp+CS66JmhPB4cnc04mgszAxpXUB++8YLNsWHRXLIbKtUSL9kO0jw4SmESJ/ophzzqNDcao2FP7Q95GbgqWquSRwkjeSW2BWkfS7NkA+r2tIXJfmAxYIjxNvQBF1IaAYbuxVGxADg9W9hF5bR1E55oP1v/b3t5NDkSAHkmTuCe+OuL8exEQSX9EEpQkjci1+qRQvoK6OT/3zUhDCUbN0g66IrIwHnjHNQOeSE/TCbR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oZqptk+Q72grxQ736EYxHWTpQI913UFNI6Ll759wMDxNktupjCZ3mEucHyJUYU5KIX94HW9G3SX69cdDJIbAk60YfBVE/Uv2ytBpDMbZGsE++gI8VKxz5C2tx6V3J8b5biptpd782MuYdROaxFB+buKqYqjn X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 85b4ddc4-bd7e-40ca-070c-08db83e2b74f X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4838.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jul 2023 20:49:56.6638 (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: TnutPFqlaBfzHi8EHBFa3RNEgEG6mqU/KU+Fyn9YkVPfADcLBWa9jUUaql989UXepCiAQb06yz63khnqAlrVkQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS5PR04MB9731 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771342005722916185 X-GMAIL-MSGID: 1771342005722916185 Add thermal zone and cooling map for cpufreq. Reviewed-by: Peng Fan Signed-off-by: Frank Li --- change from v1 to v2 - pass make dtbs_check - remove stray blank lines arch/arm64/boot/dts/freescale/imx8qm.dtsi | 134 ++++++++++++++++++++++ 1 file changed, 134 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qm.dtsi b/arch/arm64/boot/dts/freescale/imx8qm.dtsi index effd84ebade1..0e425df1bc4e 100644 --- a/arch/arm64/boot/dts/freescale/imx8qm.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8qm.dtsi @@ -9,6 +9,7 @@ #include #include #include +#include / { interrupt-parent = <&gic>; @@ -72,6 +73,7 @@ A53_0: cpu@0 { d-cache-sets = <128>; next-level-cache = <&A53_L2>; operating-points-v2 = <&a53_opp_table>; + #cooling-cells = <2>; }; A53_1: cpu@1 { @@ -88,6 +90,7 @@ A53_1: cpu@1 { d-cache-sets = <128>; next-level-cache = <&A53_L2>; operating-points-v2 = <&a53_opp_table>; + #cooling-cells = <2>; }; A53_2: cpu@2 { @@ -104,6 +107,7 @@ A53_2: cpu@2 { d-cache-sets = <128>; next-level-cache = <&A53_L2>; operating-points-v2 = <&a53_opp_table>; + #cooling-cells = <2>; }; A53_3: cpu@3 { @@ -120,6 +124,7 @@ A53_3: cpu@3 { d-cache-sets = <128>; next-level-cache = <&A53_L2>; operating-points-v2 = <&a53_opp_table>; + #cooling-cells = <2>; }; A72_0: cpu@100 { @@ -136,6 +141,7 @@ A72_0: cpu@100 { d-cache-sets = <256>; next-level-cache = <&A72_L2>; operating-points-v2 = <&a72_opp_table>; + #cooling-cells = <2>; }; A72_1: cpu@101 { @@ -146,6 +152,7 @@ A72_1: cpu@101 { enable-method = "psci"; next-level-cache = <&A72_L2>; operating-points-v2 = <&a72_opp_table>; + #cooling-cells = <2>; }; A53_L2: l2-cache0 { @@ -284,6 +291,133 @@ iomuxc: pinctrl { rtc: rtc { compatible = "fsl,imx8qxp-sc-rtc"; }; + + tsens: thermal-sensor { + compatible = "fsl,imx8qxp-sc-thermal", "fsl,imx-sc-thermal"; + #thermal-sensor-cells = <1>; + }; + }; + + thermal-zones { + cpu0-thermal { + polling-delay-passive = <250>; + polling-delay = <2000>; + thermal-sensors = <&tsens IMX_SC_R_A53>; + + trips { + cpu_alert0: trip0 { + temperature = <107000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu_crit0: trip1 { + temperature = <127000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + + cooling-maps { + map0 { + trip = <&cpu_alert0>; + cooling-device = + <&A53_0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&A53_1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&A53_2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&A53_3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + }; + + cpu1-thermal { + polling-delay-passive = <250>; + polling-delay = <2000>; + thermal-sensors = <&tsens IMX_SC_R_A72>; + + trips { + cpu_alert1: trip0 { + temperature = <107000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu_crit1: trip1 { + temperature = <127000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + + cooling-maps { + map0 { + trip = <&cpu_alert1>; + cooling-device = + <&A72_0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&A72_1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + }; + + gpu0-thermal { + polling-delay-passive = <250>; + polling-delay = <2000>; + thermal-sensors = <&tsens IMX_SC_R_GPU_0_PID0>; + + trips { + gpu_alert0: trip0 { + temperature = <107000>; + hysteresis = <2000>; + type = "passive"; + }; + + gpu_crit0: trip1 { + temperature = <127000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + gpu1-thermal { + polling-delay-passive = <250>; + polling-delay = <2000>; + thermal-sensors = <&tsens IMX_SC_R_GPU_1_PID0>; + + trips { + gpu_alert1: trip0 { + temperature = <107000>; + hysteresis = <2000>; + type = "passive"; + }; + + gpu_crit1: trip1 { + temperature = <127000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + drc0-thermal { + polling-delay-passive = <250>; + polling-delay = <2000>; + thermal-sensors = <&tsens IMX_SC_R_DRC_0>; + + trips { + drc_alert0: trip0 { + temperature = <107000>; + hysteresis = <2000>; + type = "passive"; + }; + + drc_crit0: trip1 { + temperature = <127000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; }; /* sorted in register address */ From patchwork Thu Jul 13 20:49:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 120111 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp2099787vqm; Thu, 13 Jul 2023 14:31:35 -0700 (PDT) X-Google-Smtp-Source: APBJJlF0R7gj8TD+WEzXKfGzBzJtH9dDeG5qWE+w9qv2DSPEdeY/kHoe3ShtDT5kHCD0LEPiAm+M X-Received: by 2002:a05:651c:d6:b0:2b7:310:65da with SMTP id 22-20020a05651c00d600b002b7031065damr2429981ljr.24.1689283895548; Thu, 13 Jul 2023 14:31:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1689283895; cv=pass; d=google.com; s=arc-20160816; b=V6MAvgnDTLe7y8ioExD8HS3jNKxyRUMcEPAPEddnH+LifkxElDmPCV3aihF732Vnnd ukAqd4rBFuEFy6jWmN5S48+5qsUQGVMw3cnOswj2dDozLIcvHxNaovb6+Z+4qY5KfUnA nCccYqB7440kxQ5kgxqjcmIhFfDxPi7QX4T83aMdyna+vZdT8ww6UGsRHCUBaMKPj3fr D5PH49ZKiYkq+Bsziveq14uEYXaktrLISnRz2jL8aOxfGa0MIc905WhVw2zZUJXRLMq5 grgs3HnjHDF/OIUMsasPXzcP55BuI0J+6pZtOOo6Qth+W61270GLqfvNnPGJNT0gg2L4 dMRg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=EA4jMpLY3coHVia3Tv8eCKYtQkwpOwQUZGr5m/3lt6w=; fh=Y8vqTou1xXEN4vKl3gqBXF1900yjTOdvDIoolVmWhQc=; b=xdjbkvvV+gG4/QnvM4eyHaMDybEiCoQ1PU2ATc4Sm4gdj8kTj0HEpvZy3Li5Q+Dh2F rDIzEfASjZgdso8jdyMhfrIn/t+K1rcbZd71KO0UeyMoc87FDf8FbMCHnJ8M0L1hEv6c NLjrWtSMhhligZGGBkGCI36nBw6WlI7DNtfi7IlezoYjH7i/JGrWrhVpCfASrfuE2ZIL X1WygyUYv2tuFq84XGeUuVZ96bZDjRWUI9sK2h/OF/ElgeQDd0aI7ZIwBPkyNJwN9rWQ YmsJ4p/ZrFCgXKz19sLlHc/WRjhOIucuRtKvlPSvpmT3PrQLS2LZhZjo85NQ0dMTvhl7 PI3g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=R4gYaJkw; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u12-20020a170906408c00b00988b2dfc3b3si1302440ejj.517.2023.07.13.14.31.10; Thu, 13 Jul 2023 14:31:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=R4gYaJkw; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234101AbjGMUuL (ORCPT + 99 others); Thu, 13 Jul 2023 16:50:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234132AbjGMUuG (ORCPT ); Thu, 13 Jul 2023 16:50:06 -0400 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2060.outbound.protection.outlook.com [40.107.20.60]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFD7D2D68; Thu, 13 Jul 2023 13:50:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ha7SX5fTPOkyuyYqQDPYaZDDwHVt4rpFXsLzEtBGR54ILCXjnQVihJivM65dnv0JEgC/0UxowIVoaGNSgaeXPnoYEOtjgcaopAk4jREHwfcGG516aIAvxqTe0fX1sdJe1N8TupwiG+2FNX+FwSQBwSdOuIPZE5J1AhB6wkh+rqz/77PI+1c1bH1H9nwHaZUcBNVpBAseUC1fpMIW4FrVjhGlMgHc1/xX35a3+u0YjDdeVimAd1+cdGj3eQJUkWUwgHZ97QMcC4or4RgstkDLjlv/SAUnChYbbqNED6+GbrMJaLElWziK5GrcUQMYb7DprxY4gitH+wndjN3yFApkpg== 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=EA4jMpLY3coHVia3Tv8eCKYtQkwpOwQUZGr5m/3lt6w=; b=fRtHwyFcBt/ltvZAkXIPaYrfFxW+eSA0Pb1PV/RoMSDZRmV/NxqPsF0PpUJQ2HJMpitdAC9begMYXKVioPVJt5X7tERD7cuhxbYAFiBTJIoA+miJdX8gdmpC7umORU9I4Ct+jp5xxlX56e8ucPAvBiqLHxiXTq91v1ptGFOe+4y73Snm1fRmi5CU/8iQ5qC2H3UdY8B78zUEJgBeZdbvKmCsgID8bMUL3QFH7moDup6KHGNaKF6i8TRancaqqCqbyxTRWbFwpsLW4d+haWfmejWf2KrCig7tbAWUU/9QcEEvKGx2TFpij8MejI8iSXSWy0Qb4Sit7VZuqCYYHu1urg== 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=EA4jMpLY3coHVia3Tv8eCKYtQkwpOwQUZGr5m/3lt6w=; b=R4gYaJkwAoD3uYnqsBK21Cz86AMV319Lk98Y8YBmu8w1BYAB3YNMB6Hxw970pH5iuFrOipGSl17h2mzJnW7g9dJcwGp0ukqh4S6zju4YAm2rskSsdIAv73mU/jrb52jL2eLlz5s+IYrUzVi6sZahP8gjBXMBk0A2JxYB8kLk0Hc= 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 AS5PR04MB9731.eurprd04.prod.outlook.com (2603:10a6:20b:654::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6588.20; Thu, 13 Jul 2023 20:50:01 +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; Thu, 13 Jul 2023 20:50:01 +0000 From: Frank Li To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Shenwei Wang , Peng Fan , 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 v2 3/3] arm64: dts: imx8qm-mek: delete A72 thermal zone Date: Thu, 13 Jul 2023 16:49:31 -0400 Message-Id: <20230713204932.1591255-3-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230713204932.1591255-1-Frank.Li@nxp.com> References: <20230713204932.1591255-1-Frank.Li@nxp.com> X-ClientProxiedBy: BY5PR13CA0030.namprd13.prod.outlook.com (2603:10b6:a03:180::43) To AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB4838:EE_|AS5PR04MB9731:EE_ X-MS-Office365-Filtering-Correlation-Id: 2567555b-920a-4cb1-6472-08db83e2ba02 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: psff2XlUyi4fho2sVxL4pMVXz6FZEXG08n0zClpgyZxiQzj13TJgfILe7CRenim3K5gNnzqADIebSR34WFgfqNhlW7L5zoDDiSPLDg02Hqrh96u8BOrAAWKaxa016i9FMIyN9mxkXVeLZmqYB9RrDx2+veS4RM8voiZPtPtWFBR5sHuCqZIKWVawyZI5Ty9rfRcEuaf3t3k6YrZVwHln9f4+PChMbj/x/C4uDvWhxA5CKUh6RGS3uDveiHqKQm0I6j0CQ9iXqhpQ+aDgxwndEx76sYi3FlbK9E2JQ0cHQnI9MFY1MPSnBn192pjNI+gR/KfZFBzTnLT5I9BlJ7d/isUd0lWFHOT5y9dzU3VQ75zaOJ+t8cz27p/T77pSNM76EkaY3Myb4GvUD3rx5UmPcSVM2DJ3jgbxL0TNJ2EOBZG34Si4q8+agOZaR6Efz9E7ONVaVGFZO1Of72krpKtyZsii1DQrbndY93ZanXRsS5rpZwXCJYUAjP2oOy/U3IG9FIjuFGPwosSxMpxoKU9kDsLIxrf9uDTKsP+RJrscF0juIWeVZ+OOh4vwO78yB2eKNjdOhwDsvnhbUjJ0O0P67EZK9oAn2TCk3zbvLeZXLJcqK6aU+Ik+38PdkJ7bfRm0l8ZDWr6/g1IZYZRkp5/WyDzZy7UK7t2fbsp8bZ/pPk4= 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)(136003)(376002)(39860400002)(346002)(396003)(366004)(451199021)(2906002)(38350700002)(6512007)(38100700002)(921005)(83380400001)(2616005)(1076003)(26005)(186003)(86362001)(5660300002)(6506007)(6666004)(8676002)(36756003)(7416002)(8936002)(4744005)(478600001)(110136005)(52116002)(66556008)(41300700001)(66946007)(66476007)(316002)(4326008)(6486002)(32563001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: E8Ln8xxvPIUiqMztdStX+9MaXfpkwGO5QXCV/+QNfIRiKkmyNkpIaWxfeaedfuIakYTf6iMCxC0THA96Xkqo3N4rb21FLgzkczpNiNslhkZ+bq+jtv4/3Ypc8QUGjUlc787oe0RhjxAys5AedeCKjXjvjAIcg4FhbE9aXxge7cc0FG3aYLlJI67UJZPv4zXnbxqBpyuDz/P77UZLue+rHSM55lU7lbHt8Q4EoeO3kZacgLgj3V+3hsq2XIg8qsWIpKwcMfhT+Rhd5oqEjAvoICKtDy182qDBLYap5Z/O8WSJ0B0pk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+ITZtr6FpVImwH7nk82ChHRBSWVjewLEoaSvRyKzuZr76OwYVdx+yfHWJZ9tYdZsLO3ZHX9GEYcepLtcMCZFWnVzH0lzeU5Px2FKd76WOnbrEVS9CL64NNFgbikVGEBIFGj2ieXtHv2WDmiGohb3OjgMFFDjx7tz1LkTSiDXIyEliOwmQh0Ib7K7F7+0ft2Lps4R4Vz33jRqws13HUEJnSuhaJI/8Ew X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2567555b-920a-4cb1-6472-08db83e2ba02 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4838.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jul 2023 20:50:01.2525 (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: QuB9zZzLRB54+z4+BmpPetrj4oqSGl47OWc403UM4jNckBFGSIv84NGg4uBQ2U3G1m0ZBlY8Ajep5T0CWakw5A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS5PR04MB9731 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771342550191388341 X-GMAIL-MSGID: 1771342550191388341 The A72 nodes have been deleted in this DTB. Removes the corresponding thermal zone to ensure a successful build. Reviewed-by: Peng Fan Signed-off-by: Frank Li --- change from v1 to v2 - pass make dtbs_check arch/arm64/boot/dts/freescale/imx8qm-mek.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts index 607cd6b4e972..0b34cc2250e1 100644 --- a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts +++ b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts @@ -22,6 +22,10 @@ cpus { /delete-node/ cpu@101; }; + thermal-zones { + /delete-node/ cpu1-thermal; + }; + memory@80000000 { device_type = "memory"; reg = <0x00000000 0x80000000 0 0x40000000>;