devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 1/2] ARM: dts: imx6q-cm-fx6: fix the operation points
@ 2016-06-12 15:19 christopher.spinrath-vA1bhqPz9FBZXbeN9DUtxg
       [not found] ` <cd3010c3a4144ec38f2cfd1bfbd1b2ad-gtPewvpZjL8umhiu9RXYRl5UTUQ924AY@public.gmane.org>
       [not found] ` <c961c1e0cdde471daf1bdce2e8e7696b@rwthex-s2-a.rwth-ad.de>
  0 siblings, 2 replies; 3+ messages in thread
From: christopher.spinrath-vA1bhqPz9FBZXbeN9DUtxg @ 2016-06-12 15:19 UTC (permalink / raw)
  To: shawnguo-DgEjT+Ai2ygdnm+yROfE0A, kernel-bIcnvbaLZ9MEGnE8C9+IrQ
  Cc: robh+dt-DgEjT+Ai2ygdnm+yROfE0A, pawel.moll-5wv7dgnIgG8,
	mark.rutland-5wv7dgnIgG8, ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg,
	galak-sgV2jX0FEOL9JmXXK+q4OQ, linux-I+IVW8TIWO2tmTQ+vhA3Yw,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	grinberg-UTxiZqZC01RS1MOuV/RT9w, fabio.estevam-3arQi8VN3Tc,
	Valentin Raevsky, Christopher Spinrath

From: Valentin Raevsky <valentin-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org>

The current ldo settings of the cm-fx6 do not allow 1.2GHz cpu
frequency. At this frequency the module behaves unstable.

But the imx6q fuse indicates that 1.2GHz operation is possible.
Hence, remove the 1.2GHz operation point in the device tree.

Signed-off-by: Valentin Raevsky <valentin-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org>
[christopher.spinrath-vA1bhqPz9FBZXbeN9DUtxg@public.gmane.org: enhanced commit message and adjust
 remaining operation points to match the ones in imx6q.dtsi]
Signed-off-by: Christopher Spinrath <christopher.spinrath-vA1bhqPz9FBZXbeN9DUtxg@public.gmane.org>
---

Notes:
    Changes since v1:
     - Enhance commit message to explain that we cannot rely on the imx6q
       fuse to restrict the frequency
     - put the same information into a comment in the device tree
     - fix the remaining operation points to match the ones given in
       imx6q.dtsi

 arch/arm/boot/dts/imx6q-cm-fx6.dts | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/arch/arm/boot/dts/imx6q-cm-fx6.dts b/arch/arm/boot/dts/imx6q-cm-fx6.dts
index 6d8d5e9..0038f0e 100644
--- a/arch/arm/boot/dts/imx6q-cm-fx6.dts
+++ b/arch/arm/boot/dts/imx6q-cm-fx6.dts
@@ -91,6 +91,27 @@
 	};
 };
 
+&cpu0 {
+	/* Although the imx6q fuse indicates that 1.2GHz operation is possible,
+	 * the module behaves unstable at this frequency. Hence, remove the
+	 * 1.2GHz operation point here.
+	 */
+	operating-points = <
+		/* kHz	uV */
+		996000	1250000
+		852000	1250000
+		792000	1175000
+		396000	975000
+	>;
+	fsl,soc-operating-points = <
+		/* ARM kHz	SOC-PU uV */
+		996000		1250000
+		852000		1250000
+		792000		1175000
+		396000		1175000
+	>;
+};
+
 &ecspi1 {
 	fsl,spi-num-chipselects = <2>;
 	cs-gpios = <&gpio2 30 GPIO_ACTIVE_HIGH>, <&gpio3 19 GPIO_ACTIVE_HIGH>;
-- 
2.8.3

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v2 1/2] ARM: dts: imx6q-cm-fx6: fix the operation points
       [not found] ` <cd3010c3a4144ec38f2cfd1bfbd1b2ad-gtPewvpZjL8umhiu9RXYRl5UTUQ924AY@public.gmane.org>
@ 2016-06-12 22:49   ` Fabio Estevam
  0 siblings, 0 replies; 3+ messages in thread
From: Fabio Estevam @ 2016-06-12 22:49 UTC (permalink / raw)
  To: Christopher Spinrath
  Cc: Shawn Guo, Sascha Hauer, robh+dt-DgEjT+Ai2ygdnm+yROfE0A,
	Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala,
	Russell King - ARM Linux,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	devicetree-u79uwXL29TY76Z2rM5mHXA, Igor Grinberg, Fabio Estevam,
	Valentin Raevsky

On Sun, Jun 12, 2016 at 12:19 PM,  <christopher.spinrath-vA1bhqPz9FBZXbeN9DUtxg@public.gmane.org> wrote:

> +&cpu0 {
> +       /* Although the imx6q fuse indicates that 1.2GHz operation is possible,
> +        * the module behaves unstable at this frequency. Hence, remove the
> +        * 1.2GHz operation point here.
> +        */

Just one minor comment.

>From Documentation/CodingStyle:

"The preferred style for long (multi-line) comments is:

    /*
     * This is the preferred style for multi-line
     * comments in the Linux kernel source code.
     * Please use it consistently.
     *
     * Description:  A column of asterisks on the left side,
     * with beginning and ending almost-blank lines.
     */
"

Reviewed-by: Fabio Estevam <fabio.estevam-3arQi8VN3Tc@public.gmane.org>
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2 1/2] ARM: dts: imx6q-cm-fx6: fix the operation points
       [not found]   ` <c961c1e0cdde471daf1bdce2e8e7696b-gtPewvpZjL+1MzRH+ruthl5UTUQ924AY@public.gmane.org>
@ 2016-06-12 23:04     ` Christopher Spinrath
  0 siblings, 0 replies; 3+ messages in thread
From: Christopher Spinrath @ 2016-06-12 23:04 UTC (permalink / raw)
  To: Fabio Estevam
  Cc: Shawn Guo, Sascha Hauer, robh+dt-DgEjT+Ai2ygdnm+yROfE0A,
	Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala,
	Russell King - ARM Linux,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	devicetree-u79uwXL29TY76Z2rM5mHXA, Igor Grinberg, Fabio Estevam,
	Valentin Raevsky, Spinrath, Christopher

Hi Fabio,

thanks again for your review!

On 06/13/2016 12:49 AM, Fabio Estevam wrote:
> On Sun, Jun 12, 2016 at 12:19 PM,  <christopher.spinrath-vA1bhqPz9FBZXbeN9DUtxg@public.gmane.org> wrote:
> 
>> +&cpu0 {
>> +       /* Although the imx6q fuse indicates that 1.2GHz operation is possible,
>> +        * the module behaves unstable at this frequency. Hence, remove the
>> +        * 1.2GHz operation point here.
>> +        */
> 
> Just one minor comment.
> 
> From Documentation/CodingStyle:
> 
> "The preferred style for long (multi-line) comments is:
> 
>     /*
>      * This is the preferred style for multi-line
>      * comments in the Linux kernel source code.
>      * Please use it consistently.
>      *
>      * Description:  A column of asterisks on the left side,
>      * with beginning and ending almost-blank lines.
>      */
> "
> 
ups, I took only a quick look and picked the comment style for net/ ...
I will fix it and read more carefully next time.

Thanks,
Christopher

> Reviewed-by: Fabio Estevam <fabio.estevam-3arQi8VN3Tc@public.gmane.org>
> 
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-06-12 23:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-12 15:19 [PATCH v2 1/2] ARM: dts: imx6q-cm-fx6: fix the operation points christopher.spinrath-vA1bhqPz9FBZXbeN9DUtxg
     [not found] ` <cd3010c3a4144ec38f2cfd1bfbd1b2ad-gtPewvpZjL8umhiu9RXYRl5UTUQ924AY@public.gmane.org>
2016-06-12 22:49   ` Fabio Estevam
     [not found] ` <c961c1e0cdde471daf1bdce2e8e7696b@rwthex-s2-a.rwth-ad.de>
     [not found]   ` <c961c1e0cdde471daf1bdce2e8e7696b-gtPewvpZjL+1MzRH+ruthl5UTUQ924AY@public.gmane.org>
2016-06-12 23:04     ` Christopher Spinrath

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).