U-boot Archive mirror
 help / color / mirror / Atom feed
From: Andre Przywara <andre.przywara@arm.com>
To: Jaehoon Chung <jh80.chung@samsung.com>,
	Jagan Teki <jagan@amarulasolutions.com>
Cc: Jernej Skrabec <jernej.skrabec@gmail.com>,
	Chris Morgan <macromorgan@hotmail.com>,
	Ryan Walklin <ryan@testtoast.com>,
	u-boot@lists.denx.de, linux-sunxi@lists.linux.dev,
	Tom Rini <trini@konsulko.com>
Subject: [PATCH 0/2] power: regulator: add AXP717 support
Date: Fri, 10 May 2024 00:43:17 +0100	[thread overview]
Message-ID: <20240509234319.13104-1-andre.przywara@arm.com> (raw)

The X-Powers AXP717 is a PMIC chip, controlled via I2C or RSB. It
features four DC/DC converters and a number of linear regulators.
Also it contains some charger and USB-C detection circuitry, though we
don't use that in U-Boot. The PMIC is used on some newer Allwinner
devices, for instance the Anbernic handheld gaming devices.

Add AXP717 support to the DM driven AXP regulator driver, and also an SPL
version, as we need to program the DRAM voltage rail correctly before
attempting to initialise the DRAM controller.

Cheers,
Ander

Andre Przywara (2):
  power: pmic: sunxi: add AXP717 SPL driver
  power: regulator: add AXP717 support

 arch/arm/mach-sunxi/pmic_bus.c          |  3 +
 board/sunxi/board.c                     |  2 +-
 drivers/power/Kconfig                   | 17 +++--
 drivers/power/Makefile                  |  1 +
 drivers/power/axp717.c                  | 92 +++++++++++++++++++++++++
 drivers/power/pmic/axp.c                |  1 +
 drivers/power/regulator/axp_regulator.c | 28 ++++++++
 include/axp_pmic.h                      |  1 +
 8 files changed, 140 insertions(+), 5 deletions(-)
 create mode 100644 drivers/power/axp717.c

-- 
2.35.8


             reply	other threads:[~2024-05-09 23:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-09 23:43 Andre Przywara [this message]
2024-05-09 23:43 ` [PATCH 1/2] power: pmic: sunxi: add AXP717 SPL driver Andre Przywara
2024-05-11 10:04   ` Ryan Walklin
2024-05-09 23:43 ` [PATCH 2/2] power: regulator: add AXP717 support Andre Przywara
2024-05-11 10:10   ` Ryan Walklin

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=20240509234319.13104-1-andre.przywara@arm.com \
    --to=andre.przywara@arm.com \
    --cc=jagan@amarulasolutions.com \
    --cc=jernej.skrabec@gmail.com \
    --cc=jh80.chung@samsung.com \
    --cc=linux-sunxi@lists.linux.dev \
    --cc=macromorgan@hotmail.com \
    --cc=ryan@testtoast.com \
    --cc=trini@konsulko.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 read-only IMAP folder(s) and NNTP newsgroup(s).