Skip to contentSkip to conversation

ARM: meson: add clocksource support

PATCH New Carlo Caione 2 participants 6 messages Sep 15, 2014 – Sep 25, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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
new file mode 100644
index 0000000..d79be27
@@ -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
#2 lore raw

PATCH 2/2 ARM: meson6: clocksource: add Meson6 timer support

In reply to Carlo Caione

Meson6 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
index cfd6519..38029ca 100644
@@ -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
index 7fd9fd1..e4ae987 100644
@@ -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
#3 lore raw

cover ARM: meson: add clocksource support

In reply to Carlo Caione
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?

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.txt create mode 100644 drivers/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
#4 lore raw

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
#5 lore raw

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