u-boot.lists.denx.de archive mirror
 help / color / mirror / Atom feed
From: Samuel Holland <samuel@sholland.org>
To: Jaehoon Chung <jh80.chung@samsung.com>,
	Andre Przywara <andre.przywara@arm.com>
Cc: u-boot@lists.denx.de, Samuel Holland <samuel@sholland.org>
Subject: [PATCH 0/3] power: X-Powers PMIC regulator support
Date: Mon, 28 Nov 2022 00:47:53 -0600	[thread overview]
Message-ID: <20221128064757.2933-1-samuel@sholland.org> (raw)

This series adds a driver for the regulators in X-Powers AXPxxx PMICs.
It supports everything except regulators shared with GPIO pins. Those
have a different register interface, so they may need a separate driver.

Regulator setup in U-Boot proper is needed for Ethernet and HDMI/LCD
display output. For some SoCs (H616), this driver could possibly be used
for the DRAM regulator setup done in SPL. Older SoCs do all of their
regulator setup in SPL. Some of that is probably necessary, but I think
a lot of it is not and can be deferred to U-Boot proper or Linux; that's
just where it was convenient to initialize the PMIC at the time.

The main goal here is to replace the corresponding code in TF-A, both
because of TF-A size constraints, and because the TF-A code is too
simple/overzealous and breaks EPHY power sequencing on some boards.


Samuel Holland (3):
  power: pmic: axp: Provide a variant ID in the driver data
  power: regulator: Add a driver for AXP PMIC regulators
  power: pmic: axp: Bind regulators from the DT

 drivers/power/pmic/axp.c                |  36 ++-
 drivers/power/regulator/Kconfig         |  14 ++
 drivers/power/regulator/Makefile        |   1 +
 drivers/power/regulator/axp_regulator.c | 308 ++++++++++++++++++++++++
 include/axp_pmic.h                      |  12 +
 5 files changed, 362 insertions(+), 9 deletions(-)
 create mode 100644 drivers/power/regulator/axp_regulator.c

-- 
2.37.4


             reply	other threads:[~2022-11-28  6:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-28  6:47 Samuel Holland [this message]
2022-11-28  6:47 ` [PATCH 1/3] power: pmic: axp: Provide a variant ID in the driver data Samuel Holland
2023-01-11 23:08   ` Andre Przywara
2022-11-28  6:47 ` [PATCH 2/3] power: regulator: Add a driver for AXP PMIC regulators Samuel Holland
2023-01-11 23:08   ` Andre Przywara
2023-01-12  3:31     ` Samuel Holland
2022-11-28  6:47 ` [PATCH 3/3] power: pmic: axp: Bind regulators from the DT Samuel Holland

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=20221128064757.2933-1-samuel@sholland.org \
    --to=samuel@sholland.org \
    --cc=andre.przywara@arm.com \
    --cc=jh80.chung@samsung.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).