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?
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 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 | 0x004B | #bit[7:0] = PMIC addr,bit[15:8]=I2C Bus | Bus index from 0 ('0' = I2C1, '1' = I2C2, '2' = I2C3, '3' = I2C4) |
sysparam set | pmic_set | 0x2F01 | #bit[7:0] = Reg addr, bit[15:8]=Reg val. | #REG(0x2F) = 0x01 |
sysparam set | pmic_set | 0x0C02 | #REG(0x0C) = 0x02 | |
sysparam set | pmic_set | 0x171E | #REG(0x17) = 0x1E | |
sysparam set | pmic_set | 0x0C00 | #REG(0x0C) = 0x00 | |
sysparam set | pmic_set | 0x2F11 | #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?
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 #######
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!
-----------------------------------------------------------------------------------------------------------------------
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 #######