All of lore.kernel.org
 help / color / mirror / Atom feed
* iMX6 - CPU frequency lowered during LDO bypass setting
@ 2015-04-17 13:03   ` ansaris
  2015-04-17 20:14     ` Andrea Scian
  0 siblings, 1 reply; 4+ messages in thread
From: ansaris @ 2015-04-17 13:03 UTC (permalink / raw)
  To: meta-freescale

Hi,

We are using imx6Q sabresd platform for our development with Linux 
3.14.28_1.0.0-GA BSP but initially we used Linux 3.10.17_1.0.0-GA BSP.

We have gone through below files from Linux 3.14.28_1.0.0-GA(File-1) and 
Linux 3.10.17_1.0.0-GA (FIle-2) BSPs.
File-1: ~/u-boot-imx/board/freescale/mx6sabresd/mx6sabresd.c
File-2: ~/u-boot-imx/board/freescale/mx6qsabresd/mx6qsabresd.c

We could see some changes are added in File-1(compare to File-2).

In below function, we understood that the CPU frequency is lowered to 
400Mhz before doing the LDO bypass and CPU frequency is increased to 
800Mhz after the LDO bypass settings.
"ldo_mode_set"
In FIle-2 (Linux 3.10.17_1.0.0-GA), the below function will do the LDO 
bypass settings without changing the CPU frequency.
"ldo_mode_set"

We would like to know, during the LDO bypass settings why the CPU 
frequency is lowered in File-1(Linux 3.14.28_1.0.0-GA)?  Is it 
recommended  to do the same.?

Thank You,
Regards,
Ansari



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

* Re: iMX6 - CPU frequency lowered during LDO bypass setting
  2015-04-17 13:03   ` iMX6 - CPU frequency lowered during LDO bypass setting ansaris
@ 2015-04-17 20:14     ` Andrea Scian
  2015-04-20 12:44       ` Lauren Post
  0 siblings, 1 reply; 4+ messages in thread
From: Andrea Scian @ 2015-04-17 20:14 UTC (permalink / raw)
  To: ansaris; +Cc: meta-freescale


Il 17/04/2015 15:03, ansaris ha scritto:
> We would like to know, during the LDO bypass settings why the CPU
> frequency is lowered in File-1(Linux 3.14.28_1.0.0-GA)?  Is it
> recommended  to do the same.?

I think that the answer is here:

http://git.freescale.com/git/cgit.cgi/imx/uboot-imx.git/commit/?id=404fd02e96d33840f58f83f88815e2a259cdc532

During bypass procedure you violate datasheet power constraint if 
running at 800MHz: in LDO mode VDD_ARM must be 125mV higher that the LDO 
output voltage, while you need to lower VDD_ARM (on PMIC) before 
switching to bypass mode.
To fill the 125mV gap you need to:
- switch to 400MHz
- lower PMIC voltages
- switch to bypass mode (which remove the 125mV gap)
- switch back to 800MHz

If you skip the first step you may have 1.175-0.125 = 1.050V which is 
below the required power supply for VDD_ARM

I think this is the meaning of the commit, please correct me if I'm 
wrong, of course.

Kind Regards,

-- 

Andrea SCIAN

DAVE Embedded Systems


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

* Re: iMX6 - CPU frequency lowered during LDO bypass setting
  2015-04-17 20:14     ` Andrea Scian
@ 2015-04-20 12:44       ` Lauren Post
  2015-04-20 12:53         ` ansaris
  0 siblings, 1 reply; 4+ messages in thread
From: Lauren Post @ 2015-04-20 12:44 UTC (permalink / raw)
  To: Andrea Scian, ansaris@iwavesystems.com; +Cc: meta-freescale@yoctoproject.org

I forwarded your question to our engineering team and got this answer

Firstly, we have to decrease VDDARM_IN from 1.375V to 1.175V @792Mhz before LDO bypass mode enabled, otherwise there is window that VDDARM_IN keep 1.375V (violate rule VDDARM_IN <=1.3V in ldo-bypass mode)after LDO bypass mode enabled but before kernel cpufreq change with 1.175V@792Mhz. 
Secondly, there is also narrow window that VDDARM_IN in 1.175V with ldo-enabled mode after VDDARM_IN decreased from 1.375V to 1.175V but before ldo-bypass mode enabled. VDDARM_IN 1.175V@792Mhz in ldo-enable mode also violate the rule >= 1.275V. So we have to decrease CPU frequency to 396Mhz to make all voltage setting mach the data sheet.

Lauren Post

-----Original Message-----
From: meta-freescale-bounces@yoctoproject.org [mailto:meta-freescale-bounces@yoctoproject.org] On Behalf Of Andrea Scian
Sent: Friday, April 17, 2015 3:14 PM
To: ansaris@iwavesystems.com
Cc: meta-freescale@yoctoproject.org
Subject: Re: [meta-freescale] iMX6 - CPU frequency lowered during LDO bypass setting


Il 17/04/2015 15:03, ansaris ha scritto:
> We would like to know, during the LDO bypass settings why the CPU 
> frequency is lowered in File-1(Linux 3.14.28_1.0.0-GA)?  Is it 
> recommended  to do the same.?

I think that the answer is here:

http://git.freescale.com/git/cgit.cgi/imx/uboot-imx.git/commit/?id=404fd02e96d33840f58f83f88815e2a259cdc532

During bypass procedure you violate datasheet power constraint if running at 800MHz: in LDO mode VDD_ARM must be 125mV higher that the LDO output voltage, while you need to lower VDD_ARM (on PMIC) before switching to bypass mode.
To fill the 125mV gap you need to:
- switch to 400MHz
- lower PMIC voltages
- switch to bypass mode (which remove the 125mV gap)
- switch back to 800MHz

If you skip the first step you may have 1.175-0.125 = 1.050V which is below the required power supply for VDD_ARM

I think this is the meaning of the commit, please correct me if I'm wrong, of course.

Kind Regards,

-- 

Andrea SCIAN

DAVE Embedded Systems
--
_______________________________________________
meta-freescale mailing list
meta-freescale@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-freescale


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

* Re: iMX6 - CPU frequency lowered during LDO bypass setting
  2015-04-20 12:44       ` Lauren Post
@ 2015-04-20 12:53         ` ansaris
  0 siblings, 0 replies; 4+ messages in thread
From: ansaris @ 2015-04-20 12:53 UTC (permalink / raw)
  To: Lauren Post, Andrea Scian; +Cc: meta-freescale@yoctoproject.org

Dear Lauren Post,

Thank you for your valuable input.

Regards,
Ansari

On Monday 20 April 2015 06:14 PM, Lauren Post wrote:
> I forwarded your question to our engineering team and got this answer
>
> Firstly, we have to decrease VDDARM_IN from 1.375V to 1.175V @792Mhz before LDO bypass mode enabled, otherwise there is window that VDDARM_IN keep 1.375V (violate rule VDDARM_IN <=1.3V in ldo-bypass mode)after LDO bypass mode enabled but before kernel cpufreq change with 1.175V@792Mhz.
> Secondly, there is also narrow window that VDDARM_IN in 1.175V with ldo-enabled mode after VDDARM_IN decreased from 1.375V to 1.175V but before ldo-bypass mode enabled. VDDARM_IN 1.175V@792Mhz in ldo-enable mode also violate the rule >= 1.275V. So we have to decrease CPU frequency to 396Mhz to make all voltage setting mach the data sheet.
>
> Lauren Post
>
> -----Original Message-----
> From: meta-freescale-bounces@yoctoproject.org [mailto:meta-freescale-bounces@yoctoproject.org] On Behalf Of Andrea Scian
> Sent: Friday, April 17, 2015 3:14 PM
> To: ansaris@iwavesystems.com
> Cc: meta-freescale@yoctoproject.org
> Subject: Re: [meta-freescale] iMX6 - CPU frequency lowered during LDO bypass setting
>
>
> Il 17/04/2015 15:03, ansaris ha scritto:
>> We would like to know, during the LDO bypass settings why the CPU
>> frequency is lowered in File-1(Linux 3.14.28_1.0.0-GA)?  Is it
>> recommended  to do the same.?
> I think that the answer is here:
>
> http://git.freescale.com/git/cgit.cgi/imx/uboot-imx.git/commit/?id=404fd02e96d33840f58f83f88815e2a259cdc532
>
> During bypass procedure you violate datasheet power constraint if running at 800MHz: in LDO mode VDD_ARM must be 125mV higher that the LDO output voltage, while you need to lower VDD_ARM (on PMIC) before switching to bypass mode.
> To fill the 125mV gap you need to:
> - switch to 400MHz
> - lower PMIC voltages
> - switch to bypass mode (which remove the 125mV gap)
> - switch back to 800MHz
>
> If you skip the first step you may have 1.175-0.125 = 1.050V which is below the required power supply for VDD_ARM
>
> I think this is the meaning of the commit, please correct me if I'm wrong, of course.
>
> Kind Regards,
>



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

end of thread, other threads:[~2015-04-20 12:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.7.1429297201.9986.meta-freescale@yoctoproject.org>
     [not found] ` <mailman.7.1429297201.9986.meta-freescale.{43881423-8100-40e6-8ca0-108fc65b010c}.0@yoctoproject.org>
2015-04-17 13:03   ` iMX6 - CPU frequency lowered during LDO bypass setting ansaris
2015-04-17 20:14     ` Andrea Scian
2015-04-20 12:44       ` Lauren Post
2015-04-20 12:53         ` ansaris

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.