Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5994984pxv; Thu, 29 Jul 2021 03:56:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpG/VAqvPyWhBgaehpAj53/JouJVBv7i8hvF3DFsJ1Y8ot/d8lkMj2fPbdHqYTFYQmYZ1/ X-Received: by 2002:a02:c013:: with SMTP id y19mr3994411jai.36.1627556195550; Thu, 29 Jul 2021 03:56:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627556195; cv=none; d=google.com; s=arc-20160816; b=kSi/yRVBN6JFMSapG7K6c6j5o9cTME7i+hD6WUsDUhWq7S4zHyCknWNKpxfKKt12Qu P6M/pUyhEqV1tLZ+LgvtBqECkaQ28+S9cZu9rZ0HYXjte/mXOnqn6ju0mbL2P4NLdCll f3H91wl6nUiTgx+73TbtefxhhR4un3PZY+aqqnv5tidp6bS4JdYMVBceWpXLDkj8soaE sk2FuKOmqU0SXMfGYmbG9HXkYjUARfM53Gg2fijWTG3lS8gVkOWQMqHcnbCoqTDLcbnu tFwWFg2h6Ak+KplfR7L1lnfaEg6pBvU4f9Q3xrLee57EiB86NeVstdcXpZt/qaq3YVgh PJIA== 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=A0+vnStwHHWcv0kEG4jL+l5YMwp+7TPgb/XyNRNNEM8=; b=Krish4S5ai/onw5G4gUOWS81pAztkeYnExethbqODY35KJJfDNx/SqFX4+WgS0mcas I3Xtmu955lYY2Sjngkjpep/kJfgyZCOAbYc4G0oIO0t4K2wvaF2RYjPX4dsz+Swd7WD+ EH+tET1yu6xhhmkrNPDMln4K+ZHsv+u/PE9EU2zxmwlYD3VD5r/0GKKynL2s6MdH82Jv yGGiF/w0L0YXrFeoeXeA4BeNQ1vHlUuug80B8GKk7YYMv+g2lPh3P532rEvWw6brZN5y bASIwxLee1ewPfvcTEI1LjF9jUjnaWEUiAsh0v5WxMMwfTXHSBSS+OzhvkJLVy6Z1yi/ cDeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CvQK0lmU; 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 g17si2864277jaq.116.2021.07.29.03.56.23; Thu, 29 Jul 2021 03:56:35 -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=CvQK0lmU; 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 S232135AbhG2Ky3 (ORCPT + 99 others); Thu, 29 Jul 2021 06:54:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231815AbhG2Ky2 (ORCPT ); Thu, 29 Jul 2021 06:54:28 -0400 Received: from mail-qt1-x833.google.com (mail-qt1-x833.google.com [IPv6:2607:f8b0:4864:20::833]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00CD7C0613D3 for ; Thu, 29 Jul 2021 03:54:25 -0700 (PDT) Received: by mail-qt1-x833.google.com with SMTP id d2so3601734qto.6 for ; Thu, 29 Jul 2021 03:54:24 -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=A0+vnStwHHWcv0kEG4jL+l5YMwp+7TPgb/XyNRNNEM8=; b=CvQK0lmU1Cgn3fBwhUY4Pb/3oGnP6zXUm6Nt+2u1WR3WPnGboq4LkpWkX5c8MNbLDF JU7Os0PunpXJa/OIfOo4/CqRf+DkTHAp74/fynC9qjy8s4GTaVvF7V7fW7IZ6gwD5sJv hFYdF+9mkl+z2pQ56Nk4KqSqvWEeDGkY/PYmhFJekM2qyjnYwEfmfRIWbvOJwwJlPg1h zQ3FD4mpznFc+Um8TRYFJQ/IZiIyyuVozChoV5/4vqDiw+nS3y4szK2t5j8vSDe0a17U YXpkJ0zGrMmFIg2l6Y5bAy3uoq45/Um1Hd3gDdUY//XxGgTqxVbqbnrNTwwFfRpyvk4+ AfUw== 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=A0+vnStwHHWcv0kEG4jL+l5YMwp+7TPgb/XyNRNNEM8=; b=N7GXc/FMXkvFFbANe/jwtAMXfpDHGpEM8GeDlapM5JeaLGvTo5OFugL9fiHrxzrEo7 74XremrBVP2Hw3gzqLfqoyASds10wq0VeldZnXY3THsxeMMCuoJfWPIkBSoQdx7txtUQ bpAkfFS81B0X+WUC5znw/pDRxkrubVSZqLuWuZY9q4gDCqL1dQR3YwseXISMBHhIw44D 993uYj3RKOXJZ7jvTWjBqyKwr2ioKalyhFKzwj/punmqcfRlqA0kXbxLSXs/nSkucUwK 27U4hhwWEvvnWYzEAly4JdBiNNPSAyWEm8he+hSy8XBEDDMVjX3vfDueW5MTsjaZIXh1 mk9Q== X-Gm-Message-State: AOAM533aEIWsmVGpc+TaM/N7oyL8C9FUuoJQMf+KqrbrohmnKl1m3xgu dMqjPC3skr30d78vNl3II34543juht2CZ/vq X-Received: by 2002:ac8:724c:: with SMTP id l12mr3667029qtp.372.1627556063856; Thu, 29 Jul 2021 03:54:23 -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 a16sm1450021qkn.107.2021.07.29.03.54.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 29 Jul 2021 03:54:23 -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> <860f1120-c5a4-f531-3ea9-aa90c6b063dc@linaro.org> <2318377c-959a-a42b-81b5-44e2629570d5@somainline.org> From: Thara Gopinath Message-ID: Date: Thu, 29 Jul 2021 06:54:22 -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: <2318377c-959a-a42b-81b5-44e2629570d5@somainline.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/29/21 6:52 AM, Konrad Dybcio wrote: > > On 29.07.2021 12:50, Thara Gopinath wrote: >> 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. > > Hi, > > if I recall correctly, they all give output but not all of the mappings were documented in the downstream sources and we have no documentation whatsoever :( Right. In that case, why not change #qcom,sensors to 9 and add rest of the sensors if and when needed ? > > > Konrad > -- Warm Regards Thara (She/Her/Hers)