* [PATCH 08/22] rtc: Add device tree probing to the Gemini driver
@ 2017-01-22 12:19 Linus Walleij
2017-01-23 20:06 ` Rob Herring
2017-01-24 17:48 ` Alexandre Belloni
0 siblings, 2 replies; 3+ messages in thread
From: Linus Walleij @ 2017-01-22 12:19 UTC (permalink / raw)
To: linux-arm-kernel
This adds bindings and simple probing for the Cortina Systems Gemini
SoC RTC.
Cc: Janos Laube <janos.dev@gmail.com>
Cc: Paulius Zaleckas <paulius.zaleckas@gmail.com>
Cc: Hans Ulli Kroll <ulli.kroll@googlemail.com>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: devicetree at vger.kernel.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
RTC maintainers: please just apply this to the RTC tree when you
are pleased with it. It is functionally orthogonal to the rest of
the series and just in a series for context.
---
Documentation/devicetree/bindings/rtc/cortina,gemini.txt | 14 ++++++++++++++
drivers/rtc/rtc-gemini.c | 7 +++++++
2 files changed, 21 insertions(+)
create mode 100644 Documentation/devicetree/bindings/rtc/cortina,gemini.txt
diff --git a/Documentation/devicetree/bindings/rtc/cortina,gemini.txt b/Documentation/devicetree/bindings/rtc/cortina,gemini.txt
new file mode 100644
index 000000000000..4ce4e794ddbb
--- /dev/null
+++ b/Documentation/devicetree/bindings/rtc/cortina,gemini.txt
@@ -0,0 +1,14 @@
+* Cortina Systems Gemini RTC
+
+Gemini SoC real-time clock.
+
+Required properties:
+- compatible : Should be "cortina,gemini-rtc"
+
+Examples:
+
+rtc at 45000000 {
+ compatible = "cortina,gemini-rtc";
+ reg = <0x45000000 0x100>;
+ interrupts = <17 IRQ_TYPE_LEVEL_HIGH>;
+};
diff --git a/drivers/rtc/rtc-gemini.c b/drivers/rtc/rtc-gemini.c
index 688debc14348..ccf0dbadb62d 100644
--- a/drivers/rtc/rtc-gemini.c
+++ b/drivers/rtc/rtc-gemini.c
@@ -159,9 +159,16 @@ static int gemini_rtc_remove(struct platform_device *pdev)
return 0;
}
+static const struct of_device_id gemini_rtc_dt_match[] = {
+ { .compatible = "cortina,gemini-rtc" },
+ { }
+};
+MODULE_DEVICE_TABLE(of, gemini_rtc_dt_match);
+
static struct platform_driver gemini_rtc_driver = {
.driver = {
.name = DRV_NAME,
+ .of_match_table = gemini_rtc_dt_match,
},
.probe = gemini_rtc_probe,
.remove = gemini_rtc_remove,
--
2.9.3
^ permalink raw reply related [flat|nested] 3+ messages in thread* [PATCH 08/22] rtc: Add device tree probing to the Gemini driver
2017-01-22 12:19 [PATCH 08/22] rtc: Add device tree probing to the Gemini driver Linus Walleij
@ 2017-01-23 20:06 ` Rob Herring
2017-01-24 17:48 ` Alexandre Belloni
1 sibling, 0 replies; 3+ messages in thread
From: Rob Herring @ 2017-01-23 20:06 UTC (permalink / raw)
To: linux-arm-kernel
On Sun, Jan 22, 2017 at 01:19:50PM +0100, Linus Walleij wrote:
> This adds bindings and simple probing for the Cortina Systems Gemini
> SoC RTC.
>
> Cc: Janos Laube <janos.dev@gmail.com>
> Cc: Paulius Zaleckas <paulius.zaleckas@gmail.com>
> Cc: Hans Ulli Kroll <ulli.kroll@googlemail.com>
> Cc: Florian Fainelli <f.fainelli@gmail.com>
> Cc: devicetree at vger.kernel.org
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
> RTC maintainers: please just apply this to the RTC tree when you
> are pleased with it. It is functionally orthogonal to the rest of
> the series and just in a series for context.
> ---
> Documentation/devicetree/bindings/rtc/cortina,gemini.txt | 14 ++++++++++++++
> drivers/rtc/rtc-gemini.c | 7 +++++++
> 2 files changed, 21 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/rtc/cortina,gemini.txt
Acked-by: Rob Herring <robh@kernel.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 08/22] rtc: Add device tree probing to the Gemini driver
2017-01-22 12:19 [PATCH 08/22] rtc: Add device tree probing to the Gemini driver Linus Walleij
2017-01-23 20:06 ` Rob Herring
@ 2017-01-24 17:48 ` Alexandre Belloni
1 sibling, 0 replies; 3+ messages in thread
From: Alexandre Belloni @ 2017-01-24 17:48 UTC (permalink / raw)
To: linux-arm-kernel
On 22/01/2017 at 13:19:50 +0100, Linus Walleij wrote :
> This adds bindings and simple probing for the Cortina Systems Gemini
> SoC RTC.
>
> Cc: Janos Laube <janos.dev@gmail.com>
> Cc: Paulius Zaleckas <paulius.zaleckas@gmail.com>
> Cc: Hans Ulli Kroll <ulli.kroll@googlemail.com>
> Cc: Florian Fainelli <f.fainelli@gmail.com>
> Cc: devicetree at vger.kernel.org
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
> RTC maintainers: please just apply this to the RTC tree when you
> are pleased with it. It is functionally orthogonal to the rest of
> the series and just in a series for context.
> ---
> Documentation/devicetree/bindings/rtc/cortina,gemini.txt | 14 ++++++++++++++
> drivers/rtc/rtc-gemini.c | 7 +++++++
> 2 files changed, 21 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/rtc/cortina,gemini.txt
>
Applied, thanks.
--
Alexandre Belloni, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-01-24 17:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-22 12:19 [PATCH 08/22] rtc: Add device tree probing to the Gemini driver Linus Walleij
2017-01-23 20:06 ` Rob Herring
2017-01-24 17:48 ` Alexandre Belloni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).