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

Message ID 20230510115046.963432-1-aidanmacdonald.0x0@gmail.com
Headers
Series axp20x_usb_power: Add support for AXP192 |

Message

Aidan MacDonald May 10, 2023, 11:50 a.m. UTC
  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(-)
  

Comments

Sebastian Reichel May 15, 2023, 9:26 p.m. UTC | #1
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