15956d97fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 25956d97fSEmmanuel Vadot%YAML 1.2 35956d97fSEmmanuel Vadot--- 45956d97fSEmmanuel Vadot$id: http://devicetree.org/schemas/rtc/faraday,ftrtc010.yaml# 55956d97fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 65956d97fSEmmanuel Vadot 75956d97fSEmmanuel Vadottitle: Faraday Technology FTRTC010 Real Time Clock 85956d97fSEmmanuel Vadot 95956d97fSEmmanuel Vadotmaintainers: 105956d97fSEmmanuel Vadot - Linus Walleij <linus.walleij@linaro.org> 115956d97fSEmmanuel Vadot 125956d97fSEmmanuel Vadotdescription: | 135956d97fSEmmanuel Vadot This RTC appears in for example the Storlink Gemini family of SoCs. 145956d97fSEmmanuel Vadot 155956d97fSEmmanuel Vadotproperties: 165956d97fSEmmanuel Vadot compatible: 175956d97fSEmmanuel Vadot oneOf: 185956d97fSEmmanuel Vadot - const: faraday,ftrtc010 195956d97fSEmmanuel Vadot - items: 205956d97fSEmmanuel Vadot - const: cortina,gemini-rtc 215956d97fSEmmanuel Vadot - const: faraday,ftrtc010 225956d97fSEmmanuel Vadot 235956d97fSEmmanuel Vadot resets: 245956d97fSEmmanuel Vadot maxItems: 1 255956d97fSEmmanuel Vadot 265956d97fSEmmanuel Vadot reg: 275956d97fSEmmanuel Vadot maxItems: 1 285956d97fSEmmanuel Vadot 295956d97fSEmmanuel Vadot interrupts: 305956d97fSEmmanuel Vadot maxItems: 1 315956d97fSEmmanuel Vadot 325956d97fSEmmanuel Vadot clocks: 335956d97fSEmmanuel Vadot items: 345956d97fSEmmanuel Vadot - description: PCLK clocks 355956d97fSEmmanuel Vadot - description: EXTCLK clocks. Faraday calls it CLK1HZ and says the clock 365956d97fSEmmanuel Vadot should be 1 Hz, but implementers actually seem to choose different 375956d97fSEmmanuel Vadot clocks here, like Cortina who chose 32768 Hz (a typical low-power clock). 385956d97fSEmmanuel Vadot 395956d97fSEmmanuel Vadot clock-names: 405956d97fSEmmanuel Vadot items: 41*fac71e4eSEmmanuel Vadot - const: PCLK 42*fac71e4eSEmmanuel Vadot - const: EXTCLK 435956d97fSEmmanuel Vadot 445956d97fSEmmanuel Vadotrequired: 455956d97fSEmmanuel Vadot - compatible 465956d97fSEmmanuel Vadot 475956d97fSEmmanuel VadotadditionalProperties: false 485956d97fSEmmanuel Vadot 495956d97fSEmmanuel Vadotexamples: 505956d97fSEmmanuel Vadot - | 515956d97fSEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 525956d97fSEmmanuel Vadot rtc@45000000 { 535956d97fSEmmanuel Vadot compatible = "cortina,gemini-rtc", "faraday,ftrtc010"; 545956d97fSEmmanuel Vadot reg = <0x45000000 0x100>; 555956d97fSEmmanuel Vadot interrupts = <17 IRQ_TYPE_LEVEL_HIGH>; 565956d97fSEmmanuel Vadot clocks = <&foo 0>, <&foo 1>; 575956d97fSEmmanuel Vadot clock-names = "PCLK", "EXTCLK"; 585956d97fSEmmanuel Vadot }; 59