* [PATCH v3 0/3] regulator: Add AXP717 boost support
@ 2024-08-16 0:18 Andre Przywara
2024-08-16 0:18 ` [PATCH v3 1/3] dt-bindings: mfd: x-powers,axp152: add boost regulator Andre Przywara
` (4 more replies)
0 siblings, 5 replies; 7+ messages in thread
From: Andre Przywara @ 2024-08-16 0:18 UTC (permalink / raw)
To: Lee Jones, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Chen-Yu Tsai, Liam Girdwood, Mark Brown
Cc: devicetree, linux-kernel, linux-sunxi, Chris Morgan, John Watts,
Ryan Walklin, Philippe Simons
This is remainder of the AXP717 fix series, containing support for the
boost regulator. This is meant to increase the battery voltage to the 5
volts required to provide the USB VBUS power.
It's the usual trinity of DT bindings patch (1/3), the MFD part
describing the PMIC registers (2/3) and the final patch to model the
regulator (3/3).
Compared to v2, this drops the merged patches, and just retains the
boost related parts. It also changes the internal name of the register
to AXP717_MODULE_EN_CONTROL_2, since there is another control register
we will need later for battery support.
Please have a look and test!
Cheers,
Andre
Changelog v2 .. v3:
- drop already merged fix patches
- rename control register name to make room for second control register
- rebase on top of v6.11-rc3
- add review tags
Andre Przywara (3):
dt-bindings: mfd: x-powers,axp152: add boost regulator
mfd: axp20x: AXP717: Add support for boost regulator
regulator: axp20x: AXP717: Add boost regulator
Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml | 2 +-
drivers/mfd/axp20x.c | 2 ++
drivers/regulator/axp20x-regulator.c | 4 ++++
include/linux/mfd/axp20x.h | 3 +++
4 files changed, 10 insertions(+), 1 deletion(-)
--
2.39.4
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v3 1/3] dt-bindings: mfd: x-powers,axp152: add boost regulator
2024-08-16 0:18 [PATCH v3 0/3] regulator: Add AXP717 boost support Andre Przywara
@ 2024-08-16 0:18 ` Andre Przywara
2024-08-16 0:18 ` [PATCH v3 2/3] mfd: axp20x: AXP717: Add support for " Andre Przywara
` (3 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: Andre Przywara @ 2024-08-16 0:18 UTC (permalink / raw)
To: Lee Jones, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Chen-Yu Tsai, Liam Girdwood, Mark Brown
Cc: devicetree, linux-kernel, linux-sunxi, Chris Morgan, John Watts,
Ryan Walklin, Philippe Simons
The X-Powers AXP717 contains a boost regulator, that it meant to provide
the 5V USB VBUS voltage when the devices operates on battery.
Add the name "boost" to the regexp describing the allowed node names,
to allow the regulator to be described in the devicetree.
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Lee Jones <lee@kernel.org>
---
Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml b/Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml
index b8e8db0d58e9c..14ab367fc8871 100644
--- a/Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml
+++ b/Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml
@@ -274,7 +274,7 @@ properties:
Defines the work frequency of DC-DC in kHz.
patternProperties:
- "^(([a-f])?ldo[0-9]|dcdc[0-7a-e]|ldo(_|-)io(0|1)|(dc1)?sw|rtc(_|-)ldo|cpusldo|drivevbus|dc5ldo)$":
+ "^(([a-f])?ldo[0-9]|dcdc[0-7a-e]|ldo(_|-)io(0|1)|(dc1)?sw|rtc(_|-)ldo|cpusldo|drivevbus|dc5ldo|boost)$":
$ref: /schemas/regulator/regulator.yaml#
type: object
unevaluatedProperties: false
--
2.39.4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v3 2/3] mfd: axp20x: AXP717: Add support for boost regulator
2024-08-16 0:18 [PATCH v3 0/3] regulator: Add AXP717 boost support Andre Przywara
2024-08-16 0:18 ` [PATCH v3 1/3] dt-bindings: mfd: x-powers,axp152: add boost regulator Andre Przywara
@ 2024-08-16 0:18 ` Andre Przywara
2024-08-16 0:18 ` [PATCH v3 3/3] regulator: axp20x: AXP717: Add " Andre Przywara
` (2 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: Andre Przywara @ 2024-08-16 0:18 UTC (permalink / raw)
To: Lee Jones, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Chen-Yu Tsai, Liam Girdwood, Mark Brown
Cc: devicetree, linux-kernel, linux-sunxi, Chris Morgan, John Watts,
Ryan Walklin, Philippe Simons
The AXP717 also contains a boost regulator, to provide the 5V USB VBUS
rail when running on battery.
Add the registers to the MFD description to be able to use them from the
regulator driver.
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: John Watts <contact@jookia.org>
Acked-by: Lee Jones <lee@kernel.org>
---
drivers/mfd/axp20x.c | 2 ++
include/linux/mfd/axp20x.h | 2 ++
2 files changed, 4 insertions(+)
diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c
index dacd3c96c9f57..16950c3206d7f 100644
--- a/drivers/mfd/axp20x.c
+++ b/drivers/mfd/axp20x.c
@@ -209,6 +209,8 @@ static const struct regmap_access_table axp313a_volatile_table = {
};
static const struct regmap_range axp717_writeable_ranges[] = {
+ regmap_reg_range(AXP717_MODULE_EN_CONTROL_2, AXP717_MODULE_EN_CONTROL_2),
+ regmap_reg_range(AXP717_BOOST_CONTROL, AXP717_BOOST_CONTROL),
regmap_reg_range(AXP717_IRQ0_EN, AXP717_IRQ4_EN),
regmap_reg_range(AXP717_IRQ0_STATE, AXP717_IRQ4_STATE),
regmap_reg_range(AXP717_DCDC_OUTPUT_CONTROL, AXP717_CPUSLDO_CONTROL),
diff --git a/include/linux/mfd/axp20x.h b/include/linux/mfd/axp20x.h
index 8c0a33a2e9ce2..3758f986491c8 100644
--- a/include/linux/mfd/axp20x.h
+++ b/include/linux/mfd/axp20x.h
@@ -115,6 +115,8 @@ enum axp20x_variants {
#define AXP313A_IRQ_STATE 0x21
#define AXP717_ON_INDICATE 0x00
+#define AXP717_MODULE_EN_CONTROL_2 0x19
+#define AXP717_BOOST_CONTROL 0x1e
#define AXP717_IRQ0_EN 0x40
#define AXP717_IRQ1_EN 0x41
#define AXP717_IRQ2_EN 0x42
--
2.39.4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v3 3/3] regulator: axp20x: AXP717: Add boost regulator
2024-08-16 0:18 [PATCH v3 0/3] regulator: Add AXP717 boost support Andre Przywara
2024-08-16 0:18 ` [PATCH v3 1/3] dt-bindings: mfd: x-powers,axp152: add boost regulator Andre Przywara
2024-08-16 0:18 ` [PATCH v3 2/3] mfd: axp20x: AXP717: Add support for " Andre Przywara
@ 2024-08-16 0:18 ` Andre Przywara
2024-08-19 16:31 ` [PATCH v3 0/3] regulator: Add AXP717 boost support Chen-Yu Tsai
2024-09-09 15:25 ` Mark Brown
4 siblings, 0 replies; 7+ messages in thread
From: Andre Przywara @ 2024-08-16 0:18 UTC (permalink / raw)
To: Lee Jones, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Chen-Yu Tsai, Liam Girdwood, Mark Brown
Cc: devicetree, linux-kernel, linux-sunxi, Chris Morgan, John Watts,
Ryan Walklin, Philippe Simons
The AXP717 also contains an adjustable boost regulator, to provide the
5V USB VBUS rail when running on battery.
Add the regulator description that states the voltage range this
regulator can cover.
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: John Watts <contact@jookia.org>
---
drivers/regulator/axp20x-regulator.c | 4 ++++
include/linux/mfd/axp20x.h | 1 +
2 files changed, 5 insertions(+)
diff --git a/drivers/regulator/axp20x-regulator.c b/drivers/regulator/axp20x-regulator.c
index f3c447ecdc3bf..a8e91d9d028b8 100644
--- a/drivers/regulator/axp20x-regulator.c
+++ b/drivers/regulator/axp20x-regulator.c
@@ -143,6 +143,7 @@
#define AXP717_DCDC3_NUM_VOLTAGES 103
#define AXP717_DCDC_V_OUT_MASK GENMASK(6, 0)
#define AXP717_LDO_V_OUT_MASK GENMASK(4, 0)
+#define AXP717_BOOST_V_OUT_MASK GENMASK(7, 4)
#define AXP803_PWR_OUT_DCDC1_MASK BIT_MASK(0)
#define AXP803_PWR_OUT_DCDC2_MASK BIT_MASK(1)
@@ -834,6 +835,9 @@ static const struct regulator_desc axp717_regulators[] = {
AXP_DESC(AXP717, CPUSLDO, "cpusldo", "vin1", 500, 1400, 50,
AXP717_CPUSLDO_CONTROL, AXP717_LDO_V_OUT_MASK,
AXP717_LDO1_OUTPUT_CONTROL, BIT(4)),
+ AXP_DESC(AXP717, BOOST, "boost", "vin1", 4550, 5510, 64,
+ AXP717_BOOST_CONTROL, AXP717_BOOST_V_OUT_MASK,
+ AXP717_MODULE_EN_CONTROL_2, BIT(4)),
};
/* DCDC ranges shared with AXP813 */
diff --git a/include/linux/mfd/axp20x.h b/include/linux/mfd/axp20x.h
index 3758f986491c8..e0cd66bd3b6d9 100644
--- a/include/linux/mfd/axp20x.h
+++ b/include/linux/mfd/axp20x.h
@@ -486,6 +486,7 @@ enum {
AXP717_CLDO3,
AXP717_CLDO4,
AXP717_CPUSLDO,
+ AXP717_BOOST,
AXP717_REG_ID_MAX,
};
--
2.39.4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH v3 0/3] regulator: Add AXP717 boost support
2024-08-16 0:18 [PATCH v3 0/3] regulator: Add AXP717 boost support Andre Przywara
` (2 preceding siblings ...)
2024-08-16 0:18 ` [PATCH v3 3/3] regulator: axp20x: AXP717: Add " Andre Przywara
@ 2024-08-19 16:31 ` Chen-Yu Tsai
2024-08-19 16:33 ` Mark Brown
2024-09-09 15:25 ` Mark Brown
4 siblings, 1 reply; 7+ messages in thread
From: Chen-Yu Tsai @ 2024-08-19 16:31 UTC (permalink / raw)
To: Andre Przywara, Lee Jones, Mark Brown
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Liam Girdwood,
devicetree, linux-kernel, linux-sunxi, Chris Morgan, John Watts,
Ryan Walklin, Philippe Simons
On Fri, Aug 16, 2024 at 8:18 AM Andre Przywara <andre.przywara@arm.com> wrote:
>
> This is remainder of the AXP717 fix series, containing support for the
> boost regulator. This is meant to increase the battery voltage to the 5
> volts required to provide the USB VBUS power.
> It's the usual trinity of DT bindings patch (1/3), the MFD part
> describing the PMIC registers (2/3) and the final patch to model the
> regulator (3/3).
> Compared to v2, this drops the merged patches, and just retains the
> boost related parts. It also changes the internal name of the register
> to AXP717_MODULE_EN_CONTROL_2, since there is another control register
> we will need later for battery support.
>
> Please have a look and test!
Whole series is
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Not sure which tree this is going through, but since Lee already gave
acks, maybe we could have it all go through the regulator tree?
Thanks
> Cheers,
> Andre
>
> Changelog v2 .. v3:
> - drop already merged fix patches
> - rename control register name to make room for second control register
> - rebase on top of v6.11-rc3
> - add review tags
>
> Andre Przywara (3):
> dt-bindings: mfd: x-powers,axp152: add boost regulator
> mfd: axp20x: AXP717: Add support for boost regulator
> regulator: axp20x: AXP717: Add boost regulator
>
> Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml | 2 +-
> drivers/mfd/axp20x.c | 2 ++
> drivers/regulator/axp20x-regulator.c | 4 ++++
> include/linux/mfd/axp20x.h | 3 +++
> 4 files changed, 10 insertions(+), 1 deletion(-)
>
> --
> 2.39.4
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v3 0/3] regulator: Add AXP717 boost support
2024-08-19 16:31 ` [PATCH v3 0/3] regulator: Add AXP717 boost support Chen-Yu Tsai
@ 2024-08-19 16:33 ` Mark Brown
0 siblings, 0 replies; 7+ messages in thread
From: Mark Brown @ 2024-08-19 16:33 UTC (permalink / raw)
To: Chen-Yu Tsai
Cc: Andre Przywara, Lee Jones, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Liam Girdwood, devicetree, linux-kernel,
linux-sunxi, Chris Morgan, John Watts, Ryan Walklin,
Philippe Simons
[-- Attachment #1: Type: text/plain, Size: 244 bytes --]
On Tue, Aug 20, 2024 at 12:31:02AM +0800, Chen-Yu Tsai wrote:
> Not sure which tree this is going through, but since Lee already gave
> acks, maybe we could have it all go through the regulator tree?
That's what I'm expecting given the acks.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v3 0/3] regulator: Add AXP717 boost support
2024-08-16 0:18 [PATCH v3 0/3] regulator: Add AXP717 boost support Andre Przywara
` (3 preceding siblings ...)
2024-08-19 16:31 ` [PATCH v3 0/3] regulator: Add AXP717 boost support Chen-Yu Tsai
@ 2024-09-09 15:25 ` Mark Brown
4 siblings, 0 replies; 7+ messages in thread
From: Mark Brown @ 2024-09-09 15:25 UTC (permalink / raw)
To: Lee Jones, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Chen-Yu Tsai, Liam Girdwood, Andre Przywara
Cc: devicetree, linux-kernel, linux-sunxi, Chris Morgan, John Watts,
Ryan Walklin, Philippe Simons
On Fri, 16 Aug 2024 01:18:21 +0100, Andre Przywara wrote:
> This is remainder of the AXP717 fix series, containing support for the
> boost regulator. This is meant to increase the battery voltage to the 5
> volts required to provide the USB VBUS power.
> It's the usual trinity of DT bindings patch (1/3), the MFD part
> describing the PMIC registers (2/3) and the final patch to model the
> regulator (3/3).
> Compared to v2, this drops the merged patches, and just retains the
> boost related parts. It also changes the internal name of the register
> to AXP717_MODULE_EN_CONTROL_2, since there is another control register
> we will need later for battery support.
>
> [...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next
Thanks!
[1/3] dt-bindings: mfd: x-powers,axp152: add boost regulator
commit: b4c21faf69b8eec1016c776be4777f39f194e3b0
[2/3] mfd: axp20x: AXP717: Add support for boost regulator
commit: bb2ac59f8205165fce5aee9135bd1e2ea9b1a74b
[3/3] regulator: axp20x: AXP717: Add boost regulator
commit: 22dfe2ea1d63f15d8b9661e7690ac0a03159db6a
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2024-09-09 15:25 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-16 0:18 [PATCH v3 0/3] regulator: Add AXP717 boost support Andre Przywara
2024-08-16 0:18 ` [PATCH v3 1/3] dt-bindings: mfd: x-powers,axp152: add boost regulator Andre Przywara
2024-08-16 0:18 ` [PATCH v3 2/3] mfd: axp20x: AXP717: Add support for " Andre Przywara
2024-08-16 0:18 ` [PATCH v3 3/3] regulator: axp20x: AXP717: Add " Andre Przywara
2024-08-19 16:31 ` [PATCH v3 0/3] regulator: Add AXP717 boost support Chen-Yu Tsai
2024-08-19 16:33 ` Mark Brown
2024-09-09 15:25 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox