* [PATCH 0/2] add RTC support for Armada 370 and Armada XP
@ 2012-12-10 10:42 Gregory CLEMENT
[not found] ` <1355136122-30729-1-git-send-email-gregory.clement-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
0 siblings, 1 reply; 13+ messages in thread
From: Gregory CLEMENT @ 2012-12-10 10:42 UTC (permalink / raw)
To: Jason Cooper, Andrew Lunn, Gregory Clement
Cc: Lior Amsalem, Ike Pan, David Marlin, Yehuda Yitschak,
Jani Monoses, rtc-linux-/JYPxA39Uh5TLH3MbocFFw, Tawfik Bayouk,
Dan Frazier, Eran Ben-Avi, Leif Lindholm, Sebastian Hesselbarth,
Chris Van Hoof, Jon Masters,
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, Rob Herring,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
Thomas Petazzoni, Alessandro Zummo, Maen Suleiman, Nadav Haklai,
Shadi Ammouri
Hello Jason,
This small patchset adds RTC support for Armada 370 and Armada XP. It
was succesfully tested on the evaluation board. The second patch add
the lacking documentation for the device tree binding. This serie is
3.9 material.
Thanks,
Gregory CLEMENT (2):
arm: mvebu: add RTC support for Armada 370 and Armada XP
rtc: rtc-mv: Add the device tree binding documentation
.../devicetree/bindings/rtc/orion-rtc.txt | 18 ++++++++++++++++++
arch/arm/boot/dts/armada-370-xp.dtsi | 6 ++++++
drivers/rtc/Kconfig | 2 +-
3 files changed, 25 insertions(+), 1 deletion(-)
create mode 100644 Documentation/devicetree/bindings/rtc/orion-rtc.txt
--
1.7.9.5
^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH 1/2] arm: mvebu: add RTC support for Armada 370 and Armada XP
[not found] ` <1355136122-30729-1-git-send-email-gregory.clement-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
@ 2012-12-10 10:42 ` Gregory CLEMENT
[not found] ` <1355136122-30729-2-git-send-email-gregory.clement-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2012-12-10 10:42 ` [PATCH 2/2] rtc: rtc-mv: Add the device tree binding documentation Gregory CLEMENT
` (2 subsequent siblings)
3 siblings, 1 reply; 13+ messages in thread
From: Gregory CLEMENT @ 2012-12-10 10:42 UTC (permalink / raw)
To: Jason Cooper, Andrew Lunn, Gregory Clement
Cc: Lior Amsalem, Ike Pan, David Marlin, Yehuda Yitschak,
Jani Monoses, rtc-linux-/JYPxA39Uh5TLH3MbocFFw, Tawfik Bayouk,
Dan Frazier, Eran Ben-Avi, Leif Lindholm, Sebastian Hesselbarth,
Chris Van Hoof, Jon Masters,
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, Rob Herring,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
Thomas Petazzoni, Alessandro Zummo, Maen Suleiman, Nadav Haklai,
Shadi Ammouri
The Armada 370 and Armada XP Socs have the same controller that the
one used in the orion platforms. This patch enables the selection of
rtc-mv with mvebu platform, and updates the device tree for these
SoCs.
---
arch/arm/boot/dts/armada-370-xp.dtsi | 6 ++++++
drivers/rtc/Kconfig | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/armada-370-xp.dtsi b/arch/arm/boot/dts/armada-370-xp.dtsi
index cf6c48a..86dccfa 100644
--- a/arch/arm/boot/dts/armada-370-xp.dtsi
+++ b/arch/arm/boot/dts/armada-370-xp.dtsi
@@ -129,6 +129,12 @@
clocks = <&coreclk 0>;
status = "disabled";
};
+
+ rtc@10300 {
+ compatible = "marvell,orion-rtc";
+ reg = <0xd0010300 0x20>;
+ interrupts = <50>;
+ };
};
};
diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
index 19c03ab..9356f75 100644
--- a/drivers/rtc/Kconfig
+++ b/drivers/rtc/Kconfig
@@ -994,7 +994,7 @@ config RTC_DRV_TX4939
config RTC_DRV_MV
tristate "Marvell SoC RTC"
- depends on ARCH_KIRKWOOD || ARCH_DOVE
+ depends on ARCH_KIRKWOOD || ARCH_DOVE || ARCH_MVEBU
help
If you say yes here you will get support for the in-chip RTC
that can be found in some of Marvell's SoC devices, such as
--
1.7.9.5
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 2/2] rtc: rtc-mv: Add the device tree binding documentation
[not found] ` <1355136122-30729-1-git-send-email-gregory.clement-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2012-12-10 10:42 ` [PATCH 1/2] arm: mvebu: " Gregory CLEMENT
@ 2012-12-10 10:42 ` Gregory CLEMENT
[not found] ` <1355136122-30729-3-git-send-email-gregory.clement-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2012-12-10 10:59 ` [PATCH 0/2] add RTC support for Armada 370 and Armada XP Andrew Lunn
2012-12-10 14:01 ` Thomas Petazzoni
3 siblings, 1 reply; 13+ messages in thread
From: Gregory CLEMENT @ 2012-12-10 10:42 UTC (permalink / raw)
To: Jason Cooper, Andrew Lunn, Gregory Clement
Cc: Lior Amsalem, Ike Pan, David Marlin, Yehuda Yitschak,
Jani Monoses, rtc-linux-/JYPxA39Uh5TLH3MbocFFw, Tawfik Bayouk,
Dan Frazier, Eran Ben-Avi, Leif Lindholm, Sebastian Hesselbarth,
Chris Van Hoof, Jon Masters,
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, Rob Herring,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
Thomas Petazzoni, Alessandro Zummo, Maen Suleiman, Nadav Haklai,
Shadi Ammouri
The support was already written, but the binding documentation was
lacking.
Signed-off-by: Gregory CLEMENT <gregory.clement-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
---
.../devicetree/bindings/rtc/orion-rtc.txt | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
create mode 100644 Documentation/devicetree/bindings/rtc/orion-rtc.txt
diff --git a/Documentation/devicetree/bindings/rtc/orion-rtc.txt b/Documentation/devicetree/bindings/rtc/orion-rtc.txt
new file mode 100644
index 0000000..3bf63ff
--- /dev/null
+++ b/Documentation/devicetree/bindings/rtc/orion-rtc.txt
@@ -0,0 +1,18 @@
+* Mvebu Real Time Clock
+
+RTC controller for the Kirkwood, the Dove, the Armada 370 and the
+Armada XP SoCs
+
+Required properties:
+- compatible : Should be "marvell,orion-rtc"
+- reg: physical base address of the controller and length of memory mapped
+ region.
+- interrupts: IRQ line for the RTC.
+
+Example:
+
+rtc@10300 {
+ compatible = "marvell,orion-rtc";
+ reg = <0xd0010300 0x20>;
+ interrupts = <50>;
+};
--
1.7.9.5
^ permalink raw reply related [flat|nested] 13+ messages in thread
* Re: [PATCH 0/2] add RTC support for Armada 370 and Armada XP
[not found] ` <1355136122-30729-1-git-send-email-gregory.clement-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2012-12-10 10:42 ` [PATCH 1/2] arm: mvebu: " Gregory CLEMENT
2012-12-10 10:42 ` [PATCH 2/2] rtc: rtc-mv: Add the device tree binding documentation Gregory CLEMENT
@ 2012-12-10 10:59 ` Andrew Lunn
2012-12-10 14:01 ` Thomas Petazzoni
3 siblings, 0 replies; 13+ messages in thread
From: Andrew Lunn @ 2012-12-10 10:59 UTC (permalink / raw)
To: Gregory CLEMENT
Cc: Lior Amsalem, Andrew Lunn, Ike Pan, David Marlin, Yehuda Yitschak,
Jani Monoses, rtc-linux-/JYPxA39Uh5TLH3MbocFFw, Tawfik Bayouk,
Dan Frazier, Eran Ben-Avi, Leif Lindholm, Sebastian Hesselbarth,
Jason Cooper, Chris Van Hoof, Jon Masters,
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, Rob Herring,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
Thomas Petazzoni, Alessandro Zummo, Maen Suleiman, Nadav Haklai,
Shadi Ammouri
On Mon, Dec 10, 2012 at 11:42:00AM +0100, Gregory CLEMENT wrote:
> Hello Jason,
>
> This small patchset adds RTC support for Armada 370 and Armada XP. It
> was succesfully tested on the evaluation board. The second patch add
> the lacking documentation for the device tree binding. This serie is
> 3.9 material.
Acked-by: Andrew Lunn <andrew-g2DYL2Zd6BY@public.gmane.org>
Andrew
>
> Thanks,
>
>
> Gregory CLEMENT (2):
> arm: mvebu: add RTC support for Armada 370 and Armada XP
> rtc: rtc-mv: Add the device tree binding documentation
>
> .../devicetree/bindings/rtc/orion-rtc.txt | 18 ++++++++++++++++++
> arch/arm/boot/dts/armada-370-xp.dtsi | 6 ++++++
> drivers/rtc/Kconfig | 2 +-
> 3 files changed, 25 insertions(+), 1 deletion(-)
> create mode 100644 Documentation/devicetree/bindings/rtc/orion-rtc.txt
>
> --
> 1.7.9.5
>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 2/2] rtc: rtc-mv: Add the device tree binding documentation
[not found] ` <1355136122-30729-3-git-send-email-gregory.clement-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
@ 2012-12-10 13:39 ` Jason Cooper
[not found] ` <20121210133914.GH21694-u4khhh1J0LxI1Ri9qeTfzeTW4wlIGRCZ@public.gmane.org>
0 siblings, 1 reply; 13+ messages in thread
From: Jason Cooper @ 2012-12-10 13:39 UTC (permalink / raw)
To: Gregory CLEMENT
Cc: Lior Amsalem, Andrew Lunn, Ike Pan, David Marlin, Yehuda Yitschak,
Jani Monoses, rtc-linux-/JYPxA39Uh5TLH3MbocFFw, Tawfik Bayouk,
Dan Frazier, Eran Ben-Avi, Leif Lindholm, Sebastian Hesselbarth,
Chris Van Hoof, Jon Masters,
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, Rob Herring,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
Thomas Petazzoni, Alessandro Zummo, Maen Suleiman, Nadav Haklai,
Shadi Ammouri
On Mon, Dec 10, 2012 at 11:42:02AM +0100, Gregory CLEMENT wrote:
> The support was already written, but the binding documentation was
> lacking.
Thanks for doing this, Gregory. I missed this the first time around
when we added the DT bindings to the rtc driver.
thx,
Jason.
>
> Signed-off-by: Gregory CLEMENT <gregory.clement-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
> ---
> .../devicetree/bindings/rtc/orion-rtc.txt | 18 ++++++++++++++++++
> 1 file changed, 18 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/rtc/orion-rtc.txt
>
> diff --git a/Documentation/devicetree/bindings/rtc/orion-rtc.txt b/Documentation/devicetree/bindings/rtc/orion-rtc.txt
> new file mode 100644
> index 0000000..3bf63ff
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/rtc/orion-rtc.txt
> @@ -0,0 +1,18 @@
> +* Mvebu Real Time Clock
> +
> +RTC controller for the Kirkwood, the Dove, the Armada 370 and the
> +Armada XP SoCs
> +
> +Required properties:
> +- compatible : Should be "marvell,orion-rtc"
> +- reg: physical base address of the controller and length of memory mapped
> + region.
> +- interrupts: IRQ line for the RTC.
> +
> +Example:
> +
> +rtc@10300 {
> + compatible = "marvell,orion-rtc";
> + reg = <0xd0010300 0x20>;
> + interrupts = <50>;
> +};
> --
> 1.7.9.5
>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 0/2] add RTC support for Armada 370 and Armada XP
[not found] ` <1355136122-30729-1-git-send-email-gregory.clement-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
` (2 preceding siblings ...)
2012-12-10 10:59 ` [PATCH 0/2] add RTC support for Armada 370 and Armada XP Andrew Lunn
@ 2012-12-10 14:01 ` Thomas Petazzoni
2012-12-10 14:17 ` Gregory CLEMENT
3 siblings, 1 reply; 13+ messages in thread
From: Thomas Petazzoni @ 2012-12-10 14:01 UTC (permalink / raw)
To: Gregory CLEMENT
Cc: Lior Amsalem, Andrew Lunn, Ike Pan, David Marlin, Yehuda Yitschak,
Jani Monoses, rtc-linux-/JYPxA39Uh5TLH3MbocFFw, Tawfik Bayouk,
Dan Frazier, Eran Ben-Avi, Leif Lindholm, Sebastian Hesselbarth,
Jason Cooper, Chris Van Hoof, Jon Masters,
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, Rob Herring,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
Alessandro Zummo, Maen Suleiman, Nadav Haklai, Shadi Ammouri
Dear Gregory CLEMENT,
On Mon, 10 Dec 2012 11:42:00 +0100, Gregory CLEMENT wrote:
> This small patchset adds RTC support for Armada 370 and Armada XP. It
> was succesfully tested on the evaluation board. The second patch add
> the lacking documentation for the device tree binding. This serie is
> 3.9 material.
>
> Thanks,
>
>
> Gregory CLEMENT (2):
> arm: mvebu: add RTC support for Armada 370 and Armada XP
> rtc: rtc-mv: Add the device tree binding documentation
Would you mind adding a patch that updates the mvebu_defconfig to
include the RTC driver by default?
Thanks!
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 0/2] add RTC support for Armada 370 and Armada XP
2012-12-10 14:01 ` Thomas Petazzoni
@ 2012-12-10 14:17 ` Gregory CLEMENT
0 siblings, 0 replies; 13+ messages in thread
From: Gregory CLEMENT @ 2012-12-10 14:17 UTC (permalink / raw)
To: Thomas Petazzoni
Cc: Lior Amsalem, Andrew Lunn, Ike Pan, David Marlin, Yehuda Yitschak,
Jani Monoses, rtc-linux-/JYPxA39Uh5TLH3MbocFFw, Tawfik Bayouk,
Dan Frazier, Eran Ben-Avi, Leif Lindholm, Sebastian Hesselbarth,
Jason Cooper, Chris Van Hoof, Jon Masters,
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, Rob Herring,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
Alessandro Zummo, Maen Suleiman, Nadav Haklai, Shadi Ammouri
On 12/10/2012 03:01 PM, Thomas Petazzoni wrote:
> Dear Gregory CLEMENT,
>
> On Mon, 10 Dec 2012 11:42:00 +0100, Gregory CLEMENT wrote:
>
>> This small patchset adds RTC support for Armada 370 and Armada XP. It
>> was succesfully tested on the evaluation board. The second patch add
>> the lacking documentation for the device tree binding. This serie is
>> 3.9 material.
>>
>> Thanks,
>>
>>
>> Gregory CLEMENT (2):
>> arm: mvebu: add RTC support for Armada 370 and Armada XP
>> rtc: rtc-mv: Add the device tree binding documentation
>
> Would you mind adding a patch that updates the mvebu_defconfig to
> include the RTC driver by default?
Sure. I will.
>
> Thanks!
>
> Thomas
>
--
Gregory Clement, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 1/2] arm: mvebu: add RTC support for Armada 370 and Armada XP
[not found] ` <1355136122-30729-2-git-send-email-gregory.clement-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
@ 2012-12-10 15:28 ` Thomas Petazzoni
2012-12-10 21:47 ` Grant Likely
0 siblings, 1 reply; 13+ messages in thread
From: Thomas Petazzoni @ 2012-12-10 15:28 UTC (permalink / raw)
To: Gregory CLEMENT
Cc: Lior Amsalem, Andrew Lunn, Ike Pan, David Marlin, Yehuda Yitschak,
Jani Monoses, Tawfik Bayouk, Dan Frazier, Eran Ben-Avi,
Leif Lindholm, Sebastian Hesselbarth, Jason Cooper,
rtc-linux-/JYPxA39Uh5TLH3MbocFFw, Alessandro Zummo, Jon Masters,
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, Rob Herring,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Chris Van Hoof,
Maen Suleiman, Nadav Haklai, Shadi Ammouri
Dear Gregory CLEMENT,
On Mon, 10 Dec 2012 11:42:01 +0100, Gregory CLEMENT wrote:
> + rtc@10300 {
> + compatible = "marvell,orion-rtc";
> + reg = <0xd0010300 0x20>;
> + interrupts = <50>;
> + };
Maybe an explicit status = "okay" here?
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 1/2] arm: mvebu: add RTC support for Armada 370 and Armada XP
2012-12-10 15:28 ` Thomas Petazzoni
@ 2012-12-10 21:47 ` Grant Likely
2012-12-10 22:37 ` Thomas Petazzoni
0 siblings, 1 reply; 13+ messages in thread
From: Grant Likely @ 2012-12-10 21:47 UTC (permalink / raw)
To: Thomas Petazzoni, Gregory CLEMENT
Cc: Lior Amsalem, Andrew Lunn, Ike Pan, Nadav Haklai, David Marlin,
Yehuda Yitschak, Jani Monoses, Tawfik Bayouk, Dan Frazier,
Eran Ben-Avi, Leif Lindholm, Sebastian Hesselbarth, Jason Cooper,
rtc-linux-/JYPxA39Uh5TLH3MbocFFw, Alessandro Zummo, Jon Masters,
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, Rob Herring,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Chris Van Hoof,
Maen Suleiman, Shadi Ammouri
On Mon, 10 Dec 2012 16:28:19 +0100, Thomas Petazzoni <thomas.petazzoni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> wrote:
> Dear Gregory CLEMENT,
>
> On Mon, 10 Dec 2012 11:42:01 +0100, Gregory CLEMENT wrote:
>
> > + rtc@10300 {
> > + compatible = "marvell,orion-rtc";
> > + reg = <0xd0010300 0x20>;
> > + interrupts = <50>;
> > + };
>
> Maybe an explicit status = "okay" here?
Only necessary if it is typical for the device to get disabled. I don't
add status="okay" properties unless it is to enable a device previously
disabled with status="disabled"
g.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 2/2] rtc: rtc-mv: Add the device tree binding documentation
[not found] ` <20121210133914.GH21694-u4khhh1J0LxI1Ri9qeTfzeTW4wlIGRCZ@public.gmane.org>
@ 2012-12-10 21:49 ` Grant Likely
0 siblings, 0 replies; 13+ messages in thread
From: Grant Likely @ 2012-12-10 21:49 UTC (permalink / raw)
To: Jason Cooper, Gregory CLEMENT
Cc: Lior Amsalem, Andrew Lunn, Ike Pan, Nadav Haklai, David Marlin,
Yehuda Yitschak, Jani Monoses, Tawfik Bayouk, Dan Frazier,
Eran Ben-Avi, Leif Lindholm, Sebastian Hesselbarth,
rtc-linux-/JYPxA39Uh5TLH3MbocFFw, Alessandro Zummo, Jon Masters,
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, Rob Herring,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
Thomas Petazzoni, Chris Van Hoof, Maen Suleiman, Shadi Ammouri
On Mon, 10 Dec 2012 08:39:14 -0500, Jason Cooper <jason-NLaQJdtUoK4Be96aLqz0jA@public.gmane.org> wrote:
> On Mon, Dec 10, 2012 at 11:42:02AM +0100, Gregory CLEMENT wrote:
> > The support was already written, but the binding documentation was
> > lacking.
>
> Thanks for doing this, Gregory. I missed this the first time around
> when we added the DT bindings to the rtc driver.
>
> thx,
Applied the documentation patch, thanks. The code patch should go
through the rtc tree.
g.
>
> Jason.
>
> >
> > Signed-off-by: Gregory CLEMENT <gregory.clement-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
> > ---
> > .../devicetree/bindings/rtc/orion-rtc.txt | 18 ++++++++++++++++++
> > 1 file changed, 18 insertions(+)
> > create mode 100644 Documentation/devicetree/bindings/rtc/orion-rtc.txt
> >
> > diff --git a/Documentation/devicetree/bindings/rtc/orion-rtc.txt b/Documentation/devicetree/bindings/rtc/orion-rtc.txt
> > new file mode 100644
> > index 0000000..3bf63ff
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/rtc/orion-rtc.txt
> > @@ -0,0 +1,18 @@
> > +* Mvebu Real Time Clock
> > +
> > +RTC controller for the Kirkwood, the Dove, the Armada 370 and the
> > +Armada XP SoCs
> > +
> > +Required properties:
> > +- compatible : Should be "marvell,orion-rtc"
> > +- reg: physical base address of the controller and length of memory mapped
> > + region.
> > +- interrupts: IRQ line for the RTC.
> > +
> > +Example:
> > +
> > +rtc@10300 {
> > + compatible = "marvell,orion-rtc";
> > + reg = <0xd0010300 0x20>;
> > + interrupts = <50>;
> > +};
> > --
> > 1.7.9.5
> >
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
--
Grant Likely, B.Sc, P.Eng.
Secret Lab Technologies, Ltd.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 1/2] arm: mvebu: add RTC support for Armada 370 and Armada XP
2012-12-10 21:47 ` Grant Likely
@ 2012-12-10 22:37 ` Thomas Petazzoni
2012-12-11 6:00 ` Andrew Lunn
0 siblings, 1 reply; 13+ messages in thread
From: Thomas Petazzoni @ 2012-12-10 22:37 UTC (permalink / raw)
To: Grant Likely
Cc: Lior Amsalem, Andrew Lunn, Ike Pan, Nadav Haklai, David Marlin,
Yehuda Yitschak, Jani Monoses, Tawfik Bayouk, Dan Frazier,
Eran Ben-Avi, Leif Lindholm, Sebastian Hesselbarth, Jason Cooper,
rtc-linux-/JYPxA39Uh5TLH3MbocFFw, Alessandro Zummo, Jon Masters,
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, Rob Herring,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Chris Van Hoof,
Maen Suleiman, Shadi Ammouri
Dear Grant Likely,
On Mon, 10 Dec 2012 21:47:55 +0000, Grant Likely wrote:
> > Maybe an explicit status = "okay" here?
>
> Only necessary if it is typical for the device to get disabled. I don't
> add status="okay" properties unless it is to enable a device previously
> disabled with status="disabled"
Ok, thanks for clarifying what the best practice is. This device being
internal to the SoC and having no dependency on external components, it
is indeed always available.
Thanks again for the clarification!
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 1/2] arm: mvebu: add RTC support for Armada 370 and Armada XP
2012-12-10 22:37 ` Thomas Petazzoni
@ 2012-12-11 6:00 ` Andrew Lunn
[not found] ` <20121211060050.GC25466-g2DYL2Zd6BY@public.gmane.org>
0 siblings, 1 reply; 13+ messages in thread
From: Andrew Lunn @ 2012-12-11 6:00 UTC (permalink / raw)
To: Thomas Petazzoni
Cc: Lior Amsalem, Andrew Lunn, Ike Pan, David Marlin, Yehuda Yitschak,
Jani Monoses, Tawfik Bayouk, Dan Frazier, Eran Ben-Avi,
Leif Lindholm, Sebastian Hesselbarth, Jason Cooper,
rtc-linux-/JYPxA39Uh5TLH3MbocFFw, Alessandro Zummo, Jon Masters,
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, Rob Herring,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Chris Van Hoof,
Maen Suleiman, Nadav Haklai, Shadi Ammouri
On Mon, Dec 10, 2012 at 11:37:23PM +0100, Thomas Petazzoni wrote:
> Dear Grant Likely,
>
> On Mon, 10 Dec 2012 21:47:55 +0000, Grant Likely wrote:
>
> > > Maybe an explicit status = "okay" here?
> >
> > Only necessary if it is typical for the device to get disabled. I don't
> > add status="okay" properties unless it is to enable a device previously
> > disabled with status="disabled"
>
> Ok, thanks for clarifying what the best practice is. This device being
> internal to the SoC and having no dependency on external components, it
> is indeed always available.
Hi Thomas
This is not actually true. Its dependent on at least one external
component, a battery. The driver determines at load time if the clock
is ticking.
There are a few Kirkwood and XP designs which use an external i2c RTC,
because the battery recommended by Marvell is mechanically not so easy
to attached to the board, in a robust way.
So i expect some boards will disable this from there own .dts file.
However, defaulting to enabled would make sense.
Andrew
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 1/2] arm: mvebu: add RTC support for Armada 370 and Armada XP
[not found] ` <20121211060050.GC25466-g2DYL2Zd6BY@public.gmane.org>
@ 2012-12-11 8:18 ` Thomas Petazzoni
0 siblings, 0 replies; 13+ messages in thread
From: Thomas Petazzoni @ 2012-12-11 8:18 UTC (permalink / raw)
To: Andrew Lunn
Cc: Lior Amsalem, Ike Pan, David Marlin, Yehuda Yitschak,
Jani Monoses, Tawfik Bayouk, Dan Frazier, Eran Ben-Avi,
Leif Lindholm, Sebastian Hesselbarth, Jason Cooper,
rtc-linux-/JYPxA39Uh5TLH3MbocFFw, Alessandro Zummo, Jon Masters,
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, Rob Herring,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Chris Van Hoof,
Maen Suleiman, Nadav Haklai, Shadi Ammouri
Dear Andrew Lunn,
On Tue, 11 Dec 2012 07:00:50 +0100, Andrew Lunn wrote:
> This is not actually true. Its dependent on at least one external
> component, a battery. The driver determines at load time if the clock
> is ticking.
>
> There are a few Kirkwood and XP designs which use an external i2c RTC,
> because the battery recommended by Marvell is mechanically not so easy
> to attached to the board, in a robust way.
>
> So i expect some boards will disable this from there own .dts file.
> However, defaulting to enabled would make sense.
Ok, thanks for the clarification!
Indeed, the OpenBlocks for example has a RTC on I2C, so maybe it'll
want to disable the on-SoC RTC.
Best regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2012-12-11 8:18 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-10 10:42 [PATCH 0/2] add RTC support for Armada 370 and Armada XP Gregory CLEMENT
[not found] ` <1355136122-30729-1-git-send-email-gregory.clement-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2012-12-10 10:42 ` [PATCH 1/2] arm: mvebu: " Gregory CLEMENT
[not found] ` <1355136122-30729-2-git-send-email-gregory.clement-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2012-12-10 15:28 ` Thomas Petazzoni
2012-12-10 21:47 ` Grant Likely
2012-12-10 22:37 ` Thomas Petazzoni
2012-12-11 6:00 ` Andrew Lunn
[not found] ` <20121211060050.GC25466-g2DYL2Zd6BY@public.gmane.org>
2012-12-11 8:18 ` Thomas Petazzoni
2012-12-10 10:42 ` [PATCH 2/2] rtc: rtc-mv: Add the device tree binding documentation Gregory CLEMENT
[not found] ` <1355136122-30729-3-git-send-email-gregory.clement-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2012-12-10 13:39 ` Jason Cooper
[not found] ` <20121210133914.GH21694-u4khhh1J0LxI1Ri9qeTfzeTW4wlIGRCZ@public.gmane.org>
2012-12-10 21:49 ` Grant Likely
2012-12-10 10:59 ` [PATCH 0/2] add RTC support for Armada 370 and Armada XP Andrew Lunn
2012-12-10 14:01 ` Thomas Petazzoni
2012-12-10 14:17 ` Gregory CLEMENT
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).