13 Dec, 2017

1 commit

  • Texas Instrument's TPS65910 PMIC contains 3 buck DC-DC converts, one
    boost DC-DC converter and 8 LDOs. This patch implements driver model
    support for the TPS65910 PMIC and its regulators making the get/set
    API for regulator value/enable available.
    This patch depends on the patch "am33xx: Add a function to query MPU
    voltage in uV" to build correctly. For boards relying on the DT
    include file tps65910.dtsi the v3 patch "power: extend prefix match
    to regulator-name property" and an appropriate regulator naming is
    also required.

    Signed-off-by: Felix Brack
    Reviewed-by: Simon Glass

    Felix Brack
     

22 Sep, 2017

1 commit


29 Jul, 2017

1 commit


09 Jun, 2017

1 commit


11 May, 2017

1 commit

  • Since this driver can be used for rk8xx series pmic,
    let's rename rk808 to rk8xx, to make it clear.

    Configs parts are done by sed -i "s/RK808/RK8XX/g" `grep RK808 -lr ./`

    Signed-off-by: Jacob Chen

    Jacob Chen
     

12 Oct, 2016

3 commits


02 Oct, 2016

1 commit


22 Jan, 2016

2 commits


03 Sep, 2015

1 commit


12 Aug, 2015

1 commit

  • 1. Add new regulator driver pfuze100.
    * Introduce struct pfuze100_regulator_desc for maintaining info
    for one regulator.
    2. Add new Kconfig entry DM_REGULATOR_PFUZE100 for pfuze100.
    3. This driver intends to support PF100, PF200 and PF3000.
    4. Add related macro definition in pfuze header file.

    Signed-off-by: Peng Fan
    Cc: Przemyslaw Marczak
    Cc: Simon Glass

    Peng Fan
     

06 Aug, 2015

2 commits

  • This PMIC is used with SoCs which need a combination of BUCKs and LDOs. The
    driver supports changing voltage and enabling/disabling each regulator. It
    supports the standard device tree binding and supports driver model.

    Signed-off-by: Simon Glass
    Acked-by: Przemyslaw Marczak

    Simon Glass
     
  • The TPS65090 has 7 FETs which are modelled as regulators. This allows them
    to be controlled by drivers easier, accessed through the 'regulator' command
    and used by other drivers.

    Signed-off-by: Simon Glass
    Acked-by: Przemyslaw Marczak

    Simon Glass
     

15 May, 2015

4 commits

  • This commit adds emulation of sandbox PMIC device, which includes:
    - PMIC I2C emulation driver
    - PMIC I/O driver (UCLASS_PMIC)
    - PMIC regulator driver (UCLASS_REGULATOR)

    The sandbox PMIC has 12 significant registers and 4 as padding to 16 bytes,
    which allows using 'i2c md' command with the default count (16).

    The sandbox PMIC provides regulators:
    - 2x BUCK
    - 2x LDO

    Each, with adjustable output:
    - Enable state
    - Voltage
    - Current limit (LDO1/BUCK1 only)
    - Operation mode (different for BUCK and LDO)

    Each attribute has it's own register, beside the enable state, which depends
    on operation mode.

    The header file: sandbox_pmic.h includes PMIC's default register values,
    which are set on i2c pmic emul driver's probe() method.

    Signed-off-by: Przemyslaw Marczak
    Acked-by: Simon Glass
    Tested on sandbox:
    Tested-by: Simon Glass

    Przemyslaw Marczak
     
  • 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
    Acked-by: Simon Glass

    Przemyslaw Marczak
     
  • This commit adds support to MAX77686 regulator driver,
    based on a driver model regulator's API. It implements
    almost all regulator operations, beside those for setting
    and geting the Current value.
    For proper bind and operation it requires the MAX77686 PMIC driver.

    New file: drivers/power/regulator/max77686.c
    New config: CONFIG_DM_REGULATOR_MAX77686

    Signed-off-by: Przemyslaw Marczak
    Acked-by: Simon Glass

    Przemyslaw Marczak
     
  • 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
    Acked-by: Simon Glass

    Przemyslaw Marczak