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

Configure Feed

Select the types of activity you want to include in your feed.

at v5.6-rc4 36 lines 1.0 kB view raw
1* Device tree bindings for the Qualcomm MSM vibrator 2 3Required 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 17Optional properties: 18 19 - vcc-supply: phandle to the regulator that provides power to the sensor. 20 21Example from a LG Nexus 5 (hammerhead) phone: 22 23vibrator@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};