* [PATCH 1/3] dt/bindings: Add binding for Versatile system registers
2015-01-28 17:56 [PATCH 0/3] Versatile AB/PB clocksource support Rob Herring
@ 2015-01-28 17:56 ` Rob Herring
2015-02-03 13:23 ` Linus Walleij
2015-01-28 17:56 ` [PATCH 2/3] clocksource: versatile: adapt for Versatile AB and PB boards Rob Herring
2015-01-28 17:56 ` [PATCH 3/3] dts: versatile: add sysregs node Rob Herring
2 siblings, 1 reply; 7+ messages in thread
From: Rob Herring @ 2015-01-28 17:56 UTC (permalink / raw)
To: Daniel Lezcano, Thomas Gleixner
Cc: Mark Rutland, devicetree, Russell King, Pawel Moll, Rob Herring,
Linus Walleij, Ian Campbell, linux-kernel, Kumar Gala,
linux-arm-kernel
Add binding for Versatile board system registers found in the FPGA of the
Versatile/AB and Versatile/PB boards.
Signed-off-by: Rob Herring <robh@kernel.org>
Cc: Pawel Moll <pawel.moll@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Ian Campbell <ijc+devicetree@hellion.org.uk>
Cc: Kumar Gala <galak@codeaurora.org>
Cc: devicetree@vger.kernel.org
---
Documentation/devicetree/bindings/arm/versatile-sysreg.txt | 10 ++++++++++
1 file changed, 10 insertions(+)
create mode 100644 Documentation/devicetree/bindings/arm/versatile-sysreg.txt
diff --git a/Documentation/devicetree/bindings/arm/versatile-sysreg.txt b/Documentation/devicetree/bindings/arm/versatile-sysreg.txt
new file mode 100644
index 0000000..a4f1526
--- /dev/null
+++ b/Documentation/devicetree/bindings/arm/versatile-sysreg.txt
@@ -0,0 +1,10 @@
+ARM Versatile system registers
+--------------------------------------
+
+This is a system control registers block, providing multiple low level
+platform functions like board detection and identification, software
+interrupt generation, MMC and NOR Flash control etc.
+
+Required node properties:
+- compatible value : = "arm,versatile-sysreg", "syscon"
+- reg : physical base address and the size of the registers window
--
2.1.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 1/3] dt/bindings: Add binding for Versatile system registers
2015-01-28 17:56 ` [PATCH 1/3] dt/bindings: Add binding for Versatile system registers Rob Herring
@ 2015-02-03 13:23 ` Linus Walleij
0 siblings, 0 replies; 7+ messages in thread
From: Linus Walleij @ 2015-02-03 13:23 UTC (permalink / raw)
To: Rob Herring
Cc: Daniel Lezcano, Thomas Gleixner, Russell King,
linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, Pawel Moll, Mark Rutland,
Ian Campbell, Kumar Gala
On Wed, Jan 28, 2015 at 6:56 PM, Rob Herring <robh@kernel.org> wrote:
> Add binding for Versatile board system registers found in the FPGA of the
> Versatile/AB and Versatile/PB boards.
>
> Signed-off-by: Rob Herring <robh@kernel.org>
> Cc: Pawel Moll <pawel.moll@arm.com>
> Cc: Mark Rutland <mark.rutland@arm.com>
> Cc: Ian Campbell <ijc+devicetree@hellion.org.uk>
> Cc: Kumar Gala <galak@codeaurora.org>
> Cc: devicetree@vger.kernel.org
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 2/3] clocksource: versatile: adapt for Versatile AB and PB boards
2015-01-28 17:56 [PATCH 0/3] Versatile AB/PB clocksource support Rob Herring
2015-01-28 17:56 ` [PATCH 1/3] dt/bindings: Add binding for Versatile system registers Rob Herring
@ 2015-01-28 17:56 ` Rob Herring
2015-01-29 10:28 ` Liviu Dudau
2015-01-28 17:56 ` [PATCH 3/3] dts: versatile: add sysregs node Rob Herring
2 siblings, 1 reply; 7+ messages in thread
From: Rob Herring @ 2015-01-28 17:56 UTC (permalink / raw)
To: Daniel Lezcano, Thomas Gleixner
Cc: devicetree, Lorenzo Pieralisi, Russell King, Rob Herring,
Linus Walleij, Liviu Dudau, linux-kernel, Sudeep Holla,
linux-arm-kernel
The same 24MHz counter is also present on Versatile AB and PB boards, so
add the compatible string for them.
Signed-off-by: Rob Herring <robh@kernel.org>
Cc: Liviu Dudau <liviu.dudau@arm.com>
Cc: Sudeep Holla <sudeep.holla@arm.com>
Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
---
drivers/clocksource/versatile.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/clocksource/versatile.c b/drivers/clocksource/versatile.c
index 2798e74..0a26d3d 100644
--- a/drivers/clocksource/versatile.c
+++ b/drivers/clocksource/versatile.c
@@ -36,5 +36,7 @@ static void __init versatile_sched_clock_init(struct device_node *node)
sched_clock_register(versatile_sys_24mhz_read, 32, 24000000);
}
-CLOCKSOURCE_OF_DECLARE(versatile, "arm,vexpress-sysreg",
+CLOCKSOURCE_OF_DECLARE(vexpress, "arm,vexpress-sysreg",
+ versatile_sched_clock_init);
+CLOCKSOURCE_OF_DECLARE(versatile, "arm,versatile-sysreg",
versatile_sched_clock_init);
--
2.1.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 2/3] clocksource: versatile: adapt for Versatile AB and PB boards
2015-01-28 17:56 ` [PATCH 2/3] clocksource: versatile: adapt for Versatile AB and PB boards Rob Herring
@ 2015-01-29 10:28 ` Liviu Dudau
0 siblings, 0 replies; 7+ messages in thread
From: Liviu Dudau @ 2015-01-29 10:28 UTC (permalink / raw)
To: Rob Herring
Cc: Daniel Lezcano, Thomas Gleixner, Linus Walleij, Russell King,
linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, Sudeep Holla, Lorenzo Pieralisi
On Wed, Jan 28, 2015 at 05:56:31PM +0000, Rob Herring wrote:
> The same 24MHz counter is also present on Versatile AB and PB boards, so
> add the compatible string for them.
>
> Signed-off-by: Rob Herring <robh@kernel.org>
> Cc: Liviu Dudau <liviu.dudau@arm.com>
> Cc: Sudeep Holla <sudeep.holla@arm.com>
> Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
> Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
> Cc: Thomas Gleixner <tglx@linutronix.de>
> ---
> drivers/clocksource/versatile.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/clocksource/versatile.c b/drivers/clocksource/versatile.c
> index 2798e74..0a26d3d 100644
> --- a/drivers/clocksource/versatile.c
> +++ b/drivers/clocksource/versatile.c
> @@ -36,5 +36,7 @@ static void __init versatile_sched_clock_init(struct device_node *node)
>
> sched_clock_register(versatile_sys_24mhz_read, 32, 24000000);
> }
> -CLOCKSOURCE_OF_DECLARE(versatile, "arm,vexpress-sysreg",
> +CLOCKSOURCE_OF_DECLARE(vexpress, "arm,vexpress-sysreg",
> + versatile_sched_clock_init);
> +CLOCKSOURCE_OF_DECLARE(versatile, "arm,versatile-sysreg",
> versatile_sched_clock_init);
Acked-by: Liviu Dudau <Liviu.Dudau@arm.com>
> --
> 2.1.0
>
>
--
====================
| I would like to |
| fix the world, |
| but they're not |
| giving me the |
\ source code! /
---------------
¯\_(ツ)_/¯
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 3/3] dts: versatile: add sysregs node
2015-01-28 17:56 [PATCH 0/3] Versatile AB/PB clocksource support Rob Herring
2015-01-28 17:56 ` [PATCH 1/3] dt/bindings: Add binding for Versatile system registers Rob Herring
2015-01-28 17:56 ` [PATCH 2/3] clocksource: versatile: adapt for Versatile AB and PB boards Rob Herring
@ 2015-01-28 17:56 ` Rob Herring
[not found] ` <1422467792-2065-4-git-send-email-robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2 siblings, 1 reply; 7+ messages in thread
From: Rob Herring @ 2015-01-28 17:56 UTC (permalink / raw)
To: Daniel Lezcano, Thomas Gleixner
Cc: devicetree, Russell King, Rob Herring, Linus Walleij,
linux-kernel, linux-arm-kernel
The Versatile boards have the same sysregs as other ARM Ltd boards. Add
the nodes in order to enable support for 24MHz counter as sched_clock.
This is a minimal node definition as the existing sub node definition
used on VExpress has some issues raised by Linus W.
Signed-off-by: Rob Herring <robh@kernel.org>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: devicetree@vger.kernel.org
---
arch/arm/boot/dts/versatile-ab.dts | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/arm/boot/dts/versatile-ab.dts b/arch/arm/boot/dts/versatile-ab.dts
index 27d0d9c..01f4019 100644
--- a/arch/arm/boot/dts/versatile-ab.dts
+++ b/arch/arm/boot/dts/versatile-ab.dts
@@ -252,6 +252,11 @@
#size-cells = <1>;
ranges = <0 0x10000000 0x10000>;
+ sysreg@0 {
+ compatible = "arm,versatile-sysreg", "syscon";
+ reg = <0x00000 0x1000>;
+ };
+
aaci@4000 {
compatible = "arm,primecell";
reg = <0x4000 0x1000>;
--
2.1.0
^ permalink raw reply related [flat|nested] 7+ messages in thread