[PATCH 2/2] ARM: nomadik: add the new clocks to the device tree
Arnd Bergmann
arnd at arndb.de
Mon Jun 10 00:21:02 EST 2013
On Sunday 09 June 2013, Linus Walleij wrote:
> + /*
> + * IP AMBA bus clocks, driving the bus side of the
> + * peripheral clocking, clock gates.
> + */
> +
> + hclkdma0: hclkdma0 at 48M {
> + #clock-cells = <0>;
> + compatible = "st,nomadik-src-clock";
> + clock-id = <0>;
> + clocks = <&hclk>;
> + };
> + hclksmc: hclksmc at 48M {
> + #clock-cells = <0>;
> + compatible = "st,nomadik-src-clock";
> + clock-id = <1>;
> + clocks = <&hclk>;
> + };
> + hclksdram: hclksdram at 48M {
> + #clock-cells = <0>;
> + compatible = "st,nomadik-src-clock";
> + clock-id = <2>;
> + clocks = <&hclk>;
> + };
> + hclkdma1: hclkdma1 at 48M {
> + #clock-cells = <0>;
> + compatible = "st,nomadik-src-clock";
> + clock-id = <3>;
> + clocks = <&hclk>;
> + };
Sorry if I'm being slow to understand how the clock bindings work, but if
you have 63 identical clocks that only differ in ther clock-id, can't you
just have a single DT node for them instead with #clock-cells=1 to pass the
number from the device using it?
Arnd
More information about the devicetree-discuss
mailing list