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 E14DCC61D9D for ; Wed, 25 Jan 2023 09:51:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235360AbjAYJvK (ORCPT ); Wed, 25 Jan 2023 04:51:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235313AbjAYJvF (ORCPT ); Wed, 25 Jan 2023 04:51:05 -0500 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61C1E3A88 for ; Wed, 25 Jan 2023 01:51:02 -0800 (PST) Received: by mail-wr1-x42c.google.com with SMTP id y1so11952589wru.2 for ; Wed, 25 Jan 2023 01:51:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=vaCPXkD9SZLVsUqcpjkMaFmczW7gT3DS5/0BLDeDcbQ=; b=Rw7ZKTIlxluTpzjoIaXA952ZSKYgO45W3mwE4xtZ2FfGN97Q0me77t81wHveCmmSXy fob1NruqdEF6M4PvdSIF+Rt9WTqjMYVqZ1q4h8kvtDopvY0OIUSezCIMNTHLHriz2y9Y C0ze5VIeMqOwGpNBH3FVctSVFOUxxG5AIr0lFAAoD3IFIznNtNfpqRhwgFktd1UfMFTh nxQpJ9G43+ZPw8cN/KC+vJYtiQU6cLW6t6hC3Iv+EuCWzbN1Z/ccKAbdH5ibdc9XD7mJ XPKlPFb/LzrDH1m5D4mRAcmBkVEtXxnxIHvgUJkUje4lTo2rA0AFrrcObtfowoRPx5dP yO5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=vaCPXkD9SZLVsUqcpjkMaFmczW7gT3DS5/0BLDeDcbQ=; b=kSBXurKkgeJwF4OEIutOLU4U4Yag07BzqBj4agVD1lxWCZ4iA5T0EMIXZoc/85JbpT 9csResk3WOJaovpKVHEtSvlF9b7HWHs+tTS1kUp+gZvfdz9lyUcc6EwYmD3ls5hAqrBZ 4hIiix6tJJKRgFJsNVoiKakhMfpA1lkSc6pX7iYNdqcBiaOph2FGBlk0aje6gF3CcXxI rLvuCQFtkMMJyWxOGLc/bnMG940+I2JK9U4awWomtr4iMqzgsq4e4K1zBYVDFLcBjsj4 p6UJev7N0UMwJAZfhjLBf+KtruskZfT8BVLafT///EQOwxOHZADnkR98aIm2ua5ZDgse AUxg== X-Gm-Message-State: AFqh2kpZTJxT4vk9cZ7CwycOuHhphGXaIRw4X4XxNUAn7AFvdnfIQuPR VHodFL1wpy/14i1V9ioxzJO5qA== X-Google-Smtp-Source: AMrXdXs4iX7MHDhQ8IpIinu+zVBZH31DduJs8o0yFDjgZqXVRfmzOBdosIhPx5NkKAMeRHZalGCImA== X-Received: by 2002:a5d:68ce:0:b0:2be:4dc0:6684 with SMTP id p14-20020a5d68ce000000b002be4dc06684mr18346214wrw.7.1674640260896; Wed, 25 Jan 2023 01:51:00 -0800 (PST) Received: from [127.0.1.1] (62.213.132.195.rev.sfr.net. [195.132.213.62]) by smtp.googlemail.com with ESMTPSA id j26-20020a5d453a000000b002bdf3809f59sm3955072wra.38.2023.01.25.01.50.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Jan 2023 01:51:00 -0800 (PST) From: Amjad Ouled-Ameur Subject: [PATCH v8 0/5] thermal: mediatek: Add support for MT8365 SoC Date: Wed, 25 Jan 2023 10:50:29 +0100 Message-Id: <20221018-up-i350-thermal-bringup-v8-0-23e8fbb08837@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAGX70GMC/42NywrCMBREf6VkbSSm5KEr/0Nc5HHTBNpUkjZQS v/di0s3uhpmhjmzkwolQSW3bicFWqppzmj0qSMumjwATR494YzzC7tour5o6gWjS4QymZHakvKA ofG9lr5XTMhAcG1NBSxNdhH3eR1HDGOqy1y2z1uTKI/f4CYpo04rew1KCMHs3ZptTLbA2c0TeSK 2qT9RClFgA9MhcPD+G3UcxxuNJQD1EQEAAA== To: "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui , Rob Herring , Krzysztof Kozlowski Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Fabien Parent , Matthias Brugger , AngeloGioacchino Del Regno , Rob Herring , Markus Schneider-Pargmann , Hsin-Yi Wang , Amjad Ouled-Ameur , Michael Kao X-Mailer: b4 0.11.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1674640259; l=1557; i=aouledameur@baylibre.com; s=20220920; h=from:subject:message-id; bh=6g6r80ja2Rzpq9olLoUbWHBTm7xTpanipH7fHDJFqNU=; b=T+CLaw+DkWdzd1nbg+TlT6goz1/RMjgk9CSpiYrLyUOPxR6irKRnar3iyJQAhpi1Xuc2kSBCqW1Q JWuB6H0dDOndEuRobKtDdzYA5x9mtavP6YwfwCwZj2Gv6j1r9nf3 X-Developer-Key: i=aouledameur@baylibre.com; a=ed25519; pk=HgYWawSL4qLGPx+RzJ+Cuu+V8Pi/KQnDDm1wjWPMOFE= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset adds thermal support for MT8365 SoC. MT8365 has 4 thermal sensors, one for CPUs and the rest for debug/dev purposes. The CPU thermal zone uses passive cooling device with CPU{0..3}. Changes in v8: - Drop support for thermal zones 1, 2 and 3 as they are used for debug only, and would cause aggregation issues with current MTK thermal driver. - Split up 4/4 patch into 2 patches for clarity. - Link to v7: https://lore.kernel.org/r/20221018-up-i350-thermal-bringup-v7-0-ebf08ff2eddb@baylibre.com Changes in v7: - Fix devm_thermal_of_zone_register() error checks. - Link to v6: https://lore.kernel.org/r/20221018-up-i350-thermal-bringup- v6-0-c87b9f75550b@baylibre.com Signed-off-by: Amjad Ouled-Ameur --- Amjad Ouled-Ameur (2): thermal: mediatek: add callback for raw to mcelsius conversion thermal: mediatek: try again if first temp read is bogus 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 | 108 ++++++++++++++++++--- 2 files changed, 94 insertions(+), 15 deletions(-) --- base-commit: a2c81dc59d41e92362ab7d41d0c15471ea50637d change-id: 20221018-up-i350-thermal-bringup-ad386d37056f Best regards, -- Amjad Ouled-Ameur