Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752826AbbBWIOe (ORCPT ); Mon, 23 Feb 2015 03:14:34 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:42474 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752241AbbBWIMm (ORCPT ); Mon, 23 Feb 2015 03:12:42 -0500 X-AuditID: cbfee690-f79ab6d0000046f7-52-54eae0f64880 From: Jaewon Kim To: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-pm@vger.kernel.org, linux-input@vger.kernel.org Cc: Inki Dae , SangBae Lee , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Lee Jones , Chanwoo Choi , Sebastian Reichel , Beomho Seo , Jaewon Kim , Dmitry Torokhov Subject: [PATCH v4 5/5] Documentation: Add device tree bindings document for max77843 Date: Mon, 23 Feb 2015 17:09:51 +0900 Message-id: <1424678991-13978-6-git-send-email-jaewon02.kim@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1424678991-13978-1-git-send-email-jaewon02.kim@samsung.com> References: <1424678991-13978-1-git-send-email-jaewon02.kim@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprNIsWRmVeSWpSXmKPExsWyRsSkWPfbg1chBi1zFSxOf9rGbnH9y3NW i/lHzrFaHF70gtGi/81CVotzr1YyWky6P4HFYkfDEVaL+1+PMlrc/PSN1eLyrjlsFp97jzBa LL1+kcliwvS1LBate4+wWxz/dJDF4vTuEgdBjzXz1jB6XO7rZfLYOesuu8fK5V/YPDat6mTz uHNtD5tH35ZVjB6fN8kFcERx2aSk5mSWpRbp2yVwZWy78pGx4JZyxd03AQ2MTbJdjJwcEgIm Eu2LLjND2GISF+6tZ+ti5OIQEljKKLHrzgE2mKLbB7ayQySmM0p8PN7CDOG0MUls3/aZFaSK TUBb4vv6xWC2iECpROPDu6wgRcwCP5glfs96BZYQFgiX2PT8FguIzSKgKn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IoTc4tL89L1kvNzNzGCo/iZ9A7GVQ0WhxgFOBiVeHgbcl+FCLEmlhVX5h5ilOBgVhLh bbsGFOJNSaysSi3Kjy8qzUktPsRoCnTURGYp0eR8YILJK4k3NDYxM7I0Mje0MDI2VxLnVbJv CxESSE8sSc1OTS1ILYLpY+LglGpgNGbq9J7+qu6DkK6IteflOwsXHPpwW5VthrSx176H/6YE LeC052R/8GJWknOe1ZWNJ+cvfLFK3v3ynM35hxorwy0dOWeqLMtR3XHw9SujzLPXVrDee3+4 ++PU2nerpl3jmeAvuGiBQeePiaINUa7tq2Ms1f//XnX8+un815F7dB5clOZON399qUGJpTgj 0VCLuag4EQA0dNPX+AIAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4677 Lines: 143 Add document describing device tree bindings for max77843 MFD. Drivers: MFD core, regulator, extcon, charger and fuelgauge. Cc: Rob Herring Cc: Pawel Moll Cc: Mark Rutland Cc: Ian Campbell Cc: Kumar Gala Cc: Lee Jones Cc: Sebastian Reichel Cc: Dmitry Torokhov Signed-off-by: Jaewon Kim Signed-off-by: Beomho Seo --- Documentation/devicetree/bindings/mfd/max77843.txt | 110 ++++++++++++++++++++ 1 file changed, 110 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/max77843.txt diff --git a/Documentation/devicetree/bindings/mfd/max77843.txt b/Documentation/devicetree/bindings/mfd/max77843.txt new file mode 100644 index 0000000..76426ca --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/max77843.txt @@ -0,0 +1,110 @@ +Maxim MAX77843 multi-function device + +MAX77843 is a Multi-Function Device with the following submodules: +- PMIC : 2 SAFEOUT LDOs for USB device +- CHARGER : Li+ battery charger with Fuel Gauge +- MUIC : Micro USB Interface Controller +- HAPTIC : Motor Controller for tactile feedback + +It is interfaced to host controller using I2C. + +Required properties: +- compatible : Must be "maxim,max77843". +- reg : I2C slave address of PMIC block. +- interrupts : I2C line for main SoCs. +- interrupt-parent : The parent of interrupt controller. + +Optional properties: +- regulators : The regulators of max77843 have to be instantiated under subnode + named "regulators" using the following format. + + [*]refer : Documentation/devicetree/bindings/regulator/regulator.txt + + regulators { + SAFEOUT { + regulator-name = "SAFEOUT"; + }; + } + + List of valid regulator names: + - SAFEOUT1, SAFEOUT2, CHARGER. + +- max77843-muic : This properties used by extcon consumers. + Required properties: + - compatible : Must be "maxim,max77842-muic". + +- max77843-charger : There battery charger of MAX77843 have to be instantiated + under sub-node named "max77843-charger" using the following format. + Required properties: + - compatible : Must be "maxim,max77842-charger". + - maxim,fast-charge-uamp : Fast charge current levels are + 100 mA to 3150 mA programmed by I2C per 100 mA. + - maxim,top-off-uamp : Top off current threshold levels are + 125 mA to 650 mA programmed by I2C per 75 mA. + - maxim,input-uamp-limit : Input current limit levels are + 100 mA to 3533 mA programmed by I2C per 33 mA. + +- max77843-fuelgauge : There fuelgauge of MAX77843 have to be instantiated + under sub-node named "max77843-fuelgauge" using the following format. + Required properties: + - compatible : Must be "maxim,max77842-fuelgauge". + +- max77843-haptic : The MAX77843 haptic device provides the tactile feedback + to the user by using PWM(Pulse Width Modulation) signal. + Required properties: + - compatible : Must be "maxim,max77843-hpatic". + - haptic-supply : Power supply for the haptic motor. + [*] refer Documentation/devicetree/ + bindings/regulator/regulator.txt + - pwms : phandle for the PWM(Pulse Width Modulation) device. + PWM properties should be named "pwms". + [*] refer Documentation/devicetree/bindings/pwm/pwm.txt + +Example: + max77843@66 { + compatible = "samsung,max77843"; + reg = <0x66>; + interrupt-parent = <&gpa1>; + interrupts = <5 2>; + + regulators { + SAFEOUT1 { + regulator-name = "SAFEOUT1"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <4950000>; + }; + SAFEOUT2 { + regulator-name = "SAFEOUT2"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <4950000>; + }; + CHARGER { + regulator-name = "CHARGER"; + regulator-min-microamp = <100000>; + regulator-max-microamp = <3150000>; + }; + }; + + haptic { + compatible = "maxim,max77843-haptic"; + haptic-supply = <&haptic_supply>; + pwms = <&pwm 0 40000 0>; + pwm-names = "haptic"; + }; + + max77843-muic { + compatible = "maxim,max77843-muic"; + }; + + max77843-charger { + compatible = "maxim,max77843-charger"; + maxim,fast-charge-uamp = <450000>; + maxim,top-off-uamp = <125000>; + maxim,input-uamp-limit = <500000>; + }; + + max77843-fuelgauge { + compatible = "maxim,max77843-fuelgauge"; + }; + + }; -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/