From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jaewon Kim Subject: [PATCH v3 4/4] mfd: max77693: Update DT binding to support haptic Date: Fri, 05 Sep 2014 20:48:22 +0900 Message-ID: <1409917702-17009-5-git-send-email-jaewon02.kim@samsung.com> References: <1409917702-17009-1-git-send-email-jaewon02.kim@samsung.com> Return-path: Received: from mailout4.samsung.com ([203.254.224.34]:64756 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932068AbaIELtB (ORCPT ); Fri, 5 Sep 2014 07:49:01 -0400 In-reply-to: <1409917702-17009-1-git-send-email-jaewon02.kim@samsung.com> Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Dmitry Torokhov , Samuel Ortiz , Lee Jones Cc: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, Chanwoo Choi , Jaewon Kim This patch add haptic DT binding documentation and example to support haptic driver in max77693 Multifunction device. Signed-off-by: Jaewon Kim Acked-by: Chanwoo Choi --- Documentation/devicetree/bindings/mfd/max77693.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/max77693.txt b/Documentation/devicetree/bindings/mfd/max77693.txt index 11921cc..d178b9e 100644 --- a/Documentation/devicetree/bindings/mfd/max77693.txt +++ b/Documentation/devicetree/bindings/mfd/max77693.txt @@ -27,6 +27,17 @@ Optional properties: [*] refer Documentation/devicetree/bindings/regulator/regulator.txt +- haptic : The haptic of max77693 have to be instantiated under subnod + named "haptic" using the following haptic format in example. + Haptic sensation from motor can be changed by changing a period cycle in pwms. + + Required properties: + - compatible : Must be "maxim,max77693-hpatic" + - haptic-supply : power supply for haptic motor + [*] refer Documentation/devicetree/bindings/regulator/regulator.txt + - pwms : phandle to the physical PWM device, + [*] refer Documentation/devicetree/bindings/pwm/pwm.txt + Example: max77693@66 { compatible = "maxim,max77693"; @@ -52,4 +63,11 @@ Example: regulator-boot-on; }; }; + + haptic { + compatible = "maxim,max77693-haptic"; + haptic-supply = <&haptic_supply>; + pwms = <&pwm 0 40000 0>; + pwm-names = "haptic"; + }; }; -- 1.7.9.5