Commit Graph

2 Commits

Author SHA1 Message Date
Robby Cai
c4274e4255 LF-4675 regulator: fp9931: Defer probe when retrieve gpio which is not ready
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>
2023-10-30 16:09:24 +08:00
Robby Cai
07c946acf3 LF-3299-2 regulator: add regulator driver support for FP9931
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>
2023-10-30 16:09:24 +08:00