Re: [PATCH 2/2] arm64: tegra: Make the RTC a wakeup source on Jetson TX2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 17/04/2020 18:11, Thierry Reding wrote:
> From: Thierry Reding <treding@xxxxxxxxxx>
> 
> The RTC found on the MAX77620 PMIC can be used as a wakeup source on
> Jetson TX2, which is useful to wake the system from suspend at a given
> time.
> 
> Signed-off-by: Thierry Reding <treding@xxxxxxxxxx>
> ---
>  arch/arm64/boot/dts/nvidia/tegra186-p3310.dtsi | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/arm64/boot/dts/nvidia/tegra186-p3310.dtsi b/arch/arm64/boot/dts/nvidia/tegra186-p3310.dtsi
> index da96de04d003..7a0fa157f48c 100644
> --- a/arch/arm64/boot/dts/nvidia/tegra186-p3310.dtsi
> +++ b/arch/arm64/boot/dts/nvidia/tegra186-p3310.dtsi
> @@ -221,7 +221,8 @@ pmic: pmic@3c {
>  				compatible = "maxim,max77620";
>  				reg = <0x3c>;
>  
> -				interrupts = <GIC_SPI 209 IRQ_TYPE_LEVEL_HIGH>;
> +				interrupt-parent = <&pmc>;
> +				interrupts = <24 IRQ_TYPE_LEVEL_LOW>;
>  				#interrupt-cells = <2>;
>  				interrupt-controller;
>  
> @@ -379,6 +380,10 @@ vdd_pex: ldo8 {
>  						regulator-max-microvolt = <1050000>;
>  					};
>  				};
> +
> +				rtc {
> +					wakeup-source;
> +				};
>  			};
>  		};
>  	};
> 


Acked-by: Jon Hunter <jonathanh@xxxxxxxxxx>
Tested-by: Jon Hunter <jonathanh@xxxxxxxxxx>

Cheers
Jon

-- 
nvpublic



[Index of Archives]     [ARM Kernel]     [Linux ARM]     [Linux ARM MSM]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux