OSDN Git Service

arm64: tegra: Add RTC support on Tegra186
authorThierry Reding <treding@nvidia.com>
Wed, 28 Nov 2018 16:49:40 +0000 (17:49 +0100)
committerThierry Reding <treding@nvidia.com>
Mon, 3 Dec 2018 15:31:33 +0000 (16:31 +0100)
The RTC on Tegra186 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/tegra186.dtsi

index 6b7528a..4c79778 100644 (file)
                status = "disabled";
        };
 
+       rtc: rtc@c2a0000 {
+               compatible = "nvidia,tegra186-rtc", "nvidia,tegra20-rtc";
+               reg = <0 0x0c2a0000 0 0x10000>;
+               interrupt-parent = <&pmc>;
+               interrupts = <73 IRQ_TYPE_LEVEL_HIGH>;
+               clocks = <&bpmp TEGRA186_CLK_CLK_32K>;
+               clock-names = "rtc";
+               status = "disabled";
+       };
+
        gpio_aon: gpio@c2f0000 {
                compatible = "nvidia,tegra186-gpio-aon";
                reg-names = "security", "gpio";