From: adam@baker-net.org.uk (Adam Baker)
To: linux-arm-kernel@lists.infradead.org
Subject: Kirkwood CPU Freq driver
Date: Sat, 25 May 2013 22:32:04 +0100 [thread overview]
Message-ID: <51A12DD4.9010907@baker-net.org.uk> (raw)
Hi,
I've been trying to test Andrew Lunn's work creating a CPU Idle driver
for Kirkwood. The first problem I encountered was that somehow in
merging the patch the ARCH_HAS_CPUFREQ line appears to have got lost in
arch/arm/Kconfig so I put that back (this may not be an issue if you
build a multiarch kernel but I was targetting just Kirkwood)
--- a/arch/arm/Kconfig 2013-05-24 19:45:59.000000000 +0100
+++ b/arch/arm/Kconfig 2013-05-17 19:58:21.000000000 +0100
@@ -567,6 +567,7 @@ config ARCH_DOVE
config ARCH_KIRKWOOD
bool "Marvell Kirkwood"
+ select ARCH_HAS_CPUFREQ
select ARCH_REQUIRE_GPIOLIB
select CPU_FEROCEON
select GENERIC_CLOCKEVENTS
Then I saw that the driver needs a cpu definition and none of the
kirkwood dts files provide one. I believe all kirkwood SoCs are
uniprocessor so I created an entry in kirkwood.dtsi
--- a/arch/arm/boot/dts/kirkwood.dtsi 2013-05-19 22:57:07.000000000 +0100
+++ b/arch/arm/boot/dts/kirkwood.dtsi 2013-05-19 23:10:32.000000000 +0100
@@ -4,6 +4,18 @@
compatible = "marvell,kirkwood";
interrupt-parent = <&intc>;
+ cpus {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ cpu at 0 {
+ device_type = "cpu";
+ compatible = "marvell,feroceon";
+ clocks = <&core_clk 1>, <&core_clk 3>, <&gate_clk 11>;
+ clock-names = "cpu_clk", "ddrclk", "powersave";
+ };
+ };
+
aliases {
gpio0 = &gpio0;
gpio1 = &gpio1;
(Yes I know Thunderbird has mangled the wordwrap in the patch but as I'm
only providing it as a description of what I did not to be applied I
won't beat it into submission this time)
As nothing seems to depend upon it I went with the CPU compatible type
as defined in Documentation/devicetree/bindings/arm/cpus.txt rather than
the marvell,sheeva-88SV131 in
Documentation/devicetree/bindings/arm/kirkwood.txt
I tried putting some debug code in kirkwood_cpufreq_probe() and it
doesn't appear to be getting called.
Have I
a) misunderstood what kirkwood variants this driver is supposed to work with
b) manged my CPU definition so it doesn't work
or c) missed some other critical configuration step?
Many thanks
Adam
next reply other threads:[~2013-05-25 21:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-25 21:32 Adam Baker [this message]
2013-05-26 8:36 ` Kirkwood CPU Freq driver 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
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=51A12DD4.9010907@baker-net.org.uk \
--to=adam@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).