Re: [PATCH V4] pwm: lpc32xx - Add a driver for the motor PWM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Wednesday 10 September 2014 17:59:41 Alban Bedel wrote:
> On Wed, 10 Sep 2014 17:51:36 +0200
> Arnd Bergmann <arnd@xxxxxxxx> wrote:
> 
> > On Wednesday 10 September 2014 17:43:42 Alban Bedel wrote:
> > > +- #pwm-cells: should be 3. See pwm.txt in this directory for a description of
> > > +  the cells format. The only third cell flag supported by this binding is
> > > +  PWM_POLARITY_INVERTED.
> > 
> > If you don't have multiple pwm outputs or programmable period, I would say it
> > should use #pwm-cells=<1> and only pass the polarity.
> 
> There is 3 channel, so 3 PWM from the API POV, and the period is
> independently programmable for each one.

Then you should put the channel number into the first cell and the period
length into the second cell, as the pwm.txt document says.

	Arnd
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux