Kirkwood CPU Freq driver
Adam Baker
linux at baker-net.org.uk
Thu May 30 19:19:01 EDT 2013
On 28/05/13 22:51, Andrew Lunn wrote:
>> I've now tested with the first of these patches applied and the
>> >changes from the second added to my .config
>> >
>> >To get it to work I had to follow the instructions in the
>> >Documentation to add the cpus entry to kirkwood.dtsi so I'll post
>> >that as a patch in a day or two but after doing that I have a
>> >working cpufreq driver.
> Great that you got it working. Something must of changed in the
> generic code, since originally a cpu node was not required.
>
> The clocks are not needed in node, so please don't list them.
>
Andrew, I just tried testing without the clocks line in the .dtsi and I
get the messages below in dmesg
[ 18.554990] ERROR: could not get clock /cpus/cpu at 0:cpu_clk(0)
[ 18.560840] kirkwood-cpufreq kirkwood-cpufreq: Unable to get cpuclk
[ 18.567154] kirkwood-cpufreq: probe of kirkwood-cpufreq failed with
error -2
looking at the code in kirkwood_cpufreq_probe() this is what I would
expect. Unless I've missed something the driver is simply advertising
that it needs those clocks and as they presumably are not gateable it
may be safe to not bother reserving them but I don't know the code well
enough to make that decision.
Having now looked at the range of kirkwood SoCs I see oretthat there is
a 88F632X family that include 2 processor cores. The cpus definitions
therefore theoretically ought to live in kirkwood-6281.dtsi and
kirkwood-6282.dtsi. The only 2 boards I can see that don't include one
of those two at present are kirkwood-km for which the SoC data isn't
published and kirkwood-nsa310 which seems to simply be missing pinmux
information for things like the sata ports.
Would everyone prefer to see the cpus node in the 628x.dtsi files or
should it go in kirkwood.dtsi until support for the 88F632X family is added?
Regards
Adam
More information about the linux-arm-kernel
mailing list