From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752762AbbBXBay (ORCPT ); Mon, 23 Feb 2015 20:30:54 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:23287 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751935AbbBXB3R (ORCPT ); Mon, 23 Feb 2015 20:29:17 -0500 X-AuditID: cbfee68f-f791c6d000004834-65-54ebd3e9ce3e 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 v6 5/5] Documentation: Add device tree bindings document for max77843 Date: Tue, 24 Feb 2015 10:29:08 +0900 Message-id: <1424741348-8728-6-git-send-email-jaewon02.kim@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1424741348-8728-1-git-send-email-jaewon02.kim@samsung.com> References: <1424741348-8728-1-git-send-email-jaewon02.kim@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprKIsWRmVeSWpSXmKPExsWyRsSkWPfl5dchBjvvCVic/rSN3eL6l+es FvOPnGO1OLzoBaNF/5uFrBbnXq1ktJh0fwKLxY6GI6wW978eZbS4+ekbq8XlXXPYLD73HmG0 WHr9IpPFhOlrWSxa9x5htzj+6SCLxendJQ6CHmvmrWH0uNzXy+Sxc9Zddo+Vy7+weWxa1cnm cefaHjaPvi2rGD0+b5IL4IjisklJzcksSy3St0vgyth25SNjwS3lirtvAhoYm2S7GDk4JARM JE78Su5i5AQyxSQu3FvPBmILCSxllFjdaA8RN5GY8nIxO0R8EaNE5+mYLkYuILuNSWLz7XeM IAk2AW2J7+sXs4LYIgKlEo0P77KCFDEL/GCW+D3rFSvIMmGBcInNy9JBTBYBVYl5i11AynkF 3CXOfr/ADHGOgsScSTYgYU4BD4lDG+4xQax1lzj6bCczxDl/2SXaJseB2CwCAhLfJh9igWiV ldh0AKpEUuLgihssExiFFzAyrGIUTS1ILihOSi8y1itOzC0uzUvXS87P3cQIjK3T/57172C8 e8D6EKMAB6MSD29D7qsQIdbEsuLK3EOMpkAbJjJLiSbnAyM4ryTe0NjMyMLUxNTYyNzSTEmc d6HUz2AhgfTEktTs1NSC1KL4otKc1OJDjEwcnFINjBrhXkv/a7xhfhlr73fmqMbc54HHxCNX n51hNe/wsudV5ecv9Om57118pergAbVa3bjKhSI/q0Jitpza1PP/m0jLKb6z/7U35B2N3nBI py1bZsm5eeGzTTkXTAvymP8izvVwYdCDLXsK5Q3eTheL6/Sy0mDbZrfuyw/vTWczm5mYY69u /ushZafEUpyRaKjFXFScCABE5on7qAIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrEIsWRmVeSWpSXmKPExsVy+t9jAd2Xl1+HGLRcY7M4/Wkbu8X1L89Z LeYfOcdqcXjRC0aL/jcLWS3OvVrJaDHp/gQWix0NR1gt7n89ymhx89M3VovLu+awWXzuPcJo sfT6RSaLCdPXsli07j3CbnH800EWi9O7SxwEPdbMW8Pocbmvl8lj56y77B4rl39h89i0qpPN 4861PWwefVtWMXp83iQXwBHVwGiTkZqYklqkkJqXnJ+SmZduq+QdHO8cb2pmYKhraGlhrqSQ l5ibaqvk4hOg65aZA/SHkkJZYk4pUCggsbhYSd8O04TQEDddC5jGCF3fkCC4HiMDNJCwhjFj 25WPjAW3lCvuvgloYGyS7WLk5JAQMJGY8nIxO4QtJnHh3no2EFtIYBGjROfpmC5GLiC7jUli 8+13jCAJNgFtie/rF7OC2CICpRKND++yghQxC/xglvg96xWQw8EhLBAusXlZOojJIqAqMW+x C0g5r4C7xNnvF5hBwhICChJzJtmAhDkFPCQObbjHBLHWXeLos53MExh5FzAyrGIUTS1ILihO Ss810itOzC0uzUvXS87P3cQIjt9n0jsYVzVYHGIU4GBU4uFtyH0VIsSaWFZcmXuIUYKDWUmE d/bB1yFCvCmJlVWpRfnxRaU5qcWHGE2BbprILCWanA9MLXkl8YbGJmZGlkbmhhZGxuZK4rxK 9m0hQgLpiSWp2ampBalFMH1MHJxSDYzRbd5txy4v/P3708eJ2lviPZojrhjcPpNy6kQ8t8aF OTO7uhg3H13ff2Lllbd2Zns+fL0VYcTFZVN1amWBa57SpiUWlxZNi8hNWn7/z4oMkTlPOzK9 E5e2Bq1WdN4dVjev+cYr3sa1by648dzctF148vzTva7mH747sizJZdLkLe5J51sRJPBLiaU4 I9FQi7moOBEAIpA8NPUCAAA= 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 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