Merge tag 'pinctrl-v5.1-1' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw...
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / input / msm-vibrator.txt
1 * Device tree bindings for the Qualcomm MSM vibrator
2
3 Required properties:
4
5   - compatible: Should be one of
6                 "qcom,msm8226-vibrator"
7                 "qcom,msm8974-vibrator"
8   - reg: the base address and length of the IO memory for the registers.
9   - pinctrl-names: set to default.
10   - pinctrl-0: phandles pointing to pin configuration nodes. See
11                Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
12   - clock-names: set to pwm
13   - clocks: phandle of the clock. See
14             Documentation/devicetree/bindings/clock/clock-bindings.txt
15   - enable-gpios: GPIO that enables the vibrator.
16
17 Optional properties:
18
19   - vcc-supply: phandle to the regulator that provides power to the sensor.
20
21 Example from a LG Nexus 5 (hammerhead) phone:
22
23 vibrator@fd8c3450 {
24         reg = <0xfd8c3450 0x400>;
25         compatible = "qcom,msm8974-vibrator";
26
27         vcc-supply = <&pm8941_l19>;
28
29         clocks = <&mmcc CAMSS_GP1_CLK>;
30         clock-names = "pwm";
31
32         enable-gpios = <&msmgpio 60 GPIO_ACTIVE_HIGH>;
33
34         pinctrl-names = "default";
35         pinctrl-0 = <&vibrator_pin>;
36 };