Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1936091imm; Mon, 3 Sep 2018 13:31:39 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZNQ+GTRM2hG0GK3W4GyfwuHGiL8xI9QanUcwBkEuawJDOm8eKtfs4460xcz8eozqcN9wPp X-Received: by 2002:a62:20d8:: with SMTP id m85-v6mr31179193pfj.74.1536006699577; Mon, 03 Sep 2018 13:31:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536006699; cv=none; d=google.com; s=arc-20160816; b=W4QIMe2tl1KcbaYS4xx9Il8PczdO+o8LMmnvX9b02rr1C91PvdN9jYSC8LZrogJBV3 K9rH6W+xgc/wpnOf87LX7037MRZrel+AbPCVX+lCn1InvhFRENYzImSZFd1HdQVqz4aa TNSNV8+AOKJg9McJGwiKu4CVolm1vVryqu+ZbxVZrP7wFrhvQK9LxK29k6wZW+8u1cZN u2YRpu8vCOsMemK5bJN1MrfDrZQfy6wsfb2aeiAVdJg7jWZPCM6cU/hAsjlQ0eeM5+oZ e5mCSivDXv5fAaeW7fLxPTagaBtfLYPq9Y4Kk8m3RglHwCNoFdRQ7NdNZtUMw8GCcc3B 9Cag== 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=lA5qyTW/kXw5kzacK9lme9LtGVB0aSyWMV/8Zpl/HXc=; b=UVR6Va4YovmRp5pkldHoISi0OH0h4vuhs+JjtrRjQYkbtAeCerbk0YRrIdHabjqS8S U1evtzO/HBmlsyAcFz9vEacCxpR8tzvwbOOmlr7di0nrj1YHthNlGh61j1ZLurp0xcOa Z4fUH27s8O5GCYmtjz2ntF+bSMDS/qBif3yylR4ZxMmGJbhu1ETqLZE6r03wb5CMVXrG ZnLE7+CuJdHThzEhjOaDRv7DfesqX1sbEfEVHoLgcEg9/JiEE+QHshUuHpOVPVzbvqzO fGHUvwKTbj2RC3Bs32AfIbWYARA477EnR2uKbFsj3tM1RyO8LnB3FTZfLoNuki8Bkexc CzIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CIwAZmsi; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k6-v6si1257101pgq.503.2018.09.03.13.31.24; Mon, 03 Sep 2018 13:31:39 -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=@linaro.org header.s=google header.b=CIwAZmsi; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727735AbeIDAwD (ORCPT + 99 others); Mon, 3 Sep 2018 20:52:03 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:36666 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727612AbeIDAwD (ORCPT ); Mon, 3 Sep 2018 20:52:03 -0400 Received: by mail-pf1-f193.google.com with SMTP id b11-v6so596617pfo.3 for ; Mon, 03 Sep 2018 13:30:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=lA5qyTW/kXw5kzacK9lme9LtGVB0aSyWMV/8Zpl/HXc=; b=CIwAZmsijXKrQcdIvXMM+st4MJ4CkTvig+mPMZ2qFdHvFQhM5RuM5voASn6XFCKmy4 G5ELofdT6zWDesLX3Yd1cv1URXOmK2gppvOqN9/skH4BIXSKW6rStY2wRqk1tSjwVemK uwzxLHJMdU6yC5bPr6gxQ0I4yOuVaOfyR37YU= 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=lA5qyTW/kXw5kzacK9lme9LtGVB0aSyWMV/8Zpl/HXc=; b=BbGWt9mKZAxIGNavr7vtuyBIOI8nRSJT9o0Je1NdoSGt6OqyM53z+2vhO1G4GFc/qg xSAnzv0pFbPSvuPlX8oDt243j5kGdkGvXWi2iYq0H+wK/jSHs1Cv05K4Akadgf6ziiCD zXVlda7ZnOV62weAs2pdzlz87OnDpmzhDBrNgm2Fue7ev9vMs9THUo0Fxvw61eppYaPd DjGMLy4rGPr++Rk2Gr+3W7OxokxrXRBTlCAHocjRt14fwwJKoNOfpC/0ceZVeMmqrHSV kj5IyXsWh1sX9dwjHRs5NTI2PE+BqyyrIf4lfVmm9CtogcCxas5MyvjtVlESVagfGyjv TWJA== X-Gm-Message-State: APzg51AT/Ww6l8ElQtKQi6fuILz+wR+t/fUB3/paV32x4W+yh+1pkzJY 17ZR7mc1qJ1/t6t5C3+wieQJsQ== X-Received: by 2002:a63:ed4f:: with SMTP id m15-v6mr27853388pgk.147.1536006612780; Mon, 03 Sep 2018 13:30:12 -0700 (PDT) Received: from tuxbook-pro (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id z63-v6sm25844586pgd.69.2018.09.03.13.30.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 03 Sep 2018 13:30:12 -0700 (PDT) Date: Mon, 3 Sep 2018 13:34:05 -0700 From: Bjorn Andersson To: Amit Kucheria Cc: linux-kernel@vger.kernel.org, rnayak@codeaurora.org, linux-arm-msm@vger.kernel.org, edubezval@gmail.com, smohanad@codeaurora.org, andy.gross@linaro.org, dianders@chromium.org, mka@chromium.org, David Brown , Rob Herring , Mark Rutland , linux-soc@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v2 10/11] arm64: dts: qcom: Add reg-names for all tsens nodes Message-ID: <20180903203405.GT3456@tuxbook-pro> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 28 Aug 06:38 PDT 2018, 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 > Reviewed-by: Matthias Kaehlcke > --- > 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"; While the iomem output seems more convenient this way, these register names are a contract between the DT binding and the particular tsens instance. As such this is a good idea, but with the names should not include the instance information. They should be "tm", "srot". > nvmem-cells = <&tsens_calib>, <&tsens_backup>; > nvmem-cell-names = "calib", "calib_backup"; > #qcom,sensors = <11>; [..] > diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi > index 0c9a2aa6a1b5..f1a36d6829cf 100644 > --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi > +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi > @@ -966,6 +966,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>; > }; > @@ -974,6 +975,7 @@ > compatible = "qcom,sdm845-tsens", "qcom,tsens-v2"; > reg = <0xc265000 0x1ff>, /* TM */ > <0xc223000 0x1ff>; /* SROT */ > + reg-names = "tsens1_tm", "tsens1_srot"; And I do recognize that in this case iomem won't show which one is tsens0 and which is tsens1... As with previous patches, please split arm and arm64 in separate patches. Regards, Bjorn