From patchwork Fri Jun 17 07:08:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 12885135 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 7B661C43334 for ; Fri, 17 Jun 2022 07:11:12 +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=rHWoSRO3grU1MX cj1B5Sk9UKIQBojMnJAEQ+8c1Tf7Lk1syzR1AM2JT7h3WtLhtr9M2I/IXdtZh1LCoXkxbTr89C1c3 Ws9fu6PjkN7bHTTouAcYbxh3L8OXt39ZvtETZA9mAnmVCZAYAs2npqECnB0L3L4bucoU/ujbcqz+4 7m9cmsPUOriie90B8QcQnRiZnLak1KdNnoREKGuENlOqz9uMXUcvw61pRpqfiHfetdm+QUMZc5vet M6AubM7bifljl015xWJqZrhPXjR7dSN9MmF6t9duZ03AAStO7l59gmQvxBUmzLbulwPKbcY2Q1d2J arIAyinfFHp5yzjenNpw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o267I-005qum-7F; Fri, 17 Jun 2022 07:10:04 +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 1o266G-005qZF-Aw for linux-arm-kernel@lists.infradead.org; Fri, 17 Jun 2022 07:09:02 +0000 Received: from CHE01-GV0-obe.outbound.protection.outlook.com (mail-gv0che01lp2048.outbound.protection.outlook.com [104.47.22.48]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-15-Z4S1hmKuNrut7qCJJOoaGQ-5; Fri, 17 Jun 2022 09:08:57 +0200 X-MC-Unique: Z4S1hmKuNrut7qCJJOoaGQ-5 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) by GVAP278MB0263.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:3d::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.15; Fri, 17 Jun 2022 07:08:51 +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:08:51 +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: [PATCH v2 5/9] ARM: dts: imx[67]: Add trips points Date: Fri, 17 Jun 2022 09:08:43 +0200 Message-ID: <20220617070847.186876-6-francesco.dolcini@toradex.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220617070847.186876-1-francesco.dolcini@toradex.com> References: <20220617070847.186876-1-francesco.dolcini@toradex.com> X-ClientProxiedBy: MR1P264CA0101.FRAP264.PROD.OUTLOOK.COM (2603:10a6:501:50::16) 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: f970999c-05d3-4863-753d-08da50303b38 X-MS-TrafficTypeDiagnostic: GVAP278MB0263: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: o+yqQYmRCwYiMCbkhSHKA0fuOnqyDoBC7UtgaJ2vs9r+IuXshZC+ci7kXG/lQXArkS2MXj83UXFbi3mJhDDxejVBXkkGCIEJMEbnBG92IuvGRPGyFY1Oxn39TDcq2z5GKQcjCA2lZk1OOf+uqz8T7AKEsiF1hdwglz406nPfRbvnPqNhGbS7oiHaRsP9gbJ9XbzCNNtdud2CMV8DSHd6prURAUtMqTPMXU/Dh6KK55LaCQPoklSW3mfbEfLmRpl3QznrpxPNGL5fk22KCTT6o7rhEucF3zMPYYo0YcdEKb+tF8hJ9h6+re7rMMg0GAL5cZwxEbn04TliD4eD7jXcklxJDiNd3EiiVhfv/mBePxFWgm4y1Q955Rz6ZO32oGi4fcKrXGpur2vNLQouW2mHkYtP3gTXIPbdMR8FJ9TmHExmpN92eD4gJgO5BjHb1pxXPmGWHWA5gj7+fli/khPFbI0iyqlTKJp8eQXinSs5cuOEPUKl/g8WpC1kG+/V/FJ8KXEti3UvL+1KxoFo+gun35VHvXf+s/OkI8HKfp2OzbTbDeC4ZITa4sG0QqUFd4siPoflo+zNlMFs6E3J95gHl6b+Evy7yVQKNGY+OqWs+pQdcEy7XIsxaYnsHCs8VoohWPzlfLZjpHs4SibDCBUHHq+BhgXb+ZUbFBTxMu/ew8IGG+a2eA1qDpu3qjw7lMERZJFfcl4P+wvGILJZet9o8w== 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)(39840400004)(346002)(136003)(396003)(366004)(38100700002)(6506007)(52116002)(8936002)(6666004)(6512007)(6486002)(26005)(83380400001)(2906002)(110136005)(5660300002)(54906003)(316002)(36756003)(86362001)(1076003)(2616005)(41300700001)(66556008)(4326008)(44832011)(8676002)(186003)(66476007)(38350700002)(508600001)(66946007)(7416002);DIR:OUT;SFP:1102 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: +OLBH6TZ8rlY629YNRBkKNY6yVoSKhkIFr2TsGz7iTvkzxqd2lSeP0ZvKgOZBxmk0Ig5TNfz0cUlZlN5L8MSGovtpYEyJVrEBtwFIOF1v5sqkHYS/G8TuStAGBLnOqDTyqpXWp2EuMYtwiWxEEPyYzeweEkFJAGObuRGki2SrMx1BXquGL+qJ+fXLyIfDpW/nU+VQFvO6FuQvHW1hvg5Ie+lo9DVg7NpLMxLVGxrUnNMvzSRKL/L6NP3lsEhTgF9c4ua2vz0y7rJabDVbcHnLq6S/E930tbrTVSrmtmj77eU55Zu8J1jydpVL8ScLqz/wsaXStDNiH4ZUbXoMyZa/1CPFn5KvdoMUx6fwVqJkmIsEwXIaSZb1QxfwYHzHXOrwAdhlRxKoLCcj9qqdX6LgSBpsrW/q8SAyj57FRHwSkzmyqUI84uHP8z7VIc0Wq6RvuKe6uKl4HtqTj7gg7TaoVNwB1FUrOlIthnVcdJBrcIt6kBAiVz0oE16WkO1oH5rh4ThAIVmSASyYF1VhajPv6SaHdspn1Nfhsk7vYYiKEdLiBi5z8f9cZxmJsm3BmtJHf8nOv0+0oiyvEkZuu0rs58mdIVvQ5zFFSM/SQ9WiPG8E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20kXyQWumf7wH5VutestnxounDRF4MBgHmYgq6LISap/DpxrO9x/9xx5p3i1xz1Fd5jDs= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: f970999c-05d3-4863-753d-08da50303b38 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:08:50.9804 (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: slXMO/VXbkxmnuaRx+Z8wcOp/vJ/Wqz2LYDCnokvv6cI8AyKVKW41jevii0W5TUedZzH6JAzNThtNmVOOcUp8Sx5bZkBmGNfl8AelTch2WU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVAP278MB0263 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_000900_729634_2DA7DF33 X-CRM114-Status: GOOD ( 11.14 ) 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" }; };