linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/6] clocksource: rework Atmel TCB timer driver
@ 2018-01-05 14:30 Alexandre Belloni
  2018-01-05 14:30 ` [PATCH v2 1/6] ARM: at91: add TCB registers definitions Alexandre Belloni
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: Alexandre Belloni @ 2018-01-05 14:30 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

This series gets back on the TCB drivers rework. It introduces a new driver to
handle the clocksource and clockevent devices.

As a reminder, this is necessary because:
 - the current tcb_clksrc driver is probed too late to be able to be used at
   boot and we now have SoCs that don't have a PIT. They currently are not able
   to boot a mainline kernel.
 - using the PIT doesn't work well with preempt-rt because its interrupt is
   shared (in particular with the UART and their interrupt flags are
   incompatible)
 - the current solution is wasting some TCB channels

The plan is to get this driver upstream, then convert the TCB PWM driver to be
able to get rid of the tcb_clksrc driver along with atmel_tclib.

I decided to leave out the clocksource/clockevent selection for now as it seems
the discussion is going nowhere. We can get back to that later

Main changes in v2:
 - use direct IO instead of regmap when accessing channel specific registers to
   avoid the regmap locking
 - implement suspend/resume

Alexandre Belloni (6):
  ARM: at91: add TCB registers definitions
  clocksource/drivers: Add a new driver for the Atmel ARM TC blocks
  clocksource/drivers: atmel-pit: allow unselecting ATMEL_PIT
  ARM: configs: at91: use new TCB timer driver
  ARM: configs: at91: sama5: unselect ATMEL_PIT
  ARM: configs: at91: at91_dt unselect ATMEL_PIT

 arch/arm/configs/at91_dt_defconfig    |   2 +-
 arch/arm/configs/sama5_defconfig      |   2 +-
 drivers/clocksource/Kconfig           |  23 +-
 drivers/clocksource/Makefile          |   3 +-
 drivers/clocksource/timer-atmel-tcb.c | 608 ++++++++++++++++++++++++++++++++++
 include/soc/at91/atmel_tcb.h          | 229 +++++++++++++
 6 files changed, 863 insertions(+), 4 deletions(-)
 create mode 100644 drivers/clocksource/timer-atmel-tcb.c
 create mode 100644 include/soc/at91/atmel_tcb.h

-- 
2.15.1

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2018-01-08  8:53 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-05 14:30 [PATCH v2 0/6] clocksource: rework Atmel TCB timer driver Alexandre Belloni
2018-01-05 14:30 ` [PATCH v2 1/6] ARM: at91: add TCB registers definitions Alexandre Belloni
2018-01-07 11:59   ` Philippe Ombredanne
2018-01-05 14:30 ` [PATCH v2 2/6] clocksource/drivers: Add a new driver for the Atmel ARM TC blocks Alexandre Belloni
2018-01-05 14:30 ` [PATCH v2 3/6] clocksource/drivers: atmel-pit: allow unselecting ATMEL_PIT Alexandre Belloni
2018-01-07 18:07   ` Daniel Lezcano
2018-01-07 18:44     ` Alexandre Belloni
2018-01-08  7:23       ` Daniel Lezcano
2018-01-08  8:22         ` Boris Brezillon
2018-01-08  8:53           ` Daniel Lezcano
2018-01-05 14:30 ` [PATCH v2 4/6] ARM: configs: at91: use new TCB timer driver Alexandre Belloni
2018-01-05 14:30 ` [PATCH v2 5/6] ARM: configs: at91: sama5: unselect ATMEL_PIT Alexandre Belloni
2018-01-05 14:30 ` [PATCH v2 6/6] ARM: configs: at91: at91_dt " Alexandre Belloni

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).