From: Dmitry Osipenko <digetx@gmail.com>
To: Thierry Reding <thierry.reding@gmail.com>,
Jonathan Hunter <jonathanh@nvidia.com>,
Matt Merhar <mattmerhar@protonmail.com>,
Peter Geis <pgwipeout@gmail.com>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>,
linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org
Subject: [PATCH v1 07/13] ARM: tegra: apalis: Correct interrupt trigger type of temperature sensor
Date: Mon, 12 Jul 2021 02:43:57 +0300 [thread overview]
Message-ID: <20210711234403.24691-8-digetx@gmail.com> (raw)
In-Reply-To: <20210711234403.24691-1-digetx@gmail.com>
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>
---
arch/arm/boot/dts/tegra124-apalis-v1.2.dtsi | 2 +-
arch/arm/boot/dts/tegra124-apalis.dtsi | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/boot/dts/tegra124-apalis-v1.2.dtsi b/arch/arm/boot/dts/tegra124-apalis-v1.2.dtsi
index 1e30fa405fa0..cde9ae8fa04b 100644
--- a/arch/arm/boot/dts/tegra124-apalis-v1.2.dtsi
+++ b/arch/arm/boot/dts/tegra124-apalis-v1.2.dtsi
@@ -1751,7 +1751,7 @@ temp-sensor@4c {
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 = <®_module_3v3>;
};
diff --git a/arch/arm/boot/dts/tegra124-apalis.dtsi b/arch/arm/boot/dts/tegra124-apalis.dtsi
index 608896f8dd52..a46d9ba9bb7a 100644
--- a/arch/arm/boot/dts/tegra124-apalis.dtsi
+++ b/arch/arm/boot/dts/tegra124-apalis.dtsi
@@ -1744,7 +1744,7 @@ temp-sensor@4c {
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 = <®_module_3v3>;
};
--
2.32.0
next prev parent reply other threads:[~2021-07-11 23:44 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-11 23:43 [PATCH v1 00/13] Tegra ARM32 device-tree improvements for 5.15 Dmitry Osipenko
2021-07-11 23:43 ` [PATCH v1 01/13] ARM: tegra: Add SoC thermal sensor to Tegra30 device-trees Dmitry Osipenko
2021-07-11 23:43 ` [PATCH v1 02/13] ARM: tegra: ouya: Add interrupt to temperature sensor node Dmitry Osipenko
2021-07-11 23:43 ` [PATCH v1 03/13] ARM: tegra: paz00: " Dmitry Osipenko
2021-07-11 23:43 ` [PATCH v1 04/13] ARM: tegra: nexus7: " Dmitry Osipenko
2021-07-11 23:43 ` [PATCH v1 05/13] ARM: tegra: acer-a500: " Dmitry Osipenko
2021-07-11 23:43 ` [PATCH v1 06/13] ARM: tegra: nyan: Correct interrupt trigger type of temperature sensor Dmitry Osipenko
2021-07-11 23:43 ` Dmitry Osipenko [this message]
2021-07-11 23:43 ` [PATCH v1 08/13] ARM: tegra: cardhu: " Dmitry Osipenko
2021-07-11 23:43 ` [PATCH v1 09/13] ARM: tegra: dalmore: " Dmitry Osipenko
2021-07-11 23:44 ` [PATCH v1 10/13] ARM: tegra: jetson-tk1: " Dmitry Osipenko
2021-07-11 23:44 ` [PATCH v1 11/13] ARM: tegra: acer-a500: Remove bogus USB VBUS regulators Dmitry Osipenko
2021-07-11 23:44 ` [PATCH v1 12/13] ARM: tegra: acer-a500: Improve thermal zones Dmitry Osipenko
2021-07-11 23:44 ` [PATCH v1 13/13] ARM: tegra: nexus7: " Dmitry Osipenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210711234403.24691-8-digetx@gmail.com \
--to=digetx@gmail.com \
--cc=daniel.lezcano@linaro.org \
--cc=jonathanh@nvidia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=mattmerhar@protonmail.com \
--cc=pgwipeout@gmail.com \
--cc=thierry.reding@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).