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

rtc: gemini: Augment DT bindings for Faraday

The Gemini RTC is actually a standard IP block from Faraday
Technology called FTRTC010. Rename the bindings, add the
generic compatible string and add definitions for the two
available clocks.

Cc: devicetree@vger.kernel.org
Cc: Po-Yu Chuang <ratbert@faraday-tech.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>

authored by

Linus Walleij and committed by
Alexandre Belloni
7f1e988d ac05fba3

+28 -14
-14
Documentation/devicetree/bindings/rtc/cortina,gemini.txt
··· 1 - * Cortina Systems Gemini RTC 2 - 3 - Gemini SoC real-time clock. 4 - 5 - Required properties: 6 - - compatible : Should be "cortina,gemini-rtc" 7 - 8 - Examples: 9 - 10 - rtc@45000000 { 11 - compatible = "cortina,gemini-rtc"; 12 - reg = <0x45000000 0x100>; 13 - interrupts = <17 IRQ_TYPE_LEVEL_HIGH>; 14 - };
+28
Documentation/devicetree/bindings/rtc/faraday,ftrtc010.txt
··· 1 + * Faraday Technology FTRTC010 Real Time Clock 2 + 3 + This RTC appears in for example the Storlink Gemini family of 4 + SoCs. 5 + 6 + Required properties: 7 + - compatible : Should be one of: 8 + "faraday,ftrtc010" 9 + "cortina,gemini-rtc", "faraday,ftrtc010" 10 + 11 + Optional properties: 12 + - clocks: when present should contain clock references to the 13 + PCLK and EXTCLK clocks. Faraday calls the later CLK1HZ and 14 + says the clock should be 1 Hz, but implementers actually seem 15 + to choose different clocks here, like Cortina who chose 16 + 32768 Hz (a typical low-power clock). 17 + - clock-names: should name the clocks "PCLK" and "EXTCLK" 18 + respectively. 19 + 20 + Examples: 21 + 22 + rtc@45000000 { 23 + compatible = "cortina,gemini-rtc"; 24 + reg = <0x45000000 0x100>; 25 + interrupts = <17 IRQ_TYPE_LEVEL_HIGH>; 26 + clocks = <&foo 0>, <&foo 1>; 27 + clock-names = "PCLK", "EXTCLK"; 28 + };