Re: [PATCH 46/58] clocksource/drivers: Add a new driver for the Atmel ARM TC blocks
From: Alexandre Belloni
Date: Wed Jun 07 2017 - 19:17:37 EST
On 07/06/2017 at 23:08:48 +0200, Daniel Lezcano wrote:
> > I was going to agree but this is not flexible enough because the
> > quadrature decoder always uses the first two channels. So on some
> > products, we may have:
> > - TCB0:
> > o channels 0,1: qdec
> > o channel 2: clocksource
> >
> > - TCB1:
> > o channels 0,1: qdec
> > o channel 2: clockevent
> >
> > This avoids wasting TCB channels.
>
> Ok. In this case you can check if the interrupt is specified for the node, if
> yes, then it is a clockevent.
>
But currently it is always specified in the SoC's dtsi. I don't find
that too practical to push that to the board's dts. Also, lying by
omission (the IRQ is always wired) in the DT is not different from
having a property selecting which timer is the clocksource and which is
the clockevent.
--
Alexandre Belloni, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com