From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei Ni Subject: [PATCH v2 3/3] ARM: tegra: dalmore: add thermal zones for nct1008 Date: Tue, 4 Mar 2014 19:31:04 +0800 Message-ID: <1393932664-13319-4-git-send-email-wni@nvidia.com> References: <1393932664-13319-1-git-send-email-wni@nvidia.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: <1393932664-13319-1-git-send-email-wni-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> Sender: linux-tegra-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org, linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org, swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, lm-sensors-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org, Wei Ni List-Id: linux-tegra@vger.kernel.org Add dt node to describe the thermal zone for the nct1008. Change-Id: I0256836e52d73ec282574e4fd91df52958936e35 Signed-off-by: Wei Ni --- arch/arm/boot/dts/tegra114-dalmore.dts | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/tegra114-dalmore.dts b/arch/arm/boot/dts/tegra114-dalmore.dts index 8de5437..453f5ea 100644 --- a/arch/arm/boot/dts/tegra114-dalmore.dts +++ b/arch/arm/boot/dts/tegra114-dalmore.dts @@ -780,12 +780,14 @@ <&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_HIGH>; }; - temperature-sensor@4c { + nct1008: temperature-sensor@4c { compatible = "onnn,nct1008"; reg = <0x4c>; vcc-supply = <&palmas_ldo6_reg>; interrupt-parent = <&gpio>; interrupts = ; + + #thermal-sensor-cells = <1>; }; }; @@ -1276,4 +1278,20 @@ <&tegra_car TEGRA114_CLK_EXTERN1>; clock-names = "pll_a", "pll_a_out0", "mclk"; }; + + thermal-zones { + nct1008-local { + polling-delay-passive = <2000>; /* milliseconds */ + polling-delay = <0>; /* milliseconds */ + + thermal-sensors = <&nct1008 0>; + }; + + nct1008-remote { + polling-delay-passive = <1000>; /* milliseconds */ + polling-delay = <0>; /* milliseconds */ + + thermal-sensors = <&nct1008 1>; + }; + }; }; -- 1.7.9.5 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757198AbaCDLbf (ORCPT ); Tue, 4 Mar 2014 06:31:35 -0500 Received: from hqemgate16.nvidia.com ([216.228.121.65]:1966 "EHLO hqemgate16.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757006AbaCDLa6 (ORCPT ); Tue, 4 Mar 2014 06:30:58 -0500 X-PGP-Universal: processed; by hqnvupgp08.nvidia.com on Tue, 04 Mar 2014 03:28:01 -0800 From: Wei Ni To: , , CC: , , , Wei Ni Subject: [PATCH v2 3/3] ARM: tegra: dalmore: add thermal zones for nct1008 Date: Tue, 4 Mar 2014 19:31:04 +0800 Message-ID: <1393932664-13319-4-git-send-email-wni@nvidia.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1393932664-13319-1-git-send-email-wni@nvidia.com> References: <1393932664-13319-1-git-send-email-wni@nvidia.com> X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add dt node to describe the thermal zone for the nct1008. Change-Id: I0256836e52d73ec282574e4fd91df52958936e35 Signed-off-by: Wei Ni --- arch/arm/boot/dts/tegra114-dalmore.dts | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/tegra114-dalmore.dts b/arch/arm/boot/dts/tegra114-dalmore.dts index 8de5437..453f5ea 100644 --- a/arch/arm/boot/dts/tegra114-dalmore.dts +++ b/arch/arm/boot/dts/tegra114-dalmore.dts @@ -780,12 +780,14 @@ <&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_HIGH>; }; - temperature-sensor@4c { + nct1008: temperature-sensor@4c { compatible = "onnn,nct1008"; reg = <0x4c>; vcc-supply = <&palmas_ldo6_reg>; interrupt-parent = <&gpio>; interrupts = ; + + #thermal-sensor-cells = <1>; }; }; @@ -1276,4 +1278,20 @@ <&tegra_car TEGRA114_CLK_EXTERN1>; clock-names = "pll_a", "pll_a_out0", "mclk"; }; + + thermal-zones { + nct1008-local { + polling-delay-passive = <2000>; /* milliseconds */ + polling-delay = <0>; /* milliseconds */ + + thermal-sensors = <&nct1008 0>; + }; + + nct1008-remote { + polling-delay-passive = <1000>; /* milliseconds */ + polling-delay = <0>; /* milliseconds */ + + thermal-sensors = <&nct1008 1>; + }; + }; }; -- 1.7.9.5 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei Ni Date: Tue, 04 Mar 2014 11:31:04 +0000 Subject: [lm-sensors] [PATCH v2 3/3] ARM: tegra: dalmore: add thermal zones for nct1008 Message-Id: <1393932664-13319-4-git-send-email-wni@nvidia.com> List-Id: References: <1393932664-13319-1-git-send-email-wni@nvidia.com> In-Reply-To: <1393932664-13319-1-git-send-email-wni-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org, linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org, swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, lm-sensors-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org, Wei Ni Add dt node to describe the thermal zone for the nct1008. Change-Id: I0256836e52d73ec282574e4fd91df52958936e35 Signed-off-by: Wei Ni --- arch/arm/boot/dts/tegra114-dalmore.dts | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/tegra114-dalmore.dts b/arch/arm/boot/dts/tegra114-dalmore.dts index 8de5437..453f5ea 100644 --- a/arch/arm/boot/dts/tegra114-dalmore.dts +++ b/arch/arm/boot/dts/tegra114-dalmore.dts @@ -780,12 +780,14 @@ <&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_HIGH>; }; - temperature-sensor@4c { + nct1008: temperature-sensor@4c { compatible = "onnn,nct1008"; reg = <0x4c>; vcc-supply = <&palmas_ldo6_reg>; interrupt-parent = <&gpio>; interrupts = ; + + #thermal-sensor-cells = <1>; }; }; @@ -1276,4 +1278,20 @@ <&tegra_car TEGRA114_CLK_EXTERN1>; clock-names = "pll_a", "pll_a_out0", "mclk"; }; + + thermal-zones { + nct1008-local { + polling-delay-passive = <2000>; /* milliseconds */ + polling-delay = <0>; /* milliseconds */ + + thermal-sensors = <&nct1008 0>; + }; + + nct1008-remote { + polling-delay-passive = <1000>; /* milliseconds */ + polling-delay = <0>; /* milliseconds */ + + thermal-sensors = <&nct1008 1>; + }; + }; }; -- 1.7.9.5 _______________________________________________ lm-sensors mailing list lm-sensors@lm-sensors.org http://lists.lm-sensors.org/mailman/listinfo/lm-sensors