Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp7113497imm; Tue, 28 Aug 2018 06:40:44 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda2/ZZMrtJgqxpUXrvaZgWoRax/teDnUHRiPUJBioGLGfWieLb8TOLreGpaaGYzjcNXhpho X-Received: by 2002:a65:6292:: with SMTP id f18-v6mr1623038pgv.85.1535463644432; Tue, 28 Aug 2018 06:40:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535463644; cv=none; d=google.com; s=arc-20160816; b=wXe4lo9HsY6alCuRNCZN0xPUiyT9BYWK5USzSNF1sqKbgnvDU6+qahIy1YwIUjPJAC Vx2q2WZeyDanv1ijcKxJM9ZLw7sFVp+cBUPV+afnK8XbAZGqduFBoBTulcidYzqRyA+P jZq4CYi4iKJULz6QgoQ38z2+ZxlwQdrlx/jKCznB2CVx93O9DLuVV+A9m/MZYrlevP0V Hr/lUgnqPb5d/IbHp/cGhvI5K++UNMWO7c5nhuTq91yBk1dHai3L+Oq5xqHlRAp1Zp29 VbNcjkTtukEMkPblplFr1KuFr85N/8O7esLOABH9Ozi9q+8RQ1tvRwWyI7bBdN1GZqFS +Edw== 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=U4Xm4UWdKP5Kcq4oQ1xNilBlSd+5MVNsiTT1f2jT5kVVpio384dDiqiHhSkJA7b73F Yv6BQWXIhZ4sO7V9szF3+YY0ZgKgWKLkydCKEcl7GutBXNZFafqJJURr/VXx2LfJYQlM D4YArTsSKgpZeHvaX4XwwjZQ4w9LGhEnn/ST7YV0sRP/5Cix6zJN3Kfs2jDsa2ujk+UV W5LvX4kZIELST83w0mVqFJWvNRRumccW2NA3JQOuq8ru7ZiozgW6iZMDmy7AFg7M/A62 HEkXIZYZnAr+FZB99S/E9fA4/bZqtb8ubVmst+LgadBSmRjJRQ4RRFBTFspu3HzQNjY6 /PQw== 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-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 v23-v6si1082220plo.19.2018.08.28.06.40.29; Tue, 28 Aug 2018 06:40:44 -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=Yew3n8Ex; 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 S1727814AbeH1Ra4 (ORCPT + 99 others); Tue, 28 Aug 2018 13:30:56 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:43788 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727716AbeH1Raz (ORCPT ); Tue, 28 Aug 2018 13:30:55 -0400 Received: by mail-ed1-f68.google.com with SMTP id z27-v6so1388581edb.10 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=EaP7UOgs1t+FUC74Mqtj+YoUjH/VrUekCqSThV0d+OM8ouBwy1xfQQz4ufLE60v+At 7kYa+HIeDGTLlvB49PORltw+IcFmgJtm5Ili2rBOR4/Eh/0od1eqlTrLhQsBr707WZCr xN75YIGDX116yIZCdtT3O+npXEM0EWROSJtFf6kbFku34sOr4WS1NufvsoBgMJQG4SWd 3i2+A2D39o9EKCfKV5/uM3IGqywoosNfV4BJF2+YzqqmDXcK5TYoKAwgO5I1pf7jnopO btOqp33dQtAz4jAUUXdv1ADWzyCzZfMq4gnLMcGG+tX0eMr60Atz6akbr/Z4X/ql7yUa eiyQ== X-Gm-Message-State: APzg51Bg/k+5AYqqodRIdY65PECzarjtuoYXxlanrtZPVnYndz6vBMl0 xu6AD/TD/gsA5TUxXKcLWkMdTzyCYcw= 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(+) 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>; }; -- 2.17.1