From: linux@baker-net.org.uk (Adam Baker)
To: linux-arm-kernel@lists.infradead.org
Subject: Kirkwood CPU Freq driver
Date: Fri, 31 May 2013 00:19:01 +0100 [thread overview]
Message-ID: <51A7DE65.4090108@baker-net.org.uk> (raw)
In-Reply-To: <20130528215126.GF7678@lunn.ch>
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
next prev parent reply other threads:[~2013-05-30 23:19 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-25 21:32 Kirkwood CPU Freq driver Adam Baker
2013-05-26 8:36 ` Andrew Lunn
2013-05-26 18:05 ` Jason Cooper
2013-05-28 21:36 ` Adam Baker
2013-05-28 21:51 ` Andrew Lunn
2013-05-30 23:19 ` Adam Baker [this message]
2013-05-31 5:33 ` Andrew Lunn
2013-05-29 0:58 ` Jason Cooper
2013-05-29 19:34 ` Jason Cooper
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51A7DE65.4090108@baker-net.org.uk \
--to=linux@baker-net.org.uk \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).