* [PATCH 1/2] soc/tegra: pmc: Enable PMIC wake event on Tegra210
@ 2020-05-20 15:13 Jon Hunter
2020-05-20 15:13 ` [PATCH 2/2] arm64: tegra: Make the RTC a wakeup source on Jetson Nano and TX1 Jon Hunter
2020-05-22 12:58 ` [PATCH 1/2] soc/tegra: pmc: Enable PMIC wake event on Tegra210 Thierry Reding
0 siblings, 2 replies; 3+ messages in thread
From: Jon Hunter @ 2020-05-20 15:13 UTC (permalink / raw)
To: Thierry Reding, Jonathan Hunter; +Cc: devicetree, linux-tegra
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 8169737c3252..42cf37a0556b 100644
--- a/drivers/soc/tegra/pmc.c
+++ b/drivers/soc/tegra/pmc.c
@@ -3063,6 +3063,7 @@ static const struct pinctrl_pin_desc tegra210_pin_descs[] = {
static const struct tegra_wake_event tegra210_wake_events[] = {
TEGRA_WAKE_IRQ("rtc", 16, 2),
+ TEGRA_WAKE_IRQ("pmu", 51, 86),
};
static const struct tegra_pmc_soc tegra210_pmc_soc = {
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] arm64: tegra: Make the RTC a wakeup source on Jetson Nano and TX1
2020-05-20 15:13 [PATCH 1/2] soc/tegra: pmc: Enable PMIC wake event on Tegra210 Jon Hunter
@ 2020-05-20 15:13 ` Jon Hunter
2020-05-22 12:58 ` [PATCH 1/2] soc/tegra: pmc: Enable PMIC wake event on Tegra210 Thierry Reding
1 sibling, 0 replies; 3+ messages in thread
From: Jon Hunter @ 2020-05-20 15:13 UTC (permalink / raw)
To: Thierry Reding, Jonathan Hunter; +Cc: devicetree, linux-tegra
The RTC found on the MAX77620 PMIC can be used as a wakeup source on
Jetson Nano and TX1, which is useful to wake the system from suspend
at a given time.
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
---
arch/arm64/boot/dts/nvidia/tegra210-p2180.dtsi | 3 ++-
arch/arm64/boot/dts/nvidia/tegra210-p3450-0000.dts | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/arch/arm64/boot/dts/nvidia/tegra210-p2180.dtsi b/arch/arm64/boot/dts/nvidia/tegra210-p2180.dtsi
index f87d2437d11c..cc6ed45a2b48 100644
--- a/arch/arm64/boot/dts/nvidia/tegra210-p2180.dtsi
+++ b/arch/arm64/boot/dts/nvidia/tegra210-p2180.dtsi
@@ -38,7 +38,8 @@
pmic: pmic@3c {
compatible = "maxim,max77620";
reg = <0x3c>;
- interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-parent = <&tegra_pmc>;
+ interrupts = <51 IRQ_TYPE_LEVEL_LOW>;
#interrupt-cells = <2>;
interrupt-controller;
diff --git a/arch/arm64/boot/dts/nvidia/tegra210-p3450-0000.dts b/arch/arm64/boot/dts/nvidia/tegra210-p3450-0000.dts
index 374ce58b2b38..9bc52fdb393c 100644
--- a/arch/arm64/boot/dts/nvidia/tegra210-p3450-0000.dts
+++ b/arch/arm64/boot/dts/nvidia/tegra210-p3450-0000.dts
@@ -149,7 +149,8 @@
pmic: pmic@3c {
compatible = "maxim,max77620";
reg = <0x3c>;
- interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-parent = <&tegra_pmc>;
+ interrupts = <51 IRQ_TYPE_LEVEL_LOW>;
#interrupt-cells = <2>;
interrupt-controller;
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] soc/tegra: pmc: Enable PMIC wake event on Tegra210
2020-05-20 15:13 [PATCH 1/2] soc/tegra: pmc: Enable PMIC wake event on Tegra210 Jon Hunter
2020-05-20 15:13 ` [PATCH 2/2] arm64: tegra: Make the RTC a wakeup source on Jetson Nano and TX1 Jon Hunter
@ 2020-05-22 12:58 ` Thierry Reding
1 sibling, 0 replies; 3+ messages in thread
From: Thierry Reding @ 2020-05-22 12:58 UTC (permalink / raw)
To: Jon Hunter; +Cc: devicetree, linux-tegra
[-- Attachment #1: Type: text/plain, Size: 380 bytes --]
On Wed, May 20, 2020 at 04:13:17PM +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(+)
Both patches applied, thanks.
Thierry
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-05-22 12:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-20 15:13 [PATCH 1/2] soc/tegra: pmc: Enable PMIC wake event on Tegra210 Jon Hunter
2020-05-20 15:13 ` [PATCH 2/2] arm64: tegra: Make the RTC a wakeup source on Jetson Nano and TX1 Jon Hunter
2020-05-22 12:58 ` [PATCH 1/2] soc/tegra: pmc: Enable PMIC wake event on Tegra210 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).