u-boot-brain/drivers/power/pmic
Przemyslaw Marczak 5d387d0df9 sandbox: add: sandbox PMIC device drivers: I2C emul, pmic, regulator
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 <p.marczak@samsung.com>
Acked-by: Simon Glass <sjg@chromium.org>
Tested on sandbox:
Tested-by: Simon Glass <sjg@chromium.org>
2015-05-14 19:58:34 -06:00
..
i2c_pmic_emul.c sandbox: add: sandbox PMIC device drivers: I2C emul, pmic, regulator 2015-05-14 19:58:34 -06:00
Kconfig sandbox: add: sandbox PMIC device drivers: I2C emul, pmic, regulator 2015-05-14 19:58:34 -06:00
Makefile sandbox: add: sandbox PMIC device drivers: I2C emul, pmic, regulator 2015-05-14 19:58:34 -06:00
max77686.c dm: pmic: code cleanup of PMIC uclass driver 2015-05-14 19:58:34 -06:00
muic_max8997.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
pmic_ltc3676.c power: Add support for LTC3676 PMIC 2014-05-09 14:38:23 +02:00
pmic_max8997.c power: Add PMIC_ prefix to CHARGER_EN/DISABLE 2014-05-28 10:58:18 +09:00
pmic_max8998.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
pmic_max77686.c dm: pmic: add max77686 pmic driver 2015-05-14 18:49:38 -06:00
pmic_pfuze100.c pmic: pmic_pfuze100: Use a shorter name for PMIC name 2014-08-08 10:29:41 +02:00
pmic_tps62362.c pmic: add tps62362 simple wrapper code 2015-01-13 15:26:10 -05:00
pmic_tps65090_ec.c cros_ec: power: Add a tunnelled version of the tps65090 driver 2014-10-08 17:25:46 +09:00
pmic_tps65090.c pmic: tps65090: correct checking i2c bus 2014-06-19 11:19:05 -04:00
pmic_tps65217.c drivers/power/pmic: Add tps65217 driver 2013-09-20 11:01:26 -04:00
pmic_tps65218.c tps65218/am43xx_evm: Add power framework support to TPS65218 2014-07-25 15:21:06 -04:00
pmic_tps65910.c drivers/power/pmic: Add tps65910 driver 2013-09-20 11:01:26 -04:00
pmic-uclass.c dm: pmic: code cleanup of PMIC uclass driver 2015-05-14 19:58:34 -06:00
sandbox.c sandbox: add: sandbox PMIC device drivers: I2C emul, pmic, regulator 2015-05-14 19:58:34 -06:00