From: Lucas Stach <l.stach@pengutronix.de>
To: Shawn Guo <shawn.guo@freescale.com>,
Viresh Kumar <viresh.kumar@linaro.org>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>,
linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org,
kernel@pengutronix.de
Subject: [PATCH 5/5] ARM: imx53: add cpufreq support
Date: Fri, 19 Sep 2014 18:16:21 +0200 [thread overview]
Message-ID: <1411143381-10516-6-git-send-email-l.stach@pengutronix.de> (raw)
In-Reply-To: <1411143381-10516-1-git-send-email-l.stach@pengutronix.de>
Instanciate the platform device for the generic cpufreq-cpu0
driver and add all required properties to the DT.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
arch/arm/boot/dts/imx53.dtsi | 13 ++++++++++++-
arch/arm/mach-imx/mach-imx53.c | 4 ++++
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/imx53.dtsi b/arch/arm/boot/dts/imx53.dtsi
index 64fa27b36be0..bd5226a7ea20 100644
--- a/arch/arm/boot/dts/imx53.dtsi
+++ b/arch/arm/boot/dts/imx53.dtsi
@@ -46,10 +46,21 @@
cpus {
#address-cells = <1>;
#size-cells = <0>;
- cpu@0 {
+ cpu0: cpu@0 {
device_type = "cpu";
compatible = "arm,cortex-a8";
reg = <0x0>;
+ clocks = <&clks IMX5_CLK_ARM>;
+ clock-latency = <61036>;
+ voltage-tolerance = <5>;
+ operating-points = <
+ /* kHz */
+ 166666 850000
+ 400000 900000
+ 800000 1050000
+ 1000000 1200000
+ 1200000 1300000
+ >;
};
};
diff --git a/arch/arm/mach-imx/mach-imx53.c b/arch/arm/mach-imx/mach-imx53.c
index 03dd6ea13acc..4eb6849c52d2 100644
--- a/arch/arm/mach-imx/mach-imx53.c
+++ b/arch/arm/mach-imx/mach-imx53.c
@@ -38,9 +38,13 @@ static void __init imx53_dt_init(void)
imx_aips_allow_unprivileged_access("fsl,imx53-aipstz");
}
+static struct platform_device imx53_cpufreq_pdev = { .name = "cpufreq-cpu0", };
+
static void __init imx53_init_late(void)
{
imx53_pm_init();
+
+ platform_device_register(&imx53_cpufreq_pdev);
}
static const char * const imx53_dt_board_compat[] __initconst = {
--
2.1.0
next prev parent reply other threads:[~2014-09-19 16:16 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-19 16:16 [PATCH 0/5] i.MX53 cpufreq support Lucas Stach
2014-09-19 16:16 ` [PATCH 1/5] cpufreq: cpu0: disable unsupported OPPs Lucas Stach
2014-09-19 16:49 ` Viresh Kumar
2014-09-19 16:16 ` [PATCH 2/5] clk: imx5: add step clock, used when reprogramming PLL1 Lucas Stach
2014-09-19 16:16 ` [PATCH 3/5] clk: imx: add CPU clock type Lucas Stach
2014-09-26 2:59 ` Shawn Guo
2014-09-26 10:10 ` Lucas Stach
2014-09-19 16:16 ` [PATCH 4/5] arm: imx53: clk: add ARM clock Lucas Stach
2014-09-19 16:16 ` Lucas Stach [this message]
2014-09-26 3:02 ` [PATCH 5/5] ARM: imx53: add cpufreq support Shawn Guo
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=1411143381-10516-6-git-send-email-l.stach@pengutronix.de \
--to=l.stach@pengutronix.de \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-pm@vger.kernel.org \
--cc=rjw@rjwysocki.net \
--cc=shawn.guo@freescale.com \
--cc=viresh.kumar@linaro.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).