[PATCH v3] ARM: at91: Document new TCB bindings

Boris Brezillon boris.brezillon at free-electrons.com
Mon Jul 4 05:03:58 PDT 2016


On Mon, 4 Jul 2016 12:36:31 +0200
Alexandre Belloni <alexandre.belloni at free-electrons.com> wrote:

> On 04/07/2016 at 12:24:52 +0200, Boris Brezillon wrote :
> > On Fri,  1 Jul 2016 23:52:05 +0200
> > Alexandre Belloni <alexandre.belloni at free-electrons.com> wrote:  
> > > +One interrupt per TC block:
> > > +	tcb0: timer at fff7c000 {
> > > +		compatible = "atmel,at91rm9200-tcb", "simple-mfd", "syscon";
> > > +		#address-cells = <1>;
> > > +		#size-cells = <0>;
> > > +		reg = <0xfff7c000 0x100>;
> > > +		interrupts = <18 4>;
> > > +		clocks = <&tcb0_clk>, <&clk32k>;
> > > +		clock-names = "t0_clk", "slow_clk";
> > > +
> > > +		timer at 0 {
> > > +			compatible = "atmel,tcb-timer";
> > > +			reg = <0>, <1>;
> > > +		};
> > > +
> > > +		timer at 2 {
> > > +			compatible = "atmel,tcb-timer";
> > > +			reg = <2>;
> > > +		};  
> > 
> > And how can you differentiate the clocksource from the clkevent?
> >   
> 
> It doesn't really matter actually, I'll do the selection in the driver,
> as suggested by Rob.
> 

Yes, I've read Rob's review, but then what's the point of defining 2
timer nodes, just do the detection based on the number of channels
you've reserved for the timer and define a single node.



More information about the linux-arm-kernel mailing list