ARM: meson: add clocksource support
cover ARM: meson: add clocksource support
Two patches taken from patchset http://www.spinics.net/lists/devicetree/msg48979.html
adding support for clocksource and clockevents driver.
Daniel and Thomas,
if it's fine with you, could you please take these patches in the clocksource tree?
Thanks,
Carlo Caione (2):
ARM: meson: documentation: add timer documentation
ARM: meson6: clocksource: add Meson6 timer support
.../bindings/timer/amlogic,meson6-timer.txt | 16 ++ drivers/clocksource/Kconfig | 3 + drivers/clocksource/Makefile | 1 + drivers/clocksource/meson6_timer.c | 167 +++++++++++++++++++++ 4 files changed, 187 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/amlogic,meson6-timer.txt create mode 100644 drivers/clocksource/meson6_timer.c
Signature · 1 line
1.9.1
PATCH 1/2 ARM: meson: documentation: add timer documentation
--- .../devicetree/bindings/timer/amlogic,meson6-timer.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/amlogic,meson6-timer.txt
Documentation/devicetree/bindings/timer/amlogic,meson6-timer.txt new file +16 -0
@@ -0,0 +1,16 @@ +Amlogic Meson6 SoCs Timer Controller + +Required properties: + +- compatible : should be "amlogic,meson6-timer" +- reg : Specifies base physical address and size of the registers. +- interrupts : The interrupt of the first timer + +Example: + +timer at c1109940 { + compatible = "amlogic,meson6-timer"; + reg = <0xc1109940 0x14>; + interrupts = <0 10 1>; +}; +
Signature · 1 line
1.9.1
PATCH 2/2 ARM: meson6: clocksource: add Meson6 timer support
In reply to Carlo CaioneMeson6 SoCs are equipped with 5 32-bit timers, called TIMER_A, TIMER_B, TIMER_C, TIMER_D and TIMER_E.
The driver is providing clocksource support for the 32-bit counter using TIMER_E. Clockevents are also supported using TIMER_A.
--- drivers/clocksource/Kconfig | 3 + drivers/clocksource/Makefile | 1 + drivers/clocksource/meson6_timer.c | 167 +++++++++++++++++++++++++++++++++++++ 3 files changed, 171 insertions(+) create mode 100644 drivers/clocksource/meson6_timer.c
drivers/clocksource/Kconfig +3 -0
@@ -30,6 +30,9 @@ config ARMADA_370_XP_TIMER bool select CLKSRC_OF +config MESON6_TIMER + bool + config ORION_TIMER select CLKSRC_OF select CLKSRC_MMIO
drivers/clocksource/Makefile +1 -0
@@ -25,6 +25,7 @@ obj-$(CONFIG_ARCH_PRIMA2) += timer-prima2.o obj-$(CONFIG_ARCH_U300) += timer-u300.o obj-$(CONFIG_SUN4I_TIMER) += sun4i_timer.o obj-$(CONFIG_SUN5I_HSTIMER) += timer-sun5i.o +obj-$(CONFIG_MESON6_TIMER) += meson6_timer.o obj-$(CONFIG_ARCH_TEGRA) += tegra20_timer.o obj-$(CONFIG_VT8500_TIMER) += vt8500_timer.o obj-$(CONFIG_ARCH_NSPIRE) += zevio-timer.o
drivers/clocksource/meson6_timer.c new file +167 -0
167 lines not on this page · raw message
Signature · 1 line
1.9.1
cover ARM: meson: add clocksource support
In reply to Carlo CaioneQuoted 6 lines · Carlo Caione
Two patches taken from patchset http://www.spinics.net/lists/devicetree/msg48979.html
adding support for clocksource and clockevents driver.Daniel and Thomas,
if it's fine with you, could you please take these patches in the clocksource tree?
Hi Carlo,
just a head up to tell you I saw your patchset. I am right now traveling so I will review the patches and pick them up as soon as I come back.
Thanks
-- Daniel
Quoted 12 lines
Carlo Caione (2):
ARM: meson: documentation: add timer documentation
ARM: meson6: clocksource: add Meson6 timer support.../bindings/timer/amlogic,meson6-timer.txt | 16 ++ drivers/clocksource/Kconfig | 3 + drivers/clocksource/Makefile | 1 + drivers/clocksource/meson6_timer.c | 167 +++++++++++++++++++++ 4 files changed, 187 insertions(+)create mode 100644
Documentation/devicetree/bindings/timer/amlogic,meson6-timer.txtcreate mode 100644drivers/clocksource/meson6_timer.c
Signature · 5 lines
<http://www.linaro.org/> Linaro.org ? Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog
cover ARM: meson: add clocksource support
Quoted 8 lines · Daniel Lezcano
Quoted 6 lines · Carlo Caione
Two patches taken from patchset http://www.spinics.net/lists/devicetree/msg48979.html
adding support for clocksource and clockevents driver.Daniel and Thomas,
if it's fine with you, could you please take these patches in the clocksource tree?
Quoted 5 lines
Hi Carlo,
just a head up to tell you I saw your patchset. I am right now traveling so I will review the patches and pick them up as soon as I come back.
Hi Daniel,
have you had any chance to look at this?
Thanks,
Signature · 1 line
Carlo Caione
cover ARM: meson: add clocksource support
Quoted 9 lines · Carlo Caione
Quoted 8 lines · Daniel Lezcano
Quoted 6 lines · Carlo Caione
Two patches taken from patchset http://www.spinics.net/lists/devicetree/msg48979.html
adding support for clocksource and clockevents driver.Daniel and Thomas,
if it's fine with you, could you please take these patches in the clocksource tree?
Quoted 8 lines
Quoted 5 lines
Hi Carlo,
just a head up to tell you I saw your patchset. I am right now traveling so I will review the patches and pick them up as soon as I come back.
Hi Daniel,
have you had any chance to look at this?
I am on it.
-- Daniel
Signature · 5 lines
<http://www.linaro.org/> Linaro.org ? Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog