]> www.infradead.org Git - users/jedix/linux-maple.git/commit
regulator: axp20x: AXP717: fix LDO supply rails and off-by-ones
authorAndre Przywara <andre.przywara@arm.com>
Thu, 18 Apr 2024 00:07:33 +0000 (01:07 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 12 Jun 2024 20:30:43 +0000 (21:30 +0100)
commit0057222c45140830a7bf55e92fb67f84a2814f67
tree8d4e9ee0be38a191b57d29eca056efbc377e228f
parent4cac29b846f38d5f0654cdfff5c5bfc37305081c
regulator: axp20x: AXP717: fix LDO supply rails and off-by-ones

The X-Powers AXP717 PMIC has separate input supply pins for each group
of LDOs, so they are not all using the same DCDC1 input, as described
currently.

Replace the "supply" member of each LDO description with the respective
group supply name, so that the supply dependencies can be correctly
described in the devicetree.

Also fix two off-by-ones in the regulator macros, after some double
checking the numbers against the datasheet. This uncovered a bug in the
datasheet: add a comment to document this.

Fixes: d2ac3df75c3a ("regulator: axp20x: add support for the AXP717")
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: John Watts <contact@jookia.org>
Link: https://lore.kernel.org/r/20240418000736.24338-3-andre.przywara@arm.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/axp20x-regulator.c