[PATCH v1 0/7] axp20x_usb_power: Add support for AXP192

Aidan MacDonald posted 7 patches 2 years, 9 months ago
.../x-powers,axp20x-usb-power-supply.yaml     |   1 +
drivers/power/supply/axp20x_usb_power.c       | 307 +++++++++---------
2 files changed, 153 insertions(+), 155 deletions(-)
[PATCH v1 0/7] axp20x_usb_power: Add support for AXP192
Posted by Aidan MacDonald 2 years, 9 months ago
This adds support for the AXP192's USB power supply. Most of this
series (patches 1-5) consists of refactoring the driver to avoid
explicit checks based on the variant ID. Doing that makes it very
easy to add support for the AXP192 in patches 6-7, and as a nice
side benefit, should make the driver more maintainable.

Patches 1-5 are unchanged from their previous submission[1].

[1] https://lore.kernel.org/all/20230218204946.106316-1-aidanmacdonald.0x0@gmail.com/

Aidan MacDonald (7):
  power: supply: axp20x_usb_power: Simplify USB current limit handling
  power: supply: axp20x_usb_power: Use regmap fields for VBUS monitor
    feature
  power: supply: axp20x_usb_power: Use regmap fields for USB BC feature
  power: supply: axp20x_usb_power: Use regmap field for VBUS disabling
  power: supply: axp20x_usb_power: Remove variant IDs from VBUS polling
    check
  power: supply: axp20x_usb_power: Add support for AXP192
  dt-bindings: power: supply: axp20x: Add AXP192 compatible

 .../x-powers,axp20x-usb-power-supply.yaml     |   1 +
 drivers/power/supply/axp20x_usb_power.c       | 307 +++++++++---------
 2 files changed, 153 insertions(+), 155 deletions(-)

-- 
2.39.2
Re: [PATCH v1 0/7] axp20x_usb_power: Add support for AXP192
Posted by Sebastian Reichel 2 years, 9 months ago
Hi,

On Wed, May 10, 2023 at 12:50:39PM +0100, Aidan MacDonald wrote:
> This adds support for the AXP192's USB power supply. Most of this
> series (patches 1-5) consists of refactoring the driver to avoid
> explicit checks based on the variant ID. Doing that makes it very
> easy to add support for the AXP192 in patches 6-7, and as a nice
> side benefit, should make the driver more maintainable.
> 
> Patches 1-5 are unchanged from their previous submission[1].
> 
> [1] https://lore.kernel.org/all/20230218204946.106316-1-aidanmacdonald.0x0@gmail.com/
> 
> Aidan MacDonald (7):
>   power: supply: axp20x_usb_power: Simplify USB current limit handling
>   power: supply: axp20x_usb_power: Use regmap fields for VBUS monitor
>     feature
>   power: supply: axp20x_usb_power: Use regmap fields for USB BC feature
>   power: supply: axp20x_usb_power: Use regmap field for VBUS disabling
>   power: supply: axp20x_usb_power: Remove variant IDs from VBUS polling
>     check
>   power: supply: axp20x_usb_power: Add support for AXP192
>   dt-bindings: power: supply: axp20x: Add AXP192 compatible
> 
>  .../x-powers,axp20x-usb-power-supply.yaml     |   1 +
>  drivers/power/supply/axp20x_usb_power.c       | 307 +++++++++---------
>  2 files changed, 153 insertions(+), 155 deletions(-)

Thanks, queued to power-supply's for-next branch.

-- Sebastian