Skip to content

mfd/power/phy: Add support for otg vbus detection via axp pmic

Priit Laes linux-arm-kernel linux-devicetree linux-pm 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 8 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 8 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [linux-sunxi] [PATCH 0/8] mfd/power/phy: Add support for otg vbus detection via axp pmic
Quoted 8 lines · Hans de Goede

Hi All,

Here is a series which adds the beginning of power-supply support to the axp20x pmic code. My primary reason for working on this is to enable the use of the usb power-supply bits in the pmic to for vbus detection on boards which do not have a vbus-det gpio, and instead rely on the pmic for vbus detection.

Quoted 4 lines

After I had written most of the vbus power-supply driver code I became aware of Bruno Pr?mont's (in the CC) previous work on this our drivers are mostly the same, and I've borrowed some code from his driver to add support for min-volt / max-curr properties.

This is one of the reasons why we try to keep our Mainlining Effort page up-to-date:
http://linux-sunxi.org/Linux_mainlining_effort

Quoted 22 lines

The big difference between our 2 drivers is that mine driver uses a devicetree child node / mfd cell per power-supply, so one for each of the usb-power, ac-power / battery-charger and rtc-backup-bat -charger
bits.

Depending on the board each of those must be enabled / disabled separately
in devicetree as most boards do not use all 4. So in dt each one needs its
own child-node of the axp20x node. Another reason for using separate child
nodes for each is so that other devicetree nodes can have a power -supply
property with a phandle referencing a node representing a single power-supply.

Regards,

Hans