1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/rtc/faraday,ftrtc010.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Faraday Technology FTRTC010 Real Time Clock
8
9maintainers:
10  - Linus Walleij <linus.walleij@linaro.org>
11
12description: |
13  This RTC appears in for example the Storlink Gemini family of SoCs.
14
15properties:
16  compatible:
17    oneOf:
18      - const: faraday,ftrtc010
19      - items:
20          - const: cortina,gemini-rtc
21          - const: faraday,ftrtc010
22
23  resets:
24    maxItems: 1
25
26  reg:
27    maxItems: 1
28
29  interrupts:
30    maxItems: 1
31
32  clocks:
33    minItems: 2
34    items:
35      - description: PCLK clocks
36      - description: EXTCLK clocks. Faraday calls it CLK1HZ and says the clock
37          should be 1 Hz, but implementers actually seem to choose different
38          clocks here, like Cortina who chose 32768 Hz (a typical low-power clock).
39
40  clock-names:
41    items:
42      - const: "PCLK"
43      - const: "EXTCLK"
44
45required:
46  - compatible
47
48additionalProperties: false
49
50examples:
51  - |
52    #include <dt-bindings/interrupt-controller/irq.h>
53    rtc@45000000 {
54      compatible = "cortina,gemini-rtc", "faraday,ftrtc010";
55      reg = <0x45000000 0x100>;
56      interrupts = <17 IRQ_TYPE_LEVEL_HIGH>;
57      clocks = <&foo 0>, <&foo 1>;
58      clock-names = "PCLK", "EXTCLK";
59    };
60