Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: tegra: define DT bindings for and instantiate RTC

The Tegra RTC maintains seconds and milliseconds counters, and five alarm
registers. The alarms and other interrupts may wake the system from
low-power state.

Define a DT binding for this HW module, and add the module into the Tegra
device tree files.

Signed-off-by: Stephen Warren <swarren@nvidia.com>

+31
+19
Documentation/devicetree/bindings/rtc/nvidia,tegra20-rtc.txt
··· 1 + NVIDIA Tegra20 real-time clock 2 + 3 + The Tegra RTC maintains seconds and milliseconds counters, and five alarm 4 + registers. The alarms and other interrupts may wake the system from low-power 5 + state. 6 + 7 + Required properties: 8 + 9 + - compatible : should be "nvidia,tegra20-rtc". 10 + - reg : Specifies base physical address and size of the registers. 11 + - interrupts : A single interrupt specifier. 12 + 13 + Example: 14 + 15 + timer { 16 + compatible = "nvidia,tegra20-rtc"; 17 + reg = <0x7000e000 0x100>; 18 + interrupts = <0 2 0x04>; 19 + };
+6
arch/arm/boot/dts/tegra20.dtsi
··· 234 234 #pwm-cells = <2>; 235 235 }; 236 236 237 + rtc { 238 + compatible = "nvidia,tegra20-rtc"; 239 + reg = <0x7000e000 0x100>; 240 + interrupts = <0 2 0x04>; 241 + }; 242 + 237 243 i2c@7000c000 { 238 244 compatible = "nvidia,tegra20-i2c"; 239 245 reg = <0x7000c000 0x100>;
+6
arch/arm/boot/dts/tegra30.dtsi
··· 230 230 #pwm-cells = <2>; 231 231 }; 232 232 233 + rtc { 234 + compatible = "nvidia,tegra30-rtc", "nvidia,tegra20-rtc"; 235 + reg = <0x7000e000 0x100>; 236 + interrupts = <0 2 0x04>; 237 + }; 238 + 233 239 i2c@7000c000 { 234 240 compatible = "nvidia,tegra30-i2c", "nvidia,tegra20-i2c"; 235 241 reg = <0x7000c000 0x100>;