The callback trace:
fp9931_regulator_probe
-> fp9931_pmic_dt_parse_pdata
-> of_get_named_gpio
In fp9931_pmic_dt_parse_pdata function, it returns -EINVAL (-22) when gpio is
not ready which caused probe failure as following messages. The right way to
respond to gpio not-ready case should pass return value of of_get_named_gpio
to the caller and then do defer probe for pmic driver. This patch fixed it.
[ 4.078902] fp9931-pmic fp9931-pmic: no epdc pmic wakeup pin available
[ 4.085496] fp9931-pmic: probe of fp9931-pmic failed with error -22
Signed-off-by: Robby Cai <robby.cai@nxp.com>
Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com>
The FP9931 includes different kinds of regulators: LDO, Boost
Converter, Buck-Boost Converter, Charge Pump and VCOM Buffer.
The typical voltages power on sequence is:
V3P3 -> VGL -> VNEG -> VGH -> VPOS -> VCOM
The DISPLAY regulator is a virtual one which behaves like a
switch to trigger the voltages power on or power down sequence
except V3P3, since it must be switched on or off manually.
Signed-off-by: Robby Cai <robby.cai@nxp.com>
Signed-off-by: Fancy Fang <chen.fang@nxp.com>
Reviewed-by: G.n. Zhou <guoniu.zhou@nxp.com>