Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp495062imn; Fri, 29 Jul 2022 13:33:57 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vEZhrQKLBMZizZvXHsdNOle7ZLoTj80U+aVdRgMOqn/Dv08J5mUdjyB2dmpoJ4ZqfbnbsB X-Received: by 2002:a63:f143:0:b0:41a:5c8a:915c with SMTP id o3-20020a63f143000000b0041a5c8a915cmr4168111pgk.369.1659126836986; Fri, 29 Jul 2022 13:33:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659126836; cv=none; d=google.com; s=arc-20160816; b=CsiUhmeD5Tpv9+UF004dakU9WrA4ydF4Yu9x1FLdTQx7cDyigayBr42WlcNn+VLr/b nRk0kM4FqVW3ANFeBhN5TjrVL3xNKzkPenNWu9JmCzAMuxC3vxWcSX/l/qzr/ZBR50DM xqpYd4esJwMEwgq1bZDYJ6o3/8VP8jP4Pb0vvRpHSL0lsOcIwRrjgLX/Ezmtq2QQTTaa hbrXIIB2QDH5BKjmUxeRnR88rM34/TPfYSgxSJnWxOlubEw9fh+iwtsdtc796XoMK7B2 yXgC/nv2CE2PYFSNXsOq1rYE+rO3713PtdKNjXRzSHZOV/WHeryJpbLs5x0hJ8A2MJtF fGuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=9kR3y35L2jJpF9DeBUmeO1NaqJqCDRAh/3PI0ms/90U=; b=cdAL+1z6qYh4wr/iTgMW1rgUvcqUysAxzS5ZNM/vWVwDl9PkinqmUToiomF5RiGTPm 6/a2z+EZabPg/6StAvcRSqzNIBMJTtAD0Mbm5J7JhJCUY46v3pSdgDQe9BJAX/rx/9yN EAziqL6NGlAON2lYULNj0KBhSk93ZPwo8Iun9fBJciQy1uYg3CD8p82Lz5AlQl/4C8ye tyblsFqtljXnSwLAyi9K0xgzXBprPscmXr3mIShZ++TS55J0L0Zy3O0NsmjSZZFn/TPt O1pvEJykOnxHZ3C+Bhn0u18tr/61a3Vk9KyuLD5VNF3H6igVNUWvDpvZxzLeIGNjnA3M ntxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=ogtnbSm7; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e12-20020a170902b78c00b0016da78aeff7si4874330pls.215.2022.07.29.13.33.40; Fri, 29 Jul 2022 13:33:56 -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=@collabora.com header.s=mail header.b=ogtnbSm7; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239218AbiG2UWw (ORCPT + 99 others); Fri, 29 Jul 2022 16:22:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230499AbiG2UWu (ORCPT ); Fri, 29 Jul 2022 16:22:50 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E55876A4AE; Fri, 29 Jul 2022 13:22:49 -0700 (PDT) Received: from notapiano (pool-98-113-53-228.nycmny.fios.verizon.net [98.113.53.228]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madras.collabora.co.uk (Postfix) with ESMTPSA id CF8EB6601B8B; Fri, 29 Jul 2022 21:22:45 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1659126168; bh=QadOD+6p23Ma82Rr7I+mSjlDaAdqbTHjSZomPmDSVYs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ogtnbSm7jTLj1fN9ggv0MEJ5USyPoemrelAECoe9MYc1x03aU5XSd0BiO5cAOH2bQ zklBeRjA8gdtbRw2GilZp7s6102hm7sF1/LiQUEm1fACtF4hhyQdGeThjinZjSCnXi /OrsfNaxawIpfmaccOS+9Ng6S/hPWdP49nKLHfJimcqflRYE/zy9+6Y7rORnVSaETD uN2NIiyf49DLivkZWfL3EmApg+6cBqDozgH3cZyaQp1UZ8dbfu9D6C3t6zzWOCaxlI 4qrQV8FIF4ZhbPitDfSHyJ7z1sNfbyVqN7ruSbrMZg8/aQA7Nhn2z4zvG+XV3hh5uX fM7MCm7KknUhg== Date: Fri, 29 Jul 2022 16:22:41 -0400 From: =?utf-8?B?TsOtY29sYXMgRi4gUi4gQS4=?= Prado To: Balsam CHIHI Cc: rafael@kernel.org, rui.zhang@intel.com, daniel.lezcano@linaro.org, amitk@kernel.org, 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: Re: [PATCH v8 6/6] arm64: dts: mt8195: Add thermal zone Message-ID: <20220729202241.isw3hjo3jclzxhbl@notapiano> References: <20220726135506.485108-1-bchihi@baylibre.com> <20220726135506.485108-7-bchihi@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220726135506.485108-7-bchihi@baylibre.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 On Tue, Jul 26, 2022 at 03:55:06PM +0200, Balsam CHIHI wrote: > This adds the thermal zone for the mt8195. > > Signed-off-by: Tinghan Shen > Signed-off-by: Ben Tseng > Signed-off-by: Alexandre Bailon > Signed-off-by: Balsam CHIHI > --- > arch/arm64/boot/dts/mediatek/mt8195.dtsi | 115 ++++++++++++++++++++++- > 1 file changed, 114 insertions(+), 1 deletion(-) > > diff --git a/arch/arm64/boot/dts/mediatek/mt8195.dtsi b/arch/arm64/boot/dts/mediatek/mt8195.dtsi > index 4fbf24b5d202..78017224930c 100644 > --- a/arch/arm64/boot/dts/mediatek/mt8195.dtsi > +++ b/arch/arm64/boot/dts/mediatek/mt8195.dtsi > @@ -1,6 +1,6 @@ > // SPDX-License-Identifier: (GPL-2.0 OR MIT) > /* > - * Copyright (c) 2021 MediaTek Inc. > + * Copyright (c) 2022 MediaTek Inc. > * Author: Seiya Wang > */ > > @@ -11,6 +11,9 @@ > #include > #include > #include > +#include > +#include > +#include You're not actually using the mt8195-power and thermal includes. > > / { > compatible = "mediatek,mt8195"; > @@ -810,6 +813,28 @@ spi0: spi@1100a000 { > status = "disabled"; > }; > > + lvtsap: thermal-sensor@1100b000 { Can you name this label lvts_ap, and the one below lvts_mcu, please? Makes it much more readable. > + compatible = "mediatek,mt8195-lvts-ap"; > + #thermal-sensor-cells = <1>; > + reg = <0 0x1100b000 0 0x400>; Don't you need the reg size to be 0x1000 to be able to access THERMINTST in the soc_temp_lvts.c? > + interrupts = ; > + clocks = <&infracfg_ao CLK_INFRA_AO_THERM>; > + resets = <&infracfg_ao MT8195_INFRA_RST0_THERM_CTRL_SWRST>; > + nvmem-cells = <&lvts_efuse_data1 &lvts_efuse_data2>; > + nvmem-cell-names = "lvts_calib_data1", "lvts_calib_data2"; > + }; > + > + lvtsmcu: thermal-sensor@11278000 { > + compatible = "mediatek,mt8195-lvts-mcu"; > + #thermal-sensor-cells = <1>; > + reg = <0 0x11278000 0 0x400>; > + interrupts = ; > + clocks = <&infracfg_ao CLK_INFRA_AO_THERM>; > + resets = <&infracfg_ao MT8195_INFRA_RST4_THERM_CTRL_MCU_SWRST>; > + nvmem-cells = <&lvts_efuse_data1 &lvts_efuse_data2>; > + nvmem-cell-names = "lvts_calib_data1", "lvts_calib_data2"; > + }; > + > spi1: spi@11010000 { > compatible = "mediatek,mt8195-spi", > "mediatek,mt6765-spi"; > @@ -1613,4 +1638,92 @@ vencsys_core1: clock-controller@1b000000 { > #clock-cells = <1>; > }; > }; > + > + thermal_zones: thermal-zones { > + cpu-big1-thermal { > + polling-delay = <0>; /* milliseconds */ > + polling-delay-passive = <0>; /* milliseconds */ Please drop all these '/* milliseconds */' comments. The thermal-zones dt-binding already defines both of these properties as being in milliseconds, so this is just polluting the DT. Thanks, N?colas