From patchwork Mon May 29 15:35:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Bernhard_Rosenkr=C3=A4nzer?= X-Patchwork-Id: 9975 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1604925vqr; Mon, 29 May 2023 08:43:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ67r+XwP9LeNTLoNnyQER82x1yxvaVwhZJ6VSWrD8FPcKouJZgb4hd8gWnlrBWR9AKbYnJq X-Received: by 2002:a05:6a00:acf:b0:64f:4d1d:32ba with SMTP id c15-20020a056a000acf00b0064f4d1d32bamr108927pfl.5.1685374996481; Mon, 29 May 2023 08:43:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685374996; cv=none; d=google.com; s=arc-20160816; b=S+cu8634uYVV6QqX8/VTlbqM9eTlvd/9A4h+EIIllD8RtDUFBD/ZhEl+g4AdARfiZi gWaaS5CYgxtXJgoQPU2/J/gd2rqfUkAGmrzrgcgSsFtP/298gSovaq341rlFaZKoSjAg uY/+iPE/zFhgnu0HPViWVGqJ43iAw+6rgoEJvhg6zy0sKTcV/fqCe+PEhJpftW5P++z4 oO48lV/cRS0n04070gJL66OxRmz7EvhIZeuo8bUzodls3+i6CLhJmS4PuY0O1Rbh1v1N eJUPB5B4MfmrGe1fPq5d0GleGrjy1RbrvX6CVVu3DGQpC7dp2fdObhfmuAo0fF3S+2nG 5BWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=P5W2InnJUP/UeKBwKYOBuhVJVSTGLUNK+LLVoQR0plI=; b=S8Ai+8rmuqSnMALB1bExHIPYTv9Lr8ZhP1YTgt4+sdYh25ak6PRMraIWmeZJUfn1BW XcJiFsxqumTGLfTJtYWJ7zxeF1Kd7yAdU1Yh3HH2AMIKpsTiqrFpZthmku6j0Y8FbkN0 BNF/H7xAkIK4yBHUROdlVX1VxWYuSyS3FuJ4Uut+n6wmKG9TReedKEaB1FrcNdI5QL7B RSfzXpXrRPkk0OvrMvzjdI3TvBD2BoUWc0kWhXDoIHyvDepEelOxsgAcTpFz1cZKq9Cy cMZm+I0L+TG2jxc3xofai69/jgGc13mawwgE/IUK89BkSLvw+aPYEgJWXre63eY72O/X +2fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20221208.gappssmtp.com header.s=20221208 header.b="2Efh/A+7"; 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 p17-20020aa79e91000000b0064398a54dc8si84417pfq.376.2023.05.29.08.43.03; Mon, 29 May 2023 08:43:16 -0700 (PDT) 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.20221208.gappssmtp.com header.s=20221208 header.b="2Efh/A+7"; 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 S229896AbjE2Pfj (ORCPT + 99 others); Mon, 29 May 2023 11:35:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229705AbjE2Pfi (ORCPT ); Mon, 29 May 2023 11:35:38 -0400 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DD62CD for ; Mon, 29 May 2023 08:35:36 -0700 (PDT) Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-3078cc99232so3187446f8f.3 for ; Mon, 29 May 2023 08:35:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1685374534; x=1687966534; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=P5W2InnJUP/UeKBwKYOBuhVJVSTGLUNK+LLVoQR0plI=; b=2Efh/A+7Ot1ySLPh0HhuRd0fb/e85j22M6yPB6MrBkBETBIncWTMWHl7iQeWdhvm8z E/KCBLl0OHFf/DQRXmcRF7gLBTARTeAdGxsi9U68igMF/0KEQydwFh7+XWRe8V3j0cgo rFB47LLcAORkYZVzAT3kkKsUoolrCNpG7G0BHyBm3FbDo60e4eTekw44cLnZrxSYP+eg nqY5AHN7hnHmKBF4dXFbZ4heyzlAXdwew3P3y6ufXQmpML8OcCXLhjbhrmXC/qf+YUqe 9b4fMiQ3AzICvSlmkVdJMDthPn9TNuDTZ6ygctqBTZV1PUj1WYhENlAiflEl2w7e6xrQ tmlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685374534; x=1687966534; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=P5W2InnJUP/UeKBwKYOBuhVJVSTGLUNK+LLVoQR0plI=; b=locEG6aQEPUeCkKdGh1EQs6zlkyWGGhpeXM5jSmB0qKOBXijy0xUAQGHUN+Zbm5Pf5 u1MEcLLu78ITJLGFBR5x4F9Sb/FmVxP4MLvlcRPKKNHkCienUy+HFUXiyJ5G362jO7az nLEzG17YuGps3OSnKbRYTCYV0EDx47nNXDAN8WPWaBKcJY5N/HTdJ63PJiC3u4wQEsgO 1vrRjyEErlEkdUPZ4tb8xYx4wTCnk9RMFijQ+PGPLtmMwbz6/9G0FvcTF+6BwwjZdWeu QktfYcxFuk5bbyrS7YtnoqYJKx4YZYUhZjCLpWoAl+7DvkIhEWNhEInkRrEB2z9QhjNF SAXA== X-Gm-Message-State: AC+VfDznsyCQORScEImRNe7fS5+uV1Okapf6BF6wcBrDrAcjqtqN5CEM EoRGN2x3ugyYfKEaHGIh7gVejA== X-Received: by 2002:a05:6000:120f:b0:306:36b5:8ada with SMTP id e15-20020a056000120f00b0030636b58adamr9515336wrx.29.1685374534530; Mon, 29 May 2023 08:35:34 -0700 (PDT) Received: from ph18.baylibre (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id j27-20020a5d453b000000b003095a329e90sm269781wra.97.2023.05.29.08.35.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 May 2023 08:35:34 -0700 (PDT) From: =?utf-8?q?Bernhard_Rosenkr=C3=A4nzer?= To: daniel.lezcano@linaro.org, angelogioacchino.delregno@collabora.com, rafael@kernel.org, amitk@kernel.org, rui.zhang@intel.com, matthias.bgg@gmail.com, robh+dt@kernel.org, krzystof.kozlowski+dt@linaro.org, rdunlap@infradead.org, ye.xingchen@zte.com.cn, p.zabel@pangutronix.de Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, wenst@chromium.org, james.lo@mediatek.com, rex-bc.chen@mediatek.com, nfraprado@collabora.com, abailon@baylibre.com, amergnat@baylibre.com, khilman@baylibre.com Subject: [PATCH v3 0/5] Date: Mon, 29 May 2023 17:35:27 +0200 Message-ID: <20230529153532.3541327-1-bero@baylibre.com> X-Mailer: git-send-email 2.41.0.rc2 MIME-Version: 1.0 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, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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?1767243771817554834?= X-GMAIL-MSGID: =?utf-8?q?1767243771817554834?= From: Balsam CHIHI Add full LVTS support (MCU thermal domain + AP thermal domain) to MediaTek MT8192 SoC. Also, add Suspend and Resume support to LVTS Driver (all SoCs), and update the documentation that describes the Calibration Data Offsets. Changelog: v3 : - Rebased : base-commit: 6a3d37b4d885129561e1cef361216f00472f7d2e - Fix issues in v2 pointed out by NĂ­colas F. R. A. Prado : Use filtered mode to make sure threshold interrupts are triggered, protocol documentation, cosmetics - I (bero@baylibre.com) will be taking care of this patchset from now on, since Balsam has left BayLibre. Thanks for getting it almost ready, Balsam! v2 : - Based on top of thermal/linux-next : base-commit: 7ac82227ee046f8234471de4c12a40b8c2d3ddcc - Squash "add thermal zones and thermal nodes" and "add temperature mitigation threshold" commits together to form "arm64: dts: mediatek: mt8192: Add thermal nodes and thermal zones" commit. - Add Suspend and Resume support to LVTS Driver. - Update Calibration Data documentation. - Fix calibration data offsets for mt8192 (Thanks to "Chen-Yu Tsai" and "NĂ­colas F. R. A. Prado"). https://lore.kernel.org/all/20230425133052.199767-1-bchihi@baylibre.com/ Tested-by: Chen-Yu Tsai v1 : - The initial series "Add LVTS support for mt8192" : "https://lore.kernel.org/all/20230307163413.143334-1-bchihi@baylibre.com/". Balsam CHIHI (5): dt-bindings: thermal: mediatek: Add LVTS thermal controller definition for mt8192 thermal/drivers/mediatek/lvts_thermal: Add suspend and resume thermal/drivers/mediatek/lvts_thermal: Add mt8192 support arm64: dts: mediatek: mt8192: Add thermal nodes and thermal zones thermal/drivers/mediatek/lvts_thermal: Update calibration data documentation arch/arm64/boot/dts/mediatek/mt8192.dtsi | 454 ++++++++++++++++++ drivers/thermal/mediatek/lvts_thermal.c | 160 +++++- .../thermal/mediatek,lvts-thermal.h | 19 + 3 files changed, 631 insertions(+), 2 deletions(-) base-commit: 6a3d37b4d885129561e1cef361216f00472f7d2e