From patchwork Wed Jan 25 09:50:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amjad Ouled-Ameur X-Patchwork-Id: 4502 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp189657wrn; Wed, 25 Jan 2023 01:57:00 -0800 (PST) X-Google-Smtp-Source: AMrXdXuAXlFWC4Kwe4pfTQ1gfVvDqa+fKc30AVCaKg+kQOfnSmDmJ0hg5QQqH7DpwVUvZg5x/1aG X-Received: by 2002:a17:903:543:b0:194:6110:9fe1 with SMTP id jo3-20020a170903054300b0019461109fe1mr28659051plb.4.1674640619995; Wed, 25 Jan 2023 01:56:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674640619; cv=none; d=google.com; s=arc-20160816; b=MRB2QIsb/ICyWJL8GWPTeECemvfm6zXRjwyPNbv8WYc/O6cU+TSjMc5n+F32s4L1AU IV8LiTrLkPKAxIu3oqAAM34mHEG9/lrIPKiCi82oe0vwz/p7Nbqr0U/9oK0UHq0qPdNS 2BAqBMQkCkE9ZmbuJ+PvTzbBbAEp6TNXb2EsjnxQOcZ9FLvpFaVIHvfM/DCVQNkVf46c ZIrqSlskPicA80zd5dW1iLPXyV06h03khw1LHHZ11pDszM33an+HHHXimJmPKUFDtD+k MDTxGSd6qxqFSuFXeYiv8kVIrXOlsONbn4MPttinS+IbHuXiXSL0WF9TOCqPKazJEOLq dsew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=vaCPXkD9SZLVsUqcpjkMaFmczW7gT3DS5/0BLDeDcbQ=; b=dc6gmnobh/0vMfs0EmTVHBY+amFPCmhinYoTEGTU9bVeFoXhPVvzFu0SmcjEr+lL8p jPj4WXb8kGDjLJwJsey8nZY11WaXTpoWdl9Sx2zo3Itv76sAgcCZFidZw26oZjkkdOsu y4BJiNxYbbOe76TYEaVqr8GvAzkNFe4ShTNRkpPs1PNXhFR/8K6J9vB6TdoFmo7tDR6A qJ8VBfUaN1saeRl3QRFsazBDPU8ZJhVkgQD6/tLp38UChtKwaGBi24fvE1pvH028g5Zv HtlPT9QF5e6mpuTtF2qSUdYZRoe+B6cQdkhPnezw8bfBw33f5BVwrVRT3GC7CmXE9FBf BItg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=Rw7ZKTIl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id iz11-20020a170902ef8b00b001910cb3adcasi4900467plb.235.2023.01.25.01.56.17; Wed, 25 Jan 2023 01:56:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=Rw7ZKTIl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235382AbjAYJvI (ORCPT + 99 others); Wed, 25 Jan 2023 04:51:08 -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-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 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= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755987962732513804?= X-GMAIL-MSGID: =?utf-8?q?1755987962732513804?= 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,