ARM: dts: qcom: apq8026-lg-lenok: Add vibrator support
This device has a vibrator attached to the CAMSS_GP0_CLK, use clk-pwm and pwm-vibrator to make the vibrator work. Signed-off-by: Luca Weiss <luca@z3ntu.xyz> Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Link: https://lore.kernel.org/r/20240121-lenok-vibrator-v1-1-d4703ff92021@z3ntu.xyz Signed-off-by: Bjorn Andersson <andersson@kernel.org>
This commit is contained in:
committed by
Bjorn Andersson
parent
8d90980509
commit
4d679e3c29
@@ -7,6 +7,7 @@
|
||||
|
||||
#include "qcom-msm8226.dtsi"
|
||||
#include "pm8226.dtsi"
|
||||
#include <dt-bindings/clock/qcom,mmcc-msm8974.h>
|
||||
|
||||
/delete-node/ &adsp_region;
|
||||
|
||||
@@ -56,6 +57,29 @@
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&wlan_regulator_default_state>;
|
||||
};
|
||||
|
||||
pwm_vibrator: pwm {
|
||||
compatible = "clk-pwm";
|
||||
clocks = <&mmcc CAMSS_GP0_CLK>;
|
||||
|
||||
pinctrl-0 = <&vibrator_clk_default_state>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
#pwm-cells = <2>;
|
||||
};
|
||||
|
||||
vibrator {
|
||||
compatible = "pwm-vibrator";
|
||||
|
||||
pwms = <&pwm_vibrator 0 10000>;
|
||||
pwm-names = "enable";
|
||||
|
||||
vcc-supply = <&pm8226_l28>;
|
||||
enable-gpios = <&tlmm 62 GPIO_ACTIVE_HIGH>;
|
||||
|
||||
pinctrl-0 = <&vibrator_en_default_state>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
};
|
||||
|
||||
&adsp {
|
||||
@@ -330,6 +354,20 @@
|
||||
};
|
||||
};
|
||||
|
||||
vibrator_clk_default_state: vibrator-clk-default-state {
|
||||
pins = "gpio33";
|
||||
function = "gp0_clk";
|
||||
drive-strength = <2>;
|
||||
bias-disable;
|
||||
};
|
||||
|
||||
vibrator_en_default_state: vibrator-en-default-state {
|
||||
pins = "gpio62";
|
||||
function = "gpio";
|
||||
drive-strength = <2>;
|
||||
bias-disable;
|
||||
};
|
||||
|
||||
wlan_hostwake_default_state: wlan-hostwake-default-state {
|
||||
pins = "gpio37";
|
||||
function = "gpio";
|
||||
|
||||
Reference in New Issue
Block a user