Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1287605

[PATCH v6 09/10] dt: cpufreq: st: Provide bindings for ST's CPUFreq implementation

From Lee Jones <lee.jones@linaro.org>
Newsgroups linux.kernel
Subject [PATCH v6 09/10] dt: cpufreq: st: Provide bindings for ST's CPUFreq implementation
Date 2015-12-09 17:00 +0100
Message-ID <qDPjS-1RQ-57@gated-at.bofh.it> (permalink)
References <qDPjP-1RQ-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Cc: devicetree@vger.kernel.org
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
---
 .../devicetree/bindings/cpufreq/cpufreq-st.txt     | 91 ++++++++++++++++++++++
 1 file changed, 91 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/cpufreq/cpufreq-st.txt

diff --git a/Documentation/devicetree/bindings/cpufreq/cpufreq-st.txt b/Documentation/devicetree/bindings/cpufreq/cpufreq-st.txt
new file mode 100644
index 0000000..d91a02a
--- /dev/null
+++ b/Documentation/devicetree/bindings/cpufreq/cpufreq-st.txt
@@ -0,0 +1,91 @@
+Binding for ST's CPUFreq driver
+===============================
+
+ST's CPUFreq driver attempts to read 'process' and 'version' attributes
+from the SoC, then supplies the OPP framework with 'prop' and 'supported
+hardware' information respectively.  The framework is then able to read
+the DT and operate in the usual way.
+
+For more information about the expected DT format [See: ../opp/opp.txt].
+
+Frequency Scaling only
+----------------------
+
+No vendor specific driver required for this.
+
+Located in CPU's node:
+
+- operating-points		: [See: ../power/opp.txt]
+
+Example [safe]
+--------------
+
+cpus {
+	cpu@0 {
+				 /* kHz     uV   */
+		operating-points = <1500000 0
+				    1200000 0
+				    800000  0
+				    500000  0>;
+	};
+};
+
+Dynamic Voltage and Frequency Scaling (DVFS)
+--------------------------------------------
+
+This requires the ST CPUFreq driver to supply 'process' and 'version' info.
+
+Located in CPU's node:
+
+- operating-points-v2		: [See ../power/opp.txt]
+
+Example [unsafe]
+----------------
+
+cpus {
+	cpu@0 {
+		operating-points-v2	= <&cpu0_opp_table>;
+	};
+};
+
+cpu0_opp_table: opp_table {
+	compatible = "operating-points-v2";
+
+	/* ############################################################### */
+	/* # WARNING: Do not attempt to copy/replicate these nodes,      # */
+	/* #          they are only to be supplied by the bootloader !!! # */
+	/* ############################################################### */
+	opp0 {
+		/*			   Major       Minor       Substrate */
+		/*			   2           all         all       */
+		opp-supported-hw	= <0x00000004  0xffffffff  0xffffffff>;
+		opp-hz			= /bits/ 64 <1500000000>;
+		clock-latency-ns	= <10000000>;
+
+		opp-microvolt-pcode0	= <1200000>;
+		opp-microvolt-pcode1	= <1200000>;
+		opp-microvolt-pcode2	= <1200000>;
+		opp-microvolt-pcode3	= <1200000>;
+		opp-microvolt-pcode4	= <1170000>;
+		opp-microvolt-pcode5	= <1140000>;
+		opp-microvolt-pcode6	= <1100000>;
+		opp-microvolt-pcode7	= <1070000>;
+	};
+
+	opp1 {
+		/*			   Major       Minor       Substrate */
+		/*			   all         all         all       */
+		opp-supported-hw	= <0xffffffff  0xffffffff  0xffffffff>;
+		opp-hz			= /bits/ 64 <1200000000>;
+		clock-latency-ns	= <10000000>;
+
+		opp-microvolt-pcode0	= <1110000>;
+		opp-microvolt-pcode1	= <1150000>;
+		opp-microvolt-pcode2	= <1100000>;
+		opp-microvolt-pcode3	= <1080000>;
+		opp-microvolt-pcode4	= <1040000>;
+		opp-microvolt-pcode5	= <1020000>;
+		opp-microvolt-pcode6	= <980000>;
+		opp-microvolt-pcode7	= <930000>;
+	};
+};
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v6 00/10] cpufreq: Introduce ST's CPUFreq driver Lee Jones <lee.jones@linaro.org> - 2015-12-09 17:00 +0100
  [PATCH v6 05/10] ARM: STi: STiH407: Provide CPU with clocking information Lee Jones <lee.jones@linaro.org> - 2015-12-09 17:00 +0100
  [PATCH v6 10/10] MAINTAINERS: Add ST's CPUFreq driver to the STI file list Lee Jones <lee.jones@linaro.org> - 2015-12-09 17:00 +0100
  [PATCH v6 07/10] ARM: STi: STiH407: Provide CPU with a means to look-up Major number Lee Jones <lee.jones@linaro.org> - 2015-12-09 17:00 +0100
  [PATCH v6 03/10] ARM: multi_v7_defconfig: Enable support for PWM Regulators Lee Jones <lee.jones@linaro.org> - 2015-12-09 17:00 +0100
  [PATCH v6 08/10] cpufreq: st: Provide runtime initialised driver for ST's platforms Lee Jones <lee.jones@linaro.org> - 2015-12-09 17:00 +0100
    Re: [PATCH v6 08/10] cpufreq: st: Provide runtime initialised driver  for ST's platforms Viresh Kumar <viresh.kumar@linaro.org> - 2015-12-10 03:10 +0100
      Re: [PATCH v6 08/10] cpufreq: st: Provide runtime initialised driver  for ST's platforms Lee Jones <lee.jones@linaro.org> - 2015-12-10 09:30 +0100
    [PATCH v6.1 08/10] cpufreq: st: Provide runtime initialised driver  for ST's platforms Lee Jones <lee.jones@linaro.org> - 2015-12-10 10:20 +0100
      Re: [PATCH v6.1 08/10] cpufreq: st: Provide runtime initialised  driver for ST's platforms Viresh Kumar <viresh.kumar@linaro.org> - 2015-12-10 10:30 +0100
  [PATCH v6 09/10] dt: cpufreq: st: Provide bindings for ST's CPUFreq implementation Lee Jones <lee.jones@linaro.org> - 2015-12-09 17:00 +0100
  [PATCH v6 06/10] ARM: STi: STiH407: Link CPU with its voltage supply Lee Jones <lee.jones@linaro.org> - 2015-12-09 17:10 +0100
  [PATCH v6 04/10] ARM: STi: STiH407: Provide generic (safe) DVFS configuration Lee Jones <lee.jones@linaro.org> - 2015-12-09 17:10 +0100
  [PATCH v6 01/10] ARM: multi_v7_defconfig: Enable ST's PWM driver Lee Jones <lee.jones@linaro.org> - 2015-12-09 17:10 +0100
  [PATCH v6 02/10] ARM: multi_v7_defconfig: Enable ST's Power Reset driver Lee Jones <lee.jones@linaro.org> - 2015-12-09 17:10 +0100
  Re: [PATCH v6 00/10] cpufreq: Introduce ST's CPUFreq driver Viresh Kumar <viresh.kumar@linaro.org> - 2015-12-10 03:20 +0100

csiph-web