Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 | %YAML 1.2 |
| 3 | --- |
| 4 | $id: http://devicetree.org/schemas/rtc/nvidia,tegra20-rtc.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: NVIDIA Tegra real-time clock |
| 8 | |
| 9 | maintainers: |
| 10 | - Thierry Reding <thierry.reding@gmail.com> |
| 11 | - Jon Hunter <jonathanh@nvidia.com> |
| 12 | |
| 13 | description: | |
| 14 | The Tegra RTC maintains seconds and milliseconds counters, and five |
| 15 | alarm registers. The alarms and other interrupts may wake the system |
| 16 | from low-power state. |
| 17 | |
| 18 | properties: |
| 19 | compatible: |
| 20 | oneOf: |
| 21 | - const: nvidia,tegra20-rtc |
| 22 | - items: |
| 23 | - enum: |
| 24 | - nvidia,tegra30-rtc |
| 25 | - nvidia,tegra114-rtc |
| 26 | - nvidia,tegra124-rtc |
| 27 | - nvidia,tegra210-rtc |
| 28 | - nvidia,tegra186-rtc |
| 29 | - nvidia,tegra194-rtc |
| 30 | - nvidia,tegra234-rtc |
| 31 | - const: nvidia,tegra20-rtc |
| 32 | |
| 33 | reg: |
| 34 | maxItems: 1 |
| 35 | |
| 36 | interrupts: |
| 37 | maxItems: 1 |
| 38 | |
| 39 | clocks: |
| 40 | maxItems: 1 |
| 41 | |
| 42 | clock-names: |
| 43 | items: |
| 44 | - const: rtc |
| 45 | |
| 46 | additionalProperties: false |
| 47 | |
| 48 | required: |
| 49 | - compatible |
| 50 | - reg |
| 51 | - interrupts |
| 52 | - clocks |
| 53 | |
| 54 | examples: |
| 55 | - | |
| 56 | timer@7000e000 { |
| 57 | compatible = "nvidia,tegra20-rtc"; |
| 58 | reg = <0x7000e000 0x100>; |
| 59 | interrupts = <0 2 0x04>; |
| 60 | clocks = <&tegra_car 4>; |
| 61 | }; |