All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v1 0/2] support for ROHM BD71827 and BD71847 PMICs
Date: Mon, 8 Apr 2019 13:26:03 +0300	[thread overview]
Message-ID: <cover.1554716816.git.matti.vaittinen@fi.rohmeurope.com> (raw)

Patch series to support for ROHM BD71827 and BD71847 PMICs.

ROHM BD71837 and BD71847 is PMIC intended for powering single-core,
dual-core, and quad-core SoC’s such as NXP-i.MX 8M. BD71847 is used
for example on NXP imx8mm EVK.

Series adds PMIC driver with register read and write support, and
regulator driver with enable/disable and voltage changing support
with certain limitations:
- Enable/Disable state control is by default only allowed for BD71837
  bucks 3 and 4. This is due to a HW feature which leaves SW
  controlled power rails unpowered after reset which leads to SNVS
  state.
- Voltage control for enabled regulator is only allowed for "DVS"
  regulators (bucks 1-4 on BD71837, bucks 1 and 2 on BD71847). This
  is done because changing voltage on other regulators may cause
  under-/over shoot when regulator is enabled.

Drivers expect to see PMIC node with proper regulator sub-nodes given
from device tree but.

Driver is tested using BD71837 and BD71847 break-out board connected
to Beagle Bone Black and device-tree entry which was created as
desctibed in dt-binding document for BD718x7 shipped with Linux.

This patch series does not support DT properties which allow changing
the reset target between SNVS and READY or identifying boot-critical
regulators and disabling SW control based on reset target as the
Linux driver does.

Changelog v1:
- This version is created based on the RFC v1.
  https://lists.denx.de/pipermail/u-boot/2019-March/363076.html
  https://lists.denx.de/pipermail/u-boot/2019-March/363077.html
- Support BD71847.
- Unlock the PMIC protection register

Patch 1:
- Cherry picks the initial PMIC driver for BD71837 from NXP's i.MX
  repository at: https://source.codeaurora.org/external/imx/uboot-imx
  (commits e9a3bec2e95a and acdc5c297a96). Fixes checkpatch issues.

Patch 2:
- Support BD71847 PMIC.
- Add support for BD71837 and BD71847 regulators.

---

Matti Vaittinen (2):
  regulator: bd71837: copy the bd71837 pmic driver from NXP imx u-boot
  regulator: bd718x7: support ROHM BD71837 and BD71847 PMICs

 drivers/power/pmic/Kconfig        |   7 +
 drivers/power/pmic/Makefile       |   2 +
 drivers/power/pmic/bd71837.c      | 121 ++++++++
 drivers/power/pmic/pmic_bd71837.c |  31 ++
 drivers/power/regulator/Kconfig   |  15 +
 drivers/power/regulator/Makefile  |   1 +
 drivers/power/regulator/bd71837.c | 457 ++++++++++++++++++++++++++++++
 include/power/bd71837.h           | 105 +++++++
 8 files changed, 739 insertions(+)
 create mode 100644 drivers/power/pmic/bd71837.c
 create mode 100644 drivers/power/pmic/pmic_bd71837.c
 create mode 100644 drivers/power/regulator/bd71837.c
 create mode 100644 include/power/bd71837.h

-- 
2.17.2


-- 
Matti Vaittinen, Linux device drivers
ROHM Semiconductors, Finland SWDC
Kiviharjunlenkki 1E
90220 OULU
FINLAND

~~~ "I don't think so," said Rene Descartes. Just then he vanished ~~~

             reply	other threads:[~2019-04-08 10:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-08 10:26 Matti Vaittinen [this message]
2019-04-08 10:28 ` [U-Boot] [PATCH v1 1/2] regulator: bd71837: copy the bd71837 pmic driver from NXP imx u-boot Matti Vaittinen
2019-04-24  3:54   ` Simon Glass
2019-04-24  6:08     ` Vaittinen, Matti
2019-04-08 10:30 ` [U-Boot] [PATCH v1 2/2] regulator: bd718x7: support ROHM BD71837 and BD71847 PMICs Matti Vaittinen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1554716816.git.matti.vaittinen@fi.rohmeurope.com \
    --to=matti.vaittinen@fi.rohmeurope.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.