From patchwork Tue Mar 7 15:45:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Balsam CHIHI X-Patchwork-Id: 13164177 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 8A080C678D5 for ; Tue, 7 Mar 2023 16:46:29 +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=nkvuNJ5d2AXs6Ng7uqUP0v5Tpik+bafp+4386Rzc20M=; b=vBQDcaCmWTM8/J 35JqFURgIVPr4HmhtDRvXgBdLf1aHc1Mv1VgCdUHFY90MxmVxFbv6i1k6QYIMuZs0AG5HfXiSpPNG L8yKIy6d7ekng/LGhmhCvvY8L9GWniozv9NWmrtFsKdOQE2t3WK8W3v3COBE9yGEQ0S6+GPJALIE0 YidyrKZC63wj3lCg0kaHgzcaBaDEkWYmc8J2fgHz2ecAn7ZQ055aGsyQWRT+mOwQfB/XhI03FS8vL V2OetFe93KdRuZhgXOgJBd8DWm3u/EYzdvc/L+lSa8sTFyi4mdvCB4pdn5xbfB2ATtuKoVJt4VTPC a0kkmH2NngX5uC+Ith8A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZaRg-001dGl-DK; Tue, 07 Mar 2023 16:45:48 +0000 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZZVJ-001IQL-52 for linux-arm-kernel@lists.infradead.org; Tue, 07 Mar 2023 15:45:33 +0000 Received: by mail-wr1-x435.google.com with SMTP id h14so12585846wru.4 for ; Tue, 07 Mar 2023 07:45:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678203927; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=0NMT354TdG7a+Mjd6nR8XY28RmDaq3SVnAflnava9+4=; b=hMkvX07ZWoEiUrNshSUONwBDA8mCpjSl9GndL4JQtN8MUn8/BnoS2vISYH7f/VMaBf 3hveIte2Is2YGBevN1S5N46ox8c4WHSl4yZCnT4eydXX6lN4ozH2k/5Z9P1C1p2yY6Y6 UXvo62ShrMcy7kC0Wpd3efQsBiXiMT5Vi24vQ+bIxtTENvmbWZt7b5w+PIFu40sgcf+w 4tcZHu3Ncvf7+aFNMnKhCIWk16fLycz2FCVwP8noBTWbzETc0mefmwm+lz58SGhoQNbg z80QcsPVIuLS3/Au9xz8pUr/yUVnBkLaJx1LSJmLuXzSvsLrN4xxUONwQYZZyY6efQkk fErA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678203927; 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=0NMT354TdG7a+Mjd6nR8XY28RmDaq3SVnAflnava9+4=; b=17NA6ybGosS7sRgR5cZtAjtkBS6xv9aF3oc3ppiqPi5XYZXkp/ViJjXfx+zQ+yvLK7 KNjEes4VpZSFIN/Ti3Hvk2oK9G+IAKv3RNbvuefUTx5Ug/oAZfLAsyokOxO5znBz83Cd ifI1LdsYismW02qDopoeGew82rKZLlJzsNLd+KcCrZEzUVvpui+7uZTu0elK4Sh9ZiBZ OqVPSqx6X3sOCT5ATWHCs7AE7bT1dLD20QvlTTLPG4+4Kvbm70ZzLP/Ik3uPcU4k9rcq JNuDt05wlb4QuXdKqmFpGqjkKqWyhf/k10NP/ph1nHObz+2yRJWnPUMMsaf6La0KZEPz LTTQ== X-Gm-Message-State: AO0yUKXjQa0QJb7nC6FBEDjm0N3XshfVFhl10d5jjl+aORMDSgUFsDv8 t/Rw9vzNdOzavdYGwRdjK4IV+A== X-Google-Smtp-Source: AK7set9EHu+HV/Mv7v6/4EnH+ZLw8tMFVfGqynaBEs9+XXablQK4YXk5bcSSsrLRLVgmSo2ZJFT/wQ== X-Received: by 2002:a5d:4bca:0:b0:2c5:4ca8:a5a1 with SMTP id l10-20020a5d4bca000000b002c54ca8a5a1mr9236688wrt.23.1678203927555; Tue, 07 Mar 2023 07:45:27 -0800 (PST) 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 f2-20020a5d50c2000000b002c704271b05sm12697905wrt.66.2023.03.07.07.45.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 07:45:27 -0800 (PST) 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, khilman@baylibre.com, james.lo@mediatek.com, rex-bc.chen@mediatek.com Subject: [PATCH 0/4] Add LVTS's AP thermal domain support for mt8195 Date: Tue, 7 Mar 2023 16:45:20 +0100 Message-Id: <20230307154524.118541-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-20230307_074529_226355_FD4E4308 X-CRM114-Status: GOOD ( 10.18 ) 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 AP thermal domain support to LVTS Driver for MediaTek MT8195 SoC. This series is a continuation of the original series "Add LVTS Thermal Architecture" v14 : https://patchwork.kernel.org/project/linux-pm/cover/20230209105628.50294-1-bchihi@baylibre.com/ Based on top of thermal/linux-next : base-commit: 6828e402d06f7c574430b61c05db784cd847b19f Depends on these patches as they are not yet applyied to thermal/linux-next branch : [v14,3/6] arm64: dts: mt8195: Add efuse node to mt8195 (already included in linux master branch) https://patchwork.kernel.org/project/linux-pm/patch/20230209105628.50294-4-bchihi@baylibre.com/ [v14,5/6] arm64: dts: mediatek: mt8195: Add thermal zones and thermal nodes https://patchwork.kernel.org/project/linux-pm/patch/20230209105628.50294-6-bchihi@baylibre.com/ [v14,6/6] arm64: dts: mediatek: mt8195: Add temperature mitigation threshold https://patchwork.kernel.org/project/linux-pm/patch/20230209105628.50294-7-bchihi@baylibre.com/ Balsam CHIHI (4): dt-bindings: thermal: mediatek: Add AP domain to LVTS thermal controllers for mt8195 thermal/drivers/mediatek/lvts_thermal: Add AP domain for mt8195 arm64: dts: mediatek: mt8195: Add AP domain thermal zones arm64: dts: mediatek: mt8195: Add AP domain temperature thresholds arch/arm64/boot/dts/mediatek/mt8195.dtsi | 180 ++++++++++++++++++ drivers/thermal/mediatek/lvts_thermal.c | 94 +++++++-- .../thermal/mediatek,lvts-thermal.h | 10 + 3 files changed, 264 insertions(+), 20 deletions(-) base-commit: 6828e402d06f7c574430b61c05db784cd847b19f prerequisite-patch-id: 73be949bd16979769e5b94905b244dcee4a8f687 prerequisite-patch-id: 9076e9b3bd3cc411b7b80344211364db5f0cca17 prerequisite-patch-id: e220d6ae26786f524c249588433f02e5f5f906ad prerequisite-patch-id: 58e295ae36ad4784f3eb3830412f35dad31bb8b6 prerequisite-patch-id: d23d83a946e5b876ef01a717fd51b07df1fa08dd prerequisite-patch-id: d67f2455eef1c4a9ecc460dbf3c2e3ad47d213ec Tested-by: Chen-Yu Tsai