From f63a760c76246d97835874ab77d73f0ff98be105 Mon Sep 17 00:00:00 2001 From: chenlj26 Date: Sat, 26 Mar 2022 15:31:52 +0800 Subject: [PATCH] arm64/dts: miami: pmic wl2864c bring up Change-Id: Ie426ea2dec599ab5044a193874e93ab6a953f55a Signed-off-by: chenlj26 Reviewed-on: https://gerrit.mot.com/2226887 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Long Cheng Reviewed-by: Wang Liu Reviewed-by: Zhuoran Xu Reviewed-by: Reviewed-by: Zhichao Chen Tested-by: Jira Key Submit-Approved: Jira Key --- qcom/blair-miami-common-overlay.dtsi | 2 +- qcom/miami-wl2864c.dtsi | 74 ++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+), 1 deletion(-) create mode 100644 qcom/miami-wl2864c.dtsi diff --git a/qcom/blair-miami-common-overlay.dtsi b/qcom/blair-miami-common-overlay.dtsi index 07ea5b56eb28..43044b2927e9 100644 --- a/qcom/blair-miami-common-overlay.dtsi +++ b/qcom/blair-miami-common-overlay.dtsi @@ -22,7 +22,7 @@ #include "miami-display.dtsi" #include "miami-touchscreen.dtsi" //#include "camera/blair-camera-sensor-mot-miami-overlay.dtsi" -#include "miami-wl2868c.dtsi" +#include "miami-wl2864c.dtsi" #include "tcpc_config.dtsi" #include "sgm7220.dtsi" #include "discrete_charging_miami.dtsi" diff --git a/qcom/miami-wl2864c.dtsi b/qcom/miami-wl2864c.dtsi new file mode 100644 index 000000000000..cc926c994652 --- /dev/null +++ b/qcom/miami-wl2864c.dtsi @@ -0,0 +1,74 @@ +&tlmm{ + pmic_en_default: pmic_en_default { + mux { + pins = "gpio33"; + function = "gpio"; + }; + config { + pins = "gpio33"; + drive-strength = <2>; + bias-pull-down; + }; + }; +}; + +&gcc { + qcom,critical-devices = <&qupv3_se2_i2c>; +}; + +&qupv3_se2_i2c { + status = "ok"; + qcom,leica-used-i2c; + cam_pmic: wl2864c@29{ + compatible = "semi,wl2864c"; + reg = <0x29>; + semi,cs-gpios = <&tlmm 33 0>; + pinctrl-names = "default"; + pinctrl-0 = <&pmic_en_default>; + vin1-supply = <&S6A>; + + regulators { + cam_pmic_ldo1: ldo1 { + regulator-name = "ldo1"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_pmic_ldo2: ldo2 { + regulator-name = "ldo2"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_pmic_ldo3: ldo3 { + regulator-name = "ldo3"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic_ldo4: ldo4 { + regulator-name = "ldo4"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic_ldo5: ldo5 { + regulator-name = "ldo5"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic_ldo6: ldo6 { + regulator-name = "ldo6"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic_ldo7: ldo7 { + regulator-name = "ldo7"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + }; + }; +};