[v5,0/2] power: regulator: add driver for ANATOP regulator

Message ID 20210327134652.155431-1-grandpaul@gmail.com
Headers show
Series
  • power: regulator: add driver for ANATOP regulator
Related show

Message

Ying-Chun Liu March 27, 2021, 1:46 p.m.
From: "Ying-Chun Liu (PaulLiu)" <paul.liu@linaro.org>


Anatop is an integrated regulator inside i.MX6 SoC.
There are 3 digital regulators which controls PU, CORE (ARM), and SOC.
And 3 analog regulators which controls 1P1, 2P5, 3P0 (USB).
This patch adds the Anatop regulator driver.

Ying-Chun Liu (PaulLiu) (2):
  power: regulator: add driver for ANATOP regulator
  doc: device-tree-bindings: regulator: anatop regulator

v2: add functions for set selector and delay. Define ANATOP_REGULATOR_STEP
v3: add vin-supply. move regmap retrival to probe
v4: check control_reg and return -ENOSYS if error. check vin-supply error
v5: fix typo "wrie" -> "write"

 .../regulator/fsl,anatop-regulator.txt        |  45 +++
 drivers/power/regulator/Kconfig               |  10 +
 drivers/power/regulator/Makefile              |   1 +
 drivers/power/regulator/anatop_regulator.c    | 278 ++++++++++++++++++
 4 files changed, 334 insertions(+)
 create mode 100644 doc/device-tree-bindings/regulator/fsl,anatop-regulator.txt
 create mode 100644 drivers/power/regulator/anatop_regulator.c

-- 
2.30.2