From patchwork Tue Aug 28 13:38:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 145320 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp1203813ljw; Tue, 28 Aug 2018 06:39:15 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbZMyuIxtWYu5k4jNbOtvadT1g48QYth4KCHtAUuGvPzb70Ih8Eiofw631xqv6k+Z7vRHyn X-Received: by 2002:a63:f44d:: with SMTP id p13-v6mr1653079pgk.257.1535463554969; Tue, 28 Aug 2018 06:39:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535463554; cv=none; d=google.com; s=arc-20160816; b=Vf1cHYhjTyQGzycXgxmvSLqvC4POMt/6EJ3WXnA/W+8yNX4f/jj3nb2tB5XlOq1i57 Gp9uA3FQCwE+UNQs8iQ4PvB9wxhYXARGnWNrbU4mHai/lvK5SVs2NvKwD0NoHmxu8odA RBLqYjYT07NXbTKwoPCS7YCtqBncPXHhjeNr4iXGQ5+5mDLhZ6rNqtSPkj/nM4nUU26k 6GD4bgOBxBhvfT/K9Au2pDcCFF7XH2oQROAw2x1piYfnYGQKQV4ewvhN567dqiYmuGMw 5Nx1dEJAIrd8cwLDnildY4sWCN2aL/7GkUk4h7h6+tIOA4Ek48jN+dGV3mxtW1QfYNU1 pHnA== 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=vK3Xq6Eo3yCkWAfwmDTLmFy/t/g3sd/X8elMxmYhDlM=; b=FGbqAzi7rLaEmIpSo2GptQh2/QLbfEpirP8k7KkST+Ub/hwArJ6sIfZe/wkA0Jy+LB qazwHuTXTufJ4zaRbq0T+jenUKv2TPyPQXCKeA9GVwk15PB+Oj3objMNySmbeoR1M5dQ 27/xA+4bZAO3ayv4k3MGeG9gh/LCm1MDMhkfjkqZcqMTcH5lJO6GTuenLV0Sk+v0fI+9 iry9ZmOTOwwv6Ql1smMb9AmVAHodU7q5db2vmnU8kajgIN6kKXjiwz3GovTIDkLA2nA6 akgyipU7z2ADpaWM4FgQXJQcHArqAw9utPmSEXGThuhwA6jH8U1sMXwC++19tgC6nfk2 Jo5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Yew3n8Ex; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 x13-v6si1258585pgx.19.2018.08.28.06.39.14; Tue, 28 Aug 2018 06:39:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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=Yew3n8Ex; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1727706AbeH1Ra4 (ORCPT + 13 others); Tue, 28 Aug 2018 13:30:56 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:35843 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727072AbeH1Raz (ORCPT ); Tue, 28 Aug 2018 13:30:55 -0400 Received: by mail-ed1-f65.google.com with SMTP id f4-v6so1406272edq.3 for ; Tue, 28 Aug 2018 06:39:12 -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=vK3Xq6Eo3yCkWAfwmDTLmFy/t/g3sd/X8elMxmYhDlM=; b=Yew3n8ExQpnQjKb/LcetgzYblhrSMXaG4ql66N0bu7gzDEEcJVWJdZyTav/B2aTdJh qmdt1eiNzUmtj980MIxgCoBF2iqcORWA9EcFzd5Oo0fhqi2l2zRcfGVdgj0Qed0yRfpI KOf4NEsscA+m+BoIkeVna4Z/KA6W5YNYx55lw= 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=vK3Xq6Eo3yCkWAfwmDTLmFy/t/g3sd/X8elMxmYhDlM=; b=KriHyYBiEho8tIDdZXm5w4yj32Ea/BkvX8FaQI3R663xi0BKRu8V+WobNcEmA6NU0C l6HICP5fKYLcoz6kBhlQnM3uLJPiLl0jkcr14vZ705zy2zTVh8U8EN+q/ZyHFOpScPPF FWwqV896QhaWTqY908/lk2BhsMS7FXnkT9tqyvQblCweaC/VDtz8nDYWM0KMVaybxK9l n05I+e/zgy5ZaPhSMg7hJaTEcjF8KrYMkP/HHU3edwcM/cj+76HMdOJ4AngFGS9E9Y00 MjO3bFLoaGrM339Lyr/S4tVh9p5uMkzYnnyFfhQwD+ky+UidD4FX+Qr7fLmfcWq/9rfV BALw== X-Gm-Message-State: APzg51C09OgVcA5Ry7cWzEWkJ6AbYEjz1Ef5g9MK99iuISCIDxdl2bVt ho/iqkod1Hxm2YPeY6Qt1hwpCbcKeDs= X-Received: by 2002:a50:9e2f:: with SMTP id z44-v6mr2516451ede.242.1535463551706; Tue, 28 Aug 2018 06:39:11 -0700 (PDT) Received: from localhost ([49.248.200.109]) by smtp.gmail.com with ESMTPSA id k33-v6sm605087edb.31.2018.08.28.06.39.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Aug 2018 06:39:11 -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 02/11] arm/arm64: dts: msm8974/msm8916: thermal: Add "qcom, sensors" property Date: Tue, 28 Aug 2018 19:08:31 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This new property allows the number of sensors to be configured from DT instead of being hardcoded in platform data. Use it. 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 + 2 files changed, 2 insertions(+) -- 2.17.1 diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi index 56dbbf788d15..3c4b81c29798 100644 --- a/arch/arm/boot/dts/qcom-msm8974.dtsi +++ b/arch/arm/boot/dts/qcom-msm8974.dtsi @@ -433,6 +433,7 @@ <0xfc4a8000 0x1000>; /* SROT */ nvmem-cells = <&tsens_calib>, <&tsens_backup>; nvmem-cell-names = "calib", "calib_backup"; + #qcom,sensors = <11>; #thermal-sensor-cells = <1>; }; diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi index 6a277fce3333..be27d8dc9e6b 100644 --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi @@ -767,6 +767,7 @@ <0x4a8000 0x1000>; /* SROT */ nvmem-cells = <&tsens_caldata>, <&tsens_calsel>; nvmem-cell-names = "calib", "calib_sel"; + #qcom,sensors = <5>; #thermal-sensor-cells = <1>; };