]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
power: Add an axp20x-usb-power driver
authorHans de Goede <hdegoede@redhat.com>
Sat, 1 Aug 2015 08:39:38 +0000 (10:39 +0200)
committerSebastian Reichel <sre@kernel.org>
Tue, 22 Sep 2015 11:35:28 +0000 (13:35 +0200)
commit69fb4dcada7704beeba86e3f401a66c726aa8504
treef5e8a7cb8e77116447c44234f6235925ea9e508e
parent264905209a58779566a1d80c96110eea69b09440
power: Add an axp20x-usb-power driver

This adds a driver for the usb power_supply bits of the axp20x PMICs.

I initially started writing my own driver, before coming aware of
Bruno Prémont's excellent earlier RFC with a driver for this.

My driver was lacking CURRENT_MAX and VOLTAGE_MIN support Bruno's
drvier has, so I've copied the code for those from his driver.

Note that the AC-power-supply and battery charger bits will need separate
drivers. Each one needs its own devictree child-node so that other
devicetree nodes can reference the right power-supply, and thus each one
will get its own mfd-cell / platform_device and platform-driver.

Cc: Bruno Prémont <bonbons@linux-vserver.org>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Bruno Prémont <bonbons@linux-vserver.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/Kconfig
drivers/power/Makefile
drivers/power/axp20x_usb_power.c [new file with mode: 0644]
include/linux/mfd/axp20x.h