Re: [PATCH 1/2] dt: watchdog: Add DT binding documentation for jz47xx watchdog timer

Arnd Bergmann
2015-01-29T01:51:26Z

On Wednesday 28 January 2015 10:27:00 Zubair Lutfullah Kakakhel wrote:
>
> There is on-going work to fix jz4740, add jz4780 and shake the entire clock tree as well.
>
> Patch 14 onwards in this series
> http://patchwork.linux-mips.org/bundle/paulburton/ci20-v3.20/

Right, that looks good.

> Instead of lumping things out in huge changesets, I intended to push out the minor patches that are disjoint.
>
> That was the purpose of sending these two patches.
>
> Current binding requires the clock-name to be "rtc". Hence the name at the moment.

The problem with the binding is that once you've established it, it
is very hard to change. One possible solution would be to try
'of_clk_get(dev->of_node, 0)' in the driver first, and only then
call clk_get(dev, "rtc"). Doing that, you can have an anonymous clock
in the DT without waiting for the clock driver to get merged first
or breaking the existing setup.

Arnd