Re: [PATCH/RFT 08/12] ARM: davinci: register the usb20_phy clock on the SoC file

From: David Lechner
Date: Mon Oct 10 2016 - 19:27:35 EST

On 10/07/2016 11:42 AM, ahaslam@xxxxxxxxxxxx wrote:
From: Axel Haslam <ahaslam@xxxxxxxxxxxx>

The usb20_phy clock needs to be registered for the driver to be able
to get and enable a clock. Currently the usb phy clocks are registered
form board files, which will not be called during a device tree based

To be able to probe correctly usb form a device tree boot, register
the usb phy clocks form the SoC specific init.

Unfourtunatly, davinci does not have proper clock support on device tree
yet, so by registering the clock form de SoC specific file we are
forced to hardcode the parent clock, and cannot select refclkin as
parent for any of the phy clocks of the da850 family.

FYI, I have started working on the clocks as well if you want to take it and run with it.

(Ignore the ev3dev commit stuck in the middle there.)

As none of the current da850 based boards currently in mainline use
refclkin as source. I guess we can live with this limitation until clocks
are correctly represented through CCF/device tree.