From patchwork Fri Sep 9 07:36:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amjad Ouled-Ameur X-Patchwork-Id: 12971160 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 80205ECAAD3 for ; Fri, 9 Sep 2022 07:41:36 +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: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:In-Reply-To:References: List-Owner; bh=EAb7NUCYloMsUV/acbHBfeCRI8C1ZzJQfg2EwutiUcc=; b=nR8xJaGOFrwMUp u/0L3ciUhxZrDst2+bLxIIWLMyadOLWtK1u37uXa3t1tgBb3FmoVpEPhiDuPlVFWhWcqv9KNjLt8X 3GNmzXxN+KMtyr2NLHTizsH9HcQroNItqzDMpml0zK0uIcXYJ68izJJ1Hp2XqfyY7ADHy051OLu5r +tvlJKMTDVWa4j3blcr6pABikx14+h8UodnAnCLsJUopXBCbM70G1/5/7Racqn36a7yj2MAACnw2q e6kmVrnA+oHUDWR4/QyUR8VtJAqnyT+otU91ELzYe0d1Sg2ODIw0cQT2X/hOa4/PxuZgehDBwp8YT Im34buqWl+XXGdCJy9Sg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oWYcl-00E2vx-Qa; Fri, 09 Sep 2022 07:40:28 +0000 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oWYYq-00E09J-Jx for linux-arm-kernel@lists.infradead.org; Fri, 09 Sep 2022 07:36:27 +0000 Received: by mail-wr1-x42d.google.com with SMTP id n12so1288252wru.6 for ; Fri, 09 Sep 2022 00:36:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=4e7RlBTjQ/k7/7tVuA9R5TTzLZ8Baa2EHE13JLauQ6Y=; b=0jHVBB6vKhPCnwAJHFWzRMHXXiIrqoOYDn7Zh/vMmaV7ZC+JtEUN1G1S90boOZRoMO Snu4nB3VgcjpYiTT3Fq2KEaZbayZhCjF+50KF39bzaEQr8GoI3WuxwVbTQ/+xbmy2fY8 pgzMXcKRgQhv5mWnmqaI8iKdQrJV9IVfvYrBcZVG5zWTiJ2ehpBQleR7aas6uRlj4kKq AmhZghYC42o1WEQHynaLG4dDJPjHnlkcRnz2BQT9hkczL231U9LW1oZiYxW04iFAxx0v rZT3I5ejiH65xkXAd71h6uRXTQpMF+83RFd/VOyOHYugFswy2DOJQlHVwiZ3fMXG7TP5 iKvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=4e7RlBTjQ/k7/7tVuA9R5TTzLZ8Baa2EHE13JLauQ6Y=; b=we39bFOosgUGDM233fdnL2KG6Rm2QIljFtWW8nsqGVb8n7BI3hX/dvWTKm38cv6iB+ a61lkmhd+Hl5h1B7JPdRDhvalTc/49B1sh8JffsV1QFUhwGLoeP9BSGleNfblI4MZ9Ek QAPg7JgKTRw9XqTXrXt77aqru8zWST7jaW0Fs0CntbTiyP11lpX/PDzWtz3Y4DeT/Af6 /3jSHtX05Y9jtas8Bc8zCHFKBnrXJbITyBAsd6sgS9NHtGrVP1e7Usx4JeW+N+ys+YpZ j0NUxYxj+OiHiLVM9E4kXzcwOpf6iL6baniJOmaiFw2xfBUwUWC+3W5FC6xoLW+wp9C3 +ipw== X-Gm-Message-State: ACgBeo3xXFaqAY89r/E2gj9rB+b0T2J/RDq+LohQY6pT54McMpzLth4X Tg5iCuYejl12FA6NmvirHilYuQ== X-Google-Smtp-Source: AA6agR7krDdgNfaZrjk3h6m6Rzfrva10aTZHIv8TVDFrCMcpmMU3UrZGl4+8EOO5Zx+4WYxcvFE3+Q== X-Received: by 2002:a5d:508c:0:b0:228:de49:b808 with SMTP id a12-20020a5d508c000000b00228de49b808mr7014788wrt.23.1662708982694; Fri, 09 Sep 2022 00:36:22 -0700 (PDT) Received: from amjad-ThinkPad-T490.baylibre (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id j5-20020a05600c1c0500b003a682354f63sm5345901wms.11.2022.09.09.00.36.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Sep 2022 00:36:21 -0700 (PDT) From: Amjad Ouled-Ameur To: matthias.bgg@gmail.com Cc: Amjad Ouled-Ameur , rafael@kernel.org, fparent@baylibre.com, amitk@kernel.org, daniel.lezcano@linaro.org, devicetree@vger.kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-pm@vger.kernel.org, robh+dt@kernel.org, rui.zhang@intel.com Subject: [PATCH v4 0/4] thermal: mediatek: Add support for MT8365 SoC Date: Fri, 9 Sep 2022 09:36:05 +0200 Message-Id: <20220909073609.32337-1-aouledameur@baylibre.com> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220909_003624_897962_50F4CB8F X-CRM114-Status: UNSURE ( 9.30 ) X-CRM114-Notice: Please train this message. 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 This patchset adds thermal support for MT8365 SoC which contains three thermal sensors. Changes in V4: - rebased on thermal/linux-next - Use callback for raw_to_mcelsius() - Use struct 'struct thermal_zone_device_ops' instead of no longer existent 'struct thermal_zone_of_device_ops' Amjad Ouled-Ameur (1): thermal: mediatek: add another get_temp ops for thermal sensors Fabien Parent (2): dt-bindings: thermal: mediatek: add binding documentation for MT8365 SoC thermal: mediatek: add support for MT8365 SoC Markus Schneider-Pargmann (1): thermal: mediatek: control buffer enablement tweaks .../bindings/thermal/mediatek-thermal.txt | 1 + drivers/thermal/mtk_thermal.c | 197 +++++++++++++++--- 2 files changed, 166 insertions(+), 32 deletions(-)