* [PATCH 0/3] Versatile AB/PB clocksource support @ 2015-01-28 17:56 Rob Herring 2015-01-28 17:56 ` [PATCH 1/3] dt/bindings: Add binding for Versatile system registers Rob Herring ` (2 more replies) 0 siblings, 3 replies; 7+ messages in thread From: Rob Herring @ 2015-01-28 17:56 UTC (permalink / raw) To: linux-arm-kernel The Versatile clocksource driver can also be used on Versatile AB and PB platforms, not just Versatile Express. This series adds support for those boards. I've split this off from the rest of the Versatile DT and multi-platform support as I'm not going to get it in place for 3.20. This part is fairly trivial and is ready to go. Daniel, Can you please take the whole series. Rob Rob Herring (3): dt/bindings: Add binding for Versatile system registers clocksource: versatile: adapt for Versatile AB and PB boards dts: versatile: add sysregs node Documentation/devicetree/bindings/arm/versatile-sysreg.txt | 10 ++++++++++ arch/arm/boot/dts/versatile-ab.dts | 5 +++++ drivers/clocksource/versatile.c | 4 +++- 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/arm/versatile-sysreg.txt -- 2.1.0 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [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: 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 at 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
* [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: linux-arm-kernel 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 at 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: 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
* [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: linux-arm-kernel 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 2015-02-03 13:23 ` Linus Walleij 2 siblings, 1 reply; 7+ messages in thread From: Rob Herring @ 2015-01-28 17:56 UTC (permalink / raw) To: 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 at 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 at 0 { + compatible = "arm,versatile-sysreg", "syscon"; + reg = <0x00000 0x1000>; + }; + aaci at 4000 { compatible = "arm,primecell"; reg = <0x4000 0x1000>; -- 2.1.0 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 3/3] dts: versatile: add sysregs node 2015-01-28 17:56 ` [PATCH 3/3] dts: versatile: add sysregs node 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: linux-arm-kernel On Wed, Jan 28, 2015 at 6:56 PM, Rob Herring <robh@kernel.org> wrote: > 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 at vger.kernel.org Acked-by: Linus Walleij <linus.walleij@linaro.org> Yours, Linus Walleij ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2015-02-03 13:23 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 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-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-29 10:28 ` Liviu Dudau 2015-01-28 17:56 ` [PATCH 3/3] dts: versatile: add sysregs node Rob Herring 2015-02-03 13:23 ` Linus Walleij
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).