Hi Tony, On Sun, Mar 26, 2017 at 08:25:13PM -0700, Tony Lindgren wrote: > The custom CPCAP PMIC used on Motorola phones such as Droid 4 has a > USB battery charger. It can optionally also have a companion chip that > is used for wireless charging. > > The charger on CPCAP also can feed VBUS for the USB host mode. This > can be handled by the existing kernel phy_companion interface. > > Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > Cc: Marcel Partap > Cc: Michael Scott > Signed-off-by: Tony Lindgren > --- > > Changes since v2: > > - Update binding based on comments by Sebastian Reichel > > - Drop "motorola,cpcap-charger" compatible for now as this seems specific > to the motorola-mapphone > > - Update Kconfig for "depends on IIO" and "default MFD_CPCAP" > > Changes since v1: > > - Fix scaling of IIO values as pointed out by Sebastian Reichel > > > - Use iio_read_channel_processed() instead of iio_read_channel_scaled() > as changed in the v2 of the ADC driver > > - Add GPL v2 license header > > --- > .../bindings/power/supply/cpcap-charger.txt | 38 ++ > drivers/power/supply/Kconfig | 8 + > drivers/power/supply/Makefile | 1 + > drivers/power/supply/cpcap-charger.c | 681 +++++++++++++++++++++ > 4 files changed, 728 insertions(+) > create mode 100644 Documentation/devicetree/bindings/power/supply/cpcap-charger.txt > create mode 100644 drivers/power/supply/cpcap-charger.c > > diff --git a/Documentation/devicetree/bindings/power/supply/cpcap-charger.txt b/Documentation/devicetree/bindings/power/supply/cpcap-charger.txt > new file mode 100644 > --- /dev/null > +++ b/Documentation/devicetree/bindings/power/supply/cpcap-charger.txt > @@ -0,0 +1,38 @@ > +Motorola CPCAP PMIC battery charger binding > + > +Required properties: > +- compatible: Shall be "motorola,cpcap-charger" or > + "motorola,mapphone-cpcap-charger" I queued this with "motorola,cpcap-charger" also dropped from the binding document. -- Sebastian