]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
clk: mvebu: cp110: do not depend anymore of the *-clock-output-names
authorGregory CLEMENT <gregory.clement@free-electrons.com>
Wed, 31 May 2017 13:11:09 +0000 (15:11 +0200)
committerGregory CLEMENT <gregory.clement@free-electrons.com>
Mon, 19 Jun 2017 15:22:21 +0000 (17:22 +0200)
commitf5667274ba9e73a740210ed996cc0f63c8d2f601
treee76ab932f36c2bbdec2a91c669f29da3138f8a46
parent29e6beb5a55fe79c94e0f746d0de7bd851cd3618
clk: mvebu: cp110: do not depend anymore of the *-clock-output-names

Using the *-clock-output-names property was a convenient way to have a
unique name for each clock even when there are multiple cp110 blocks
as we can find on Armada 8K.

However it has some drawbacks: the main one being a stronger link than
necessary between the driver and the device tree. For example the clock
name can't be changed, removed or moved. It is still the early stage of
introduction of the Armada 7K/8K and the hardware is still not totally
documented, especially for the clock part. By removing the use of
*-clock-output-names it will be easier to add new clocks without breaking
the compatibility.

The name of each clock is now created by using its physical address as a
prefix (as it was done for the platform device names). Thanks to this we
have an automatic way to compute a unique name.

Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
drivers/clk/mvebu/cp110-system-controller.c