ARM: tegra: apalis: Correct interrupt trigger type of temperature sensor
authorDmitry Osipenko <digetx@gmail.com>
Mon, 2 Aug 2021 21:19:39 +0000 (00:19 +0300)
committerThierry Reding <treding@nvidia.com>
Fri, 13 Aug 2021 11:11:27 +0000 (13:11 +0200)
The LM90 temperature sensor should use edge-triggered interrupt because
LM90 hardware doesn't deassert interrupt line until temperature is back
to normal state, which results in interrupt storm. Correct the interrupt
trigger type.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm/boot/dts/tegra124-apalis-v1.2.dtsi
arch/arm/boot/dts/tegra124-apalis.dtsi

index 1e30fa4..cde9ae8 100644 (file)
                        compatible = "ti,tmp451";
                        reg = <0x4c>;
                        interrupt-parent = <&gpio>;
-                       interrupts = <TEGRA_GPIO(I, 6) IRQ_TYPE_LEVEL_LOW>;
+                       interrupts = <TEGRA_GPIO(I, 6) IRQ_TYPE_EDGE_FALLING>;
                        #thermal-sensor-cells = <1>;
                        vcc-supply = <&reg_module_3v3>;
                };
index 608896f..a46d9ba 100644 (file)
                        compatible = "ti,tmp451";
                        reg = <0x4c>;
                        interrupt-parent = <&gpio>;
-                       interrupts = <TEGRA_GPIO(I, 6) IRQ_TYPE_LEVEL_LOW>;
+                       interrupts = <TEGRA_GPIO(I, 6) IRQ_TYPE_EDGE_FALLING>;
                        #thermal-sensor-cells = <1>;
                        vcc-supply = <&reg_module_3v3>;
                };