Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp505722ybt; Wed, 24 Jun 2020 04:45:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMO7rjraXpbxefWOu19BazuPD406V3zKStpZechXR9FVJ4SWcADhs5ND2seEqCXRuV1Sxn X-Received: by 2002:a50:d80f:: with SMTP id o15mr8606918edj.156.1592999150573; Wed, 24 Jun 2020 04:45:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592999150; cv=none; d=google.com; s=arc-20160816; b=clLZEiBWwQu57No43mHBoPho9ZKZpbA4pCJQdf3rfGfFAe439QzBAUwAdWuT6IwVZw E+A7QA5u3720GmvQeF6aeZABhTKqu1vA88+8QmplSjS0mLJ2++MfEOK6t8ab5Z4f6AUl TG4xoolonF9wtfOXkhuyZy9hpS2pTRPZizl58YmVq3ihJnhCQ1Aq/JC/07+IVqSnaPcG ZuOAmKJbgTnLhbjjuqZVoFsUNUFt0u2ppz7qZzjc8DSpLZkoFRgACoRoHqeUeTDqlUxZ 2AEBjdbvCcGfvMMyE9EC5yym+EfRW9n/8Rgs/YuoSsMVPa376vUgKmIkWYVBLQ4fuOSP EmVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=16YY60PN6u62CsdqXTLtpXufTnOGYMQ6hrz0Z45FFTE=; b=0fw7dKsDWqqjmJ+fd2oUqyPVqP0c1O3//m4YoUai6S6RqD+IxtYlKC7dIy8lTWSerD TCWKKe233OEan8TARG7sHsO7UpEuxagwu+5KwqUZeFwyMFVFqfSDu311YXUvlN68S3tc jrRS7rOeCAJAeSKDEwK2DpS51nZQh6UtRYYL3UhvnRjqiwYsyapdIDvHuonDdY0H/a1/ 22gEmO6cwjMkoyyVGk+OrXfM4Pox1Vliadc+qliGbcrS8K4YwQXpbFRs13KB/0IlP780 F//BfqQ/2EKsXHqVrvvecT/977+LVlTq1TXT4AcQXW+RQaUnfla9Qcre9zOkE9ElXL0J Zl2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="qrkILIM/"; 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 hh5si12805869ejb.264.2020.06.24.04.45.25; Wed, 24 Jun 2020 04:45:50 -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="qrkILIM/"; 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 S2390669AbgFXLoU (ORCPT + 99 others); Wed, 24 Jun 2020 07:44:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390599AbgFXLoU (ORCPT ); Wed, 24 Jun 2020 07:44:20 -0400 Received: from mail-vs1-xe42.google.com (mail-vs1-xe42.google.com [IPv6:2607:f8b0:4864:20::e42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE1F4C0613ED for ; Wed, 24 Jun 2020 04:44:19 -0700 (PDT) Received: by mail-vs1-xe42.google.com with SMTP id r5so1180305vso.11 for ; Wed, 24 Jun 2020 04:44:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=16YY60PN6u62CsdqXTLtpXufTnOGYMQ6hrz0Z45FFTE=; b=qrkILIM/s15IymScgPDkRT1VNzSP3DtSXREEISXmBPELBhZGmSqntU6JBRWu3sHJV2 fToYdChv2KKFGXEnrMeL89QCU6jJEtDxA0Gt7gZi/EnUZqjzEbnmxkZ0oZ0HbB0+JeHw WJ2FxT3ToAFsUdr0vBXqLoRihW0XMuGwLOO9Fc11lM6dL6BJJ+xeNRfpJsMokDdu990b 0y0QtWK+mkLZIvYZ26xJhJlObd2NgjTOto02VWkKgel4YI6f87qhR5nSu7avR5ihmNN/ 73YFZspRgx0gdTYKjYwYIiC6wRRzPt0UDPy0+r2HrxjgM2OThCIvg8sWNqxr645btU2+ 0z0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=16YY60PN6u62CsdqXTLtpXufTnOGYMQ6hrz0Z45FFTE=; b=Sj4QcwX6Bio91yhssHWWe2VwmxMsqI2UnKdeFHGpYh/y1FCKXiPxJEi2IV3BkHpNnB uHqol1JLcn53e8wBpjRDDPHHW2R3HsNvcmSZqjF6KCC/bRWB5FQmzycoUrcO+gL+gN8L 8tqS4cuYcb4uADmh0ICZCHYMijBCBHAoFDGJGOFbRigCI2+LpGdwSqf4Apmfbr3Alv0M JSL5Dr3IYgiE6VzXmnTbAdzNqxsEJpFUk+6iAVFX3FYOd9aSqy0rWveCl4gS7rVm3GqA LXw/va3vY77Nct6q95bjXTLATdEb7bIcXtcAoB248YCKd4jabH+XyacS/W1gs1qvFk4f 785Q== X-Gm-Message-State: AOAM530c6KocpaWk9ze0HaKf40bNmmJ3QcqWxNKbRmhpg5Qir8rohOSe WVlsqmQkLb2b+qpETvx7Noqis5lYZcjtsQ29h4A35WR7icQ= X-Received: by 2002:a67:885:: with SMTP id 127mr23594427vsi.182.1592999058930; Wed, 24 Jun 2020 04:44:18 -0700 (PDT) MIME-Version: 1.0 References: <20200623180832.254163-1-konradybcio@gmail.com> <20200623180832.254163-4-konradybcio@gmail.com> In-Reply-To: <20200623180832.254163-4-konradybcio@gmail.com> From: Amit Kucheria Date: Wed, 24 Jun 2020 17:14:08 +0530 Message-ID: Subject: Re: [PATCH 3/8] arm64: dts: qcom: sdm630: Add tsens node To: Konrad Dybcio Cc: skrzynka@konradybcio.pl, Andy Gross , Bjorn Andersson , Rob Herring , Zhang Rui , Daniel Lezcano , Rajendra Nayak , linux-arm-msm , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , LKML , Linux PM list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 23, 2020 at 11:39 PM Konrad Dybcio wrote: > > Enable tsens on this SoC using tsens-v2 driver. > > 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 d7be931b42d2..d89d5acd6e2a 100644 > --- a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml > +++ b/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml > @@ -39,6 +39,7 @@ properties: > - qcom,msm8996-tsens > - qcom,msm8998-tsens > - qcom,sc7180-tsens > + - qcom,sdm630-tsens > - qcom,sdm845-tsens > - const: qcom,tsens-v2 > > diff --git a/arch/arm64/boot/dts/qcom/sdm630.dtsi b/arch/arm64/boot/dts/qcom/sdm630.dtsi > index ea85f28032d2..92bf4ae6a590 100644 > --- a/arch/arm64/boot/dts/qcom/sdm630.dtsi > +++ b/arch/arm64/boot/dts/qcom/sdm630.dtsi > @@ -566,6 +566,17 @@ anoc2_smmu: iommu@16c0000 { > ; > }; > > + tsens: thermal-sensor@10ae000 { > + compatible = "qcom,sdm630-tsens", "qcom,tsens-v2"; > + reg = <0x010ae000 0x1000>, /* TM */ > + <0x010ad000 0x1000>; /* SROT */ > + #qcom,sensors = <12>; > + interrupts = , > + ; > + interrupt-names = "uplow", "critical"; > + #thermal-sensor-cells = <1>; > + }; > + There should be 2 tsens controllers on this platform, the first at 0x010AA000, the other at 0x010AD000. > tcsr_mutex_regs: syscon@1f40000 { > compatible = "syscon"; > reg = <0x01f40000 0x20000>; > -- > 2.27.0 >