Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp301458imn; Thu, 4 Aug 2022 06:38:53 -0700 (PDT) X-Google-Smtp-Source: AA6agR7bDjZVbQe1jhMpWY+oR75ITuk8ngx9C7IsiudKttwxmo2LQNvoMHRAQH9Vr8Uac8jBR73m X-Received: by 2002:a17:907:2d93:b0:730:d347:8b6e with SMTP id gt19-20020a1709072d9300b00730d3478b6emr1471303ejc.305.1659620333007; Thu, 04 Aug 2022 06:38:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659620333; cv=none; d=google.com; s=arc-20160816; b=I1s3yAilVxa2ARxXvCgDlh/dv1slq7QPynbGrmXFkzMBZxbr83smibusoAmkBxIVI3 uLOm0d15OKD5fHEq4SanSAI5y5C9Qg6v85IreC4dsRGb11mcxlPYkpUSMMomxNyaMWVs n0lvd9zIuy1nEW+qME2M4q6kjJe4SfJ5nYPyjIah9Q3DnT2uElBFr5FToC7AQ1zR1ppG b7GjYrPCr8oRXCoP1o3eIKXxTyrslV2wppv3cnHlLz2PFiVdHI7StxreO6V4HUacrWbD 0xYgrNDtTkKZhmtMXYQQO/8OkTdzvZXHLZZRAFn+OwtNnA+5/IQhI9SzI3OM4zNXfksv Qp7g== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ts9wGXUYExk6gtCsSPDiHLEprUWAxTPstjlSxz/66wI=; b=WMQwDcfM3MPogEbKq61LUj+kyXoQn1ut1cLafcN4fIrRc8pDAXbxpm6j6DWWHmnnY9 IiYRlkT1ZkKej18LBwN4J/jG5Xdoe+QFTp3qIIu0tyVZ7KzdGwDFMh5HZAUdpmdQzmo/ x4Xc12HMGRROjhDI4dPT3LXqliVrhoe5VwYkRVp9gLwz1KYfnljO/ivArmRcRy7ppWqx ZonIOG2PO+w7PMO54gESzLvnnfloI8YZF7bhAwfdFnmiS2YjDmFJs7hDekWLhJp92WFv /EWo4Kn8iI7tkgBD9H/45GvtzuZ83qQibdjUDWfLZX65bJaB4O4f5O8TwS3c+02GiI2F UqXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=bMwcYGHs; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l19-20020a056402255300b0043df9db6c0fsi1227847edb.539.2022.08.04.06.38.26; Thu, 04 Aug 2022 06:38:52 -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.20210112.gappssmtp.com header.s=20210112 header.b=bMwcYGHs; 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 S239788AbiHDNKM (ORCPT + 99 others); Thu, 4 Aug 2022 09:10:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229625AbiHDNKG (ORCPT ); Thu, 4 Aug 2022 09:10:06 -0400 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0729618E21 for ; Thu, 4 Aug 2022 06:10:02 -0700 (PDT) Received: by mail-wr1-x42a.google.com with SMTP id p10so21008483wru.8 for ; Thu, 04 Aug 2022 06:10:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ts9wGXUYExk6gtCsSPDiHLEprUWAxTPstjlSxz/66wI=; b=bMwcYGHsBIEMrbYzlqomUHZufeEAWm8D1KStc+1SHQNZmazstd2ArhFBuu/ztF9QHj H3kz2IfvpwimKU818GmMAmRDWXueM8lHfGBtN229jA0npnntym3dU8IPoUYQ0OUaPDIv mVVe0jJJcyN69Bwh+Sttsael1VYjQz04wd2lsfayRx+JLK5hbMcYlpE0DR6yI4xN3OZj Pkc/MRvr3Xcyj31H3scdaxgzPpEUZUMrQcmKrt8OOD8kIgwsmD8seSjCea6FPTQxdZBs d3YquQOuxz/SyCOgKlC8WNv+6YltIlnRVg/qmXLQZTYXGBbwVS0K64jNV8ggb5OJzw0G elAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ts9wGXUYExk6gtCsSPDiHLEprUWAxTPstjlSxz/66wI=; b=5A603/K8H1iH9e9TbrEpeomL528BtK1bPPTuVMM/AFmONkKcxqEtfaxuDwkf2L9VXB v9fjhxgvT22Atzi20ptjCsOrkdh19KRX2M7lujlaC7G48ZCY5BGDWbVRf3Qh5tiM1bGD UWq+FzCwliYWtkq4FRkkP0yEqgf0nOP8PwG5lydMUcYAGbovAFdHSxTKEj5WQxCadpRb XCAj68wLgQ0xFAPGTmyYNSR/m6YRK/CaEaW6nYQ6aastqmwJQsbVQ6xNKvm+nnQW+Mxq lFFgxwLT0xuNYbklKSGUkmNt62wPLN+3pWRpKO3LaN3tYGSkSXePJf3CtYj9pm6G8yHi Y7uA== X-Gm-Message-State: ACgBeo1fzrN2CbiCcL4wfFIiqB8z0CCkciunUBdIdWhr9Qqsn2reoHcy YLKBThO5aftWvecBvkVd/mskDQ== X-Received: by 2002:adf:d090:0:b0:220:7188:ac8b with SMTP id y16-20020adfd090000000b002207188ac8bmr1413517wrh.389.1659618601454; Thu, 04 Aug 2022 06:10:01 -0700 (PDT) Received: from Balsam-ThinkPad-T480.. (235.163.185.81.rev.sfr.net. [81.185.163.235]) by smtp.gmail.com with ESMTPSA id o15-20020adfcf0f000000b0021d6a520ce9sm1156817wrj.47.2022.08.04.06.09.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Aug 2022 06:10:00 -0700 (PDT) From: bchihi@baylibre.com To: rafael@kernel.org, rui.zhang@intel.com, daniel.lezcano@linaro.org, amitk@kernel.org Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, khilman@baylibre.com, mka@chromium.org, robh+dt@kernel.org, krzk+dt@kernel.org, matthias.bgg@gmail.com, p.zabel@pengutronix.de, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, james.lo@mediatek.com, fan.chen@mediatek.com, louis.yu@mediatek.com, rex-bc.chen@mediatek.com, abailon@baylibre.com Subject: [PATCH v8.1, 3/7] arm64: dts: mt8192: Add thermal zone Date: Thu, 4 Aug 2022 15:09:08 +0200 Message-Id: <20220804130912.676043-4-bchihi@baylibre.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220804130912.676043-1-bchihi@baylibre.com> References: <20220804130912.676043-1-bchihi@baylibre.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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=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 From: Balsam CHIHI This adds the thermal zone for the mt8192. Signed-off-by: Balsam CHIHI --- arch/arm64/boot/dts/mediatek/mt8192.dtsi | 113 ++++++++++++++++++++++- 1 file changed, 112 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi index cbae5a5ee4a0..3320b5c14ee3 100644 --- a/arch/arm64/boot/dts/mediatek/mt8192.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8192.dtsi @@ -1,6 +1,6 @@ // SPDX-License-Identifier: (GPL-2.0 OR MIT) /* - * Copyright (C) 2020 MediaTek Inc. + * Copyright (C) 2022 MediaTek Inc. * Author: Seiya Wang */ @@ -12,6 +12,7 @@ #include #include #include +#include / { compatible = "mediatek,mt8192"; @@ -599,6 +600,28 @@ spi0: spi@1100a000 { status = "disabled"; }; + lvts_ap: thermal-sensor@1100b000 { + compatible = "mediatek,mt8192-lvts-ap"; + #thermal-sensor-cells = <1>; + reg = <0 0x1100b000 0 0x1000>; + interrupts = ; + clocks = <&infracfg CLK_INFRA_THERM>; + resets = <&infracfg MT8192_INFRA_RST0_THERM_CTRL_SWRST>; + nvmem-cells = <&lvts_e_data1>; + nvmem-cell-names = "lvts_calib_data1"; + }; + + lvts_mcu: thermal-sensor@11278000 { + compatible = "mediatek,mt8192-lvts-mcu"; + #thermal-sensor-cells = <1>; + reg = <0 0x11278000 0 0x1000>; + interrupts = ; + clocks = <&infracfg CLK_INFRA_THERM>; + resets = <&infracfg MT8192_INFRA_RST4_THERM_CTRL_MCU_SWRST>; + nvmem-cells = <&lvts_e_data1>; + nvmem-cell-names = "lvts_calib_data1"; + }; + spi1: spi@11010000 { compatible = "mediatek,mt8192-spi", "mediatek,mt6765-spi"; @@ -1457,4 +1480,92 @@ larb2: larb@1f002000 { power-domains = <&spm MT8192_POWER_DOMAIN_MDP>; }; }; + + thermal_zones: thermal-zones { + cpu-big1-thermal { + polling-delay = <0>; + polling-delay-passive = <0>; + thermal-sensors = <&lvts_mcu 0>; + }; + cpu-big2-thermal { + polling-delay = <0>; + polling-delay-passive = <0>; + thermal-sensors = <&lvts_mcu 1>; + }; + cpu-big3-thermal { + polling-delay = <0>; + polling-delay-passive = <0>; + thermal-sensors = <&lvts_mcu 2>; + }; + cpu-big4-thermal { + polling-delay = <0>; + polling-delay-passive = <0>; + thermal-sensors = <&lvts_mcu 3>; + }; + cpu-little1-thermal { + polling-delay = <0>; + polling-delay-passive = <0>; + thermal-sensors = <&lvts_mcu 4>; + }; + cpu-little2-thermal { + polling-delay = <0>; + polling-delay-passive = <0>; + thermal-sensors = <&lvts_mcu 5>; + }; + cpu-little3-thermal { + polling-delay = <0>; + polling-delay-passive = <0>; + thermal-sensors = <&lvts_mcu 6>; + }; + cpu-little4-thermal { + polling-delay = <0>; + polling-delay-passive = <0>; + thermal-sensors = <&lvts_mcu 7>; + }; + vpu1-thermal { + polling-delay = <0>; + polling-delay-passive = <0>; + thermal-sensors = <&lvts_ap 0>; + }; + vpu2-thermal { + polling-delay = <0>; + polling-delay-passive = <0>; + thermal-sensors = <&lvts_ap 1>; + }; + gpu1-thermal { + polling-delay = <0>; + polling-delay-passive = <0>; + thermal-sensors = <&lvts_ap 2>; + }; + gpu2-thermal { + polling-delay = <0>; + polling-delay-passive = <0>; + thermal-sensors = <&lvts_ap 3>; + }; + vdec-thermal { + polling-delay = <0>; + polling-delay-passive = <0>; + thermal-sensors = <&lvts_ap 4>; + }; + img-thermal { + polling-delay = <0>; + polling-delay-passive = <0>; + thermal-sensors = <&lvts_ap 5>; + }; + infra-thermal { + polling-delay = <0>; + polling-delay-passive = <0>; + thermal-sensors = <&lvts_ap 6>; + }; + cam1-thermal { + polling-delay = <0>; + polling-delay-passive = <0>; + thermal-sensors = <&lvts_ap 7>; + }; + cam2-thermal { + polling-delay = <0>; + polling-delay-passive = <0>; + thermal-sensors = <&lvts_ap 8>; + }; + }; }; -- 2.34.1