From patchwork Tue Apr 25 13:30:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Balsam CHIHI X-Patchwork-Id: 13223330 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 845FBC6FD18 for ; Tue, 25 Apr 2023 13:31:59 +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=t/Q56DViL/2azADrA3dwfgb6q6Yn/WULIjjQiqC/1uw=; b=rQPGsPqYZWh7t1 fKb74fctFfM/u7NRntyxySX8zGSTEkfcZYTGjIodgY4N7UJ/owYP84EG9X8NRp8HhSyDWV1/vKpEE LPvolFZK009BpUI2RuQ6VMeV1YH2CCTul6wnseQFy140Ybc5wQvVYtJYQO9MBFxx1im/oR1wvmFzM W8d29J6Ro25LUc06qxkov5WTxCMDrFhRLBrSuODpS32KcUD/Dqg2i5WAp5DDW6jAka5tXB+gFFbuS IRtFMLlMeznxSKplgMzEdJmGAA7ZQVzJVIAkAqafz1t2rPBy9mW2Ddz6oaIOn9q6+6VNfTtIaG4Yn YIkDlgsVnLYJjYTb9POA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1prIl5-001EaP-0A; Tue, 25 Apr 2023 13:31:03 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1prIl0-001EVM-0J for linux-arm-kernel@lists.infradead.org; Tue, 25 Apr 2023 13:31:01 +0000 Received: by mail-wm1-x344.google.com with SMTP id 5b1f17b1804b1-3f19afc4fd8so21954795e9.2 for ; Tue, 25 Apr 2023 06:30:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1682429455; x=1685021455; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=nQDZ0kl/qap4qMPXG3KZzTT6FQaXwjteHFJnaNZ/47Q=; b=hQgeKxRXJ0yHcM++OOFfZ0t1UtuWdAqbDsuB6SGX7Ucu4YkEFj7SyEU7cfe78wh+WQ G2J2731hdkoyvLD/hBXPyMWKJeZMVW5OlF8grQLS2Kmv1Vv2/eQvanMbmwwR7XBxTXcn y37uRQmbLsZgCFk00oAo9v9av5lAeyjjGKD/BoARvUNJtB1t4a+JPJUkrr4MusKUldXG Oapm1Ar155TbJ1iK3hhZWOR0eipY1t6iQk0zErCepOqEWsih5iZ/eLpTZJcKvXf0+17U grR9+PvnRUtvydxZ+a5PEqaAtuggkpOvYQcqkLzdrtkCjLBVZH6cyaekT46Td2jQldb4 ealg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682429455; x=1685021455; 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=nQDZ0kl/qap4qMPXG3KZzTT6FQaXwjteHFJnaNZ/47Q=; b=UdC/VGxwTfAfNdFMnMqU0pvqFCVTAwpZ4gB5Syc9cvQfLl7+EsjAoCjdPKd4pJpKl9 TJjfU208y4ZPtJOX20i/OcymnrH6gwHBYIrukKmsqnHNDv8FhuU+GOqLkukHiLpcQov8 qIsVbCWgvbWbAI0rqluRWxCmjlvqHPiFaEZuN58OQMwA/KOXXMA6MmfSDsihJol6BBUi OketRuYR/72+ChtXc3pyz0MVrh2FDS3oOh073l1gxmXS2uiGpVQcoIqzlgd4h92a7nQf wJGUT6Fmecy90D+KcRk1wiDNN1hjWFahYfcYKmoRBYyXceQZkqGmIOcbicOugRK3yOmc i3fg== X-Gm-Message-State: AAQBX9dbaTjzSHU3Eb7NITT1dhHgqQ/mRUyEudhTTnyFWFAzl/AiaWLX br4n2UOyj9oAoFuCjJwmotzBcA== X-Google-Smtp-Source: AKy350YToaXY8KjK9MDJml/HHBSHgv1qFk3TZWeCRSWY630xTgykwAXRAj/XIk46jXGX2hvyI5BZSA== X-Received: by 2002:a1c:7211:0:b0:3ef:8b0:dbb1 with SMTP id n17-20020a1c7211000000b003ef08b0dbb1mr10272347wmc.7.1682429455493; Tue, 25 Apr 2023 06:30:55 -0700 (PDT) Received: from localhost.localdomain (laubervilliers-657-1-248-155.w90-24.abo.wanadoo.fr. [90.24.137.155]) by smtp.gmail.com with ESMTPSA id t10-20020a05600c198a00b003f16932fe7dsm18575434wmq.38.2023.04.25.06.30.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Apr 2023 06:30:55 -0700 (PDT) From: bchihi@baylibre.com 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, krzysztof.kozlowski+dt@linaro.org, rdunlap@infradead.org, ye.xingchen@zte.com.cn, p.zabel@pengutronix.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 v2 0/5] Add LVTS support for mt8192 Date: Tue, 25 Apr 2023 15:30:47 +0200 Message-Id: <20230425133052.199767-1-bchihi@baylibre.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230425_063058_371524_33327D60 X-CRM114-Status: GOOD ( 10.00 ) 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 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: 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"). v1 : - The initial series "Add LVTS support for mt8192" : "https://lore.kernel.org/all/20230307163413.143334-1-bchihi@baylibre.com/". Balsam CHIHI (5): thermal/drivers/mediatek/lvts_thermal: Add suspend and resume dt-bindings: thermal: mediatek: Add LVTS thermal controller definition for mt8192 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 | 185 ++++++- .../thermal/mediatek,lvts-thermal.h | 19 + 3 files changed, 642 insertions(+), 16 deletions(-) base-commit: 7ac82227ee046f8234471de4c12a40b8c2d3ddcc Tested-by: Chen-Yu Tsai