Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: max77693: Update DT binding to support haptic

This patch add haptic DT binding documentation and example
to support haptic driver in max77693 Multifunction device.

Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>

authored by

Jaewon Kim and committed by
Lee Jones
ee828d02 d1bafd78

+21
+21
Documentation/devicetree/bindings/mfd/max77693.txt
··· 27 27 28 28 [*] refer Documentation/devicetree/bindings/regulator/regulator.txt 29 29 30 + - haptic : The MAX77693 haptic device utilises a PWM controlled motor to provide 31 + users with tactile feedback. PWM period and duty-cycle are varied in 32 + order to provide the approprite level of feedback. 33 + 34 + Required properties: 35 + - compatible : Must be "maxim,max77693-hpatic" 36 + - haptic-supply : power supply for the haptic motor 37 + [*] refer Documentation/devicetree/bindings/regulator/regulator.txt 38 + - pwms : phandle to the physical PWM(Pulse Width Modulation) device. 39 + PWM properties should be named "pwms". And number of cell is different 40 + for each pwm device. 41 + To get more informations, please refer to documentaion. 42 + [*] refer Documentation/devicetree/bindings/pwm/pwm.txt 43 + 30 44 Example: 31 45 max77693@66 { 32 46 compatible = "maxim,max77693"; ··· 65 51 regulator-max-microamp = <2580000>; 66 52 regulator-boot-on; 67 53 }; 54 + }; 55 + 56 + haptic { 57 + compatible = "maxim,max77693-haptic"; 58 + haptic-supply = <&haptic_supply>; 59 + pwms = <&pwm 0 40000 0>; 60 + pwm-names = "haptic"; 68 61 }; 69 62 };