]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
dm: regulator: add fixed voltage regulator driver
authorPrzemyslaw Marczak <p.marczak@samsung.com>
Mon, 20 Apr 2015 18:07:48 +0000 (20:07 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:40:25 +0000 (22:40 +0200)
commitf0db144d459e33ed77a6aaaa06cb71e041a46877
treee9d4535cb6978acbdce3aec120d2ccb13ad150af
parent2321a89b952317d9dfc6dd625fd393370056e42d
dm: regulator: add fixed voltage regulator driver

This driver implements regulator operations for fixed Voltage/Current
value regulators. beside the standard regulator constraints, which are
put into the uclass platform data, a typical fixed regulator node provides
few additional properties like:
- gpio
- gpio-open-drain
- enable-active-high
- startup-delay-us
The only 'gpio' is used by this driver and is kept in structure of type
'fixed_regulator_platdata', as a device platform data (dev->platdata).

The driver implements:
- get_value
- get_current
- get_enable
- set_enable

The regulator calls and commands can be used for fixed-regulator devices,
and the proper error will be returned for prohibited.

Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
Acked-by: Simon Glass <sjg@chromium.org>
doc/device-tree-bindings/regulator/fixed.txt [new file with mode: 0644]
drivers/power/regulator/Kconfig
drivers/power/regulator/Makefile
drivers/power/regulator/fixed.c [new file with mode: 0644]