ARM: dts: imx6q-logicpd: Keep GEN3V3 alive
Subsystems (2)
PATCH 1/2 ARM: dts: imx6q-logicpd: Keep GEN3V3 alive
The schematic shows Gen3V3 is driven by sw2_reg on the pfuze100 PMIC. Linux doesn't appear to have an issue keeping this rail up, but U-Boot shuts it down for some reason.
This patch sets 'regulator-always-on' for sw2_reg to keept this rail powered.
arch/arm/dts/imx6q-logicpd-u-boot.dtsi +4 -0
@@ -16,3 +16,7 @@ &usdhc2 { u-boot,dm-spl; }; + +&sw2_reg { + regulator-always-on; +};
Signature · 1 line
2.17.1
PATCH 2/2 ARM: imx6q_logic: Enable I2C for PMIC functionality
The pfuze100 is the PMIC connected to the I2C bus. Currently, the I2C driver is disabled which prevents the PMIC from operating.
This patch enables the I2C which also enables the PMIC in U-Boot. This also keeps the PMIC and I2C disabled in SPL due to size constraints of SPL.
configs/imx6q_logic_defconfig +2 -1
@@ -22,7 +22,6 @@ CONFIG_SPL_RAW_IMAGE_SUPPORT=y CONFIG_SPL_SEPARATE_BSS=y # CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR is not set CONFIG_SPL_DMA_SUPPORT=y -CONFIG_SPL_I2C_SUPPORT=y CONFIG_SPL_NAND_SUPPORT=y CONFIG_SPL_OS_BOOT=y CONFIG_SPL_PAYLOAD="u-boot.img"
@@ -64,6 +63,7 @@ CONFIG_SPL_DM=y CONFIG_SPL_DM_SEQ_ALIAS=y CONFIG_SPL_OF_TRANSLATE=y CONFIG_PCF8575_GPIO=y +CONFIG_SYS_I2C_MXC=y CONFIG_LED=y CONFIG_LED_GPIO=y CONFIG_FSL_USDHC=y
@@ -78,6 +78,7 @@ CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_PINCTRL=y CONFIG_PINCTRL_IMX6=y +# CONFIG_SPL_PMIC_CHILDREN is not set CONFIG_DM_PMIC_PFUZE100=y CONFIG_DM_REGULATOR=y CONFIG_DM_REGULATOR_PFUZE100=y
Signature · 1 line
2.17.1
Fabio Estevam
reviewerPATCH 1/2 ARM: dts: imx6q-logicpd: Keep GEN3V3 alive
In reply to Adam FordHi Adam,
Quoted 7 lines · Adam Ford
The schematic shows Gen3V3 is driven by
sw2_regon the pfuze100 PMIC. Linux doesn't appear to have an issue keeping this rail up, but U-Boot shuts it down for some reason.This patch sets 'regulator-always-on' for
sw2_regto keept this rail powered.
Why does U-Boot shuts down sw2_reg?
sw2_reg has a consumer: &usdhc1, so it should keep turned on.
Or you don't use usdhc1 port in U-Boot?
Just want to understand this problem better.
PATCH 1/2 ARM: dts: imx6q-logicpd: Keep GEN3V3 alive
Quoted 5 lines · Fabio Estevam
Hi Adam,
Quoted 1 line · Adam Ford
Quoted 8 lines
Quoted 6 lines
The schematic shows Gen3V3 is driven by
sw2_regon the pfuze100 PMIC. Linux doesn't appear to have an issue keeping this rail up, but U-Boot shuts it down for some reason.This patch sets 'regulator-always-on' for
sw2_regto keept this rail powered.Why does U-Boot shuts down
sw2_reg?
I don't know.
Quoted 3 lines
sw2_reghas a consumer: &usdhc1, so it should keep turned on.
I would agree.
Quoted 1 line
Or you don't use usdhc1 port in U-Boot?
I do use usdhc1 powered from that rail, but if I enable I2C, the MMC initialization dies and the board hangs. It seems like a bug to me, but I'll look into that later. At least for now, I can use this as a work-around for keeping the board alive.
adam
Quoted 2 lines
Just want to understand this problem better.