From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758833Ab3DAVqG (ORCPT ); Mon, 1 Apr 2013 17:46:06 -0400 Received: from hqemgate03.nvidia.com ([216.228.121.140]:3904 "EHLO hqemgate03.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758662Ab3DAVqA (ORCPT ); Mon, 1 Apr 2013 17:46:00 -0400 X-PGP-Universal: processed; by hqnvupgp07.nvidia.com on Mon, 01 Apr 2013 14:44:57 -0700 From: Rhyland Klein To: Anton Vorontsov , Grant Likely CC: David Woodhouse , , , , Rhyland Klein Subject: [PATCH V2 1/3] power_supply: Define Binding for power-supplies Date: Mon, 1 Apr 2013 17:45:53 -0400 Message-ID: <1364852755-17425-2-git-send-email-rklein@nvidia.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1364852755-17425-1-git-send-email-rklein@nvidia.com> References: <1364852755-17425-1-git-send-email-rklein@nvidia.com> X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This property is meant to be used in device nodes which represent power_supply devices that wish to provide a list of supplies which provide them power, such as a battery listing its chargers. Signed-off-by: Rhyland Klein --- v2: - no changes v1: - changed from RFC v2 -> patch v1 - made poropery plural as it can be a list - update example with plural & changed once charger address v2 (RFC): - changed property to "power-supply" which should be contained in the battery rather than the charger. Also updated example to match .../bindings/power_supply/power_supply.txt | 23 ++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Documentation/devicetree/bindings/power_supply/power_supply.txt diff --git a/Documentation/devicetree/bindings/power_supply/power_supply.txt b/Documentation/devicetree/bindings/power_supply/power_supply.txt new file mode 100644 index 0000000..8391bfa --- /dev/null +++ b/Documentation/devicetree/bindings/power_supply/power_supply.txt @@ -0,0 +1,23 @@ +Power Supply Core Support + +Optional Properties: + - power-supplies : This property is added to a supply in order to list the + devices which supply it power, referenced by their phandles. + +Example: + + usb-charger: power@e { + compatible = "some,usb-charger"; + ... + }; + + ac-charger: power@c { + compatible = "some,ac-charger"; + ... + }; + + battery@b { + compatible = "some,battery"; + ... + power-supplies = <&usb-charger>, <&ac-charger>; + }; -- 1.7.9.5