1. 27 Dec, 2016 1 commit
  2. 06 Sep, 2016 1 commit
  3. 12 Aug, 2015 1 commit
  4. 15 May, 2015 4 commits
    • Przemyslaw Marczak's avatar
      sandbox: add: sandbox PMIC device drivers: I2C emul, pmic, regulator · 5d387d0d
      Przemyslaw Marczak authored
      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: default avatarPrzemyslaw Marczak <p.marczak@samsung.com>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
      Tested on sandbox:
      Tested-by: default avatarSimon Glass <sjg@chromium.org>
      5d387d0d
    • Przemyslaw Marczak's avatar
      dm: regulator: add fixed voltage regulator driver · 9923a8b4
      Przemyslaw Marczak authored
      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: default avatarPrzemyslaw Marczak <p.marczak@samsung.com>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
      9923a8b4
    • Przemyslaw Marczak's avatar
      dm: regulator: add max77686 regulator driver · 1757df46
      Przemyslaw Marczak authored
      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: default avatarPrzemyslaw Marczak <p.marczak@samsung.com>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
      1757df46
    • Przemyslaw Marczak's avatar
      dm: regulator: add implementation of driver model regulator uclass · af41e8db
      Przemyslaw Marczak authored
      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: default avatarPrzemyslaw Marczak <p.marczak@samsung.com>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
      af41e8db
  5. 28 May, 2014 1 commit