From patchwork Fri Jun 17 07:14:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 12885196 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 D8392C43334 for ; Fri, 17 Jun 2022 07:28:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=HvDyM4+cV2mTEzofJF9maSgKK0eP5hVVD5nagf3Bfi8=; b=DowFPSo7P4aDPQ Mln5pguntoriVp5KE0VVn5S94spdS43vgH6VnsRwXACFocZtiFf+lPXWRlXA/sf8YgTi3rsxQWlcx kLiXR5adywFQ9GXpr+Dc4B72vtifzGuy6iwHxE5A01MiE3m/KAPDB9vTzCAn/1fd5gIxbuxIWa54R AWs7aIVKqjgq97xfJXx6qx3bG/CkMGJwLU51jHbvBTYclhdsrDD8o47KItBRw++3nW/TXvi3lCjI9 3KtlvbCOVE5Yynfw3Bdd8OjRDar5+ZSydWkLAtXVs/Qu4AGHmLlSj0yqoINjVODp2GqKikuDvFP+P 9Xsxsde8o/ssst+bVtqw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o26NN-005wnZ-Gi; Fri, 17 Jun 2022 07:26:43 +0000 Received: from de-smtp-delivery-113.mimecast.com ([194.104.109.113]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o26BV-005seB-1h for linux-arm-kernel@lists.infradead.org; Fri, 17 Jun 2022 07:14:27 +0000 Received: from CHE01-ZR0-obe.outbound.protection.outlook.com (mail-zr0che01lp2109.outbound.protection.outlook.com [104.47.22.109]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-19-qacQIvEIOVe0vOo7h3zn4Q-1; Fri, 17 Jun 2022 09:14:18 +0200 X-MC-Unique: qacQIvEIOVe0vOo7h3zn4Q-1 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) by ZR0P278MB0347.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:33::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.14; Fri, 17 Jun 2022 07:14:15 +0000 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::2879:acb:62c8:4987]) by ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::2879:acb:62c8:4987%8]) with mapi id 15.20.5353.016; Fri, 17 Jun 2022 07:14:15 +0000 From: Francesco Dolcini To: Daniel Lezcano , Rob Herring , "Rafael J. Wysocki" , Krzysztof Kozlowski , Shawn Guo , Marco Felsch , Anson Huang CC: Francesco Dolcini , Amit Kucheria , Zhang Rui , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, Pengutronix Kernel Team , Sascha Hauer , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org Subject: [RESEND PATCH v2 5/9] ARM: dts: imx[67]: Add trips points Date: Fri, 17 Jun 2022 09:14:07 +0200 Message-ID: <20220617071411.187542-6-francesco.dolcini@toradex.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220617071411.187542-1-francesco.dolcini@toradex.com> References: <20220617071411.187542-1-francesco.dolcini@toradex.com> X-ClientProxiedBy: MR1P264CA0164.FRAP264.PROD.OUTLOOK.COM (2603:10a6:501:55::15) To ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c2e8494d-a88f-4636-1264-08da5030fbd8 X-MS-TrafficTypeDiagnostic: ZR0P278MB0347:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0 X-Microsoft-Antispam-Message-Info: JtenFEof1ai9LyMADGPuNWXLe3Bm/VBDk2oVtj+1Zp/JeOLeTjDoYdu7jzF9IdFM61jaM8geKtwr1LqdAqvzUhDUr3pCIHM/Sr09K56aAw70vVbNMa1qCZ09hfNMkWPthxgJvWS3YRljf8RpTX5Z3LQmF4vpJHC9eDGrsPDWN17AA1vx2KqDoGtiuYgS11zYfrgkfy4+QlP821JcGiZ3UYYmgUWevf78gKY3GztVjgj+ye5uPakBnNb1Zch3sDDZWit0/qPIQQkV+Rhey/IZwrKywPnk08yYLrDLjTaQ/LSFvNu0zdhYHibjcRHnZ1jU8YSMC53ht9US8HGPp9PmX+kykC4Ha3dbcsjenDjAo7COs1Hu1pHd8Y0eirreSFFuk07sZj85M1c1xqaiXye7/H4HxnIBQh3JJFdzDOnyEc3AL20M5VK+voLcp/4VcMBDZfCFEh2lrWCqEzTqEJvU80koVJVw82KugH0b+udoiAzHPY/vCLmNHG9Lj6bMKwnbskFHBMZg8egrOXaJAA77O3QPu8XFtxfFdEJ49YrQmA0YTrNehy9m34Repl8mGNjRM0u7Mfnmu2RUrQ6h6xS/iOfOyNfyNAEI9jxHgj+jEIR4ehxgWTa8PKJ/IJjZjt67U47OnZ8M0+RjGTnJKbtd8egs/yyBL2HptDmkUlD2Jhz8b8Xsq+kwnZfz3vX4kcjU01aeDHkxr5eNhfvzKHrGzw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230016)(4636009)(136003)(366004)(39840400004)(346002)(396003)(66556008)(2906002)(36756003)(66946007)(8936002)(4326008)(8676002)(5660300002)(86362001)(6512007)(52116002)(44832011)(38350700002)(6506007)(6486002)(38100700002)(41300700001)(2616005)(7416002)(186003)(66476007)(508600001)(6666004)(110136005)(1076003)(83380400001)(316002)(54906003)(26005);DIR:OUT;SFP:1102 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: IvA+lzDXXSvB5wpwhJm2xjRqQNlHUlNiC7DLtVeQpfkyPSIwNHJ4pfWrGfeq6kXveFp1/z9Ch15lR+ETyNZqaS0l0cIP4GhMhJAm6kVjdZ8pb/TEMqvPz150ZWcIGGyZUd0ck6s1lJUTR88vC99ioheCL2MH+vth9/xwELEtU+qa2ApCV/ukCGFsxK93rEMtoQ4rWWxZ93aQZ69G83liSdr9aEUzVnbt81Z+tgeHBHQuW8j1DeCRzY1KutN9bSr+T/f64J5qLBVdHcdAmtZqT+DcoJHQRNosDtH1TZNbiDWI3N09dauNR0fMUn3MjPG24qgMUhZFWa2FuVz723IGyuq3aZ+k/bnSVRl2iHQ1mmPpA8zc/XoMpRAWy8CBSdPk7zjb79YqjJU1ZOPtD0pEJPNc9rkMZcvns620TsXtwzPjB6RbWh+5SipCN/CUotCw4yQB0acMn/Yya+BC+EUcO4n5H57VlYOqzZ9Jv3hfBP3LubjLzSJBt8qHS8dO2PZrYNnfXpSBM//HTRIlq0uBPwj4RzYCwVojRQn4PGwQkrKgQGDpWP3MN5pMTy1fB4ykjtrbl11dFdQtcB+Y2gLWzP5nmlGTOalnUYvS1Ku76G6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8OYtjhKMDFwG3XrrFkpj1x7v8vQZlnlBiWyypU1BkxG28wFkZ0ImOTeE7zhtnAxfQW+aspIOlAxXs= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: c2e8494d-a88f-4636-1264-08da5030fbd8 X-MS-Exchange-CrossTenant-AuthSource: ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2022 07:14:14.1490 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d9995866-0d9b-4251-8315-093f062abab4 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: fohAwixt2sg4Pd2WxCTqDEC7D87ajleBwU4nIFYIrFlpVt7coeqgA8M7QZ9OEDrfEp9vtuWDHnOQsMLnIkJKcKvHLIrMrMv/rme4ixXrxUo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: ZR0P278MB0347 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CDE13A77 smtp.mailfrom=francesco.dolcini@toradex.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: toradex.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220617_001425_449364_E0A9F8DA X-CRM114-Status: GOOD ( 10.93 ) 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 Add thermal trip point to the i.MX[67]* dtsi for each available temperature grade. Signed-off-by: Francesco Dolcini --- v2: no changes --- arch/arm/boot/dts/imx-thermal.dtsi | 61 ++++++++++++++++++++++++++++++ arch/arm/boot/dts/imx6qdl.dtsi | 2 + arch/arm/boot/dts/imx6sl.dtsi | 2 + arch/arm/boot/dts/imx6sll.dtsi | 2 + arch/arm/boot/dts/imx6sx.dtsi | 2 + arch/arm/boot/dts/imx6ul.dtsi | 2 + arch/arm/boot/dts/imx7s.dtsi | 2 + 7 files changed, 73 insertions(+) create mode 100644 arch/arm/boot/dts/imx-thermal.dtsi diff --git a/arch/arm/boot/dts/imx-thermal.dtsi b/arch/arm/boot/dts/imx-thermal.dtsi new file mode 100644 index 000000000000..2303f1a99d84 --- /dev/null +++ b/arch/arm/boot/dts/imx-thermal.dtsi @@ -0,0 +1,61 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +// +// Copyright 2022 Toradex + +automotive-thermal { + trips { + temp_trip_passive_automotive: trip-point0 { + temperature = <115000>; + hysteresis = <0>; + type = "passive"; + }; + temp_trip_crit_automotive: trip-point1 { + temperature = <120000>; + hysteresis = <0>; + type = "critical"; + }; + }; +}; +commercial-thermal { + trips { + temp_trip_passive_commercial: trip-point0 { + temperature = <85000>; + hysteresis = <0>; + type = "passive"; + }; + temp_trip_crit_commercial: trip-point1 { + temperature = <90000>; + hysteresis = <0>; + type = "critical"; + }; + }; +}; +extended-commercial-thermal { + trips { + temp_trip_passive_ecommercial: trip-point0 { + temperature = <95000>; + hysteresis = <0>; + type = "passive"; + }; + temp_trip_crit_ecommercial: trip-point1 { + temperature = <100000>; + hysteresis = <0>; + type = "critical"; + }; + }; +}; +industrial-thermal { + trips { + temp_trip_passive_industrial: trip-point0 { + temperature = <95000>; + hysteresis = <0>; + type = "passive"; + }; + temp_trip_crit_industrial: trip-point1 { + temperature = <100000>; + hysteresis = <0>; + type = "critical"; + }; + }; +}; + diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/boot/dts/imx6qdl.dtsi index d27beb47f9a3..0a492d9750dd 100644 --- a/arch/arm/boot/dts/imx6qdl.dtsi +++ b/arch/arm/boot/dts/imx6qdl.dtsi @@ -800,6 +800,8 @@ tempmon: tempmon { nvmem-cell-names = "calib", "temp_grade"; clocks = <&clks IMX6QDL_CLK_PLL3_USB_OTG>; #thermal-sensor-cells = <0>; + + #include "imx-thermal.dtsi" }; }; diff --git a/arch/arm/boot/dts/imx6sl.dtsi b/arch/arm/boot/dts/imx6sl.dtsi index 06a515121dfc..3719225126d0 100644 --- a/arch/arm/boot/dts/imx6sl.dtsi +++ b/arch/arm/boot/dts/imx6sl.dtsi @@ -628,6 +628,8 @@ tempmon: tempmon { nvmem-cells = <&tempmon_calib>, <&tempmon_temp_grade>; nvmem-cell-names = "calib", "temp_grade"; clocks = <&clks IMX6SL_CLK_PLL3_USB_OTG>; + + #include "imx-thermal.dtsi" }; }; diff --git a/arch/arm/boot/dts/imx6sll.dtsi b/arch/arm/boot/dts/imx6sll.dtsi index d4a000c3dde7..3192dae452fd 100644 --- a/arch/arm/boot/dts/imx6sll.dtsi +++ b/arch/arm/boot/dts/imx6sll.dtsi @@ -530,6 +530,8 @@ tempmon: temperature-sensor { nvmem-cells = <&tempmon_calib>, <&tempmon_temp_grade>; nvmem-cell-names = "calib", "temp_grade"; clocks = <&clks IMX6SLL_CLK_PLL3_USB_OTG>; + + #include "imx-thermal.dtsi" }; }; diff --git a/arch/arm/boot/dts/imx6sx.dtsi b/arch/arm/boot/dts/imx6sx.dtsi index fc6334336b3d..d88c89696554 100644 --- a/arch/arm/boot/dts/imx6sx.dtsi +++ b/arch/arm/boot/dts/imx6sx.dtsi @@ -718,6 +718,8 @@ tempmon: tempmon { nvmem-cells = <&tempmon_calib>, <&tempmon_temp_grade>; nvmem-cell-names = "calib", "temp_grade"; clocks = <&clks IMX6SX_CLK_PLL3_USB_OTG>; + + #include "imx-thermal.dtsi" }; }; diff --git a/arch/arm/boot/dts/imx6ul.dtsi b/arch/arm/boot/dts/imx6ul.dtsi index afeec01f6522..70d503c74e73 100644 --- a/arch/arm/boot/dts/imx6ul.dtsi +++ b/arch/arm/boot/dts/imx6ul.dtsi @@ -639,6 +639,8 @@ tempmon: tempmon { nvmem-cells = <&tempmon_calib>, <&tempmon_temp_grade>; nvmem-cell-names = "calib", "temp_grade"; clocks = <&clks IMX6UL_CLK_PLL3_USB_OTG>; + + #include "imx-thermal.dtsi" }; }; diff --git a/arch/arm/boot/dts/imx7s.dtsi b/arch/arm/boot/dts/imx7s.dtsi index 008e3da460f1..887b3618d20e 100644 --- a/arch/arm/boot/dts/imx7s.dtsi +++ b/arch/arm/boot/dts/imx7s.dtsi @@ -604,6 +604,8 @@ tempmon: tempmon { nvmem-cells = <&tempmon_calib>, <&fuse_grade>; nvmem-cell-names = "calib", "temp_grade"; clocks = <&clks IMX7D_PLL_SYS_MAIN_CLK>; + + #include "imx-thermal.dtsi" }; };