Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5992756pxv; Thu, 29 Jul 2021 03:52:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJww3M2TSHvOADcQREftKSzQFxsBad5YRm2CUEZPtRTSWfVkDzRKyhxvFmLEh/3UjPy0u8+B X-Received: by 2002:a02:7093:: with SMTP id f141mr3930003jac.24.1627555928286; Thu, 29 Jul 2021 03:52:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627555928; cv=none; d=google.com; s=arc-20160816; b=HsEC19tikpvM6YTcdS2sA43mWjEaWzLjdwHGkeaqf/2qXN0ZIfyhdXYGZSEaHD1Gh8 baAf4t7CYSIqilNJh9QyEuo/qNAZVuPK7Grnt5twt0UTSeYGLMsUWv33ZtfLeCV+4H/2 oY7tT4J0bCuYym6GefT2FyM60Vwx924WtJzh+XFzLYZEmhR12pYcsVZhRN5vs7bVt3I6 0f9wVwjy7wwsKX9BBFmMH9Orbz4I6752gThQWCabLetOg+DwSp20Yk+nK1q23pxZ9VxC KgQwINIsgpuwUEe5kysm4Vz9bSZgUNCuJGkZ9BPIjnlJmwvxBjwIsX9rz0QKOPqd3Ks0 z8qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=7LDSqJbg5uCatZHHPu87WA9Bh6dYYJKdoQ4UcOW9Nqk=; b=a0ABjgWzqstQq94eNlwH703OV6rF0KQsViCIWzVy6Y/BldS5nzoGh9NeHe5ot6oPhf f+7+wItXs7SMrGVfO21r/YmSKPB9Tb+ZYHwdwiIxJcwQEjZojaeZerG7etabxL3wLQGE 01NtdV761eeQzPx58urO+8tSvAV4UvwkIyljXIjh2/L1WHj+qOxEfnzlj1PF3Wer5fJz 636SSD4+YPiLUWRz3aTKkSRHBk8xu1irRfsbTqzq2QGlY9f8yx/MrUA3DjcDoDJuVv+8 9gV4tjcBROKBsHx7uj6/XqEuWtjtglPbHPkpbepyac6njwC+9DxpJF0wcenramURQKUL fZMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="R+6Utq/m"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p8si3372693ilc.31.2021.07.29.03.51.56; Thu, 29 Jul 2021 03:52:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="R+6Utq/m"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232135AbhG2KvA (ORCPT + 99 others); Thu, 29 Jul 2021 06:51:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234156AbhG2Ku6 (ORCPT ); Thu, 29 Jul 2021 06:50:58 -0400 Received: from mail-qv1-xf2c.google.com (mail-qv1-xf2c.google.com [IPv6:2607:f8b0:4864:20::f2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC688C0613D3 for ; Thu, 29 Jul 2021 03:50:54 -0700 (PDT) Received: by mail-qv1-xf2c.google.com with SMTP id s11so3139368qvz.7 for ; Thu, 29 Jul 2021 03:50:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=7LDSqJbg5uCatZHHPu87WA9Bh6dYYJKdoQ4UcOW9Nqk=; b=R+6Utq/mypO/2BTESax//iPcjehFNB85vYbB++C51eQcimGRAY1islhP1BkqB4EO6f eD1GDVj7bSuVkbDfpXdRLtnvnyjaqxTal+EM+ROj+JJzMV531IrZCIrWLXWK7q52Va8S QMxIeu+c01guO+Dyygq2Obc4YFHokMC7XAarXF/dc5BJ1rhFbX4nTD2wpekkOWp6HaTy r+gCjeMzIf3XVBnbWPcCBpibBJmKHUUumHJ+eIN0A5JttMhW6SS2z2Ipo0dWJd8+2ilc hQtG8NaIMqL2frteNVLJEavYWuB6N3t3/R0k55rZKTXK+NM0vysud8OMLaa8GlnOuidt sZBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=7LDSqJbg5uCatZHHPu87WA9Bh6dYYJKdoQ4UcOW9Nqk=; b=KbwN9Y34cahgSVU9YJBKSAJFcSHoel1Ei+5RIGhZ8J6jyXNR4nTQ9PYMaeaeF31TPY VNsH26MGZNfBFRplqPcVbwjbaHFqJT3NQcjc5kVm3e11TGKfoZx/ffn0xOMzyNafc5vJ cmKUzNYtKnWeFEUV79f2VMTpufNo+ABg8d6n0B6UcX7LXtAUi/d8iGTPHr/QhTU2F+Yd xvOs2k1ENv2t8isbldgCejAnXenh5MMpPfqndgY07GWDlf/eQstSLcEmNogPTGMM6ubI kQyVFCUUIA/PSsVDmtDr27FoGaPsYnX+EsDmuIAyvwwWQkfrGhZa5CRgBXn/UEXmuWYF j9Xg== X-Gm-Message-State: AOAM530ZCWvg/8NsX8sjkLrpzWn6KILfyUf6+rj9B+MgkjCWJhVUWwJM CEH8ASqovRnhyPGZyG1wcnqgUdH/rMAQtEVb X-Received: by 2002:a0c:e087:: with SMTP id l7mr4591930qvk.23.1627555853690; Thu, 29 Jul 2021 03:50:53 -0700 (PDT) Received: from [192.168.1.93] (pool-71-163-245-5.washdc.fios.verizon.net. [71.163.245.5]) by smtp.gmail.com with ESMTPSA id 188sm1515483qkj.48.2021.07.29.03.50.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 29 Jul 2021 03:50:52 -0700 (PDT) Subject: Re: [PATCH 14/39] arm64: dts: qcom: sdm630: Add TSENS node To: Konrad Dybcio , ~postmarketos/upstreaming@lists.sr.ht Cc: martin.botka@somainline.org, angelogioacchino.delregno@somainline.org, marijn.suijten@somainline.org, jamipkettunen@somainline.org, Andy Gross , Bjorn Andersson , Amit Kucheria , Zhang Rui , Daniel Lezcano , Rob Herring , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210728222542.54269-1-konrad.dybcio@somainline.org> <20210728222542.54269-15-konrad.dybcio@somainline.org> From: Thara Gopinath Message-ID: <860f1120-c5a4-f531-3ea9-aa90c6b063dc@linaro.org> Date: Thu, 29 Jul 2021 06:50:52 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210728222542.54269-15-konrad.dybcio@somainline.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Konrad, On 7/28/21 6:25 PM, Konrad Dybcio wrote: > This will enable temperature reporting for various SoC > components. > > Signed-off-by: AngeloGioacchino Del Regno > Signed-off-by: Konrad Dybcio > --- > .../devicetree/bindings/thermal/qcom-tsens.yaml | 1 + > arch/arm64/boot/dts/qcom/sdm630.dtsi | 11 +++++++++++ > 2 files changed, 12 insertions(+) > > diff --git a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml b/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml > index 4a2eaf28e3fd..d3b9e9b600a2 100644 > --- a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml > +++ b/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml > @@ -48,6 +48,7 @@ properties: > - qcom,sc7180-tsens > - qcom,sc7280-tsens > - qcom,sc8180x-tsens > + - qcom,sdm630-tsens > - qcom,sdm845-tsens > - qcom,sm8150-tsens > - qcom,sm8250-tsens > diff --git a/arch/arm64/boot/dts/qcom/sdm630.dtsi b/arch/arm64/boot/dts/qcom/sdm630.dtsi > index 1e54828817d5..7e9c80e35fba 100644 > --- a/arch/arm64/boot/dts/qcom/sdm630.dtsi > +++ b/arch/arm64/boot/dts/qcom/sdm630.dtsi > @@ -627,6 +627,17 @@ mnoc: interconnect@1745000 { > <&mmcc AHB_CLK_SRC>; > }; > > + tsens: thermal-sensor@10ae000 { > + compatible = "qcom,sdm630-tsens", "qcom,tsens-v2"; > + reg = <0x010ae000 0x1000>, /* TM */ > + <0x010ad000 0x1000>; /* SROT */ > + #qcom,sensors = <12>; Are all 12 sensors used ? I see that in a later patch "arm64: dts: qcom: sdm630: Add thermal-zones configuration" only 9 are used. > + interrupts = , > + ; > + interrupt-names = "uplow", "critical"; > + #thermal-sensor-cells = <1>; > + }; > + > tcsr_mutex_regs: syscon@1f40000 { > compatible = "syscon"; > reg = <0x01f40000 0x20000>; > -- Warm Regards Thara (She/Her/Hers)