power: pmic: add TPS65913 support
cover power: pmic: add TPS65913 support
Existing PALMAS PMIC driver is fully compatible with TI TPS65913 PMIC found in many Tegra 4 devices, like Tegra Note 7 and ASUS TF701T. Add TPS65913 dts compatible with TPS659038 data.
Without regulator_autoset PALMAS regulators are just "requested" without actual initial setup (device tree is completely ignored). This causes major issue since voltage is usually set on probing and rarely is changed. Drivers which change voltage will also assume that initial voltage was already set and this was not the case.
Svyatoslav Ryhel (2):
power: pmic: support TI TPS65913 PMIC
power: regulator: palmas: set up voltage on probe
drivers/power/pmic/palmas.c | 1 + drivers/power/regulator/palmas_regulator.c | 4 ++++ 2 files changed, 5 insertions(+)
Signature · 1 line
2.39.2
PATCH 1/2 power: pmic: support TI TPS65913 PMIC
Existing PALMAS PMIC driver is fully compatible with TI TPS65913 PMIC found in many Tegra 4 devices, like Tegra Note 7 and ASUS TF701T. TPS65913 shares same structure of regulators like TPS659038 so data can be reused.
--- drivers/power/pmic/palmas.c | 1 + 1 file changed, 1 insertion(+)
drivers/power/pmic/palmas.c +1 -0
@@ -87,6 +87,7 @@ static struct dm_pmic_ops palmas_ops = {static const struct udevice_id palmas_ids[] = { { .compatible ="ti,tps659038" , .data =TPS659038 }, + { .compatible ="ti,tps65913" , .data =TPS659038 }, { .compatible ="ti,tps65917" , .data =TPS65917 }, { } };
Signature · 1 line
2.39.2
PATCH 2/2 power: regulator: palmas: set up voltage on probe
In reply to Svyatoslav RyhelWithout this patch PALMAS regulators are just "requested" without actual initial setup (device tree values are completely ignored). This causes major issue since voltage is usually set on probing and rarely is changed. Drivers which change voltage assume that initial voltage was already set and this was not the case.
--- drivers/power/regulator/palmas_regulator.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/power/regulator/palmas_regulator.c +4 -0
@@ -316,6 +316,8 @@ static int palmas_ldo_probe(struct udevice *dev) } } +regulator_autoset (dev); +return 0 ; }
@@ -423,6 +425,8 @@ static int palmas_smps_probe(struct udevice *dev)printf ("Invalid PMIC ID\n" ); } +regulator_autoset (dev); +return 0 ; }
Signature · 1 line
2.39.2