Re: [PATCH v2 RESEND] pwm: Add CLPS711X PWM support

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

 




Вторник, 25 февраля 2014, 16:33 +01:00 от Arnd Bergmann <arnd@xxxxxxxx>:
> On Tuesday 25 February 2014 19:27:47 Alexander Shiyan wrote:
> > Add a new driver for the ARM CLPS711X Pulse Width Modulator (PWM) interface.
> > This CPU contain two 4-bit PWM outputs with constant period, based on CPU
> > PLL frequency. PWM polarity is determined by hardware by power on reset.
> > 
> > Signed-off-by: Alexander Shiyan <shc_work@xxxxxxx>
> 
> Looks good, just one comment
> 
> > +++ b/Documentation/devicetree/bindings/pwm/cirrus-clps711x-pwm.txt
> > @@ -0,0 +1,15 @@
> > +* Cirris Logic CLPS711X PWM controller
> > +
> > +Required properties:
> > +- compatible: Should be "cirrus,clps711x-pwm".
> > +- reg: Physical base address and length of the controller's registers.
> > +- clocks: phandle to the PWM reference clock.
> > +- #pwm-cells: Should be 1. The cell specifies the index of the channel.
> > +
> > +Example:
> > +	pwm: pwm@80000400 {
> > +		compatible = "cirrus,clps711x-pwm";
> > +		reg = <0x80000400 0x4>;
> > +		clocks = <&clks 8>;
> > +		#pwm-cells = <1>;
> > +	};
> 
> We really want to avoid wildcards in compatible strings. Can you call this
> "cirrus,cs89712-pwm" to match the first SoC that came with this hardware?
> Obviously if there was some chip before that (I'm not familiar with the
> model numbers), use that instead.
> 
> You can either list all chips you know that have this in the driver,
> or you use "cirrus,cs89712-pwm" as the fallback, and use the name of
> the SoC you have as the more specific string.

It seems that in this case we will need to modify the compatibility string
for other drivers that are already available in the kernel...

---
��.n��������+%������w��{.n����z�{��ܨ}���Ơz�j:+v�����w����ޙ��&�)ߡ�a����z�ޗ���ݢj��w�f





[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