soc/tegra: pmc: Enable PMIC wake event on Tegra210
Subsystems (2)
Jon Hunter
maintainerPATCH 1/2 soc/tegra: pmc: Enable PMIC wake event on Tegra210
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 <[email protected]>
--- drivers/soc/tegra/pmc.c | 1 + 1 file changed, 1 insertion(+)
drivers/soc/tegra/pmc.c +1 -0
@@ -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 = {
Signature · 1 line
2.17.1
Jon Hunter
maintainerPATCH 2/2 arm64: tegra: Make the RTC a wakeup source on Jetson Nano and TX1
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 <[email protected]>
--- 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(-)
arch/arm64/boot/dts/nvidia/tegra210-p2180.dtsi +2 -1
@@ -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;
arch/arm64/boot/dts/nvidia/tegra210-p3450-0000.dts +2 -1
@@ -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;
Signature · 1 line
2.17.1
Quoted 7 lines · 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 <[email protected]>--- drivers/soc/tegra/pmc.c | 1 + 1 file changed, 1 insertion(+)
Both patches applied, thanks.
Thierry