Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp7901613rwn; Wed, 14 Sep 2022 06:16:05 -0700 (PDT) X-Google-Smtp-Source: AA6agR4hRjn9/9CnzziHNpFP7hyVvyKDFoujMeb9Hz9C4X2CoP9qSS3qGVyiIKKmwWb2JjnKRNrS X-Received: by 2002:a63:be0f:0:b0:434:2d63:5036 with SMTP id l15-20020a63be0f000000b004342d635036mr31133262pgf.488.1663161365607; Wed, 14 Sep 2022 06:16:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663161365; cv=none; d=google.com; s=arc-20160816; b=LjRNACXP8S+DSk9tURWIh6qJTb/ALtYfQOHAKuaAeHEC+3TZbMXzorkBbWo1U+3gjM 75oXwMBNaLnLpvoqZ9C5VCLm1DgJp36Iqh1lZQ49DC+ctBRRODnKs8B0VrQ4VXIKfxVZ uDsAMo08V1GHxVx0U/zAQR/wyeCORgaKVTfU6HOMtkXbZjhloEMkk4piM6hcoHr8JXnw NE0OFhob764S2CqTfGETbrKddltNnQEk+SD45gu3JokmYQV1XJZwIi4yQC+x8ukX6oI4 HM4vYsllJph3zDnwBSSkuLTIk9asaXBbcosMHhiK9RiyFeRFuwVemoarFs1I4rMz58d4 2gVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=7rGC0YK8UKKg10V7XIhFIonK2lfJ2+8tqa3Tl7iUqbc=; b=Mbg+1Knk1rBWesSJeE+XJt3UTAFmZtQUukvEHsOKdMOMtUGE5w0tpNb1K4nQSQUa0a bRsTCvAEPr2e95mWvNfPD2dGBRz6Oli2l4JRYQX+gH5gTAcIOhKUht7SluCBNaZfTXBR KY0EaN750Tlws3jxk6d+aFfgtqnqn8pXbUtuWtupj5sHC2Hph7hJNzAmaLXzt6xfEpz2 3xW4QT9txMuT9Rs3Nk0Qe0h2MWLM4eUjbNm5yoUtSuG2qND/fovgAqb22K9zrlnhfKMb wcSv/bkC+dJYwbeOVy8cQVC7cCR/QZcebqebVkv9/OUtn0jfnaX3B3TpbvjNN1MDGDfL 3DbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=B8evYpC5; 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 oc12-20020a17090b1c0c00b002024f3f1f8bsi16830921pjb.70.2022.09.14.06.15.52; Wed, 14 Sep 2022 06:16:05 -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=B8evYpC5; 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 S229764AbiINM0d (ORCPT + 99 others); Wed, 14 Sep 2022 08:26:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229553AbiINM00 (ORCPT ); Wed, 14 Sep 2022 08:26:26 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EBCD7DF6F; Wed, 14 Sep 2022 05:26:25 -0700 (PDT) Received: from [192.168.1.100] (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 1F851660201C; Wed, 14 Sep 2022 13:26:23 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1663158384; bh=EOvPaAPQay6+H5/vvnMCA8FXSUgtfRiBJVkGqDS8b+A=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=B8evYpC5rHOn3wXLr1ltYq8EJ/5zjF2RvyMBqF0VMnFwt0Cj37FWOeW33+VTg/oeQ Vvs7390adjB2YYZ4b6U7+xqzI48EolCfCJxJOQMYUp5CCDoVaj+9ddRKD9iYBcJVfZ SB6my2f00Mjz35i4iOrgVGN2OZNHISpukps2pw1iMptIpMvdi6xE8ucwdaQylrIdbh LrTP+2jSTAcjE4L0Ty0nT/pjR0raKAUPTyaIn4apX/dle0G6Cmgeb5sQ3tuV1RRuMz ICRwRuoFeaUMQ4hs2+/yjDBUoFJ3YStsTmeQEOXxGVHaz9ne669YneRBQEHAjvcAaN Bd/iZIY7+F/DA== Message-ID: Date: Wed, 14 Sep 2022 14:26:20 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.0 Subject: Re: [PATCH v9,3/7] arm64: dts: mt8192: Add thermal zones and thermal nodes Content-Language: en-US To: bchihi@baylibre.com, 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 References: <20220817080757.352021-1-bchihi@baylibre.com> <20220817080757.352021-4-bchihi@baylibre.com> From: AngeloGioacchino Del Regno In-Reply-To: <20220817080757.352021-4-bchihi@baylibre.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Il 17/08/22 10:07, bchihi@baylibre.com ha scritto: > From: Balsam CHIHI > > Add thermal zones and thermal nodes for the mt8192. > > Signed-off-by: Balsam CHIHI > --- > arch/arm64/boot/dts/mediatek/mt8192.dtsi | 111 +++++++++++++++++++++++ > 1 file changed, 111 insertions(+) > > diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi > index cbae5a5ee4a0..59ef4da06a70 100644 > --- a/arch/arm64/boot/dts/mediatek/mt8192.dtsi > +++ b/arch/arm64/boot/dts/mediatek/mt8192.dtsi > @@ -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 { Please keep the nodes ordered by reg start. Regards, Angelo > + 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";