From patchwork Thu Jan 5 10:17:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Alice Guo (OSS)" X-Patchwork-Id: 13089681 X-Patchwork-Delegate: daniel.lezcano@linaro.org 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 7DCEAC3DA7D for ; Thu, 5 Jan 2023 10:18:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232388AbjAEKSo (ORCPT ); Thu, 5 Jan 2023 05:18:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232361AbjAEKSl (ORCPT ); Thu, 5 Jan 2023 05:18:41 -0500 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2064.outbound.protection.outlook.com [40.107.6.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B4BD395E1; Thu, 5 Jan 2023 02:18:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=agRXwar6heGEhUbz0o/HccchpZsoEHT/0fGQj0diyu2WItLJPrZgNfoNOzCod+/krePAZ4OK8zipHd/yW2S2wSFo3ZcK23W0LT0fhIar4+H2IhZdcQ9XMFitK722w90RHdXZizk2G6KC1cdT0twDazTW4lVktPg9sstW4moQJkycQhQzsK3yV7vVo/HBTaxDQsMBfdh/mjlJ3ckMHEgtNryN6bDYbNKmklcgcXIDJm9dVGlJfLMjq0d+Mn8DXS736F8syk0+g4ZxdwklhwKKlTYoxEHDks1VUcF954cLiVdy6SmZ9mrm+qw66Bb03bRdLv3vliFkUx4y7KgT5VMJIw== 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=Yyd48tbB9gdDpA1kteJwtgwWj3w80azCodmixY+Qca4=; b=cQ8OSAyGb+zJE0isQZQPucMnJRYoXSyCulhjUubqHE3dM9NCSQ04kA1mffkqIq8v0UC1ScUGhLAvJTnYJFIlX5Pjx/YSUzXlO3VbkoVyp1954YjJoevqf+butkuEG3xbg3kzM3Eai88THGim82IFbnr7d9uVbSZBbSchWvoXw6jyRvWi4gD9rK8tFWRmh6GxD+tWmNSYMeLWQNGsx+G3lrNjInKpnn0286/025UzTsNI6MhQf4wfUNfsAyxGp6GlbwXi9LxTiyGAG8m/u1MzCwZVqWUeTIbJJ3jowszMWZeUHZ3FrSGUXHmS3StpFtw8seC149cV5sEIVak8YeKSBA== 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=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Yyd48tbB9gdDpA1kteJwtgwWj3w80azCodmixY+Qca4=; b=mrJ4tCHh2JQodfhsOwCSbfUC7DIeWmt3eVlNv3fSC9mlqtZS4ozETKySG1F+diYAjdh+Kt5WxVr3GJhnqhsy8QbXxg6EbkmhcO1X2oFEtJuDfZSAajGjJv7Od/neRpOYsGi31lnmI6AT8NKVtS5QXZvUBzwAJ6j2DZXhbGU+Lec= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from AM6PR04MB6053.eurprd04.prod.outlook.com (2603:10a6:20b:b9::10) by DBBPR04MB7625.eurprd04.prod.outlook.com (2603:10a6:10:202::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.19; Thu, 5 Jan 2023 10:18:37 +0000 Received: from AM6PR04MB6053.eurprd04.prod.outlook.com ([fe80::f75a:918f:6b4c:4a00]) by AM6PR04MB6053.eurprd04.prod.outlook.com ([fe80::f75a:918f:6b4c:4a00%4]) with mapi id 15.20.5944.019; Thu, 5 Jan 2023 10:18:37 +0000 From: "Alice Guo (OSS)" To: rafael@kernel.org, daniel.lezcano@linaro.org, amitk@kernel.org, rui.zhang@intel.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-imx@nxp.com Subject: [PATCH v1 1/4] dt-bindings: thermal: qoriq-thermal: Add compatible for i.MX93 Date: Thu, 5 Jan 2023 18:17:45 +0800 Message-Id: <20230105101748.6714-2-alice.guo@oss.nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230105101748.6714-1-alice.guo@oss.nxp.com> References: <20230105101748.6714-1-alice.guo@oss.nxp.com> X-ClientProxiedBy: SI2P153CA0009.APCP153.PROD.OUTLOOK.COM (2603:1096:4:140::18) To AM6PR04MB6053.eurprd04.prod.outlook.com (2603:10a6:20b:b9::10) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB6053:EE_|DBBPR04MB7625:EE_ X-MS-Office365-Filtering-Correlation-Id: 40b79582-026f-46c1-391d-08daef063564 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Pc5KWjtzVHyvJXPVBLrLg/uBET/rvzYonMLdAMZdf7g5S6i720euQNUHFgax8vPqoYhkuacJNXTym5lqlmojfAlBYmJcNSSuRXrEGQ4Y/BWnJq1lfis6Smo6rvh8pf3OiEjFI9WITCu+Qy42OvO1f1JuX9tZedRd4nTAIpuL6yufsUZDS0BtBvuCZVo8JdQrtLKT5FTJFvVfYCBec45FLgmZiGvEPUt7TcLpUxu3odsrHBs4rdI9fErT6lNO3I7a9ay6oSA5NthQJ9gM/Yt5OIXqXRD5Me47n+VJw0YH3QpyV4IGBUuiPIe1os6O3uxkglx2Ljll92rAHNsjSBRVfQGX++eU0js/NOSbdDfTf1/EPM9oNs/64OUswd26WeeKctNM1J4SkoLc2K6EyoEqaPN4S13+pgcIjjPTYA1wV/2v/duuAhVaCLrLs583gP2yR9d/W0/mVsGoNwyLUZbZ3gQOrz2amCpPiOfeTrbs2HrUXoR12OuyiD+2nv8WJCm+ooSSpb6mmQiiHyEGaUf2B1ySA1OX1YCvdn06S25Yoszb74UPhfAawWg7EQ9XeH3Kzw8GRhhvqeOrhClJEkWmCHzevBhXYd2ryfXCB/uKk/XN/G07zORQQ3QL/+qZWKSMS9QRS6VjQ+JTohR4RpX2kdVm4PS+yRQKy4JlsT+Q6/t7QlhbSpJnJBf+8oYb56ZNUVRRMy8uY7Q/Zu+aYdLrzQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB6053.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(39860400002)(346002)(376002)(136003)(366004)(396003)(451199015)(6666004)(2616005)(6506007)(52116002)(186003)(6512007)(86362001)(26005)(316002)(8676002)(1076003)(66946007)(4326008)(66556008)(66476007)(5660300002)(7416002)(41300700001)(478600001)(8936002)(38100700002)(38350700002)(4744005)(6486002)(2906002);DIR:OUT;SFP:1101; X-MS-Exchange-Ant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1aeAtY761ZYkwcEh/+o/opJNpSwrK9qe0VzauBqxIHKfe2B2k2isXcR/zV9O+lpiKGWJiyoRGnDhckJQO69OInkabMDGL1NljgPzOz3F9kfWDayEV+5CTHRGg49QXbfyRv0S8I/gvOtUD2IrTR3LOAzjobxderozRw1Idd1rUMy2+ZvVk2c9b+TigOkOFwi/d1YkNTGD5zxHA7e/6WYw9kd5wh1zQN1feT/yguzQmCcUqCoo0dmvP0ADj24GMJHR412tuO9zLUBNkGHi3+kQ5rLL5AXhIPzSS/dKnUMtu7IKBG+jZSUlDdc15QFEKIH2FbmzG9+IMQHtRCc+y2t6LffcYmv2E0sHzLBn+xpGzR0kVx38vv4VjTvZnWln/1Qdf3XUkANxYY1hFuKb5n5Hhhai1UI134u3IUOFqqsIJyrtQOWRRv5tkKCPI6dR37arlNhKlHCahzghU6mS1M/F3MXD4sEhSK6KNALjxWqNom55lx9cFfssd50EmtG0xCTyw1VCmJRpFJCojw5pmCH6nQBpXxfgWItBfvKANpGkgNxvGQac16F X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 40b79582-026f-46c1-391d-08daef063564 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB6053.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jan 2023 10:18:37.4074 (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: lIiDGzHIY5UN+eybmyLjmZWsYtARz4hF2nLSUkPPmBPgsQjMf6BRgU3H15PbgMx+3YImubyrKAdDc+mhaukNQw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7625 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Alice Guo Add DT compatible string "fsl,imx93-tmu" to qoriq-thermal.yaml. Signed-off-by: Alice Guo Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/thermal/qoriq-thermal.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/thermal/qoriq-thermal.yaml b/Documentation/devicetree/bindings/thermal/qoriq-thermal.yaml index f09e8723ca2b..82ac6f3db0da 100644 --- a/Documentation/devicetree/bindings/thermal/qoriq-thermal.yaml +++ b/Documentation/devicetree/bindings/thermal/qoriq-thermal.yaml @@ -21,6 +21,7 @@ properties: enum: - fsl,qoriq-tmu - fsl,imx8mq-tmu + - fsl,imx93-tmu reg: maxItems: 1 From patchwork Thu Jan 5 10:17:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Alice Guo (OSS)" X-Patchwork-Id: 13089682 X-Patchwork-Delegate: daniel.lezcano@linaro.org 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 C503DC3DA7A for ; Thu, 5 Jan 2023 10:18:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232467AbjAEKS5 (ORCPT ); Thu, 5 Jan 2023 05:18:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232390AbjAEKSt (ORCPT ); Thu, 5 Jan 2023 05:18:49 -0500 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2069.outbound.protection.outlook.com [40.107.6.69]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23E8333D63; Thu, 5 Jan 2023 02:18:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Y9gNGNNqGi99DDYBHW54tTTb8I45V9ttIaWo0/kw9PqglDtZcoIvfYXouqTdSWHcZ9k9aY98c12WWuFQ0OnDhPyjXZC2DxzJBcM/aJtCBT5rVTlpJzSc75VLE1hxqd7zXu9trqaFGL/fjGpw/gvOu9qYbQmhfbPh+hkYwj8hN5t/jP9XXk7G9/jaUp7/JyJZFD5DjKun92ImQeUiK08hZCl7CQJRv8tFuXMHWQleIgBAfYYlRkkZou61gmnCFt7uqePt47gmGhuHV20J8Wl5OJAPVx1oNnZGmhwjXAkf6udQppIqukfyV2QGSjChUafcaH4a+PzugYEm4uYJHp9qTg== 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=mlpPpNYvPVCjP2c7H64FoabqZdh+z3HL3BQL1ylLrVI=; b=Z+i1TvFXhaFnYjDuos5YzP8rQjAXpSCqpJ768hWsskSabAOyeDRJF3p5TPCvAlhpEKRM9Ca3WjKMOAVAIoogt0jMwnwG0XL2UKYzTLY09DabvoIcbLrLCim7fRRNZmmepiJulcUoap0hYWNBpgUip+tjvqZZ7pwiSsLqpoweDm7aroItl3Li2bqa5+mryqxk7HClthUiac7WARepggWEnEaefoPyCEkRZePbgnrwekMpc5OcgaEAHX8lOqURvJ+jRl5zUPxuHeAwuAFFJRcNXO+BhLmrAKDq325GBB4Er7JWhar6dEiQ5+pDXjB68/TNQOOwOxi+Y6wHF6w/Ulm82g== 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=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mlpPpNYvPVCjP2c7H64FoabqZdh+z3HL3BQL1ylLrVI=; b=Uakkmo5asZJNON3rQLlgBe9oU9ozqCmz9j8XQSkLKneNGYuBbBw2193u1OvfjSIka5F3titsTWjSkFBsl2v8dq7A3Lf/vYSSPNpUoZMngce/GSKXEy8hQQeUoSd8jkTIqLxBfRH3xD4TuHRIsne8+qg+XKuwOifo70B5jCdgvEg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from AM6PR04MB6053.eurprd04.prod.outlook.com (2603:10a6:20b:b9::10) by DBBPR04MB7625.eurprd04.prod.outlook.com (2603:10a6:10:202::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.19; Thu, 5 Jan 2023 10:18:44 +0000 Received: from AM6PR04MB6053.eurprd04.prod.outlook.com ([fe80::f75a:918f:6b4c:4a00]) by AM6PR04MB6053.eurprd04.prod.outlook.com ([fe80::f75a:918f:6b4c:4a00%4]) with mapi id 15.20.5944.019; Thu, 5 Jan 2023 10:18:44 +0000 From: "Alice Guo (OSS)" To: rafael@kernel.org, daniel.lezcano@linaro.org, amitk@kernel.org, rui.zhang@intel.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-imx@nxp.com Subject: [PATCH v1 2/4] thermal: qoriq: add i.MX93 TMU support Date: Thu, 5 Jan 2023 18:17:46 +0800 Message-Id: <20230105101748.6714-3-alice.guo@oss.nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230105101748.6714-1-alice.guo@oss.nxp.com> References: <20230105101748.6714-1-alice.guo@oss.nxp.com> X-ClientProxiedBy: SI2P153CA0009.APCP153.PROD.OUTLOOK.COM (2603:1096:4:140::18) To AM6PR04MB6053.eurprd04.prod.outlook.com (2603:10a6:20b:b9::10) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB6053:EE_|DBBPR04MB7625:EE_ X-MS-Office365-Filtering-Correlation-Id: 661adaa4-0a16-482a-425d-08daef063990 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QL39zXp9Y9v6dLc9Ifag92W8NjyEoVFzwYAaKz+vk5iweEonDpfpOD5wdmTbAn4KWI1P9zIx60DeWCbu/OKtWtSremrpzv/r6TQBdu/1Bdzdc4yMxNW2IYB5OEXs/DP8hM3XAUIgwYNBY8/hvttK73BTLRVEY2hql2jQ8sHe1Yz2Pao1vtVrXQgatgoWhKtl4pC7zWX/tAbNzcEVyFXIQ8Ljd7TGcwgGEz7GRYq33RqTHVjnAm9f43fCDhTEAPzD7dRe8opne9UvVxtRqdvcaxBJ6TXxl/CZqN9G4txdjRP2zUjJeNCwQC44RtJoE8exzqYfonlonCZ1CTOKZvhFpVGSOlKIa5NsEaKaDTTUXbNmQ1qu3sjIqJWzSs+GTnpbhvhCeQ3J0pW7il0nFpABokoDh/m8NVAHE7rjkwM/sbaEkIvk8OWxiSjvedG6AYhulti5/zoRFLkrhvrOdAiax0x76Iqe95QiCskDo7zCeaZJZeCn6/i0RgrS/8x1bcDo/qgX8nxlULtqBTO09aP3uwCNGy2JEhilJ0CDW3BtPl70/gmV6Y1haO60vszRIjG91aw36zN807XVJlclzJwocZyFrI6gilXdA1UR+KjKNa6zgAgy2bAmijneXbAlNIvLCZyYZ2quKmt7Mz0vlJFoxpOqdoeqe4Hb4OToNuqMny4btpGkvrHF5lJMLgSvcCJZ X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB6053.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(39860400002)(346002)(376002)(136003)(366004)(396003)(451199015)(2616005)(6506007)(52116002)(186003)(6512007)(86362001)(26005)(316002)(8676002)(1076003)(66946007)(4326008)(66556008)(66476007)(5660300002)(7416002)(41300700001)(478600001)(8936002)(38100700002)(38350700002)(83380400001)(6486002)(2906002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?XYFfbLezBYzdWRWQ8mkpVXi0YSbZ?= =?utf-8?q?c0TpKBE8PDHzJxHnWRYItWLuF39M4xW5EGVrQaNQO8b1CAD99HRnI6/438kGVwKnm?= =?utf-8?q?SLFW3AtAXHZXaBx4jEHDaRCxuyeQPrYg5zfBfXLelKUrUc5j2tkeDOQsnFPrwfbKF?= =?utf-8?q?veFm8T0wtpPHhXGKhw/CbzA//O0kmr4nqORiunyFD8uskP2coNnhW/sRiT/Erbjq5?= =?utf-8?q?Xi2QjLiRsAHBCGs3xyGK67yJKcaLifdVGY53g6bJ71AOV/W8pQIfmd+zlPogdzw/J?= =?utf-8?q?Ooh5RqjYU7GZ2NELoQ65zutsGoIfhcS+z6Pzfzg4aiBgz+4OGlh/lNLI753QLseFu?= =?utf-8?q?z1OrBlZEkWk3kqQNonu3tSvb+peFOGWgNS8a5eNRDWqlUoeFbep+J3RyDXhTyOiNQ?= =?utf-8?q?3kVrle3wvyAf2OJ9JgZ5rlvu2ytec8IZeBW8s/Z+WwELcgwIHXdB1USO5MpHcPQlo?= =?utf-8?q?GLiXU0S7fRLRQ2N3rYkZvlRay0RCN4aR3CjB8nixrs5BHcrAKyhpZGU6bdIBXc2v9?= =?utf-8?q?zEJgu4xdoa5+vA1/NdC625zeJ+uc0IDeCF7xZKS4k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ln3pkT6Z401x9Rd?= =?utf-8?q?DMlZAkONczJRID4/lA08I19Kq/tHECjEaBo5TcWEruyiWqi0BSBYXmWzL4RRzRW5N?= =?utf-8?q?uwsOROsKWFtp?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 661adaa4-0a16-482a-425d-08daef063990 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB6053.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jan 2023 10:18:44.2975 (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: qXWQ/NTVbO35Aw1YWAKdxJ1Z1URcUTWG6Wg3/sP6Wc4lEsN0Sl7fRC3TdPAT7i+UsVsbtsEUJO2N9cFn86b71g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7625 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Alice Guo The procedure to program the calibration table of i.MX93 TMU: 1. disable monitoring mode 2. configure TCMCFG 3. write TTCFGR with TTCFGR[CAL_PT] = n 4. write TSCFGR with the sensor value of the calibration point n 5. write TTRCRn associated with the calibration point n Need to repeat steps 3—5 for all calibration points from the calibration table provided by the TMU device node. When TRITSR[V] = 1 and TRITSR[TP5] = 1, need to add 0.5K to TRITSR[TEMP]. IPBRR0s of lx2160ardb, lx2162aqds and i.MX93 have the same value 0x01900201 so that use the compatible to determine whether the current TMU belongs to i.MX93 or not. Signed-off-by: Alice Guo Reviewed-by: Jacky Bai Reviewed-by: Ye Li Acked-by: Jason Liu --- drivers/thermal/qoriq_thermal.c | 56 ++++++++++++++++++++++++++++++--- 1 file changed, 52 insertions(+), 4 deletions(-) diff --git a/drivers/thermal/qoriq_thermal.c b/drivers/thermal/qoriq_thermal.c index d111e218f362..18030bd68687 100644 --- a/drivers/thermal/qoriq_thermal.c +++ b/drivers/thermal/qoriq_thermal.c @@ -24,9 +24,11 @@ #define TMTMIR_DEFAULT 0x0000000f #define TIER_DISABLE 0x0 #define TEUMR0_V2 0x51009c00 +#define TEUMR0_V21 0x55010c00 #define TMSARA_V2 0xe #define TMU_VER1 0x1 #define TMU_VER2 0x2 +#define TMU_VER93 0x3 #define REGS_TMR 0x000 /* Mode Register */ #define TMR_DISABLE 0x0 @@ -52,6 +54,7 @@ * Site Register */ #define TRITSR_V BIT(31) +#define TRITSR_TP5 BIT(9) #define REGS_V2_TMSAR(n) (0x304 + 16 * (n)) /* TMU monitoring * site adjustment register */ @@ -114,10 +117,16 @@ static int tmu_get_temp(struct thermal_zone_device *tz, int *temp) 10 * USEC_PER_MSEC)) return -ENODATA; - if (qdata->ver == TMU_VER1) + if (qdata->ver == TMU_VER1) { *temp = (val & GENMASK(7, 0)) * MILLIDEGREE_PER_DEGREE; - else + } else if (qdata->ver == TMU_VER93) { + if (val & TRITSR_TP5) + *temp = milli_kelvin_to_millicelsius((val & GENMASK(8, 0)) * MILLIDEGREE_PER_DEGREE + 500); + else + *temp = kelvin_to_millicelsius(val & GENMASK(8, 0)); + } else { *temp = kelvin_to_millicelsius(val & GENMASK(8, 0)); + } return 0; } @@ -207,6 +216,33 @@ static int qoriq_tmu_calibration(struct device *dev, return 0; } +static int imx93_tmu_calibration(struct device *dev, + struct qoriq_tmu_data *data) +{ + const u32 *calibration = NULL; + u32 cal_pt = 0; + u32 val = 0; + unsigned int len = 0; + unsigned int i = 0; + + calibration = of_get_property(dev->of_node, "fsl,tmu-calibration", &len); + if (calibration == NULL || len / 8 > 16 || len % 8) { + dev_err(dev, "invalid tmu calibration\n"); + return -ENODEV; + } + + for (i = 0; i < len; i += 0x8, calibration += 2) { + cal_pt = i / 8; + regmap_write(data->regmap, REGS_TTCFGR, cal_pt); + val = of_read_number(calibration, 1); + regmap_write(data->regmap, REGS_TSCFGR, val); + val = of_read_number(calibration + 1, 1); + regmap_write(data->regmap, REGS_TTRnCR(cal_pt), val); + } + + return 0; +} + static void qoriq_tmu_init_device(struct qoriq_tmu_data *data) { int i; @@ -218,6 +254,11 @@ static void qoriq_tmu_init_device(struct qoriq_tmu_data *data) if (data->ver == TMU_VER1) { regmap_write(data->regmap, REGS_TMTMIR, TMTMIR_DEFAULT); + } else if (data->ver == TMU_VER93) { + regmap_write(data->regmap, REGS_V2_TMTMIR, TMTMIR_DEFAULT); + regmap_write(data->regmap, REGS_V2_TEUMR(0), TEUMR0_V21); + for (i = 0; i < SITES_MAX; i++) + regmap_write(data->regmap, REGS_V2_TMSAR(i), TMSARA_V2); } else { regmap_write(data->regmap, REGS_V2_TMTMIR, TMTMIR_DEFAULT); regmap_write(data->regmap, REGS_V2_TEUMR(0), TEUMR0_V2); @@ -231,7 +272,7 @@ static void qoriq_tmu_init_device(struct qoriq_tmu_data *data) static const struct regmap_range qoriq_yes_ranges[] = { regmap_reg_range(REGS_TMR, REGS_TSCFGR), - regmap_reg_range(REGS_TTRnCR(0), REGS_TTRnCR(3)), + regmap_reg_range(REGS_TTRnCR(0), REGS_TTRnCR(15)), regmap_reg_range(REGS_V2_TEUMR(0), REGS_V2_TEUMR(2)), regmap_reg_range(REGS_V2_TMSAR(0), REGS_V2_TMSAR(15)), regmap_reg_range(REGS_IPBRR(0), REGS_IPBRR(1)), @@ -319,9 +360,15 @@ static int qoriq_tmu_probe(struct platform_device *pdev) } data->ver = (ver >> 8) & 0xff; + if (of_find_compatible_node(NULL, NULL, "fsl,imx93-tmu")) + data->ver = TMU_VER93; + qoriq_tmu_init_device(data); /* TMU initialization */ - ret = qoriq_tmu_calibration(dev, data); /* TMU calibration */ + if (data->ver == TMU_VER93) + ret = imx93_tmu_calibration(dev, data); + else + ret = qoriq_tmu_calibration(dev, data); /* TMU calibration */ if (ret < 0) return ret; @@ -369,6 +416,7 @@ static SIMPLE_DEV_PM_OPS(qoriq_tmu_pm_ops, static const struct of_device_id qoriq_tmu_match[] = { { .compatible = "fsl,qoriq-tmu", }, { .compatible = "fsl,imx8mq-tmu", }, + { .compatible = "fsl,imx93-tmu", }, {}, }; MODULE_DEVICE_TABLE(of, qoriq_tmu_match); From patchwork Thu Jan 5 10:17:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Alice Guo (OSS)" X-Patchwork-Id: 13089683 X-Patchwork-Delegate: daniel.lezcano@linaro.org 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 A4F2FC53210 for ; Thu, 5 Jan 2023 10:19:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232429AbjAEKTC (ORCPT ); Thu, 5 Jan 2023 05:19:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232164AbjAEKS5 (ORCPT ); Thu, 5 Jan 2023 05:18:57 -0500 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2078.outbound.protection.outlook.com [40.107.8.78]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9501848CE8; Thu, 5 Jan 2023 02:18:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GDioSXGhRcZKARoiKU1n+KSHjwg6YmgXFAwTa2qQ/SkhL5IO4JQvQdzL23Y4GhFH2uzEgDxCDdknswHzTVJeRrP2RDd3cewdnQ9x9FhkGtA9HP2rHktgS96sTtacc3kB8tc7A1R/cdZ8UAKz2e2H6EnxYb8FFlBkcIf6Ft1WO7/h9KxgqXTmHUtJ5T1zbWzbTOfz3v9CuYLOSBWi/k85Hc/atITo16ZW7mrmwnXvGt2qS7awpO5lC0CBLS8k+WqZmap20Jcx8RwhJekLbrDRy4szWFYQl90baCJUFlKDNRzv2/xqnMB4uLSQMZX3sjbXMJtBMFZSEopxjsUm0ppOnw== 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=TfcVjV0kIRfDqG7PFRwPl2FL/jWHvmvFfVp1cPsRq84=; b=ZAhxE3CPzFVF9s3G0f+tE73iFgeK7RGHIILaZaijopJ7pgsnlC9e7bpY8FVc1qfl4QQ3aWrTC8JCgK6/lAdWvqR2PP5W8wjJTfMVSNRz8PAlx1oECBWJSiS1KwzIJ4qhKzohXqiJy7c7w3qPJUX0ldNZnjN4E6IGZ60G7cGAOS7vj89iKh9EgucY4c5MayRAgv2xrFWL+1G68gFTTZ8KLpMmEElBwQ7C8eMdW9nmEvkGeQkXsVCti9W6xnm5nJXT1WO1/XXSC3PJ+TFJuLn+82Ye/1638V960S3IN20vnr8YnP0f6sOa1UA+EKmieWbu6JADL52vzslxZgtfXuNENA== 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=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TfcVjV0kIRfDqG7PFRwPl2FL/jWHvmvFfVp1cPsRq84=; b=fVApOZVuUImO2u4/MyYiHBlwa43mBFMx/BrytB4gBRON+OtmhFCVw1Vx6gKFPFnA1yChW1M/HSYKO7eiLm0ldGH+R/+0vh0lStce+6dpS4aRa+TOlxN+2LW0R/4v1cURwlOFZZSEoeuAfRxrnRpEcinNOhOftVeZvjjMXihkdiM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from AM6PR04MB6053.eurprd04.prod.outlook.com (2603:10a6:20b:b9::10) by DBBPR04MB7625.eurprd04.prod.outlook.com (2603:10a6:10:202::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.19; Thu, 5 Jan 2023 10:18:50 +0000 Received: from AM6PR04MB6053.eurprd04.prod.outlook.com ([fe80::f75a:918f:6b4c:4a00]) by AM6PR04MB6053.eurprd04.prod.outlook.com ([fe80::f75a:918f:6b4c:4a00%4]) with mapi id 15.20.5944.019; Thu, 5 Jan 2023 10:18:50 +0000 From: "Alice Guo (OSS)" To: rafael@kernel.org, daniel.lezcano@linaro.org, amitk@kernel.org, rui.zhang@intel.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-imx@nxp.com Subject: [PATCH v1 3/4] qoriq_thermal: No need to program site adjustment register Date: Thu, 5 Jan 2023 18:17:47 +0800 Message-Id: <20230105101748.6714-4-alice.guo@oss.nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230105101748.6714-1-alice.guo@oss.nxp.com> References: <20230105101748.6714-1-alice.guo@oss.nxp.com> X-ClientProxiedBy: SI2P153CA0009.APCP153.PROD.OUTLOOK.COM (2603:1096:4:140::18) To AM6PR04MB6053.eurprd04.prod.outlook.com (2603:10a6:20b:b9::10) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB6053:EE_|DBBPR04MB7625:EE_ X-MS-Office365-Filtering-Correlation-Id: 0723d77a-a00e-4089-1849-08daef063d45 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: bwPXbbGi5lMarK/mXvQgoe3oH2aNL0Fsudiz9E2UZmHT27J+eszn+t61cmzi1mcDEdsAvnJFQ4tY5qBtLVb/pHBqsRevxfH1bbkH8z99bYfHstsBl3BBhEYok07piSwnVKFvQeXofphLkgYjATjlOde2lDCJR6FSHl4ZaBlbS+9HQ8+jomsDo+25THsjLbtBLG1++xGFwykv3oXOeLWGeo2WBLxyq6Owcu1uzol1XKq4qNfeeMq+KgXb95mDncuZbPjkUqqRjZrRokjxZcuPHQxBd8K0wZYaecNWciPf7HIK2D1tA2O1ho+4gsYJ1GDR70hgSSmQ70kHF7rD6VvG/9ROLfi9b3pcrUOljSdfTiF15U7Ap0tF92sRF8j0wc7MSt+wWLj4XQZ4y198nvMHRPiVA3jIgw4aY/JYlOSyUXpeJS65HAIzelr5o74nkOLfW5XY69q3DxBAEKYokF6lDUvS8yQtax3v8zHvd4xZbAyojzjcgwYRbi70cKV3zcwn9f2m0rnsU/0g4lvTJV5h3VH6eHit/uX4XD5b6zpv6P5VvtUft0e8pZLuoeiCRgXMqJfsZNR7cmaghFaTtiOwu2qTKrjvr0AV86wOFyR5vEi2ihxmJG13Jmu0LmeGbokIDnGFaLk7DF4EPhvV6QfT5LXse6HWPzA+55scap/SLFsik1TFMoxvj5e3gQAT0fbxfkIcQb0hq7bdr5TxnH7HOQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB6053.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(39860400002)(346002)(376002)(136003)(366004)(396003)(451199015)(6666004)(2616005)(6506007)(52116002)(186003)(6512007)(86362001)(26005)(316002)(8676002)(1076003)(66946007)(4326008)(66556008)(66476007)(5660300002)(7416002)(41300700001)(478600001)(8936002)(38100700002)(38350700002)(83380400001)(6486002)(2906002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: xtYN8ugY8OMlnWXM3aqAjBWE0U4pa5htE7pDLYjqBWAh81CG0oRPjIjxpEUTUU605N7Q7cYKWzfhd947WL6/qb1uTDGhntkR6Rs38FNgSDpGR7LlHWGny+h8qceA2ltiWDxkncydwI8VOMDzF28/xxbDLW+Fv/O7EOfP/D10RZqM0aiL5p6a5AIYXySU82Z25E6+LOMyGTb0lqvoz2COu9JMf3zEjLBfCAeYsHA7Vdyx49su1pyJHQNhbNXu2CYaswdLo0SuMk7QFE00agqU378lc9D4ZW3vUcZOv9+ZoR/0K7AOA3f27gB20oDdoLt8Vq5abElcnTl3P2iUl3k1sx4oyu3RBA/9PYFtvV+X8KBjGbBrQu9cjLpTFK1OD+Di3YOm/T2boOtVq2JcuRK8je+0epj/KDVA3PHFw9MoR0PVEIGlKttj5DAGnWR03AsDNuNaiuoHzI8OxSnX6vWVc561S3Nk4fYuBOMQxgA65aIMPyMK8dWdXVMB9alzh96pZY0Ou2XR8v/O8aS9u/KoXwjsRMBWe1n6YX+xPW1+CqQvQsWtbWYEuEKObxHFcz0Oh2g80GYS0aXaPk7hEZRW/SSkE9vWQq6YNpRA/SqdhnrIfbRD5sHxwERGciv5NrcV8o9rc8QsczYRVJ453kqY7K1ok0+meAOpjSWoaxfiDyxJht0TryHBe9OEk/U5cVPlj5sB0AnFUsXPmrIbK4B9T+UIRaUpM++z3mWr1jayfsWEQWrw0tpDOwUmCAMf9mS7qH1QngjZLqgsFYn1qY03JTk8awnriYC6HebSjucUW9EaUZYEfyMevGXe7Pq4nQJJsJ1va3aOopdB5ro6AB9rial/1EneNL8fwflrynGfZn47R3rsu+ZACUiRbNFyAC6ZjBgcBEUyJDdNEQ92TmNCG8D9NsLkAJ4dzObJNR0rSOQxXthQvhBCM7ngYo+e+2CQWxGJvywKUI9dKZRqp0irPdiH4EhbhoH2tM6OJuj8LU2I/cMbfRpB2G1kbgKWwLLYMxL+s9w+P6UcmWA30j31GfmKOGt5V4bDyWBr86EzvBRAD6nQ/K6pwkCYSxs5FCDuTsUXg+79NCE9UeS4NsbH+nZFZ0k4b9D3uKp3Drhj2N2Iu2KEKgw7QLovDw1sXolg21+o83F/H7gvFCesa0R3R1uHHcPiidfptmt4MRyluO6Oj6eGW68/g78Xfuj5FOpxfupP1DCcCWntublTzHzLwtzT3Ah0ilTLdF8FukN7rqdR9naew/u+AL5g+iOrnEkmWC1gqju8WPZue7a0cpvJ/k8UM7ESr1zTL+llkZaJdniBG2+TyTcIxbnL8dloHuuM5RBiFZzaYXyPloNxE6f74bnnDu5le1pKpSyUACPIcxgPahLOFUehLKUxneqN6ZbuQYXSIdSu7D+DtzGt9OoaVBhpmnnCLtfObwHk5GbTvhPdfyQHF8Ap0+fthMQQX8ed+lTZ3Ai2Nlx1zfBT+/6i9BeF500Cs+3lNj4GiXOBBY+CbsByzT4M2hMEJn7ewR1L5eqd48H2my+inMCBAQ7u6/JTCYb2IA5Zmqo8fdu+O0kKUAx3sMudPz6UHktDSlUN X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0723d77a-a00e-4089-1849-08daef063d45 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB6053.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jan 2023 10:18:50.5158 (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: k9uTmRM5g7tHoJXYHCGEDR/gr3GzEe3BtpHpgf1zu9t/lzkmsxgz60uWf5ZpQxlf5ziRwnJvbEOwZwvoaD9vTg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7625 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Pankit Garg No need to program site adjustment register, as programming these registers do not give accurate value and also these registers are not mentioned in Reference Manual. Signed-off-by: Pankit Garg Signed-off-by: Alice Guo --- drivers/thermal/qoriq_thermal.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/thermal/qoriq_thermal.c b/drivers/thermal/qoriq_thermal.c index 18030bd68687..24ef446414cc 100644 --- a/drivers/thermal/qoriq_thermal.c +++ b/drivers/thermal/qoriq_thermal.c @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0 // // Copyright 2016 Freescale Semiconductor, Inc. +// Copyright 2022 NXP #include #include @@ -245,8 +246,6 @@ static int imx93_tmu_calibration(struct device *dev, static void qoriq_tmu_init_device(struct qoriq_tmu_data *data) { - int i; - /* Disable interrupt, using polling instead */ regmap_write(data->regmap, REGS_TIER, TIER_DISABLE); @@ -257,13 +256,9 @@ static void qoriq_tmu_init_device(struct qoriq_tmu_data *data) } else if (data->ver == TMU_VER93) { regmap_write(data->regmap, REGS_V2_TMTMIR, TMTMIR_DEFAULT); regmap_write(data->regmap, REGS_V2_TEUMR(0), TEUMR0_V21); - for (i = 0; i < SITES_MAX; i++) - regmap_write(data->regmap, REGS_V2_TMSAR(i), TMSARA_V2); } else { regmap_write(data->regmap, REGS_V2_TMTMIR, TMTMIR_DEFAULT); regmap_write(data->regmap, REGS_V2_TEUMR(0), TEUMR0_V2); - for (i = 0; i < SITES_MAX; i++) - regmap_write(data->regmap, REGS_V2_TMSAR(i), TMSARA_V2); } /* Disable monitoring */ From patchwork Thu Jan 5 10:17:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Alice Guo (OSS)" X-Patchwork-Id: 13089684 X-Patchwork-Delegate: daniel.lezcano@linaro.org 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 D2136C54EBD for ; Thu, 5 Jan 2023 10:19:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232590AbjAEKTh (ORCPT ); Thu, 5 Jan 2023 05:19:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232582AbjAEKTH (ORCPT ); Thu, 5 Jan 2023 05:19:07 -0500 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2086.outbound.protection.outlook.com [40.107.6.86]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 099BB5005B; Thu, 5 Jan 2023 02:18:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kadPkrs2jc94yc/RkJnkZXjldXeNev+Ynwzg9e4f/TNim6B+irXxblVRhE2Rsw6627U7T/LXMnPFggOabfEfgNu3qzYFDT4NGRRxXU2LXA9wRVGkKPEbCBQLn5CaFTUT7XMoEWxGPjgWGPCxsNEzvTo1Z/cmeJ/WaPE8D2cHI7qct204UfmrhOECd3sAprL6d7u1eJPSObiFyosS0QDLuw7mLmK+ZjAeqUE/XEd0mF1wmmIqKw6J49nEOkolIqpLBI/S+71lrtDmpS37uclRd3GdelEWs/PWcCsR5pamBfOP7ze3EMt3uHavX0XS02xzpddddDTrxsdejIhrrGCIeg== 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=sDD4GprmS+yHjZjuXjeyJi0vUb73DUTgY7ZaCawyKpU=; b=fkqKPkiqcPM8uSWGb39/2ug7pUv5uhuHO7DeGaiLzNHzC8I+/036alZZE50Z84jLnFhafUgLv9Ho8Zw1oaqz1fV4A+2ySBdYVptiJXi4WgymXZY5VvULMobcBs6yBT52cwhpxVWn5rws5S16dowmLCIjV5KkQ/Jzi8l+GSx0FZwOQU8aoJ7minDE9OkgYRu8bvpI9JYwrX5MymOhv5rTWfCvFalXDYWiv4a7fwF6hGIQLx3MXq711orGwcTyYZ59XSA+Ij3wxvk0rNSvREU+WeemYljennSthB+Qa094pK5o1hejrqea+ibPsZl5sjTCw8ydFMyX0vmle0XTkxGSiQ== 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=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sDD4GprmS+yHjZjuXjeyJi0vUb73DUTgY7ZaCawyKpU=; b=NA27xZtiad1TUxmP5n8nYrPyV34J9DhaIwytn14WwgdDuG8bYBQ+7WRUZKtHVwb1LfmhlAJN02ZybwA+oodJx3hUR22W+7/JFW8QfPmBO2N2NKBrziOyY8O5FAtHjirO/BBHXFT2Qi/QEhW6ct5LAnrYk4emEuT7iEp7VyJnZ0A= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from AM6PR04MB6053.eurprd04.prod.outlook.com (2603:10a6:20b:b9::10) by DBBPR04MB7625.eurprd04.prod.outlook.com (2603:10a6:10:202::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.19; Thu, 5 Jan 2023 10:18:56 +0000 Received: from AM6PR04MB6053.eurprd04.prod.outlook.com ([fe80::f75a:918f:6b4c:4a00]) by AM6PR04MB6053.eurprd04.prod.outlook.com ([fe80::f75a:918f:6b4c:4a00%4]) with mapi id 15.20.5944.019; Thu, 5 Jan 2023 10:18:56 +0000 From: "Alice Guo (OSS)" To: rafael@kernel.org, daniel.lezcano@linaro.org, amitk@kernel.org, rui.zhang@intel.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-imx@nxp.com Subject: [PATCH v1 4/4] arm64: dts: imx93: Add CPU thermal zone Date: Thu, 5 Jan 2023 18:17:48 +0800 Message-Id: <20230105101748.6714-5-alice.guo@oss.nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230105101748.6714-1-alice.guo@oss.nxp.com> References: <20230105101748.6714-1-alice.guo@oss.nxp.com> X-ClientProxiedBy: SI2P153CA0009.APCP153.PROD.OUTLOOK.COM (2603:1096:4:140::18) To AM6PR04MB6053.eurprd04.prod.outlook.com (2603:10a6:20b:b9::10) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB6053:EE_|DBBPR04MB7625:EE_ X-MS-Office365-Filtering-Correlation-Id: f017a1f1-6a98-411e-b8e7-08daef0640a1 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: CXGWI7ZGSp4FAXo63NMAqL7HElr7toulMtfFxR9uzeVnNyqUvcrMB9v0NjMuY0NyFB+P3H2JSY7n7cefnY74JBeFqOu6KJA4kgcWiOZ33giGjj99FH+oqfKHEDeWMQvlwNa70TutAkbrL80tyfj/3L/3yWYPviZ5iOMDtOKAYpGV91TTtN5mh0qEt8uyrzlt3/hLh1ziSE4zYmwJka+C6EE9KrQvMNzhED7pJjyJHcGFZt1Ha3b99vEy4nap8mofHYZ/4gxA+WglE+NQvXAGji3BiWV7Fw92kQd7nrt+nU2gDe+cxev5yKdf7zRfSCAd01vrrHDdu+xAWd8HH93Tt4thADvcqmC9PP1FzlU7HjithH2qx0j4wGcoXr50R7+4Ip+RitCZqIa9Bv4OLUAcLUaKmh/0rV2vUm3QqRDhadsIiKf/m0h0BqBObk/VcHyv4Xi4DBL9M0P02ykM9d5/1cGqLLf3RJXojxtRoRFc4y/J+x6W5LPqYYa9xenD67bLtoiRA07XJBSErVYQHX9HJLFuSCwiW4JiFIjACfK9pkD8zGEMpWmf1sB/zpf87TeercsMqlzbU7yvoiA+1UHSY1t9sHvGoIhdr0A7unRhVySS8JLC0NwdxvHXydx6o92ni1LV8dO24fw6PPnNQv9JvwO+YF8hP6CF7vQ4IfsfxAOwWQ4wWyRbV8nrojvJdLiF X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB6053.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(39860400002)(346002)(376002)(136003)(366004)(396003)(451199015)(6666004)(2616005)(6506007)(52116002)(186003)(6512007)(86362001)(26005)(316002)(8676002)(1076003)(66946007)(4326008)(66556008)(66476007)(5660300002)(7416002)(41300700001)(478600001)(8936002)(38100700002)(38350700002)(83380400001)(6486002)(2906002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: /oiH+aHcO07cjfeGgqIWFjoJB4Hf6dh/B0LscMUamPouFU6M25mZoOD7VxRydrXkqBs9X6b4l1DQHwCQzS2lRIWjEW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W7a/BlP8YbTdikllzM6e8oSV1uuZ3p+mvEVoqLrqT0bNQZeIQSxv7F6K9KDRZJ3YphmAYoeqs46fVMdls1MV62rJxRxyoQI8DjvcoD6NBhjFEK/prx690Om7+f3coGOkf1Zhij8vD+aTg9LyNZWJE8XbA+Aeiqq+uHDKwcVPwAGB2FlGrGkhWKypVKCWz34bsexl7L2kBPyUOYcFVunM2eKqjpcgV3ftCUAhS+7RxugdvwqPXZpuThbAS/T678F2nxEoXDptBGqQeyaeHlXbuXAYyj0fXqUKVzK8hceMxLVei1+aJcyStIuA3NhQjBNpYcWgPAsA+wf/XBCYFpNiJQC0imyirldqC3FSKvQz1bSOsnvYAvV3BD2PNcaXFnxOu+rn4p0MJjBDUqlURw8Y4rMH+SlIlIyQMso+c907 X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f017a1f1-6a98-411e-b8e7-08daef0640a1 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB6053.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jan 2023 10:18:56.1247 (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: P/dVaYGpHpyzePPTM750rTohAIlNDfDGXgy187XbNzu+SaWDcp4B3cOBfjo1JNBXjSgA82y+SeJhxz7hva/Lzg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7625 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Alice Guo Add CPU thermal zone and attach it to the TMU which monitors the CPU temperature. Signed-off-by: Alice Guo Reviewed-by: Jacky Bai Reviewed-by: Ye Li Signed-off-by: Dong Aisheng --- arch/arm64/boot/dts/freescale/imx93.dtsi | 48 ++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx93.dtsi b/arch/arm64/boot/dts/freescale/imx93.dtsi index 6808321ed809..60306f3c5e7f 100644 --- a/arch/arm64/boot/dts/freescale/imx93.dtsi +++ b/arch/arm64/boot/dts/freescale/imx93.dtsi @@ -8,6 +8,7 @@ #include #include #include +#include #include "imx93-pinfunc.h" @@ -116,6 +117,38 @@ interrupt-parent = <&gic>; }; + thermal-zones { + cpu-thermal { + polling-delay-passive = <250>; + polling-delay = <2000>; + + thermal-sensors = <&tmu 0>; + + trips { + cpu_alert: cpu-alert { + temperature = <80000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu_crit: cpu-crit { + temperature = <90000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + + cooling-maps { + map0 { + trip = <&cpu_alert>; + cooling-device = + <&A55_0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&A55_1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + }; + }; + soc@0 { compatible = "simple-bus"; #address-cells = <1>; @@ -280,6 +313,21 @@ compatible = "fsl,imx93-anatop", "syscon"; reg = <0x44480000 0x10000>; }; + + tmu: tmu@44482000 { + compatible = "fsl,imx93-tmu"; + reg = <0x44482000 0x1000>; + clocks = <&clk IMX93_CLK_TMC_GATE>; + little-endian; + fsl,tmu-calibration = <0x0000000e 0x800000da + 0x00000029 0x800000e9 + 0x00000056 0x80000102 + 0x000000a2 0x8000012a + 0x00000116 0x80000166 + 0x00000195 0x800001a7 + 0x000001b2 0x800001b6>; + #thermal-sensor-cells = <1>; + }; }; aips2: bus@42000000 {