From patchwork Thu Aug 9 12:32:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 10561393 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 00C501390 for ; Thu, 9 Aug 2018 12:48:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E0E2A2B015 for ; Thu, 9 Aug 2018 12:48:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D4A902B020; Thu, 9 Aug 2018 12:48:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 53C5D2B015 for ; Thu, 9 Aug 2018 12:48:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=KtqRj7BYi5BRLEuMcK3c7EIjnp49OsNHTXZC20hGGKY=; b=RYJXxp6U2qownoWOJJbqkWtdhD OtC0LY/HZpCjfaMUsKhV6Y0/B14B02yIqzbdSo7/poVf/aHMy+sA5OYuJafo9b17h76GERzrRpfg+ xSp0uBkPb84ER0ld5uJhsh/NPRAYQnLuKm1z36rxi37XQChriR+VdB2SvFzDM9cHoEwPZVs4m71jz KkJcrTIyE28nWYeELcTo7e731FPRwraEeJWqR5OVmKi/Z2fREGvFoFVq/XnaJ1kXt8pXFQ4PXTyqx JCsEALlrJgwpAySbr9Eyv8YYqnlzjoJIEt71OsjjnWmqDb5SpSO2cjil6TOwhRicXQZHsl/LNXbg+ 1zrb1gxg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fnkN0-0003PI-Pb; Thu, 09 Aug 2018 12:48:50 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fnkMy-00038G-Ul for linux-arm-kernel@bombadil.infradead.org; Thu, 09 Aug 2018 12:48:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=P+8ZtXuBWeWo7/benGwezLj8nb3RsvbE1i3tK4LtIoc=; b=K5FbWo0N+ErjELN/PqnYMvA3g xXVz7hqpH5X2bgUQWcMaKRwwtHmwMRkBGUbu0IkgvjE9H/a99Xy8H8gz6kgDBCBjWCUmwrrmLy92M rJR0haNAb8H+kaL8u6PytotRd3xlFn+ktxrmYVI9dDE+NuShfOqEkfSQKatOxWiWzahX0rRcsuEbk rsjpDe4/IJnCMv02+9VBteW85DGj0TbH2BZ2DbR6YszC3eRIZwUYxVRKByF+FNZtwXE0Nl604503n 4ISUvgr0LlAdJrbX5a71P+p74k7ntKlO8fnOHja6UzhtNkX9oiZ78FYXJ2sY3E+8INekkFlsOGMJE m73PwdNvg==; Received: from mail-pl0-x241.google.com ([2607:f8b0:400e:c01::241]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fnk8K-0007pF-CO for linux-arm-kernel@lists.infradead.org; Thu, 09 Aug 2018 12:33:44 +0000 Received: by mail-pl0-x241.google.com with SMTP id x6-v6so2498648plv.10 for ; Thu, 09 Aug 2018 05:33:29 -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=P+8ZtXuBWeWo7/benGwezLj8nb3RsvbE1i3tK4LtIoc=; b=NCR4i49BGPwZ1Q345daLUuAdEIFBSZxRMTGevcSNH4M3yoq7mZWk1n9NIZLDrs/2pi vC2bPFG7w/ew0jpC+2tofjKhi6NBX4okIct1aSQNuTaI6WHRiPp+SyDd7ABFVZazN66Z bAXyvpQ74ya1J7OyLCOVh1J8z3c//t00wJiQg= 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=P+8ZtXuBWeWo7/benGwezLj8nb3RsvbE1i3tK4LtIoc=; b=GI9Q08h5uqM/K3x+C49z9H+QGuGrqHSUUQ8wF+duNpA19jSehavjdxTJp++UjwCssa tUoSrSwoV1aFPN2xKJ3GMkXgVAgI0KMbETL8qWESWH9l9WnOUYG//ARjV73b8OFkaDXk tMuJRsI3bk39zGWeVUeqknLsg834qsMgnKQwCvGI4GGDTn8Yytz1KhW7Nb0V+8M+2vv/ 5hP5rOW44jq80GMavBnquZiQDgCDfw2j1LoOik5zMpfj5LdE3E7z1fLT2kXDix42h7Ub nTRIg7IsWvi6riw5Njm0ioHts7FrAPU6ASGOMSzysQbFskpFbHD3monO3LxiNEAxQOSV PBKg== X-Gm-Message-State: AOUpUlEjULxxHdgCAHg2l2F1wYo00FEM0v+wPOqR8LFEFsZU1ou6evdm pw9VruunLX+qq0rke6NpBc/6Lg== X-Google-Smtp-Source: AA+uWPygMCHE5JmIkTKVtQd6NnfXQJX7K8kxxw5k5vpscXyu5R9508aKzMEOoHPRsXEIt4uWIenY7w== X-Received: by 2002:a17:902:2ac3:: with SMTP id j61-v6mr1913890plb.172.1533818007813; Thu, 09 Aug 2018 05:33:27 -0700 (PDT) Received: from localhost ([45.113.251.134]) by smtp.gmail.com with ESMTPSA id f65-v6sm23210298pfj.46.2018.08.09.05.33.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 09 Aug 2018 05:33:27 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org Subject: [PATCH v1 09/10] arm64: dts: qcom: Add reg-names for all tsens nodes Date: Thu, 9 Aug 2018 18:02:41 +0530 Message-Id: <188c07144d98bfbe2bbbb7d1f2941acdcf4e6682.1533815718.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180809_133340_418913_A083EBF6 X-CRM114-Status: GOOD ( 13.71 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, dianders@chromium.org, rnayak@codeaurora.org, linux-arm-msm@vger.kernel.org, Will Deacon , smohanad@codeaurora.org, Rob Herring , bjorn.andersson@linaro.org, edubezval@gmail.com, David Brown , mka@chromium.org, Catalin Marinas , andy.gross@linaro.org, linux-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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"; 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>; };