Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2497461imm; Thu, 9 Aug 2018 14:06:34 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwrRaDjScdggUDxbX6mtgu4Z8TJ/aabZ+Zx1nR46Uusj4bTR3bW7CNfUl52cMhDPbpKgurH X-Received: by 2002:a63:65c2:: with SMTP id z185-v6mr3578576pgb.276.1533848794013; Thu, 09 Aug 2018 14:06:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533848793; cv=none; d=google.com; s=arc-20160816; b=h+WMvknLt+VOah1RRM22K4Nr83cmItIGhmAFhuLlXzC+S2DZ2SfZ4LwtlOOAn1y47u To8g7LjOlECV8JVnmK1eoYvhzlyi+o2IkduAWkhpLVxRzd2Ntz9V3ow2XkUVJr1XeZUF x7GYhp0zpdCnKDXsOX4Chzwlk01EVK9vlKpQUOStbMYDJ/dHX7bpjy+1s2hAT423LGeA 7JafT9XDfQZpOtSA9UsI6/olhec4iyPKV8Ea6eykSQwnQMEdrUuQVfqvoJXcmmX+RBkJ SU3AMAx7JNRA2jts38PY+MBYgAARiXp1RjnA6HNog4ivPSzbpDbWYNss0ArwXS6p5DTv PcJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=23xEfH2+Vy6XMyTATpfgVL5qYWG+2hXTZ13Q5FEZdqk=; b=Cb5wmulDyXP2MXD9xXq6ciASykrxos8jvJmAPZaxvkRhqJ46Om5BD5CxMFzJflynQa LpP/iVckRot+h000Zb4DpkzMRr0S2lU0AqRtMB4rjSKch9V8aTebrAE8pu6PfcbATPH0 YnTskGnxqaLgrz2VZRQCFKnpzW1cfQjNRmjTUJ4Ztx0oUeprg3sGywHrMn6uFOzSssP/ nb2xpl6P6RcOPdTxM6/fW4RVJFWyUDxKxCtPAofjlwb7snS9LW8Ky/M/xv13BBkiPkEF rGcUD7JARL9PPBceBVrv5TmJ2IJkUKeIBKBZkj5c+5pdJCGk4oQ6CnvMM/9ZpQJNSzLQ ZA3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=jyFExdDf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a18-v6si7279328pfn.317.2018.08.09.14.06.19; Thu, 09 Aug 2018 14:06:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=jyFExdDf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727318AbeHIXbt (ORCPT + 99 others); Thu, 9 Aug 2018 19:31:49 -0400 Received: from mail-pl0-f68.google.com ([209.85.160.68]:32861 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727124AbeHIXbt (ORCPT ); Thu, 9 Aug 2018 19:31:49 -0400 Received: by mail-pl0-f68.google.com with SMTP id b90-v6so3067721plb.0 for ; Thu, 09 Aug 2018 14:05:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=23xEfH2+Vy6XMyTATpfgVL5qYWG+2hXTZ13Q5FEZdqk=; b=jyFExdDfcTpeGk/zk1nqRNBpWfCgzp2QpWZflW8sc9Xg5uRjMnHZ8oDpGc9llSq2YL sKh9rYyxB1m6OPNvUD1aDV6ypnD9pqmignp3EGv2CdDdrgUOlFjkSsRxgk+TnrmI/iux UfOU+o+BRQRNAkUZfgwP/Q20fGi5NfV4ATHqg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=23xEfH2+Vy6XMyTATpfgVL5qYWG+2hXTZ13Q5FEZdqk=; b=DeX8W0wa+C51aEBHohEMnxEw+Un0LGif7fZzLIZMZKKjgGiTZyBw2OrKd6J14D3eEa huRyWFgbfe9WLHun6pigGx8U4KsAEA4Y8W9CbtNmWI/D8t0ioKPZntj/8p6ngXyQSEJW yyxgdWWKjFH81xntI5jPeY8maRuhjhWlkMI0aKe1v1DZn5Tp07Wd2jCO6IrbEeorE9/r Ggak5O/y0hKBkKyHLOlwwybuVQQZ4OMyj36ZaWXCFweVE2hiO5ZdwkP4ea22hZFjVLXr YK8hBPh+OKg6q9tG3+oQ884/X5ORov03XH+6go0ADzR2KYvVnKCS8NIDT1hxGJaa7m2s 31Wg== X-Gm-Message-State: AOUpUlEP2CI8hh02fGcz3ARJPP10SyZLM4M3u409gTPdgcmkhppFCkoh BpPuGyhS0LRJKYdQa5xLYbNLBA== X-Received: by 2002:a17:902:6b44:: with SMTP id g4-v6mr3448270plt.50.1533848712987; Thu, 09 Aug 2018 14:05:12 -0700 (PDT) Received: from localhost ([2620:15c:202:1:b6af:f85:ed6c:ac6a]) by smtp.gmail.com with ESMTPSA id n83-v6sm20661632pfk.19.2018.08.09.14.05.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 09 Aug 2018 14:05:12 -0700 (PDT) Date: Thu, 9 Aug 2018 14:05:11 -0700 From: Matthias Kaehlcke To: Amit Kucheria Cc: linux-kernel@vger.kernel.org, rnayak@codeaurora.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, smohanad@codeaurora.org, andy.gross@linaro.org, dianders@chromium.org, David Brown , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , linux-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v1 09/10] arm64: dts: qcom: Add reg-names for all tsens nodes Message-ID: <20180809210511.GQ160295@google.com> References: <188c07144d98bfbe2bbbb7d1f2941acdcf4e6682.1533815718.git.amit.kucheria@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <188c07144d98bfbe2bbbb7d1f2941acdcf4e6682.1533815718.git.amit.kucheria@linaro.org> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 09, 2018 at 06:02:41PM +0530, Amit Kucheria wrote: > Instead of showing up as thermal-sensor@, the nodes will show up as > tsens0_tm, tsen1_tm, tsens1_srot, etc. in /proc/iomem making it easier to > read. > > IOW, > > 0c222000-0c2221fe : thermal-sensor@c263000 > 0c223000-0c2231fe : thermal-sensor@c265000 > 0c263000-0c2631fe : thermal-sensor@c263000 > 0c265000-0c2651fe : thermal-sensor@c265000 > > becomes > > 0c222000-0c2221fe : tsens0_srot > 0c223000-0c2231fe : tsens1_srot > 0c263000-0c2631fe : tsens0_tm > 0c265000-0c2651fe : tsens1_tm > > Signed-off-by: Amit Kucheria > --- > arch/arm/boot/dts/qcom-msm8974.dtsi | 1 + > arch/arm64/boot/dts/qcom/msm8916.dtsi | 1 + > arch/arm64/boot/dts/qcom/msm8996.dtsi | 2 ++ > arch/arm64/boot/dts/qcom/sdm845.dtsi | 2 ++ > 4 files changed, 6 insertions(+) > > diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi > index 3c4b81c29798..64c9f81ddd90 100644 > --- a/arch/arm/boot/dts/qcom-msm8974.dtsi > +++ b/arch/arm/boot/dts/qcom-msm8974.dtsi > @@ -431,6 +431,7 @@ > compatible = "qcom,msm8974-tsens"; > reg = <0xfc4a9000 0x1000>, /* TM */ > <0xfc4a8000 0x1000>; /* SROT */ > + reg-names = "tsens_tm", "tsens_srot"; > nvmem-cells = <&tsens_calib>, <&tsens_backup>; > nvmem-cell-names = "calib", "calib_backup"; > #qcom,sensors = <11>; > diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi > index abf84df5a7bc..4e6a5e462a91 100644 > --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi > +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi > @@ -778,6 +778,7 @@ > compatible = "qcom,msm8916-tsens"; > reg = <0x4a9000 0x1000>, /* TM */ > <0x4a8000 0x1000>; /* SROT */ > + reg-names = "tsens_tm", "tsens_srot"; > nvmem-cells = <&tsens_caldata>, <&tsens_calsel>; > nvmem-cell-names = "calib", "calib_sel"; > #qcom,sensors = <5>; > diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi > index c2dca3a30091..7e5982daa2ed 100644 > --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi > +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi > @@ -969,6 +969,7 @@ > compatible = "qcom,msm8996-tsens"; > reg = <0x4a9000 0x1000>, /* TM */ > <0x4a8000 0x1000>; /* SROT */ > + reg-names = "tsens0_tm", "tsens0_srot"; > #qcom,sensors = <13>; > #thermal-sensor-cells = <1>; > }; > @@ -977,6 +978,7 @@ > compatible = "qcom,msm8996-tsens"; > reg = <0x4ad000 0x1000>, /* TM */ > <0x4ac000 0x1000>; /* SROT */ > + reg-names = "tsens1_tm", "tsens1_srot"; > #qcom,sensors = <8>; > #thermal-sensor-cells = <1>; > }; > diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi > index f722785df26b..efd5d7abd1cd 100644 > --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi > +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi > @@ -1531,6 +1531,7 @@ > compatible = "qcom,sdm845-tsens", "qcom,tsens-v2"; > reg = <0xc263000 0x1ff>, /* TM */ > <0xc222000 0x1ff>; /* SROT */ > + reg-names = "tsens0_tm", "tsens0_srot"; > #qcom,sensors = <13>; > #thermal-sensor-cells = <1>; > }; > @@ -1539,6 +1540,7 @@ > compatible = "qcom,sdm845-tsens", "qcom,tsens-v2"; > reg = <0xc265000 0x1ff>, /* TM */ > <0xc223000 0x1ff>; /* SROT */ > + reg-names = "tsens1_tm", "tsens1_srot"; > #qcom,sensors = <8>; > #thermal-sensor-cells = <1>; > }; Reviewed-by: Matthias Kaehlcke