[PATCH v2 0/2] TPS65224 PMIC Driver

Bhargav Raviprakash bhargav.r at ltts.com
Mon Nov 6 15:07:10 CET 2023


TPS65224 is a Power Management IC which provides regulators and others
features like GPIOs, RTC, watchdog, ADC, ESMs (Error Signal Monitor),
and PFSM (Pre-configurable Finite State Machine). The SoC and the PMIC
can communicate through the I2C.

Add support for TPS65224 PMIC in U-boot. This includes driver for
PMIC and regulator.

The driver was tested on Ti's custom AM62A EVM using U-boot's
pmic list, regulator list, regulator enable, regulator disable and
regulator value commands. Regulator output voltages were verified.

Logs from running the above commands,
 => pmic list
 | Name                | Parent name       | Parent uclass @ seq
 | pmic at 48             | i2c at 4900000       | i2c @ 0 | status: 0
 | watchdog at 12         | i2c at 20000000      | i2c @ 1 | status: 0
 => reg list
 | Device              | regulator-name    | Parent
 | buck12              | buck12            | pmic at 48
 | buck3               | buck3             | pmic at 48
 | buck4               | buck4             | pmic at 48
 | ldo1                | ldo1              | pmic at 48
 | ldo2                | ldo2              | pmic at 48
 | ldo3                | ldo3              | pmic at 48
 => regulator dev buck12
 dev: buck12 @ buck12
 => regulator enable
 => regulator value 1500000
 => regulator disable

Changes since v1:
 - corrected coyright lines changed to 2023 in all files
 - Added #define macros for some of the magic numbers, constants
   and offsets to improve readability

Bhargav Raviprakash (2):
  driver: power: add support for TPS65224
  driver: power: regulator: add support for TPS65224 regulator

 drivers/power/pmic/Kconfig                   |   6 +
 drivers/power/pmic/Makefile                  |   1 +
 drivers/power/pmic/tps65224.c                | 141 ++++++
 drivers/power/regulator/Kconfig              |  10 +
 drivers/power/regulator/Makefile             |   1 +
 drivers/power/regulator/tps65224_regulator.c | 495 +++++++++++++++++++
 include/power/tps65224.h                     |  59 +++
 7 files changed, 713 insertions(+)
 create mode 100644 drivers/power/pmic/tps65224.c
 create mode 100644 drivers/power/regulator/tps65224_regulator.c
 create mode 100644 include/power/tps65224.h

-- 
2.25.1



More information about the U-Boot mailing list