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


Groups > linux.kernel > #1617067

[PATCH v4 8/8] ARM: sun8i: sina33: add highest OPP of CPUs

From Quentin Schulz <quentin.schulz@free-electrons.com>
Newsgroups linux.kernel
Subject [PATCH v4 8/8] ARM: sun8i: sina33: add highest OPP of CPUs
Date 2017-04-05 17:40 +0200
Message-ID <tsSet-2yB-5@gated-at.bofh.it> (permalink)
References <tsPgB-IY-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


The A33 supports 1.1GHz and 1.2GHz frequencies at 1.32V and the Sinlinx
SinA33 has its cpu-supply property set in the cpu DT node.

Therefore, CPUfreq knows how to handle the regulator in charge of the
CPU and can adjust its voltage to match the OPP.

Add these two CPU frequencies to the CPU OPP table of the Sinlinx
SinA33.

Signed-off-by: Quentin Schulz <quentin.schulz@free-electrons.com>
---

added in v3

 arch/arm/boot/dts/sun8i-a33-sinlinx-sina33.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm/boot/dts/sun8i-a33-sinlinx-sina33.dts b/arch/arm/boot/dts/sun8i-a33-sinlinx-sina33.dts
index e34e092..9b620cc 100644
--- a/arch/arm/boot/dts/sun8i-a33-sinlinx-sina33.dts
+++ b/arch/arm/boot/dts/sun8i-a33-sinlinx-sina33.dts
@@ -87,6 +87,20 @@
 	cpu-supply = <&reg_dcdc3>;
 };
 
+&cpu0_opp_table {
+	opp@1104000000 {
+		opp-hz = /bits/ 64 <1104000000>;
+		opp-microvolt = <1320000>;
+		clock-latency-ns = <244144>; /* 8 32k periods */
+	};
+
+	opp@1200000000 {
+		opp-hz = /bits/ 64 <1200000000>;
+		opp-microvolt = <1320000>;
+		clock-latency-ns = <244144>; /* 8 32k periods */
+	};
+};
+
 &de {
 	status = "okay";
 };
-- 
2.9.3

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


Thread

[PATCH v4 0/8] add thermal throttling to Allwinner A33 SoC Quentin Schulz <quentin.schulz@free-electrons.com> - 2017-04-05 11:50 +0200
  [PATCH v4 1/8] dt-bindings: mfd: add A33 GPADC binding Quentin Schulz <quentin.schulz@free-electrons.com> - 2017-04-05 12:10 +0200
    Re: [PATCH v4 1/8] dt-bindings: mfd: add A33 GPADC binding Lee Jones <lee.jones@linaro.org> - 2017-04-05 14:20 +0200
  [PATCH v4 2/8] dt-bindings: input: touschcreen: remove sun4i documentation Quentin Schulz <quentin.schulz@free-electrons.com> - 2017-04-05 12:40 +0200
    Re: [PATCH v4 2/8] dt-bindings: input: touschcreen: remove sun4i  documentation Lee Jones <lee.jones@linaro.org> - 2017-04-05 17:00 +0200
  [PATCH v4 3/8] iio: adc: sun4i-gpadc-iio: move code used in MFD probing to new function Quentin Schulz <quentin.schulz@free-electrons.com> - 2017-04-05 13:00 +0200
    Re: [PATCH v4 3/8] iio: adc: sun4i-gpadc-iio: move code used in MFD  probing to new function Jonathan Cameron <jic23@kernel.org> - 2017-04-08 19:30 +0200
  [PATCH v4 4/8] iio: adc: sun4i-gpadc-iio: add support for A33 thermal sensor Quentin Schulz <quentin.schulz@free-electrons.com> - 2017-04-05 13:20 +0200
    Re: [PATCH v4 4/8] iio: adc: sun4i-gpadc-iio: add support for A33  thermal sensor Jonathan Cameron <jic23@kernel.org> - 2017-04-08 18:50 +0200
  [PATCH v4 5/8] ARM: sun8i: a33: add thermal sensor Quentin Schulz <quentin.schulz@free-electrons.com> - 2017-04-05 14:00 +0200
    Re: [PATCH v4 5/8] ARM: sun8i: a33: add thermal sensor Maxime Ripard <maxime.ripard@free-electrons.com> - 2017-04-05 14:20 +0200
  Re: [PATCH v4 8/8] ARM: sun8i: sina33: add highest OPP of CPUs Maxime Ripard <maxime.ripard@free-electrons.com> - 2017-04-05 14:30 +0200
  Re: [PATCH v4 6/8] ARM: sun8i: a33: add CPU thermal throttling Maxime Ripard <maxime.ripard@free-electrons.com> - 2017-04-05 15:50 +0200
  [PATCH v4 6/8] ARM: sun8i: a33: add CPU thermal throttling Quentin Schulz <quentin.schulz@free-electrons.com> - 2017-04-05 17:20 +0200
  [PATCH v4 8/8] ARM: sun8i: sina33: add highest OPP of CPUs Quentin Schulz <quentin.schulz@free-electrons.com> - 2017-04-05 17:40 +0200

csiph-web