From: Dave Gerlach <d-gerlach@ti.com>
To: linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org,
linux-pm@vger.kernel.org
Cc: cpufreq@vger.kernel.org, devicetree@vger.kernel.org,
kernel@pengutronix.de, "Rafael J. Wysocki" <rjw@rjwysocki.net>,
Jisheng Zhang <jszhang@marvell.com>,
Anson Huang <Anson.Huang@freescale.com>,
Shawn Guo <shawn.guo@linaro.org>,
Viresh Kumar <viresh.kumar@linaro.org>,
Nishanth Menon <nm@ti.com>, Dave Gerlach <d-gerlach@ti.com>
Subject: [RFC 4/9] ARM: dts: AM33XX: Add opp-modifier device entry and add higher OPPs
Date: Fri, 14 Mar 2014 14:25:30 -0500 [thread overview]
Message-ID: <1394825135-60110-5-git-send-email-d-gerlach@ti.com> (raw)
In-Reply-To: <1394825135-60110-1-git-send-email-d-gerlach@ti.com>
Add an entry for opp_modifier which configures OPPs on am33xx. Within this
nodes are defined with opp-modifier propety that are defined as a list
of frequency, offset from base register, and efuse value. The CPU node
passes a phandle to the appropriate child node of the efuse node.
This patch also adds the ES2.x OPPs for am33xx.
Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
---
arch/arm/boot/dts/am33xx.dtsi | 27 +++++++++++++++++++++++++--
include/dt-bindings/opp/ti.h | 22 ++++++++++++++++++++++
2 files changed, 47 insertions(+), 2 deletions(-)
create mode 100644 include/dt-bindings/opp/ti.h
diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi
index 6d95d3d..a09f4fb 100644
--- a/arch/arm/boot/dts/am33xx.dtsi
+++ b/arch/arm/boot/dts/am33xx.dtsi
@@ -10,6 +10,7 @@
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/am33xx.h>
+#include <dt-bindings/opp/ti.h>
#include "skeleton.dtsi"
@@ -52,12 +53,17 @@
*/
operating-points = <
/* kHz uV */
+ 1000000 1351000
+ 800000 1285000
720000 1285000
600000 1225000
- 500000 1125000
- 275000 1125000
+ 300000 1125000
>;
+
voltage-tolerance = <2>; /* 2 percentage */
+
+ platform-opp-modifier = <&mpu_opp_modifier>;
+
clock-latency = <300000>; /* From omap-cpufreq driver */
};
};
@@ -818,6 +824,23 @@
reg = <0x48310000 0x2000>;
interrupts = <111>;
};
+
+ opp_modifier: opp_modifier@0x44e107fc {
+ compatible = "opp-modifier-reg-bit";
+ reg = <0x44e107fc 0x04>;
+
+ opp,reg-bit-enable-low;
+
+ mpu_opp_modifier: mpu_opp_modifier {
+ opp-modifier = <
+ /* kHz offset value */
+ 1000000 0 AM33XX_EFUSE_SMA_OPP_NITRO_1GHZ_BIT
+ 800000 0 AM33XX_EFUSE_SMA_OPP_TURBO_800MHZ_BIT
+ 720000 0 AM33XX_EFUSE_SMA_OPP_120_720MHZ_BIT
+ 600000 0 AM33XX_EFUSE_SMA_OPP_100_600MHZ_BIT
+ >;
+ };
+ };
};
};
diff --git a/include/dt-bindings/opp/ti.h b/include/dt-bindings/opp/ti.h
new file mode 100644
index 0000000..58436c1
--- /dev/null
+++ b/include/dt-bindings/opp/ti.h
@@ -0,0 +1,22 @@
+/*
+ * This header provides constants for TI SoC OPP bindings.
+ *
+ * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ */
+
+#ifndef __DT_BINDINGS_OPP_TI_H__
+#define __DT_BINDINGS_OPP_TI_H__
+
+#define AM33XX_EFUSE_SMA_OPP_50_300MHZ_BIT (1 << 4)
+#define AM33XX_EFUSE_SMA_OPP_100_300MHZ_BIT (1 << 5)
+#define AM33XX_EFUSE_SMA_OPP_100_600MHZ_BIT (1 << 6)
+#define AM33XX_EFUSE_SMA_OPP_120_720MHZ_BIT (1 << 7)
+#define AM33XX_EFUSE_SMA_OPP_TURBO_800MHZ_BIT (1 << 8)
+#define AM33XX_EFUSE_SMA_OPP_NITRO_1GHZ_BIT (1 << 9)
+
+#endif /* __DT_BINDINGS_OPP_TI_H__ */
--
1.9.0
next prev parent reply other threads:[~2014-03-14 19:25 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-14 19:25 [RFC 0/9] Introduce OPP modifier for ARM SoCs Dave Gerlach
2014-03-14 19:25 ` [RFC 1/9] opp-modifier: Introduce OPP Modifier Framework Dave Gerlach
2014-03-14 19:25 ` [RFC 2/9] opp-modifier: Add opp-modifier-reg driver Dave Gerlach
2014-03-14 21:00 ` Rob Herring
2014-03-17 14:30 ` Nishanth Menon
2014-03-17 18:37 ` Rob Herring
2014-03-18 15:36 ` Nishanth Menon
2014-03-25 3:24 ` Dave Gerlach
2014-03-14 19:25 ` [RFC 3/9] PM / OPP: Add hook to modify OPPs after they are loaded Dave Gerlach
2014-03-14 19:25 ` Dave Gerlach [this message]
2014-03-14 19:25 ` [RFC 5/9] ARM: dts: AM4372: Add opp-modifier device entry and add higher OPPs Dave Gerlach
2014-03-14 19:25 ` [RFC 6/9] ARM: dts: omap443x: Add opp-modifier " Dave Gerlach
2014-03-14 19:25 ` [RFC 7/9] ARM: dts: omap4460: " Dave Gerlach
2014-03-14 19:25 ` [RFC 8/9] ARM: dts: dra7: Add opp-modifier device " Dave Gerlach
2014-03-14 19:25 ` [RFC 9/9] ARM: dts: imx6q: Add opp-modifier device entry Dave Gerlach
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=1394825135-60110-5-git-send-email-d-gerlach@ti.com \
--to=d-gerlach@ti.com \
--cc=Anson.Huang@freescale.com \
--cc=cpufreq@vger.kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jszhang@marvell.com \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-omap@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=nm@ti.com \
--cc=rjw@rjwysocki.net \
--cc=shawn.guo@linaro.org \
--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).