]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
dt-bindings: power: supply: cpcap-battery: Add power-supplies property
authorTony Lindgren <tony@atomide.com>
Mon, 12 Jun 2017 16:04:00 +0000 (09:04 -0700)
committerSebastian Reichel <sre@kernel.org>
Wed, 14 Jun 2017 20:10:42 +0000 (22:10 +0200)
The binding for cpcap-battery is missing the standard power-supplies
property as noted by Sebastian Reichel <sebastian.reichel@collabora.co.uk>.

Cc: devicetree@vger.kernel.org
Cc: Marcel Partap <mpartap@gmx.net>
Cc: Michael Scott <michael.scott@linaro.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Documentation/devicetree/bindings/power/supply/cpcap-battery.txt

index d21b1cdf530f22ca9e1925c6f56aa2748417396d..a04efa22da0181911f446bb95f93c3fb431935a8 100644 (file)
@@ -8,6 +8,9 @@ Required properties:
 - io-channels: IIO ADC channel specifier for each name in io-channel-names
 - io-channel-names: Should contain the following entries:
                    "battdetb", "battp", "chg_isense", "batti"
+- power-supplies: List of phandles for power-supplying devices, as
+                 described in power_supply.txt. Typically a reference
+                 to cpcap_charger.
 
 Example:
 
@@ -24,4 +27,5 @@ cpcap_battery: battery {
                       &cpcap_adc 5 &cpcap_adc 6>;
        io-channel-names = "battdetb", "battp",
                           "chg_isense", "batti";
+       power-supplies = <&cpcap_charger>;
 };