Commit da0ad898 authored by Dmitry Osipenko's avatar Dmitry Osipenko Committed by Thierry Reding
Browse files

ARM: tegra: ouya: Add interrupt to temperature sensor node



The TEMP_ALERT pin of LM90 temperature sensor is connected to Tegra SoC.
Add interrupt property to the temperature sensor and enable it in pinmux,
for completeness.

Tested-by: default avatarMatt Merhar <mattmerhar@protonmail.com>
Signed-off-by: default avatarDmitry Osipenko <digetx@gmail.com>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent 13a2a5ea
Loading
Loading
Loading
Loading
+6 −7
Original line number Diff line number Diff line
@@ -124,12 +124,11 @@ cpu_temp: nct1008@4c {
			compatible = "onnn,nct1008";
			reg = <0x4c>;
			vcc-supply = <&sys_3v3_reg>;

			interrupt-parent = <&gpio>;
			interrupts = <TEGRA_GPIO(CC, 2) IRQ_TYPE_EDGE_FALLING>;

			#thermal-sensor-cells = <1>;
/*
 *			The interrupt is bugged, once triggered it never clears.
 *			interrupt-parent = <&gpio>;
 *			interrupts = <TEGRA_GPIO(CC, 2) IRQ_TYPE_LEVEL_LOW>;
 */
		};

		pmic: pmic@2d {
@@ -4376,8 +4375,8 @@ pcc2 {
		nvidia,pins = "pcc2";
		nvidia,function = "i2s4";
		nvidia,pull = <TEGRA_PIN_PULL_NONE>;
		nvidia,tristate = <TEGRA_PIN_ENABLE>;
		nvidia,enable-input = <TEGRA_PIN_DISABLE>;
		nvidia,tristate = <TEGRA_PIN_DISABLE>;
		nvidia,enable-input = <TEGRA_PIN_ENABLE>;
	};
	sdmmc4_rst_n_pcc3 {
		nvidia,pins = "sdmmc4_rst_n_pcc3";