@@ -234,6 +234,21 @@
pinctrl-names = "default";
pinctrl-0 = <&wlan_regulator_pin>;
};
+
+ vibrator {
+ compatible = "clk-vibrator";
+
+ vcc-supply = <&pm8941_l19>;
+
+ clocks = <&mmcc CAMSS_GP1_CLK>;
+ clock-names = "core";
+ clock-frequency = <24000>;
+
+ enable-gpios = <&msmgpio 60 GPIO_ACTIVE_HIGH>;
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&vibrator_pin>;
+ };
};
&soc {
@@ -355,6 +370,21 @@
bias-disable;
};
};
+
+ vibrator_pin: vibrator {
+ core {
+ pins = "gpio27";
+ function = "gp1_clk";
+
+ drive-strength = <6>;
+ bias-disable;
+ };
+
+ enable {
+ pins = "gpio60";
+ function = "gpio";
+ };
+ };
};
sdhci@f9824900 {
Add support for the vibrator found on the Nexus 5 phone. Signed-off-by: Brian Masney <masneyb@onstation.org> --- .../qcom-msm8974-lge-nexus5-hammerhead.dts | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+)