From 92c46af451cd7c081083b23aabd1973895e5c844 Mon Sep 17 00:00:00 2001 From: wuwl10 Date: Wed, 15 Sep 2021 09:55:09 +0800 Subject: [PATCH] arm64/dt: cypfr: add vibrator device node Add vibrator device node for cypfr. It use an ldo to driver it. Change-Id: I671569319Montana059913d420dcdc8b244a30bf6054 Signed-off-by: wuwl10 Reviewed-on: https://gerrit.mot.com/2067028 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 35 ++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index 3e5883be8ea8..423eba33515f 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -128,6 +128,32 @@ }; }; }; + + vib_3v_active: vib_3v_active { + mux { + pins = "gpio102"; + function = "gpio"; + }; + + config { + pins = "gpio102"; + drive-strength = <2>; /* 2 MA */ + output-high; + }; + }; + + vib_3v_suspend: vib_3v_suspend { + mux { + pins = "gpio102"; + function = "gpio"; + }; + + config { + pins = "gpio102"; + drive-strength = <2>; /* 2 MA */ + output-high; + }; + }; }; /* Dummy LDO reference */ @@ -228,6 +254,15 @@ regulator-min-microvolt = <2700000>; regulator-max-microvolt = <3544000>; }; + + ldo_vib { + compatible = "moto,vibrator-ldo"; + moto,vib-ldo-gpio = <&tlmm 100 0x0>; + status = "ok"; + pinctrl-names = "default", "suspend"; + pinctrl-0 = <&vib_3v_active>; + pinctrl-1 = <&vib_3v_suspend>; + }; }; &qupv3_se10_i2c_sleep {