arm64: tegra: Add RTC support on Tegra194
authorThierry Reding <treding@nvidia.com>
Wed, 28 Nov 2018 16:50:49 +0000 (17:50 +0100)
committerThierry Reding <treding@nvidia.com>
Mon, 3 Dec 2018 15:31:34 +0000 (16:31 +0100)
The RTC on Tegra194 is very similar to the RTC on earlier generations.
One notable exception is that the source clock is now the 32 kHz clock
instead of a dedicated RTC clock and the RTC alarm is a wake event and
can be used to wake the system from sleep.

Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm64/boot/dts/nvidia/tegra194.dtsi

index a09ca098eb4d11323839382403695b8dc0904f05..afb3597e05e468e6b5e0e36f653c2b9cc93f7fcb 100644 (file)
                        status = "disabled";
                };
 
+               rtc: rtc@c2a0000 {
+                       compatible = "nvidia,tegra194-rtc", "nvidia,tegra20-rtc";
+                       reg = <0x0c2a0000 0x10000>;
+                       interrupt-parent = <&pmc>;
+                       interrupts = <73 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&bpmp TEGRA194_CLK_CLK_32K>;
+                       clock-names = "rtc";
+                       status = "disabled";
+               };
+
                pwm4: pwm@c340000 {
                        compatible = "nvidia,tegra194-pwm",
                                     "nvidia,tegra186-pwm";