[U-Boot] [PATCH v4 11/16] dm: regulator: add fixed voltage regulator driver

Simon Glass sjg at chromium.org
Wed Apr 22 19:10:37 CEST 2015


On 22 April 2015 at 10:31, Simon Glass <sjg at chromium.org> wrote:
> On 20 April 2015 at 12:07, Przemyslaw Marczak <p.marczak at samsung.com> wrote:
>> 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 at samsung.com>
>>
>> Changes v3:
>> - new file
>> - Kconfig add fixed-regulator entry
>>
>> Changes V4:
>> - move DM_REGULATOR_FIXED Kconfig entry from: drivers/power/Kconfig to
>>   drivers/power/regulator/Kconfig
>> - regulator/fixed.c: adjust to use of uclass platdata and device platdata
>> - regulator/fixed.c: includes cleanup
>> - regulator/fixed.c: fix gpio request
>> - add binding info
>> ---
>>  doc/device-tree-bindings/regulator/fixed.txt |  38 ++++++++
>>  drivers/power/regulator/Kconfig              |   8 ++
>>  drivers/power/regulator/Makefile             |   1 +
>>  drivers/power/regulator/fixed.c              | 126 +++++++++++++++++++++++++++
>>  4 files changed, 173 insertions(+)
>>  create mode 100644 doc/device-tree-bindings/regulator/fixed.txt
>>  create mode 100644 drivers/power/regulator/fixed.c
>
> Acked-by: Simon Glass <sjg at chromium.org>

Applied to u-boot-dm/next, thanks!


More information about the U-Boot mailing list