linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v8 0/3] regulator: Add X-Powers AXP313a PMIC support*
@ 2023-01-20 18:44 Martin Botka
  2023-01-20 18:44 ` [PATCH v8 1/3] dt-bindings: mfd: x-powers,axp152: Document the AXP313a variant Martin Botka
                   ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: Martin Botka @ 2023-01-20 18:44 UTC (permalink / raw)
  To: martin.botka1
  Cc: Konrad Dybcio, AngeloGioacchino Del Regno, Marijn Suijten,
	Jami Kettunen, Paul Bouchara, Jan Trmal, Jernej Skrabec,
	Samuel Holland, Andre Przywara, Martin Botka, Lee Jones,
	Rob Herring, Krzysztof Kozlowski, Chen-Yu Tsai, Liam Girdwood,
	Mark Brown, devicetree, linux-kernel

This patch series adds support for the X-Powers AXP313a PMIC, which is
often bundled with Allwinner H616 or H313 SoCs.
Andre Przywara took over the series for v6 but I now have a bit more time
so I took over the series again.

Up to v5 this was speaking of the AXP1530, which seems to be some internal
name. The chips we have seen in the wild are all labeled AXP313a, so we
go with this name here, from now on. This is supported by the fact that
there is an AXP313a datasheet, but none for the AXP1530.

Patch 1 is the binding documentation (just the new compatible string),
patch 2 adds the MFD bits (mostly describing the extent of the regmap),
while patch 3 describes the actual AXP313a register definitions.
Since this ties neatly into the existing AXP and generic regulator
framework, the patches are indeed only structure definitions, there is no
new code.

For now Andre papered over this "fixed customizable" RTC-LDO regulator in the
same way this was done before for other PMICs (AXP803, for instance), Andre
thinks we can fix this properly with a follow-up patch, for all instances.

Please have a look!

Cheers,
Martin

Changelog:
v7 .. v8:
- Add check for dcdcfreq being zero

v6 .. v7:
- Use alphabetical ordering

v5 .. v6:
- change name from AXP1530 to AXP313a
- extend commit messages
- drop AXP*_FREQUENCY register (not used anyway)
- better vertically align struct definitions
- rename IRQs to match names used for other PMICs
- add RTC_LDO regulator
- use decimal numbers for selector ranges
- use macro definitions to name some values
- force DC/DC switching frequency to be fixed at 3 MHz
- change LDO source supply to VIN1 (as per datasheet)

v4 .. v5:
- Use alphabetical ordering in mfd
- Correct { placement line
- Replace spaces with tabs in 1 struct

v3 .. v4:
- Fix indentation

v2 .. v3:
- Move AXP1530 dt-binding to alphabetical order

v1 .. v2:
- Remove RSB support.
- Drop .id = 0
- Add dt-binding for the AXP1530

Martin Botka (3):
  dt-bindings: mfd: x-powers,axp152: Document the AXP313a variant
  mfd: axp20x: Add support for AXP313a PMIC
  regulator: axp20x: Add support for AXP313a variant

 .../bindings/mfd/x-powers,axp152.yaml         |  1 +
 drivers/mfd/axp20x-i2c.c                      |  2 +
 drivers/mfd/axp20x.c                          | 61 +++++++++++++++++++
 drivers/regulator/axp20x-regulator.c          | 60 ++++++++++++++++++
 include/linux/mfd/axp20x.h                    | 32 ++++++++++
 5 files changed, 156 insertions(+)

-- 
2.39.0


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2023-03-23 16:19 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-20 18:44 [PATCH v8 0/3] regulator: Add X-Powers AXP313a PMIC support* Martin Botka
2023-01-20 18:44 ` [PATCH v8 1/3] dt-bindings: mfd: x-powers,axp152: Document the AXP313a variant Martin Botka
2023-01-20 18:51   ` Martin Botka
2023-01-27 17:10   ` Chen-Yu Tsai
2023-01-20 18:44 ` [PATCH v8 2/3] mfd: axp20x: Add support for AXP313a PMIC Martin Botka
2023-01-27 17:40   ` Chen-Yu Tsai
2023-03-23 13:59     ` Andre Przywara
2023-03-23 14:24       ` Chen-Yu Tsai
2023-02-18 17:52   ` Shengyu Qu
2023-02-28 21:11     ` Martin Botka
2023-01-20 18:44 ` [PATCH v8 3/3] regulator: axp20x: Add support for AXP313a variant Martin Botka
2023-01-27 17:24   ` Chen-Yu Tsai
2023-02-18 10:08     ` Shengyu Qu
2023-02-28 21:09       ` Martin Botka
2023-03-23 13:59     ` Andre Przywara
2023-03-23 14:21       ` Chen-Yu Tsai
2023-03-23 16:07         ` Andre Przywara
2023-03-23 16:18           ` Chen-Yu Tsai

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).