Enable lm90 in Tegra30 and Tegra114.
Subsystems (2)
v2 cover Enable lm90 in Tegra30 and Tegra114.
Enable thermal sensor lm90 for Tegra30 Cardhu and Tegra114 Dalmore.
This series is v2, previous version patches:
[RFC 1/9]: http://thread.gmane.org/gmane.linux.power-management.general/31056
[v1]: http://thread.gmane.org/gmane.linux.ports.tegra/11713/
Changes from v1:
1. add vendor strings "onnn" for nct1008 node.
Changes from RFC:
1. Enable it for Tegra114 Dalmore.
Wei Ni (2):
ARM: dt: t30 cardhu: add dt entry for nct1008
ARM: dt: t114 dalmore: add dt entry for nct1008
arch/arm/boot/dts/tegra114-dalmore.dts | 7 +++++++ arch/arm/boot/dts/tegra30-cardhu.dtsi | 7 +++++++ 2 files changed, 14 insertions(+)
Signature · 1 line
1.7.9.5
PATCH v2 1/2 ARM: dt: t30 cardhu: add dt entry for nct1008
Enable thermal sensor nct1008 for t30 cardhu.
--- arch/arm/boot/dts/tegra30-cardhu.dtsi | 7 +++++++ 1 file changed, 7 insertions(+)
arch/arm/boot/dts/tegra30-cardhu.dtsi +7 -0
@@ -286,6 +286,13 @@ }; }; }; + + nct1008: nct1008 { + compatible = "onnn,nct1008"; + reg = <0x4c>; + interrupt-parent = <&gpio>; + interrupts = <TEGRA_GPIO(CC, 2) IRQ_TYPE_LEVEL_LOW>; + }; }; spi@7000da00 {
Signature · 1 line
1.7.9.5
Re: [PATCH v2 1/2] ARM: dt: t30 cardhu: add dt entry for nct1008
Quoted 1 line · Wei Ni
Enable thermal sensor nct1008 for t30 cardhu.
Nit: "Tegra30 Cardhu"
Quoted 1 line
arch/arm/boot/dts/tegra30-cardhu.dtsi +0
-0
[...]
arch/arm/boot/dts/tegra30-cardhu.dtsi line 290
Quoted 5 lines
arch/arm/boot/dts/tegra30-cardhu.dtsi +2
-0}; }; }; + + nct1008: nct1008 {
I don't think it's very likely that this chip will need to be referenced by a phandle, in which case the "nct1008:" label can be dropped. Even if it was used at some point in the future, it's better to add it at that time.
Thierry
Re: [PATCH v2 1/2] ARM: dt: t30 cardhu: add dt entry for nct1008
Quoted 9 lines · Thierry Reding
* PGP Signed by an unknown key
Quoted 1 line · Wei Ni
Enable thermal sensor nct1008 for t30 cardhu.
Nit: "Tegra30 Cardhu"
Quoted 1 line
arch/arm/boot/dts/tegra30-cardhu.dtsi +0
-0[...]
Quoted 10 lines
arch/arm/boot/dts/tegra30-cardhu.dtsi line 290
Quoted 5 lines
arch/arm/boot/dts/tegra30-cardhu.dtsi +2
-0}; }; }; + + nct1008: nct1008 {I don't think it's very likely that this chip will need to be referenced by a phandle, in which case the "nct1008:" label can be dropped. Even if it was used at some point in the future, it's better to add it at that time.
Ok, I will remove it.
In the future, I may use this node in the thermal framework, something like:thermal_zone {
sensor = <&nct1008>;
cooling = <&xxxx>;
....
}
So, at that time I will try to add it again.
Thanks.
Wei.
Quoted 6 lines
Thierry
* Unknown Key
*0x7F3EB3A1
PATCH v2 2/2 ARM: dt: t114 dalmore: add dt entry for nct1008
In reply to Wei NiEnable thermal sensor nct1008 for t114 dalmore.
--- arch/arm/boot/dts/tegra114-dalmore.dts | 7 +++++++ 1 file changed, 7 insertions(+)
arch/arm/boot/dts/tegra114-dalmore.dts +7 -0
@@ -738,6 +738,13 @@ realtek,ldo1-en-gpios = <&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_HIGH>; }; + + nct1008: nct1008 { + compatible = "onnn,nct1008"; + reg = <0x4c>; + interrupt-parent = <&gpio>; + interrupts = <TEGRA_GPIO(O, 4) IRQ_TYPE_LEVEL_LOW>; + }; }; i2c@7000d000 {
Signature · 1 line
1.7.9.5
Re: [PATCH v2 2/2] ARM: dt: t114 dalmore: add dt entry for nct1008
Quoted 1 line · Wei Ni
Enable thermal sensor nct1008 for t114 dalmore.
Nit: "Tegra114 Dalmore"
Quoted 1 line
arch/arm/boot/dts/tegra114-dalmore.dts +0
-0
[...]
arch/arm/boot/dts/tegra114-dalmore.dts line 747
Quoted 6 lines
arch/arm/boot/dts/tegra114-dalmore.dts +6
-0+ nct1008: nct1008 { + compatible = "onnn,nct1008"; + reg = <0x4c>; + interrupt-parent = <&gpio>; + interrupts = <TEGRA_GPIO(O, 4) IRQ_TYPE_LEVEL_LOW>; + };
The "nct1008:" label isn't needed here either.
Thierry