From e448c702df3032926be9012bbc7440d8362de326 Mon Sep 17 00:00:00 2001 From: tinno10 Date: Wed, 15 Sep 2021 18:08:56 +0800 Subject: [PATCH] arm/dt: cypfr: add camera config add camera config for cypfr cypfr add 2864 pmic config Change-Id: Ia4c331509b14cfb4753605b8f12655a370336b86 Signed-off-by: tinno10 Reviewed-on: https://gerrit.mot.com/2067317 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wang Liu Reviewed-by: Ji Zhao Reviewed-by: Bolei Shang Reviewed-by: Xingyun Fu Reviewed-by: XiaoFeng Wang Reviewed-by: Shuo Wang Reviewed-by: Shanghui Zhang Reviewed-by: Chunhui Li Reviewed-by: Zhuoran Xu Reviewed-by: Huosheng Liao Reviewed-by: Jianqi Yang Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 83 +++++++++++++++++++++++++++- 1 file changed, 82 insertions(+), 1 deletion(-) diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index 423eba33515f..f5d74a61c3b7 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -21,6 +21,7 @@ #include "cypfr-fps-overlay.dtsi" #include "cypfr-display.dtsi" #include "cypfr-touchscreen.dtsi" +#include "camera/blair-camera-sensor-mot-cypfr-overlay.dtsi" &wcd937x_codec { cdc-vdd-rxtx-supply = <&L9A>; @@ -36,6 +37,19 @@ }; &tlmm { + cam_pmic_en_default: cam_pmic_en_default { + mux { + pins = "gpio38"; + function = "gpio"; + }; + config { + pins = "gpio38"; + drive-strength = <2>; + bias-pull-down; + output-low; + }; + }; + nfc { nfc_int_active: nfc_int_active { /* active state */ @@ -222,6 +236,74 @@ status = "ok"; }; +&qupv3_se10_i2c { + status = "ok"; + + cam_pmic: wl2864c@29{ + compatible = "semi,wl2864c"; + reg = <0x29>; + + semi,cs-gpios = <&tlmm 38 0>; + + pinctrl-names = "default"; + pinctrl-0 = <&cam_pmic_en_default>; + + vin1-supply = <&S6A>; + + regulators { + cam_ldo1: ldo1 { + regulator-name = "ldo1"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_ldo2: ldo2 { + regulator-name = "ldo2"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_ldo3: ldo3 { + regulator-name = "ldo3"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_ldo4: ldo4 { + regulator-name = "ldo4"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_ldo5: ldo5 { + regulator-name = "ldo5"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_ldo6: ldo6 { + regulator-name = "ldo6"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_ldo7: ldo7 { + regulator-name = "ldo7"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + }; + }; +}; + +&pm8008_8 { + status = "disabled"; +}; + +&pm8008_9 { + status = "disabled"; +}; + &soc { gpio_keys { compatible = "gpio-keys"; @@ -273,5 +355,4 @@ }; }; -#include "camera/blair-camera-sensor-mtp.dtsi"