Re: how to specify an OMAP clock in device tree?
From: Roger Quadros <hidden>
Date: 2013-02-06 10:39:56
Also in:
linux-arm-kernel, linux-omap
On 02/06/2013 12:21 PM, Rajendra Nayak wrote:
On Tuesday 05 February 2013 08:22 PM, Roger Quadros wrote:quoted
Doesn't look very elegant to me, but I wouldn't mind if there is no better option. Even then, we can't rely on the device name as its index can change based on where it isWell, thats what I said in the first mail, that *if* you are able to fix the device name, *then* we could use clkdev the way its used in non-DT case. But then you came back saying 'Fixing the device name doesn't really solve the problem.' :)
It does, yes, but depending on fixed device names is not so great for DT, is it? Doesn't solve the problem in the right sense :)
quoted
located in the dts file. e.g. in the beginning it may be named phy.8, and if a device node is added before it, it will get changed to phy.9If you provide a phandle to the PHY node in the board node, for which you need to add the clk alias, you can always extract the device (using of_find_device_by_node() ) and hence its name, so it doesn't matter if its phy.8 or phy.9.
Right, I'll come up with something on these lines. Thanks for the suggestions :). cheers, -roger -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html