dm: regulator: add implementation of driver model regulator uclass
This commit introduces the implementation of dm regulator API. Device tree support allows for auto binding. And by the basic uclass operations, it allows to driving the devices in a common way. For detailed informations, please look into the header file. Core files: - drivers/power/regulator-uclass.c - provides regulator common functions api - include/power/regulator.h - define all structures required by the regulator Changes: - new uclass-id: UCLASS_REGULATOR - new config: CONFIG_DM_REGULATOR Signed-off-by:Przemyslaw Marczak <p.marczak@samsung.com> Acked-by:
Simon Glass <sjg@chromium.org>
Showing
- Makefile 2 additions, 1 deletionMakefile
- doc/device-tree-bindings/regulator/regulator.txt 54 additions, 0 deletionsdoc/device-tree-bindings/regulator/regulator.txt
- drivers/power/Kconfig 2 additions, 0 deletionsdrivers/power/Kconfig
- drivers/power/regulator/Kconfig 17 additions, 0 deletionsdrivers/power/regulator/Kconfig
- drivers/power/regulator/Makefile 8 additions, 0 deletionsdrivers/power/regulator/Makefile
- drivers/power/regulator/regulator-uclass.c 300 additions, 0 deletionsdrivers/power/regulator/regulator-uclass.c
- include/dm/uclass-id.h 1 addition, 0 deletionsinclude/dm/uclass-id.h
- include/power/regulator.h 384 additions, 0 deletionsinclude/power/regulator.h
Loading
Please register or sign in to comment