* [PATCH V2 1/4] rtc: Add support of rtc-mv for MVEBU SoCs
2012-12-12 9:06 [PATCH V2 0/4] add RTC support for Armada 370 and Armada XP Gregory CLEMENT
@ 2012-12-12 9:06 ` Gregory CLEMENT
2013-01-10 2:02 ` Jason Cooper
2012-12-12 9:06 ` [PATCH V2 2/4] arm: mvebu: Add RTC support for Armada 370 and Armada XP Gregory CLEMENT
` (4 subsequent siblings)
5 siblings, 1 reply; 11+ messages in thread
From: Gregory CLEMENT @ 2012-12-12 9:06 UTC (permalink / raw)
To: linux-arm-kernel
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 platforms.
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Acked-by: Andrew Lunn <andrew@lunn.ch>
---
drivers/rtc/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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] 11+ messages in thread* [PATCH V2 2/4] arm: mvebu: Add RTC support for Armada 370 and Armada XP
2012-12-12 9:06 [PATCH V2 0/4] add RTC support for Armada 370 and Armada XP Gregory CLEMENT
2012-12-12 9:06 ` [PATCH V2 1/4] rtc: Add support of rtc-mv for MVEBU SoCs Gregory CLEMENT
@ 2012-12-12 9:06 ` Gregory CLEMENT
2013-01-10 2:03 ` Jason Cooper
2012-12-12 9:06 ` [PATCH V2 3/4] rtc: rtc-mv: Add the device tree binding documentation Gregory CLEMENT
` (3 subsequent siblings)
5 siblings, 1 reply; 11+ messages in thread
From: Gregory CLEMENT @ 2012-12-12 9:06 UTC (permalink / raw)
To: linux-arm-kernel
The Armada 370 and Armada XP Socs have the same controller that the
one used in the orion platforms. This patch updates the device tree
for these SoCs.
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Acked-by: Andrew Lunn <andrew@lunn.ch>
---
arch/arm/boot/dts/armada-370-xp.dtsi | 6 ++++++
1 file changed, 6 insertions(+)
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 at 10300 {
+ compatible = "marvell,orion-rtc";
+ reg = <0xd0010300 0x20>;
+ interrupts = <50>;
+ };
};
};
--
1.7.9.5
^ permalink raw reply related [flat|nested] 11+ messages in thread* [PATCH V2 3/4] rtc: rtc-mv: Add the device tree binding documentation
2012-12-12 9:06 [PATCH V2 0/4] add RTC support for Armada 370 and Armada XP Gregory CLEMENT
2012-12-12 9:06 ` [PATCH V2 1/4] rtc: Add support of rtc-mv for MVEBU SoCs Gregory CLEMENT
2012-12-12 9:06 ` [PATCH V2 2/4] arm: mvebu: Add RTC support for Armada 370 and Armada XP Gregory CLEMENT
@ 2012-12-12 9:06 ` Gregory CLEMENT
2012-12-12 9:06 ` [PATCH V2 4/4] arm: mvebu: Update defconfig with Marvell RTC support Gregory CLEMENT
` (2 subsequent siblings)
5 siblings, 0 replies; 11+ messages in thread
From: Gregory CLEMENT @ 2012-12-12 9:06 UTC (permalink / raw)
To: linux-arm-kernel
The support was already written, but the binding documentation was
lacking.
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
---
.../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 at 10300 {
+ compatible = "marvell,orion-rtc";
+ reg = <0xd0010300 0x20>;
+ interrupts = <50>;
+};
--
1.7.9.5
^ permalink raw reply related [flat|nested] 11+ messages in thread* [PATCH V2 4/4] arm: mvebu: Update defconfig with Marvell RTC support
2012-12-12 9:06 [PATCH V2 0/4] add RTC support for Armada 370 and Armada XP Gregory CLEMENT
` (2 preceding siblings ...)
2012-12-12 9:06 ` [PATCH V2 3/4] rtc: rtc-mv: Add the device tree binding documentation Gregory CLEMENT
@ 2012-12-12 9:06 ` Gregory CLEMENT
2013-01-10 2:03 ` Jason Cooper
2012-12-12 9:10 ` [PATCH V2 0/4] add RTC support for Armada 370 and Armada XP Gregory CLEMENT
2013-01-09 20:37 ` Arnd Bergmann
5 siblings, 1 reply; 11+ messages in thread
From: Gregory CLEMENT @ 2012-12-12 9:06 UTC (permalink / raw)
To: linux-arm-kernel
The RTC class driver is already part of the mvebu_defconfig but the
Marvell internal RTC not yet. Now that its support is added for mvebu
let's update the config file.
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
---
arch/arm/configs/mvebu_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/configs/mvebu_defconfig b/arch/arm/configs/mvebu_defconfig
index a702fb3..87a5bed 100644
--- a/arch/arm/configs/mvebu_defconfig
+++ b/arch/arm/configs/mvebu_defconfig
@@ -41,6 +41,7 @@ CONFIG_GPIO_SYSFS=y
# CONFIG_USB_SUPPORT is not set
CONFIG_RTC_CLASS=y
CONFIG_RTC_DRV_S35390A=y
+CONFIG_RTC_DRV_MV=y
CONFIG_DMADEVICES=y
CONFIG_MV_XOR=y
# CONFIG_IOMMU_SUPPORT is not set
--
1.7.9.5
^ permalink raw reply related [flat|nested] 11+ messages in thread* [PATCH V2 0/4] add RTC support for Armada 370 and Armada XP
2012-12-12 9:06 [PATCH V2 0/4] add RTC support for Armada 370 and Armada XP Gregory CLEMENT
` (3 preceding siblings ...)
2012-12-12 9:06 ` [PATCH V2 4/4] arm: mvebu: Update defconfig with Marvell RTC support Gregory CLEMENT
@ 2012-12-12 9:10 ` Gregory CLEMENT
2013-01-09 18:49 ` Florian Fainelli
2013-01-09 20:37 ` Arnd Bergmann
5 siblings, 1 reply; 11+ messages in thread
From: Gregory CLEMENT @ 2012-12-12 9:10 UTC (permalink / raw)
To: linux-arm-kernel
On 12/12/2012 10:06 AM, Gregory CLEMENT wrote:
> Hello,
>
> This small patch set adds RTC support for Armada 370 and Armada XP. It
> was successfully tested on the evaluation board. The third patch add
> the lacking documentation for the device tree binding and was already
> taken by Grant Likely, I keep this one in the series for
> coherency. The only differences with the previous patch set was the
> add of the Acked-by from Andrew Lunn and a new small patch to update
> of the mvebu_configuration. I also split the patch wich add the RTC
> support in two part, one for the RTC subsytem and on for
> mach-mvebu. This series is 3.9 material.
>
> Alessandro,
> could you take the first patches if you agree with it?
Oups, I meant the first one not the first patches.
>
> Jason,
>
> I wait for a while if there any feedback, then I will send you a git
> pull request. If I understood well your workflow I will do 2 git pull
> one for dt and one for defconfig.
>
> Thanks
>
>
> Gregory CLEMENT (4):
> rtc: Add support of rtc-mv for MVEBU SoCs
> arm: mvebu: Add RTC support for Armada 370 and Armada XP
> rtc: rtc-mv: Add the device tree binding documentation
> arm: mvebu: Update defconfig with Marvell RTC support
>
> .../devicetree/bindings/rtc/orion-rtc.txt | 18 ++++++++++++++++++
> arch/arm/boot/dts/armada-370-xp.dtsi | 6 ++++++
> arch/arm/configs/mvebu_defconfig | 1 +
> drivers/rtc/Kconfig | 2 +-
> 4 files changed, 26 insertions(+), 1 deletion(-)
> create mode 100644 Documentation/devicetree/bindings/rtc/orion-rtc.txt
>
--
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] 11+ messages in thread* [PATCH V2 0/4] add RTC support for Armada 370 and Armada XP
2012-12-12 9:10 ` [PATCH V2 0/4] add RTC support for Armada 370 and Armada XP Gregory CLEMENT
@ 2013-01-09 18:49 ` Florian Fainelli
0 siblings, 0 replies; 11+ messages in thread
From: Florian Fainelli @ 2013-01-09 18:49 UTC (permalink / raw)
To: linux-arm-kernel
On Wednesday 12 December 2012 10:10:00 Gregory CLEMENT wrote:
> On 12/12/2012 10:06 AM, Gregory CLEMENT wrote:
> > Hello,
> >
> > This small patch set adds RTC support for Armada 370 and Armada XP. It
> > was successfully tested on the evaluation board. The third patch add
> > the lacking documentation for the device tree binding and was already
> > taken by Grant Likely, I keep this one in the series for
> > coherency. The only differences with the previous patch set was the
> > add of the Acked-by from Andrew Lunn and a new small patch to update
> > of the mvebu_configuration. I also split the patch wich add the RTC
> > support in two part, one for the RTC subsytem and on for
> > mach-mvebu. This series is 3.9 material.
Tested-by: Florian Fainelli <florian@openwrt.org>
on RD-A370-A1
--
Florian
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH V2 0/4] add RTC support for Armada 370 and Armada XP
2012-12-12 9:06 [PATCH V2 0/4] add RTC support for Armada 370 and Armada XP Gregory CLEMENT
` (4 preceding siblings ...)
2012-12-12 9:10 ` [PATCH V2 0/4] add RTC support for Armada 370 and Armada XP Gregory CLEMENT
@ 2013-01-09 20:37 ` Arnd Bergmann
5 siblings, 0 replies; 11+ messages in thread
From: Arnd Bergmann @ 2013-01-09 20:37 UTC (permalink / raw)
To: linux-arm-kernel
On Wednesday 12 December 2012, Gregory CLEMENT wrote:
> This small patch set adds RTC support for Armada 370 and Armada XP. It
> was successfully tested on the evaluation board. The third patch add
> the lacking documentation for the device tree binding and was already
> taken by Grant Likely, I keep this one in the series for
> coherency. The only differences with the previous patch set was the
> add of the Acked-by from Andrew Lunn and a new small patch to update
> of the mvebu_configuration. I also split the patch wich add the RTC
> support in two part, one for the RTC subsytem and on for
> mach-mvebu. This series is 3.9 material.
Nice and small!
Acked-by: Arnd Bergmann <arnd@arndb.de>
^ permalink raw reply [flat|nested] 11+ messages in thread