1. 10 12月, 2018 1 次提交
    • P
      power: add FAN53555 family support · dfb0a70a
      Philipp Tomsich 提交于
      This adds a driver for the FAN53555 family of regulators and wraps it
      in a PMIC implementation.
      
      While these devices support a 'normal' and 'suspend' mode (controlled
      via an external pin) to switch between two programmable voltages, this
      incarnation of the driver assumes that the device is always operating
      in 'normal' mode.
      
      Only setting/reading the programmed voltage is supported at this time
      and the following device functionality remains unsupported:
        - switching the selected voltage (via a GPIO)
        - disabling the voltage output via software-control
      This matches the functionality of the Linux driver.
      
      Tested on a RK3399-Q7 (with 'option 5' devices): setting voltages from
      the U-Boot shell and verifying output voltages on the board.
      Signed-off-by: NPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
      Tested-by: NKlaus Goger <klaus.goger@theobroma-systems.com>
      dfb0a70a
  2. 30 7月, 2018 1 次提交
  3. 18 5月, 2018 1 次提交
  4. 20 3月, 2018 1 次提交
  5. 13 12月, 2017 1 次提交
    • F
      power: pmic/regulator: Add basic support for TPS65910 · 854dfbf9
      Felix Brack 提交于
      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: NFelix Brack <fb@ltec.ch>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      854dfbf9
  6. 09 6月, 2017 1 次提交
  7. 11 5月, 2017 1 次提交
  8. 30 4月, 2017 1 次提交
  9. 09 2月, 2017 1 次提交
  10. 19 1月, 2017 1 次提交
  11. 22 12月, 2016 1 次提交
  12. 12 10月, 2016 2 次提交
  13. 07 10月, 2016 1 次提交
  14. 02 4月, 2016 1 次提交
  15. 22 1月, 2016 2 次提交
  16. 02 11月, 2015 1 次提交
  17. 03 9月, 2015 1 次提交
  18. 14 8月, 2015 1 次提交
  19. 06 8月, 2015 2 次提交
  20. 15 5月, 2015 4 次提交
    • P
      sandbox: add: sandbox PMIC device drivers: I2C emul, pmic, regulator · 5d387d0d
      Przemyslaw Marczak 提交于
      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: NPrzemyslaw Marczak <p.marczak@samsung.com>
      Acked-by: NSimon Glass <sjg@chromium.org>
      Tested on sandbox:
      Tested-by: NSimon Glass <sjg@chromium.org>
      5d387d0d
    • P
      dm: pmic: code cleanup of PMIC uclass driver · f415a3ec
      Przemyslaw Marczak 提交于
      The cleanup includes:
      - pmic.h - fix mistakes in a few comments
      - pmic operations: value 'reg_count' - redefine as function call
      - fix function name: pmic_bind_childs() -> pmic_bind_children()
      - pmic_bind_children: change the 'while' loop with the 'for'
      - add implementation of pmic_reg_count() method
      - pmic_bind_children() - update function call name
      - Kconfig: add new line at the end of file
      - Update MAX77686 driver code
      Signed-off-by: NPrzemyslaw Marczak <p.marczak@samsung.com>
      Acked-by: NSimon Glass <sjg@chromium.org>
      Tested on sandbox:
      Tested-by: NSimon Glass <sjg@chromium.org>
      f415a3ec
    • P
      dm: pmic: add max77686 pmic driver · 52a3de5e
      Przemyslaw Marczak 提交于
      This is the implementation of driver model PMIC driver.
      The max77686 PMIC driver implements read/write operations and driver
      bind method - to bind its childs.
      
      This driver will try to bind the regulator devices by using it's child
      info array with regulator prefixes and driver names. This should succeed
      when compatible regulator driver is compiled. If no regulator driver found,
      then the pmic can still provide read/write operations, and can be used with
      PMIC function calls.
      Signed-off-by: NPrzemyslaw Marczak <p.marczak@samsung.com>
      Acked-by: NSimon Glass <sjg@chromium.org>
      52a3de5e
    • P
      dm: pmic: add implementation of driver model pmic uclass · 4d9057e8
      Przemyslaw Marczak 提交于
      This commit introduces the PMIC uclass implementation.
      It allows providing the basic I/O interface for PMIC devices.
      For the multi-function PMIC devices, this can be used as I/O
      parent device, for each IC's interface. Then, each PMIC particular
      function can be provided by the child device's operations, and the
      child devices will use its parent for read/write by the common API.
      
      Core files:
      - 'include/power/pmic.h'
      - 'drivers/power/pmic/pmic-uclass.c'
      
      The old pmic framework is still kept and is independent.
      
      For more detailed informations, please look into the header file.
      
      Changes:
      - new uclass-id: UCLASS_PMIC
      - new config: CONFIG_DM_PMIC
      Signed-off-by: NPrzemyslaw Marczak <p.marczak@samsung.com>
      Acked-by: NSimon Glass <sjg@chromium.org>
      4d9057e8