Skip to content

Commit ee828d0

Browse files
jaewon02kimLee Jones
authored andcommitted
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>
1 parent d1bafd7 commit ee828d0

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

‎Documentation/devicetree/bindings/mfd/max77693.txt‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,20 @@ Optional properties:
2727

2828
[*] refer Documentation/devicetree/bindings/regulator/regulator.txt
2929

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+
3044
Example:
3145
max77693@66 {
3246
compatible = "maxim,max77693";
@@ -52,4 +66,11 @@ Example:
5266
regulator-boot-on;
5367
};
5468
};
69+
70+
haptic {
71+
compatible = "maxim,max77693-haptic";
72+
haptic-supply = <&haptic_supply>;
73+
pwms = <&pwm 0 40000 0>;
74+
pwm-names = "haptic";
75+
};
5576
};

0 commit comments

Comments
 (0)