ARM: tegra: ouya: Add interrupt to temperature sensor node
authorDmitry Osipenko <digetx@gmail.com>
Mon, 2 Aug 2021 21:19:34 +0000 (00:19 +0300)
committerThierry Reding <treding@nvidia.com>
Fri, 13 Aug 2021 11:11:14 +0000 (13:11 +0200)
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: Matt Merhar <mattmerhar@protonmail.com>
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm/boot/dts/tegra30-ouya.dts

index ab8744f3d72dac0b3e69fe4853e1148633072ce5..90db5ff72537b823214538b62964ea87c7c91d04 100644 (file)
                        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 {
                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";