diff mbox series

[2/2] arm64: tegra: Allow the PMIC RTC to wakeup Jetson Xavier

Message ID 20200507101349.14118-2-jonathanh@nvidia.com
State Accepted
Headers show
Series [1/2] soc/tegra: pmc: Enable PMIC wake event on Tegra194 | expand

Commit Message

Jon Hunter May 7, 2020, 10:13 a.m. UTC
The PMIC RTC is currently unable to wakeup Tegra194 on the Jetson Xavier
platform because the interrupt from the PMIC is not usin the PMC as the
interrupt parent but the GIC directly. Update the PMIC interrupt to use
the PMC as the interrupt parent so that the PMIC RTC alarms can wakeup
the device.

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
---
 arch/arm64/boot/dts/nvidia/tegra194-p2888.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Thierry Reding May 7, 2020, 7:28 p.m. UTC | #1
On Thu, May 07, 2020 at 11:13:49AM +0100, Jon Hunter wrote:
> The PMIC RTC is currently unable to wakeup Tegra194 on the Jetson Xavier
> platform because the interrupt from the PMIC is not usin the PMC as the
> interrupt parent but the GIC directly. Update the PMIC interrupt to use
> the PMC as the interrupt parent so that the PMIC RTC alarms can wakeup
> the device.
> 
> Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
> ---
>  arch/arm64/boot/dts/nvidia/tegra194-p2888.dtsi | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

Applied to for-5.8/arm64/dt, thanks.

Thierry
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/nvidia/tegra194-p2888.dtsi b/arch/arm64/boot/dts/nvidia/tegra194-p2888.dtsi
index 623f7d7d216b..eaba167d6cf0 100644
--- a/arch/arm64/boot/dts/nvidia/tegra194-p2888.dtsi
+++ b/arch/arm64/boot/dts/nvidia/tegra194-p2888.dtsi
@@ -111,7 +111,8 @@ 
 				compatible = "maxim,max20024";
 				reg = <0x3c>;
 
-				interrupts = <GIC_SPI 209 IRQ_TYPE_LEVEL_HIGH>;
+				interrupt-parent = <&pmc>;
+				interrupts = <24 IRQ_TYPE_LEVEL_LOW>;
 				#interrupt-cells = <2>;
 				interrupt-controller;