From patchwork Tue Aug 28 13:38:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 145328 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp1204692ljw; Tue, 28 Aug 2018 06:40:04 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYncoxCfzbmq9CopLSls+95gI7TAoQocm88lv0daMqQZKgzOmdJTtamuWaMxqq8xFEJD7UE X-Received: by 2002:a65:520d:: with SMTP id o13-v6mr1679225pgp.282.1535463603969; Tue, 28 Aug 2018 06:40:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535463603; cv=none; d=google.com; s=arc-20160816; b=FIbPROsxhvlxmwDVwUwds5OV1giKY8SobMJIYUytHbUhA92BOe/PDAGmGQ2nGLLYqS Epij8s2Z084rzHuTDheCF5UcHnEskrz5QkWsIfSzpfAZLHG5FnaB5hXwl6SHIE/QkOO8 VbduJProI/Uowt+kubVfie28bnwpQnx6RPaCubQerhBurPCBnWAF1DD2FpAshel4OXAl /h4VT6cJhHEthfRi/2ujZjG9LXNbae8QGlywXatR5MVEL10r4KcSRToWIvMJu4iBLwyS /6xxLpridQUc0mRsrTHnU72bv0Wp4KLZ6hVdASCUERJgpxzP7EKT5xjMldeqZ+tRDl+X qFWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=FWtE2KHAkIFSXULL6Im8GoFyV1IDELD6oCaUTCMaqb0=; b=HPXARuoYI6/I7KprxZqQ/n3semKTxNhxrBvJq27gfBHvej9fsXIf5st88FWQwGXtfF He3+cS44vwGRUp9Lgw3K6OJ1NLC36Tqadq9JTMxGMt7jJDOTkeUCQfKbcryjm0naCg+9 cX2yZeDngV3KdJg3F8DHmbArwrGyRfq/OzzbUN+RKYwFEQlzYHb7RFcXNHcQMozvdTrh WEcuasWDR6XWJ7X7i6u1uEF3CBneteiHKblKsWRxXFWONnqJLqt5TZd6qfVo/6XvyV+X WiuS5ic+DoX6HTbwDw+8OsvYNzeiRZQhrYMeZHdib9H5cSMf/5XytbyOl9ZrVUVgwGW8 DkKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TtaQQKn6; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 g9-v6si1151575pli.494.2018.08.28.06.40.03; Tue, 28 Aug 2018 06:40:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=TtaQQKn6; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1728251AbeH1Rbp (ORCPT + 6 others); Tue, 28 Aug 2018 13:31:45 -0400 Received: from mail-ed1-f66.google.com ([209.85.208.66]:44702 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728249AbeH1Rbp (ORCPT ); Tue, 28 Aug 2018 13:31:45 -0400 Received: by mail-ed1-f66.google.com with SMTP id s10-v6so1386605edb.11 for ; Tue, 28 Aug 2018 06:40:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=FWtE2KHAkIFSXULL6Im8GoFyV1IDELD6oCaUTCMaqb0=; b=TtaQQKn6E5T7uiOcfEEX2wR9pnXW3yLleJRbxUGSNtR47cytkF9HTdC2ARR5luJsYz 4inSqj/mFFEz13Q9FteyGEIx3caxj2oaPnyYDBOFwCzKG1FFNsBGw71GlilL8Ipvdv6S kOTsFgps83r6fnn7dgSzfkchVVkeqf86ufWe0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=FWtE2KHAkIFSXULL6Im8GoFyV1IDELD6oCaUTCMaqb0=; b=tM1oN9/QFx7/4oAc73X/xi14+IEHJyBk3Z4Qo6yiQwBNX5xaKVM/JB0N/G3tHEje71 3epQGjNIwELdi8RUZkBNinO9b5oKpeOoFDdXwN/dtPjwtlzKOFJ22U6LUzGo2kOxy56m M4DklAEO4v9ibFPYlCSb5ne8jhJ53kxaCwMkdFyGjInP/HZutknZsNBjH1U2HRYfHuOY qDvDeRiYq8TwNggkqQFMMZ9/NFuJnHq0yDd5iYSpvb34T+vVoxwCdRgCtlw1XHkNVqHc YV8tc9q5nkvgd2oSXfiHk0wMs/t/93rf95ekqJuueQEBCG2+a8GomfUprzvitL6ykBh4 Pa9g== X-Gm-Message-State: APzg51AOKGW6tw/1BlUWVJiMWHoE1Skx70SIY08c8jiUe+RbUHrFob54 baRxiuy/3rt9ug9LZHUpYNGxyA== X-Received: by 2002:a50:9aa4:: with SMTP id p33-v6mr2525342edb.156.1535463600983; Tue, 28 Aug 2018 06:40:00 -0700 (PDT) Received: from localhost ([49.248.200.109]) by smtp.gmail.com with ESMTPSA id v1-v6sm556567edf.3.2018.08.28.06.39.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Aug 2018 06:40:00 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org Cc: 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, mka@chromium.org, David Brown , Rob Herring , Mark Rutland , linux-soc@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v2 10/11] arm64: dts: qcom: Add reg-names for all tsens nodes Date: Tue, 28 Aug 2018 19:08:39 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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(+) -- 2.17.1 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 be27d8dc9e6b..c172731625f3 100644 --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi @@ -765,6 +765,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 cd3865e7a270..ac1d30006e6a 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -381,6 +381,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>; }; @@ -389,6 +390,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 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"; #qcom,sensors = <8>; #thermal-sensor-cells = <1>; };