[U-Boot] [PATCH v2 0/3] power: Add a driver to handle the PBIAS cell of the TI SOCs
Jean-Jacques Hiblot
jjhiblot at ti.com
Wed Jul 19 13:52:21 UTC 2017
In the TI SOCs a PBIAS cell exists to provide a bias voltage to the MMC1
IO cells. Without this bias voltage these I/O cells can not function
properly. This bias voltage is either 1.8v or 3.0v.
The first patch adds 2 functions to the DM core: to count strings in a
stringlist and get a string from a stringlist based on its position in the
list.
The second patch implements the support for this PBIAS cell as a regulator
driver.
The last patch is here to allow the binding of the driver. In the DTS of the
dra7x and am57x platforms, the pbias entry is a child of a syscon.
changes since v1:
- add new functions to get strings from a stringlist in DM core
- use the dev_read_*() API to access the DT
- automatically select the PBIAS driver if DM_REGULATOR, DM_MMC and
MMC_OMAP_HS are set.
- removed the patch touching the DRA7 and AM57 config files.
Jean-Jacques Hiblot (3):
dm: core: Add functions to get strings and the string count from a
stringlist
regulator: pbias: Add PBIAS regulator for proper voltage switching on
MMC1
dm: syscon: scan sub-nodes of the syscon node
drivers/core/read.c | 11 ++
drivers/core/syscon-uclass.c | 1 +
drivers/mmc/Kconfig | 1 +
drivers/power/regulator/Kconfig | 10 +
drivers/power/regulator/Makefile | 1 +
drivers/power/regulator/pbias_regulator.c | 302 ++++++++++++++++++++++++++++++
include/dm/read.h | 36 ++++
7 files changed, 362 insertions(+)
create mode 100644 drivers/power/regulator/pbias_regulator.c
--
1.9.1
More information about the U-Boot
mailing list