From: Linus Walleij <linus.walleij@linaro.org>
To: Alessandro Zummo <a.zummo@towertech.it>,
Alexandre Belloni <alexandre.belloni@free-electrons.com>
Cc: rtc-linux@googlegroups.com,
Linus Walleij <linus.walleij@linaro.org>,
devicetree@vger.kernel.org,
Po-Yu Chuang <ratbert@faraday-tech.com>
Subject: [PATCH 2/3 v2] rtc: gemini: Augment DT bindings for Faraday
Date: Tue, 30 May 2017 09:53:31 +0200 [thread overview]
Message-ID: <20170530075332.3740-2-linus.walleij@linaro.org> (raw)
In-Reply-To: <20170530075332.3740-1-linus.walleij@linaro.org>
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>
---
ChangeLog v1->v2:
- Add Rob's ACK.
---
.../devicetree/bindings/rtc/cortina,gemini.txt | 14 -----------
.../devicetree/bindings/rtc/faraday,ftrtc010.txt | 28 ++++++++++++++++++++++
2 files changed, 28 insertions(+), 14 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/rtc/cortina,gemini.txt
create mode 100644 Documentation/devicetree/bindings/rtc/faraday,ftrtc010.txt
diff --git a/Documentation/devicetree/bindings/rtc/cortina,gemini.txt b/Documentation/devicetree/bindings/rtc/cortina,gemini.txt
deleted file mode 100644
index 4ce4e794ddbb..000000000000
--- a/Documentation/devicetree/bindings/rtc/cortina,gemini.txt
+++ /dev/null
@@ -1,14 +0,0 @@
-* Cortina Systems Gemini RTC
-
-Gemini SoC real-time clock.
-
-Required properties:
-- compatible : Should be "cortina,gemini-rtc"
-
-Examples:
-
-rtc@45000000 {
- compatible = "cortina,gemini-rtc";
- reg = <0x45000000 0x100>;
- interrupts = <17 IRQ_TYPE_LEVEL_HIGH>;
-};
diff --git a/Documentation/devicetree/bindings/rtc/faraday,ftrtc010.txt b/Documentation/devicetree/bindings/rtc/faraday,ftrtc010.txt
new file mode 100644
index 000000000000..e3938f5e0b6c
--- /dev/null
+++ b/Documentation/devicetree/bindings/rtc/faraday,ftrtc010.txt
@@ -0,0 +1,28 @@
+* Faraday Technology FTRTC010 Real Time Clock
+
+This RTC appears in for example the Storlink Gemini family of
+SoCs.
+
+Required properties:
+- compatible : Should be one of:
+ "faraday,ftrtc010"
+ "cortina,gemini-rtc", "faraday,ftrtc010"
+
+Optional properties:
+- clocks: when present should contain clock references to the
+ PCLK and EXTCLK clocks. Faraday calls the later CLK1HZ and
+ says the clock should be 1 Hz, but implementers actually seem
+ to choose different clocks here, like Cortina who chose
+ 32768 Hz (a typical low-power clock).
+- clock-names: should name the clocks "PCLK" and "EXTCLK"
+ respectively.
+
+Examples:
+
+rtc@45000000 {
+ compatible = "cortina,gemini-rtc";
+ reg = <0x45000000 0x100>;
+ interrupts = <17 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&foo 0>, <&foo 1>;
+ clock-names = "PCLK", "EXTCLK";
+};
--
2.9.4
next prev parent reply other threads:[~2017-05-30 7:53 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-30 7:53 [rtc-linux] [PATCH 1/3 v2] rtc: gemini: Add optional clock handling Linus Walleij
2017-05-30 7:53 ` Linus Walleij
2017-05-30 7:53 ` Linus Walleij [this message]
2017-07-05 21:01 ` [rtc-linux] Re: [PATCH 2/3 v2] rtc: gemini: Augment DT bindings for Faraday Alexandre Belloni
2017-05-30 7:53 ` [rtc-linux] [PATCH 3/3 v2] rtc: gemini/ftrtc010: rename driver and symbols Linus Walleij
2017-05-30 7:53 ` Linus Walleij
2017-07-05 21:01 ` [rtc-linux] " Alexandre Belloni
2017-06-11 22:12 ` [rtc-linux] Re: [PATCH 1/3 v2] rtc: gemini: Add optional clock handling Linus Walleij
2017-07-05 21:01 ` Alexandre Belloni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170530075332.3740-2-linus.walleij@linaro.org \
--to=linus.walleij@linaro.org \
--cc=a.zummo@towertech.it \
--cc=alexandre.belloni@free-electrons.com \
--cc=devicetree@vger.kernel.org \
--cc=ratbert@faraday-tech.com \
--cc=rtc-linux@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox