]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: tegra: Correct polarity for Tegra114 PMIC interrupt
authorJon Hunter <jonathanh@nvidia.com>
Wed, 24 Aug 2016 13:14:38 +0000 (15:14 +0200)
committerOlof Johansson <olof@lixom.net>
Fri, 26 Aug 2016 00:31:30 +0000 (17:31 -0700)
commit4462f3ee35361bc1714788a4a96b177177b91f94
treed29b15491ecbaf7bb2b01ed5c58b46c7efa7accb
parente7589a7c7ef16a5e099bf9843b8eb98258f6c43e
ARM: tegra: Correct polarity for Tegra114 PMIC interrupt

The ARM GIC only supports interrupts with either level-high or
rising-edge types for SPIs. The interrupt type for the Palmas PMIC used
for Tegra114 boards is specified as level-low which is invalid for the
GIC. This has gone undetected because until recently, failures to set
the interrupt type when the interrupts are mapped via firmware (such as
device-tree) have not been reported. Since commits 043660447a7b
("genirq: Look-up trigger type if not specified by caller") and
ec17aeffc43c ("irqdomain: Don't set type when mapping an IRQ"), failure
to set the interrupt type will cause the requesting of the interrupt to
fail and exposing incorrectly configured interrupts.

Please note that although the interrupt type was never being set for the
Palmas PMIC, it was still working fine, because the default type setting
for the interrupt, 'level-high', happen to match the correct type for
the interrupt.

Finally, it should be noted that the Palmas interrupt from the PMIC is
actually 'level-low', however, this interrupt signal is inverted by the
Tegra PMC and so the GIC actually sees a 'level-high' interrupt which is
what should be specified in the device-tree interrupt specifier.

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/boot/dts/tegra114-dalmore.dts
arch/arm/boot/dts/tegra114-roth.dts
arch/arm/boot/dts/tegra114-tn7.dts