From patchwork Tue Nov 30 15:57:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Biju Das X-Patchwork-Id: 12647655 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 68E21C43217 for ; Tue, 30 Nov 2021 15:58:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234815AbhK3QBY (ORCPT ); Tue, 30 Nov 2021 11:01:24 -0500 Received: from relmlor1.renesas.com ([210.160.252.171]:48449 "EHLO relmlie5.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S240633AbhK3QBY (ORCPT ); Tue, 30 Nov 2021 11:01:24 -0500 X-IronPort-AV: E=Sophos;i="5.87,276,1631545200"; d="scan'208";a="101916626" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 01 Dec 2021 00:58:03 +0900 Received: from localhost.localdomain (unknown [10.226.93.28]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 847E3400C440; Wed, 1 Dec 2021 00:58:00 +0900 (JST) From: Biju Das To: Rob Herring , Philipp Zabel Cc: Biju Das , "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, Geert Uytterhoeven , Chris Paterson , Biju Das , Prabhakar Mahadev Lad , linux-renesas-soc@vger.kernel.org Subject: [PATCH v3 0/2] Add Thermal support for RZ/G2L Date: Tue, 30 Nov 2021 15:57:55 +0000 Message-Id: <20211130155757.17837-1-biju.das.jz@bp.renesas.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org RZ/G2L SoC incorporates a thermal sensor unit (TSU) that measures the temperature inside the LSI. The thermal sensor in this unit measures temperatures in the range from −40°C to 125°C with an accuracy of ±3°C. The TSU repeats measurement at 20-µs intervals, and automatically updates the results of measurement. The TSU has no external pins as well as no interrupts. This patch series aims to add TSU driver support for RZ/G2L SoC. v2->v3: * Added Rb tag from Rob. * Updated commit description with technical description of the sensor * Included math.h and unit.h for round_up() and MILLIDEGREE_PER_DEGREE * Updated the comments. v1->v2: * Removed clk patch and dts pthes from this series * Removed devm_add_action_or_reset from probe. Biju Das (2): dt-bindings: thermal: Document Renesas RZ/G2L TSU thermal/drivers: Add TSU driver for RZ/G2L .../bindings/thermal/rzg2l-thermal.yaml | 76 ++++++ drivers/thermal/Kconfig | 9 + drivers/thermal/Makefile | 1 + drivers/thermal/rzg2l_thermal.c | 240 ++++++++++++++++++ 4 files changed, 326 insertions(+) create mode 100644 Documentation/devicetree/bindings/thermal/rzg2l-thermal.yaml create mode 100644 drivers/thermal/rzg2l_thermal.c