RE: [PATCHv6 4/4] Documentation: Add device tree bindings forFreescale FTM PWM.

From: Li Xiubo
Date: Mon Dec 02 2013 - 02:18:44 EST


>
> > + "ftm0" (module clock),
> > + "ftm0_counter" (counter clock),
> > +- clocks : Must contain a clock specifier for each entry in
> > +clock-names,
> > + See clock/clock-bindings.txt for details of the property values.
>
> Note that the order is significant here, at least from the way the driver
> currently implements this. You can probably make this more generic in the
> driver by using of_property_match_string() on the clock-names property to
> find the index of "ftm0_counter" and pass that index to the
> of_parse_phandle_with_args() function to cope with the situation where the
> device tree has the clocks in a different order.
>

Yes, that's much better.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/