* [PATCH] mfd: axp20x: Set explicit ID for AXP313 regulator
@ 2025-06-19 17:32 Chen-Yu Tsai
2025-06-25 9:09 ` (subset) " Lee Jones
0 siblings, 1 reply; 2+ messages in thread
From: Chen-Yu Tsai @ 2025-06-19 17:32 UTC (permalink / raw)
To: Lee Jones
Cc: Chen-Yu Tsai, linux-sunxi, linux-arm-kernel, linux-kernel,
Andre Przywara, Chris Morgan, Vasily Khoruzhick
From: Chen-Yu Tsai <wens@csie.org>
On newer boards featuring the A523 SoC, the AXP323 (related to the
AXP313) is paired with the AXP717 and serves as a secondary PMIC
providing additional regulator outputs. However the mfd cells are all
registered with PLATFORM_DEVID_NONE, which causes the regulator cells
to conflict with each other.
Commit e37ec3218870 ("mfd: axp20x: Allow multiple regulators") attempted
to fix this by switching to PLATFORM_DEVID_AUTO so that the device names
would all be different, however that broke IIO channel mapping, which is
also tied to the device names. As a result the change was later reverted.
Instead, here we attempt to make sure the AXP313/AXP323 regulator cell
does not conflict by explicitly giving it an ID number. This was
previously done for the AXP809+AXP806 pair used with the A80 SoC.
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
---
drivers/mfd/axp20x.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c
index e9914e8a29a3..25c639b348cd 100644
--- a/drivers/mfd/axp20x.c
+++ b/drivers/mfd/axp20x.c
@@ -1053,7 +1053,8 @@ static const struct mfd_cell axp152_cells[] = {
};
static struct mfd_cell axp313a_cells[] = {
- MFD_CELL_NAME("axp20x-regulator"),
+ /* AXP323 is sometimes paired with AXP717 as sub-PMIC */
+ MFD_CELL_BASIC("axp20x-regulator", NULL, NULL, 0, 1),
MFD_CELL_RES("axp313a-pek", axp313a_pek_resources),
};
--
2.39.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: (subset) [PATCH] mfd: axp20x: Set explicit ID for AXP313 regulator
2025-06-19 17:32 [PATCH] mfd: axp20x: Set explicit ID for AXP313 regulator Chen-Yu Tsai
@ 2025-06-25 9:09 ` Lee Jones
0 siblings, 0 replies; 2+ messages in thread
From: Lee Jones @ 2025-06-25 9:09 UTC (permalink / raw)
To: Lee Jones, Chen-Yu Tsai
Cc: Chen-Yu Tsai, linux-sunxi, linux-arm-kernel, linux-kernel,
Andre Przywara, Chris Morgan, Vasily Khoruzhick
On Fri, 20 Jun 2025 01:32:07 +0800, Chen-Yu Tsai wrote:
> On newer boards featuring the A523 SoC, the AXP323 (related to the
> AXP313) is paired with the AXP717 and serves as a secondary PMIC
> providing additional regulator outputs. However the mfd cells are all
> registered with PLATFORM_DEVID_NONE, which causes the regulator cells
> to conflict with each other.
>
> Commit e37ec3218870 ("mfd: axp20x: Allow multiple regulators") attempted
> to fix this by switching to PLATFORM_DEVID_AUTO so that the device names
> would all be different, however that broke IIO channel mapping, which is
> also tied to the device names. As a result the change was later reverted.
>
> [...]
Applied, thanks!
[1/1] mfd: axp20x: Set explicit ID for AXP313 regulator
commit: 77f6b46f199b8a483e0cfa176b7a629f75a2c4c4
--
Lee Jones [李琼斯]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-06-25 9:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-19 17:32 [PATCH] mfd: axp20x: Set explicit ID for AXP313 regulator Chen-Yu Tsai
2025-06-25 9:09 ` (subset) " Lee Jones
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).