From: Jean-Jacques Hiblot Date: Wed, 19 Jul 2017 15:52:21 +0200 Subject: [U-Boot] [PATCH v2 0/3] power: Add a driver to handle the PBIAS cell of the TI SOCs Message-ID: <1500472344-29876-1-git-send-email-jjhiblot@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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