From mboxrd@z Thu Jan 1 00:00:00 1970 From: Krzysztof Kozlowski Subject: [PATCH v3 5/5] mfd: max14577: Add device tree bindings document Date: Fri, 22 Nov 2013 09:46:12 +0100 Message-ID: <1385109972-28059-6-git-send-email-k.kozlowski@samsung.com> References: <1385109972-28059-1-git-send-email-k.kozlowski@samsung.com> Return-path: In-reply-to: <1385109972-28059-1-git-send-email-k.kozlowski@samsung.com> Sender: linux-doc-owner@vger.kernel.org To: MyungJoo Ham , Chanwoo Choi , Samuel Ortiz , Lee Jones , Anton Vorontsov , David Woodhouse , Liam Girdwood , Mark Brown , Grant Likely , Rob Herring , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Pawel Moll , Stephen Warren , Ian Campbell , Rob Landley , linux-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Bartlomiej Zolnierkiewicz , Marek Szyprowski , Kyungmin Park , Krzysztof Kozlowski List-Id: devicetree@vger.kernel.org Add document describing device tree bindings for MAX14577 MFD driver. Signed-off-by: Krzysztof Kozlowski Signed-off-by: Kyungmin Park --- Documentation/devicetree/bindings/mfd/max14577.txt | 48 ++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/max14577.txt diff --git a/Documentation/devicetree/bindings/mfd/max14577.txt b/Documentation/devicetree/bindings/mfd/max14577.txt new file mode 100644 index 0000000..20d3866 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/max14577.txt @@ -0,0 +1,48 @@ +MAXIM MAX14577 multi-function device + +MAX14577 is a Multi-function device with Micro-USB Interface Circuit, Li+ +Battery Charger and SFOUT LDO output for powering USB devices. It is +interfaced to host controller using I2C. + +Required properties: +- compatible : Must be "maxim,max14577". +- reg : I2C slave address for the max14577 chip. +- interrupts : IRQ line for the max14577 chip. +- interrupt-parent : The parent interrupt controller. + +Optional properties: +- regulators : Each regulator should be represented by a child node of the + "regulators" node: + + regulator-name { + regulator-name = CHARGER/SAFEOUT; + /* standard regulator bindings here */ + }; + + Valid names for regulator are: "CHARGER" and "SAFEOUT". The SAFEOUT + is a constant voltage regulator so there is no need to specify voltages + for it. + + [*] refer Documentation/devicetree/bindings/regulator/regulator.txt + +Example: + max14577@25 { + compatible = "maxim,max14577"; + reg = <0x25>; + interrupt-parent = <&gpx1>; + interrupts = <5 0>; + + regulators { + safeout_reg: safeout@1 { + regulator-compatible = "SAFEOUT"; + regulator-name = "SAFEOUT"; + }; + charger_reg: charger@0 { + regulator-compatible = "CHARGER"; + regulator-name = "CHARGER"; + regulator-min-microamp = <90000>; + regulator-max-microamp = <950000>; + regulator-boot-on; + }; + }; + }; -- 1.7.9.5