All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v3 00/11] pmic: sandbox: Add support for MC34709 PMIC
@ 2018-05-15 14:26 Lukasz Majewski
  2018-05-15 14:26 ` [U-Boot] [PATCH v3 01/11] pmic: fsl: Provide some more definitions for MC34708 PMIC Lukasz Majewski
                   ` (10 more replies)
  0 siblings, 11 replies; 14+ messages in thread
From: Lukasz Majewski @ 2018-05-15 14:26 UTC (permalink / raw)
  To: u-boot

Adding this device required some changes into the PMIC uclass.
Most notable one was the support for 3 bytes r/w operations.
Moreover, emulation and tests for this device has been added to
sandbox.

Travis-CI:
https://travis-ci.org/lmajewski/u-boot-dfu/builds/378678458


Changes in v3:
- None
- None
- Rename dm_pmic_info to uc_pmic_priv
- Rename dm_pmic_info -> uc_pmic_priv
- Replace printf() -> debug()
- Use priv->trans_len instead of tx_num
- Rename dm_pmic_info with uc_pmic_priv
- Sort alphabetically includes
- Add comment regarding MC34708 byte ordering
- Replace dm_pmic_info with uc_pmic_priv
- Replace pmic_info with priv
- Replace pr_err() with debug()
- dm_pmic_info -> uc_pmic_priv
- Fix DTS property style to compy with Device Tree specification
  as suggested by Fabio.
- Enable MC34708 PMIC support in sandbox_{flattree|spl}_defconfig
- None
- Fix pmic.c test code after adjusting the sandbox PMIC related dts

Changes in v2:
- None
- None
- New patch
- pmic_reg_* fixes to use uclass private structure
- Support for uclass private data with trasfer length
- New patch
- New patch
- New patch
- New patch
- New patch
- New patch

Lukasz Majewski (11):
  pmic: fsl: Provide some more definitions for MC34708 PMIC
  pmic: fsl: Define number of bytes sent at once by MC34708 PMIC
  pmic: Add support for setting transmission length in uclass private
    data
  pmic: dm: Rewrite pmic_reg_{read|write|clrsetbits} to support 3 bytes
    transmissions
  pmic: dm: Add support for MC34708 for PMIC DM
  pmic: Rewrite the pmic command to not only work with single byte
    transmission
  sandbox: Rewrite i2c_pmic_emul.c to support PMIC with 3 bytes
    transmission
  sandbox: Enable support for MC34708 PMIC in DTS
  sandbox: Enable MC34708 PMIC support
  sandbox: tests: Exclude common test code (pmic_get) in test/dm/pmic.c
  sandbox: tests: Add tests for mc34708 PMIC device

 arch/sandbox/dts/sandbox.dts       |   4 ++
 arch/sandbox/dts/sandbox64.dts     |   4 ++
 arch/sandbox/dts/sandbox_pmic.dtsi |  33 ++++++++++++
 arch/sandbox/dts/test.dts          |   4 ++
 cmd/pmic.c                         |  31 ++++++-----
 configs/sandbox_defconfig          |   1 +
 configs/sandbox_flattree_defconfig |   1 +
 configs/sandbox_spl_defconfig      |   1 +
 drivers/power/pmic/Kconfig         |   7 +++
 drivers/power/pmic/Makefile        |   1 +
 drivers/power/pmic/i2c_pmic_emul.c |  45 +++++++++++-----
 drivers/power/pmic/mc34708.c       | 105 +++++++++++++++++++++++++++++++++++++
 drivers/power/pmic/pmic-uclass.c   |  52 +++++++++++++-----
 include/fsl_pmic.h                 |  41 +++++++++++++++
 include/power/pmic.h               |   9 ++++
 test/dm/pmic.c                     |  68 +++++++++++++++++++++++-
 16 files changed, 367 insertions(+), 40 deletions(-)
 create mode 100644 drivers/power/pmic/mc34708.c

-- 
2.11.0

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2018-05-15 16:05 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-15 14:26 [U-Boot] [PATCH v3 00/11] pmic: sandbox: Add support for MC34709 PMIC Lukasz Majewski
2018-05-15 14:26 ` [U-Boot] [PATCH v3 01/11] pmic: fsl: Provide some more definitions for MC34708 PMIC Lukasz Majewski
2018-05-15 16:05   ` Simon Glass
2018-05-15 14:26 ` [U-Boot] [PATCH v3 02/11] pmic: fsl: Define number of bytes sent at once by " Lukasz Majewski
2018-05-15 14:26 ` [U-Boot] [PATCH v3 03/11] pmic: Add support for setting transmission length in uclass private data Lukasz Majewski
2018-05-15 14:26 ` [U-Boot] [PATCH v3 04/11] pmic: dm: Rewrite pmic_reg_{read|write|clrsetbits} to support 3 bytes transmissions Lukasz Majewski
2018-05-15 14:26 ` [U-Boot] [PATCH v3 05/11] pmic: dm: Add support for MC34708 for PMIC DM Lukasz Majewski
2018-05-15 16:05   ` Simon Glass
2018-05-15 14:26 ` [U-Boot] [PATCH v3 06/11] pmic: Rewrite the pmic command to not only work with single byte transmission Lukasz Majewski
2018-05-15 14:26 ` [U-Boot] [PATCH v3 07/11] sandbox: Rewrite i2c_pmic_emul.c to support PMIC with 3 bytes transmission Lukasz Majewski
2018-05-15 14:26 ` [U-Boot] [PATCH v3 08/11] sandbox: Enable support for MC34708 PMIC in DTS Lukasz Majewski
2018-05-15 14:26 ` [U-Boot] [PATCH v3 09/11] sandbox: Enable MC34708 PMIC support Lukasz Majewski
2018-05-15 14:26 ` [U-Boot] [PATCH v3 10/11] sandbox: tests: Exclude common test code (pmic_get) in test/dm/pmic.c Lukasz Majewski
2018-05-15 14:26 ` [U-Boot] [PATCH v3 11/11] sandbox: tests: Add tests for mc34708 PMIC device Lukasz Majewski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.