devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/7] AXP803 AC/Battery support
@ 2017-09-20 15:18 Icenowy Zheng
  2017-09-20 15:18 ` [RFC PATCH 4/7] power: supply: axp20x-battery: support AXP803 Icenowy Zheng
       [not found] ` <20170920151814.22461-1-icenowy-h8G6r0blFSE@public.gmane.org>
  0 siblings, 2 replies; 22+ messages in thread
From: Icenowy Zheng @ 2017-09-20 15:18 UTC (permalink / raw)
  To: Chen-Yu Tsai, Maxime Ripard, Jonathan Cameron, Lee Jones,
	Quentin Schulz
  Cc: linux-pm-u79uwXL29TY76Z2rM5mHXA,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	linux-iio-u79uwXL29TY76Z2rM5mHXA,
	linux-sunxi-/JYPxA39Uh5TLH3MbocFFw, Icenowy Zheng

The AXP803 PMIC, used by most Allwinner A64 boards, features 3 power inputs:
AC, USB and Battery.

This patchset adds support for the AC and Battery supplies, which is useful
for the boards from Pine64 (Pine64, SoPine w/ baseboard model A, Pinebook).

The USB supply is not yet supported in this patchset because it's not
present on Pine series boards.

In order to enable battery monitoring the ADC for battery is also enabled
for AXs.

In order to enable battery monitoring the ADC for battery is also enabled
for AXP803.

Icenowy Zheng (7):
  dt-bindings: add compatibles for AXP803 Battery/USB power supplies
  iio: adc: axp20x-adc: allow to skip ADC rate setup now
  iio: adc: axp20x-adc: add support for AXP803
  power: supply: axp20x-battery: support AXP803
  mfd: axp20x: add cells for AXP803 ADC/AC Power/Battery
  arm64: allwinner: a64: add power supply nodes in AXP803 DTSI
  arm64: allwinner: a64: enable AC and Battery for Pine64

 .../bindings/power/supply/axp20x_battery.txt       |   1 +
 .../bindings/power/supply/axp20x_usb_power.txt     |   1 +
 arch/arm64/boot/dts/allwinner/axp803.dtsi          |  15 +++
 .../arm64/boot/dts/allwinner/sun50i-a64-pine64.dts |   8 ++
 drivers/iio/adc/axp20x_adc.c                       | 114 ++++++++++++++++++++-
 drivers/mfd/axp20x.c                               |  11 ++
 drivers/power/supply/axp20x_battery.c              |  88 ++++++++++++++--
 7 files changed, 226 insertions(+), 12 deletions(-)

-- 
2.13.5

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2017-09-25  9:24 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-20 15:18 [RFC PATCH 0/7] AXP803 AC/Battery support Icenowy Zheng
2017-09-20 15:18 ` [RFC PATCH 4/7] power: supply: axp20x-battery: support AXP803 Icenowy Zheng
     [not found]   ` <20170920151814.22461-5-icenowy-h8G6r0blFSE@public.gmane.org>
2017-09-24 14:34     ` Jonathan Cameron
2017-09-25  8:58     ` Quentin Schulz
     [not found] ` <20170920151814.22461-1-icenowy-h8G6r0blFSE@public.gmane.org>
2017-09-20 15:18   ` [RFC PATCH 1/7] dt-bindings: add compatibles for AXP803 Battery/USB power supplies Icenowy Zheng
     [not found]     ` <20170920151814.22461-2-icenowy-h8G6r0blFSE@public.gmane.org>
2017-09-25  9:14       ` Quentin Schulz
2017-09-20 15:18   ` [RFC PATCH 2/7] iio: adc: axp20x-adc: allow to skip ADC rate setup now Icenowy Zheng
2017-09-25  7:20     ` Quentin Schulz
2017-09-20 15:18   ` [RFC PATCH 3/7] iio: adc: axp20x-adc: add support for AXP803 Icenowy Zheng
     [not found]     ` <20170920151814.22461-4-icenowy-h8G6r0blFSE@public.gmane.org>
2017-09-24 14:32       ` Jonathan Cameron
2017-09-25  8:48       ` Quentin Schulz
2017-09-20 15:18   ` [RFC PATCH 5/7] mfd: axp20x: add cells for AXP803 ADC/AC Power/Battery Icenowy Zheng
2017-09-20 15:18   ` [RFC PATCH 6/7] arm64: allwinner: a64: add power supply nodes in AXP803 DTSI Icenowy Zheng
     [not found]     ` <20170920151814.22461-7-icenowy-h8G6r0blFSE@public.gmane.org>
2017-09-25  9:11       ` Quentin Schulz
     [not found]         ` <7ce5c53e-70ba-456e-ecf7-5132ef2c2c64-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2017-09-25  9:14           ` Icenowy Zheng
     [not found]             ` <D7CAB179-F2AF-434F-82F7-07F146842FCF-h8G6r0blFSE@public.gmane.org>
2017-09-25  9:19               ` Chen-Yu Tsai
2017-09-25  9:24               ` Quentin Schulz
2017-09-20 15:18   ` [RFC PATCH 7/7] arm64: allwinner: a64: enable AC and Battery for Pine64 Icenowy Zheng
2017-09-21 14:46   ` [RFC PATCH 0/7] AXP803 AC/Battery support Jonathan Cameron
     [not found]     ` <20170921154621.0000328d-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2017-09-21 15:20       ` Icenowy Zheng
2017-09-24 14:36         ` Jonathan Cameron
2017-09-25  9:22           ` Quentin Schulz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).