treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / Documentation / devicetree / bindings / input / msm-vibrator.txt
blob8dcf014ef2e57fb9c66b5b4af60a8880851d9914
1 * Device tree bindings for the Qualcomm MSM vibrator
3 Required properties:
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.
17 Optional properties:
19   - vcc-supply: phandle to the regulator that provides power to the sensor.
21 Example from a LG Nexus 5 (hammerhead) phone:
23 vibrator@fd8c3450 {
24         reg = <0xfd8c3450 0x400>;
25         compatible = "qcom,msm8974-vibrator";
27         vcc-supply = <&pm8941_l19>;
29         clocks = <&mmcc CAMSS_GP1_CLK>;
30         clock-names = "pwm";
32         enable-gpios = <&msmgpio 60 GPIO_ACTIVE_HIGH>;
34         pinctrl-names = "default";
35         pinctrl-0 = <&vibrator_pin>;