Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dts: mpc512x: add clock related device tree specs

this addresses the clock driver aka provider's side of clocks
- introduce a 'clocks' subtree with an 'osc' node for the crystal
or oscillator SoC input (fixed frequency)
- the 'clock@f00' clock-control-module node references the 'osc' for
its input, and is another provider for all the clocks which the
CCM component manages
- prepare for future references to clocks from peripheral nodes
by means of the <&clks ID> syntax and symbolic ID names which a
header file provides
- provide default values with 33MHz oscillator frequency in the
common include (the 66MHz IPS bus already was there), and add
override values for the ifm AC14xx board which deviates from
the reference design (25MHz xtal, 80MHz IPS bus)

Cc: Rob Herring <rob.herring@calxeda.com>
Cc: Pawel Moll <pawel.moll@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Stephen Warren <swarren@wwwdotorg.org>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: devicetree@vger.kernel.org
Reviewed-by: Mike Turquette <mturquette@linaro.org>
Signed-off-by: Gerhard Sittig <gsi@denx.de>
Signed-off-by: Anatolij Gustschin <agust@denx.de>

authored by

Gerhard Sittig and committed by
Anatolij Gustschin
f87ccd2e 4cc5e1ca

+24 -1
+7
arch/powerpc/boot/dts/ac14xx.dts
··· 139 139 }; 140 140 }; 141 141 142 + clocks { 143 + osc { 144 + clock-frequency = <25000000>; 145 + }; 146 + }; 147 + 142 148 soc@80000000 { 149 + bus-frequency = <80000000>; /* 80 MHz ips bus */ 143 150 144 151 clock@f00 { 145 152 compatible = "fsl,mpc5121rev2-clock", "fsl,mpc5121-clock";
+17 -1
arch/powerpc/boot/dts/mpc5121.dtsi
··· 9 9 * option) any later version. 10 10 */ 11 11 12 + #include <dt-bindings/clock/mpc512x-clock.h> 13 + 12 14 /dts-v1/; 13 15 14 16 / { ··· 75 73 ranges = <0x0 0x0 0xfc000000 0x04000000>; 76 74 }; 77 75 76 + clocks { 77 + #address-cells = <1>; 78 + #size-cells = <0>; 79 + 80 + osc: osc { 81 + compatible = "fixed-clock"; 82 + #clock-cells = <0>; 83 + clock-frequency = <33000000>; 84 + }; 85 + }; 86 + 78 87 soc@80000000 { 79 88 compatible = "fsl,mpc5121-immr"; 80 89 #address-cells = <1>; ··· 130 117 }; 131 118 132 119 /* Clock control */ 133 - clock@f00 { 120 + clks: clock@f00 { 134 121 compatible = "fsl,mpc5121-clock"; 135 122 reg = <0xf00 0x100>; 123 + #clock-cells = <1>; 124 + clocks = <&osc>; 125 + clock-names = "osc"; 136 126 }; 137 127 138 128 /* Power Management Controller */