0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/rtc/faraday,ftrtc010.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Faraday Technology FTRTC010 Real Time Clock
0008
0009 maintainers:
0010 - Linus Walleij <linus.walleij@linaro.org>
0011
0012 description: |
0013 This RTC appears in for example the Storlink Gemini family of SoCs.
0014
0015 properties:
0016 compatible:
0017 oneOf:
0018 - const: faraday,ftrtc010
0019 - items:
0020 - const: cortina,gemini-rtc
0021 - const: faraday,ftrtc010
0022
0023 resets:
0024 maxItems: 1
0025
0026 reg:
0027 maxItems: 1
0028
0029 interrupts:
0030 maxItems: 1
0031
0032 clocks:
0033 items:
0034 - description: PCLK clocks
0035 - description: EXTCLK clocks. Faraday calls it CLK1HZ and says the clock
0036 should be 1 Hz, but implementers actually seem to choose different
0037 clocks here, like Cortina who chose 32768 Hz (a typical low-power clock).
0038
0039 clock-names:
0040 items:
0041 - const: "PCLK"
0042 - const: "EXTCLK"
0043
0044 required:
0045 - compatible
0046
0047 additionalProperties: false
0048
0049 examples:
0050 - |
0051 #include <dt-bindings/interrupt-controller/irq.h>
0052 rtc@45000000 {
0053 compatible = "cortina,gemini-rtc", "faraday,ftrtc010";
0054 reg = <0x45000000 0x100>;
0055 interrupts = <17 IRQ_TYPE_LEVEL_HIGH>;
0056 clocks = <&foo 0>, <&foo 1>;
0057 clock-names = "PCLK", "EXTCLK";
0058 };