How to adjust i.MX8M-EVK PMIC power about LPDDR4 VDD1 and VDD2

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to adjust i.MX8M-EVK PMIC power about LPDDR4 VDD1 and VDD2

1,804 Views
alexjiang
Contributor II

How to adjust i.MX8M-EVK PMIC power about LPDDR4 VDD1 and VDD2

We use i.MX8M-EVK to test our LPDDR4,and we’d like to adjust the power of LPDDR4.

From the i.MX8M-ENK SCH,the PMIC: PF4210,and SW2 for LPDDR4 VDD2/VDD2(default 1.1v),SW4 for LPDDR4 VDD1(default 1.8v).

we want to test low voltage and high voltage,to adjust PMIC out of LPDDR4 power:

1) LV output:  SW2 output=1.05v,and SW4 output=1.7v.

in F4210 datasheet:

Set point=26 SW2[6:0]=0011010 SW2 output=1.05V

Set point=82 SW4[6:0]=1010010 SW4 output=1.7V

2)HV output: SW2 output=1.175V, and SW4 output=1.95V.

in F4210 datasheet:

Set point=31 SW2[6:0]=0011111 SW2 output=1.175V

Set point=87 SW4[6:0]=10101111 SW4 output=1.95V

If we use SDK uboot+kernel boot up, where can we to modify the PMIC set point to adjust PMIC power output, could you tell me which file? eg: xxpower.c file

If we use NXP MX8M DDR tool to test LPDDR4, where can we to modify the PMIC set point to adjust PMIC power output. As you know the tool only have .bin file for us, could you provide the HV output and LV output .bin file for us to test LPDDR4?

0 Kudos
4 Replies

1,614 Views
alexjiang
Contributor II

We found  i.MX8 MSCALE SERIES DDR Tool Release (V3.10) support PMIC configuration:

Sample configuration in the front of the .ds script for i.MX8MM PMIC configuration:

##############step 0.5: configure I2C port IO pads according to your PCB design.   #####

########### You can modify the following instructions to adapt to your board PMIC #######

memory set0x30330214320x00000010 #IOMUXC_SW_MUX_I2C1_SCL
memory set0x30330218320x00000010 #IOMUXC_SW_MUX_I2C1_SDA
memory set0x3033047C320x000000C6#IOMUXC_SW_PAD_I2C1_SCL
memory set0x30330480320x000000C6 #IOMUXC_SW_PAD_I2C1_SDA
sysparam setpmic_cfg0x004B#bit[7:0] = PMIC addr,bit[15:8]=I2C BusBus index from 0 ('0' = I2C1, '1' = I2C2, '2' = I2C3, '3' = I2C4)
sysparam setpmic_set0x2F01#bit[7:0] = Reg addr, bit[15:8]=Reg val.#REG(0x2F) = 0x01
sysparam setpmic_set0x0C02#REG(0x0C) = 0x02
sysparam setpmic_set0x171E#REG(0x17) = 0x1E
sysparam setpmic_set0x0C00#REG(0x0C) = 0x00
sysparam setpmic_set0x2F11 #REG(0x2F)=0x11

 

pmic_cfg  0x004B  ,  means  PMIC addr=0x4B, I2C Bus=0x00 (I2C1)

pmic_set  0x2F01 ,   i think it means Reg addr=0x01, Reg val=0x2F,  but the excel notes show #REG(0x2F) = 0x01, does it means Reg addr=0x2F,Reg val=0x01? Which one is right? 

Then,
PF4210 data: PMIC addr :0x08
pastedImage_19.png
SW2 register,if we want to change SW2 output,we only need to change register SW2VOLT?
pastedImage_21.png

so we'd like to add below to .ds file:

##############step 0.5: configure I2C port IO pads according to your PCB design.   #####

########### You can modify the following instructions to adapt to your board PMIC #######

memory set  0x30330214  32  0x00000010    #IOMUXC_SW_MUX_I2C1_SCL
memory set  0x30330218  32  0x00000010    #IOMUXC_SW_MUX_I2C1_SDA
memory set  0x3033047C  32  0x000000C6    #IOMUXC_SW_PAD_I2C1_SCL
memory set  0x30330480  32  0x000000C6     #IOMUXC_SW_PAD_I2C1_SDA
sysparam set  pmic_cfg  0x0008   #bit[7:0] = PMIC addr,bit[15:8]=I2C Bus
sysparam set  pmic_set  0x351F  #or 0x1F35   #SW2 output=1.175V
 
Does it right to change SW2 output?
0 Kudos

1,612 Views
igorpadykov
NXP Employee
NXP Employee

Hi Alex

for changing voltage one can try Regulator APIs described in

sect.2.5.2 PMIC PF Regulator attached Linux Manual.

>if we want to change SW2 output,we only need to change register SW2VOLT?

right.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,612 Views
alexjiang
Contributor II

Hi,

If we use i.MX8 MSCALE SERIES DDR Tool  (V3.10) to test LPDDR4 , how to change  SW2 output? use  .ds script?

we'd like to add below to .ds file:

 

##############step 0.5: configure I2C port IO pads according to your PCB design.   #####

########### You can modify the following instructions to adapt to your board PMIC #######

memory set  0x30330214  32  0x00000010    #IOMUXC_SW_MUX_I2C1_SCL
memory set  0x30330218  32  0x00000010    #IOMUXC_SW_MUX_I2C1_SDA
memory set  0x3033047C  32  0x000000C6    #IOMUXC_SW_PAD_I2C1_SCL
memory set  0x30330480  32  0x000000C6     #IOMUXC_SW_PAD_I2C1_SDA
sysparam set  pmic_cfg  0x0008   #bit[7:0] = PMIC addr,bit[15:8]=I2C Bus
sysparam set  pmic_set  0x351F  #or 0x1F35   #SW2 output=1.175V
 
Does it right to change SW2 output?
0 Kudos

1,612 Views
alexjiang
Contributor II

our MX8M DDR tool version is v2.1 

0 Kudos