* [PATCH 1/2] soc/tegra: pmc: Enable PMIC wake event on Tegra194
@ 2020-05-07 10:13 Jon Hunter
2020-05-07 10:13 ` [PATCH 2/2] arm64: tegra: Allow the PMIC RTC to wakeup Jetson Xavier Jon Hunter
2020-05-07 19:27 ` [PATCH 1/2] soc/tegra: pmc: Enable PMIC wake event on Tegra194 Thierry Reding
0 siblings, 2 replies; 4+ messages in thread
From: Jon Hunter @ 2020-05-07 10:13 UTC (permalink / raw)
To: Thierry Reding; +Cc: linux-tegra, devicetree, Jon Hunter
The PMIC wake event can be used to bring the system out of suspend based
on certain events happening on the PMIC (such as an RTC alarm).
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
---
drivers/soc/tegra/pmc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/soc/tegra/pmc.c b/drivers/soc/tegra/pmc.c
index 72cfda7305d5..8169737c3252 100644
--- a/drivers/soc/tegra/pmc.c
+++ b/drivers/soc/tegra/pmc.c
@@ -3326,6 +3326,7 @@ static const char * const tegra194_reset_sources[] = {
};
static const struct tegra_wake_event tegra194_wake_events[] = {
+ TEGRA_WAKE_IRQ("pmu", 24, 209),
TEGRA_WAKE_GPIO("power", 29, 1, TEGRA194_AON_GPIO(EE, 4)),
TEGRA_WAKE_IRQ("rtc", 73, 10),
};
--
2.17.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] arm64: tegra: Allow the PMIC RTC to wakeup Jetson Xavier
2020-05-07 10:13 [PATCH 1/2] soc/tegra: pmc: Enable PMIC wake event on Tegra194 Jon Hunter
@ 2020-05-07 10:13 ` Jon Hunter
2020-05-07 19:28 ` Thierry Reding
2020-05-07 19:27 ` [PATCH 1/2] soc/tegra: pmc: Enable PMIC wake event on Tegra194 Thierry Reding
1 sibling, 1 reply; 4+ messages in thread
From: Jon Hunter @ 2020-05-07 10:13 UTC (permalink / raw)
To: Thierry Reding; +Cc: linux-tegra, devicetree, Jon Hunter
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(-)
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;
--
2.17.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] soc/tegra: pmc: Enable PMIC wake event on Tegra194
2020-05-07 10:13 [PATCH 1/2] soc/tegra: pmc: Enable PMIC wake event on Tegra194 Jon Hunter
2020-05-07 10:13 ` [PATCH 2/2] arm64: tegra: Allow the PMIC RTC to wakeup Jetson Xavier Jon Hunter
@ 2020-05-07 19:27 ` Thierry Reding
1 sibling, 0 replies; 4+ messages in thread
From: Thierry Reding @ 2020-05-07 19:27 UTC (permalink / raw)
To: Jon Hunter; +Cc: linux-tegra, devicetree
[-- Attachment #1: Type: text/plain, Size: 382 bytes --]
On Thu, May 07, 2020 at 11:13:48AM +0100, Jon Hunter wrote:
> The PMIC wake event can be used to bring the system out of suspend based
> on certain events happening on the PMIC (such as an RTC alarm).
>
> Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
> ---
> drivers/soc/tegra/pmc.c | 1 +
> 1 file changed, 1 insertion(+)
Applied to for-5.8/soc, thanks.
Thierry
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 2/2] arm64: tegra: Allow the PMIC RTC to wakeup Jetson Xavier
2020-05-07 10:13 ` [PATCH 2/2] arm64: tegra: Allow the PMIC RTC to wakeup Jetson Xavier Jon Hunter
@ 2020-05-07 19:28 ` Thierry Reding
0 siblings, 0 replies; 4+ messages in thread
From: Thierry Reding @ 2020-05-07 19:28 UTC (permalink / raw)
To: Jon Hunter; +Cc: linux-tegra, devicetree
[-- Attachment #1: Type: text/plain, Size: 600 bytes --]
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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-05-07 19:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-07 10:13 [PATCH 1/2] soc/tegra: pmc: Enable PMIC wake event on Tegra194 Jon Hunter
2020-05-07 10:13 ` [PATCH 2/2] arm64: tegra: Allow the PMIC RTC to wakeup Jetson Xavier Jon Hunter
2020-05-07 19:28 ` Thierry Reding
2020-05-07 19:27 ` [PATCH 1/2] soc/tegra: pmc: Enable PMIC wake event on Tegra194 Thierry Reding
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).