[PATCH v2 0/9] Add support for PMICs used on Tegra 3 devices
Svyatoslav Ryhel
clamor95 at gmail.com
Thu Jul 20 10:47:55 CEST 2023
Patch set adds basic support for PMICs used in many Tegra 3 devices.
All PMIC drivers are based on datasheets provided by vendors.
Implemented API include regulator set/get voltage enable/disable and
basic PMIC r/w capabilities.
Created poweroff API for pmic to be able to call do_poweroff directly
from within pmic driver. PMIC responcible for poweroff shoud be marked
as system-power-controller in device tree.
Drivers were tested by me on LG P895 (max77663), HTC One X (TPS80032)
and ASUS TF300T (tps65911). Calculations and behavior were correct,
predictable and reproducible.
---
Changes from v1:
- created poweroff API for PMIC and integrated it call into do_poweroff
- added poweroff function to submitted max77663, tps80032 and tps65911
drivers
- fixed registers asignments for regulators with non-numeric name
(ldoln, ldousb, vddctrl)
---
Svyatoslav Ryhel (9):
power: pmic-uclass: implement poweroff ops
cmd: boot: implement PMIC based poweroff
power: pmic: palmas: support TI TPS65913 PMIC
power: pmic: add the base MAX77663 PMIC support
power: regulator: max77663: add regulator support
power: pmic: add the base TPS80031 PMIC support
power: regulator: tps80031: add regulator support
power: pmic: tps65910: add TPS65911 PMIC support
power: regulator: tps65911: add regulator support
cmd/Kconfig | 6 +
cmd/boot.c | 40 ++
doc/device-tree-bindings/pmic/max77663.txt | 84 +++++
doc/device-tree-bindings/pmic/tps65911.txt | 78 ++++
doc/device-tree-bindings/pmic/tps80031.txt | 76 ++++
drivers/power/pmic/Kconfig | 12 +
drivers/power/pmic/Makefile | 2 +
drivers/power/pmic/max77663.c | 105 ++++++
drivers/power/pmic/palmas.c | 1 +
drivers/power/pmic/pmic-uclass.c | 12 +
drivers/power/pmic/pmic_tps65910_dm.c | 49 ++-
drivers/power/pmic/tps80031.c | 97 +++++
drivers/power/regulator/Kconfig | 24 ++
drivers/power/regulator/Makefile | 3 +
drivers/power/regulator/max77663_regulator.c | 358 ++++++++++++++++++
drivers/power/regulator/tps65911_regulator.c | 377 +++++++++++++++++++
drivers/power/regulator/tps80031_regulator.c | 296 +++++++++++++++
include/power/max77663.h | 44 +++
include/power/pmic.h | 13 +
include/power/tps65910_pmic.h | 52 +++
include/power/tps80031.h | 45 +++
21 files changed, 1771 insertions(+), 3 deletions(-)
create mode 100644 doc/device-tree-bindings/pmic/max77663.txt
create mode 100644 doc/device-tree-bindings/pmic/tps65911.txt
create mode 100644 doc/device-tree-bindings/pmic/tps80031.txt
create mode 100644 drivers/power/pmic/max77663.c
create mode 100644 drivers/power/pmic/tps80031.c
create mode 100644 drivers/power/regulator/max77663_regulator.c
create mode 100644 drivers/power/regulator/tps65911_regulator.c
create mode 100644 drivers/power/regulator/tps80031_regulator.c
create mode 100644 include/power/max77663.h
create mode 100644 include/power/tps80031.h
--
2.39.2
More information about the U-Boot
mailing list