From: Andre Przywara <andre.przywara@arm.com>
To: Jagan Teki <jagan@amarulasolutions.com>, u-boot@lists.denx.de
Cc: Sunil Mohan Adapa <sunil@medhas.org>,
Arnaud Ferraris <arnaud.ferraris@collabora.com>,
Jernej Skrabec <jernej.skrabec@gmail.com>
Subject: [PATCH 2/2] sunxi: A64: enable AXP drivers
Date: Wed, 7 May 2025 01:53:25 +0100 [thread overview]
Message-ID: <20250507005325.15612-3-andre.przywara@arm.com> (raw)
In-Reply-To: <20250507005325.15612-1-andre.przywara@arm.com>
So far the 64-bit SoCs were relying on Trusted-Firmware to do the PMIC
setup, which was quite static: enabling most rails, regardless of
whether they are needed or not.
We have a fully DM compliant AXP regulator driver for a while, so that
U-Boot proper can do its own PMIC setup, based on the actual need
(typically for USB, Ethernet, HDMI).
Enable that driver by default for all A64 boards, along with the RSB
driver.
The goal is to allow dropping the ill-fated regulator setup code from
TF-A, so that this can become smaller, and we only enable rails that are
really needed.
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
---
arch/arm/Kconfig | 1 +
arch/arm/mach-sunxi/Kconfig | 3 +++
2 files changed, 4 insertions(+)
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index fedfdb21457..6b59ff5be32 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -1190,6 +1190,7 @@ config ARCH_SUNXI
select DM_SPI_FLASH if SPI && MTD
select DM_KEYBOARD
select DM_SERIAL
+ select DM_PMIC
select MMU_PGPROT if ARM64
select OF_BOARD_SETUP
select OF_CONTROL
diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig
index fce817c9d40..c3718126cec 100644
--- a/arch/arm/mach-sunxi/Kconfig
+++ b/arch/arm/mach-sunxi/Kconfig
@@ -435,6 +435,9 @@ config MACH_SUN50I
select FIT
select SPL_LOAD_FIT if SPL
select SUNXI_A64_TIMER_ERRATUM
+ imply SYS_I2C_SUN8I_RSB
+ imply REGULATOR_AXP
+ imply PMIC_AXP
config MACH_SUN50I_H5
bool "sun50i (Allwinner H5)"
--
2.46.3
next prev parent reply other threads:[~2025-05-07 0:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-07 0:53 [PATCH 0/2] sunxi: A64: enable AXP driver support Andre Przywara
2025-05-07 0:53 ` [PATCH 1/2] sunxi: A64: enable DRIVEVBUS support for respective boards Andre Przywara
2025-05-07 0:53 ` Andre Przywara [this message]
2025-08-11 15:53 ` [PATCH 0/2] sunxi: A64: enable AXP driver support Jernej Škrabec
2025-08-28 8:39 ` Peter Robinson
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=20250507005325.15612-3-andre.przywara@arm.com \
--to=andre.przywara@arm.com \
--cc=arnaud.ferraris@collabora.com \
--cc=jagan@amarulasolutions.com \
--cc=jernej.skrabec@gmail.com \
--cc=sunil@medhas.org \
--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.