diff --git a/arch/arm64/boot/dts/qcom/msm8953-xiaomi-ysl.dts b/arch/arm64/boot/dts/qcom/msm8953-xiaomi-ysl.dts index ba1e508b55938f..c0dc28347ed7ee 100644 --- a/arch/arm64/boot/dts/qcom/msm8953-xiaomi-ysl.dts +++ b/arch/arm64/boot/dts/qcom/msm8953-xiaomi-ysl.dts @@ -101,6 +101,25 @@ reg = <0x48>; }; }; + + vreg_cam_front_vana: vreg-cam-front-vana { + compatible = "regulator-fixed"; + regulator-name = "vreg_cam_front_vana"; + regulator-max-microvolt = <2800000>; + regulator-min-microvolt = <2800000>; + enable-active-high; + vin-supply = <&pm8953_l22>; + gpio = <&tlmm 22 GPIO_ACTIVE_HIGH>; + }; + + vreg_cam_front_vdig: vreg-cam-front-vdig { + compatible = "regulator-fixed"; + regulator-name = "vreg_cam_front_vdig"; + regulator-max-microvolt = <1050000>; + regulator-min-microvolt = <1050000>; + enable-active-high; + gpio = <&tlmm 39 GPIO_ACTIVE_HIGH>; + }; }; &aw2013_led { @@ -114,6 +133,54 @@ voltage-max-design-microvolt = <4400000>; }; +&camss { + status = "okay"; + vdda-supply = <&pm8953_s3>; + + ports { + port@2 { + reg = <2>; + csiphy2_ep: endpoint { + clock-lanes = <7>; + data-lanes = <0 1 2 3>; + remote-endpoint = <&front_cam_ep>; + }; + }; + }; +}; + +&cci { + pinctrl-names = "default"; + pinctrl-0 = <&cci0_default>, + <&cci1_default>, + <&camss_mclk0_default>, + <&camss_mclk1_default>; + + status = "okay"; +}; + +&cci_i2c0 { + camera-sensor@2d { // Front camera + compatible = "samsung,s5k3p8sp"; + reg = <0x2d>; + clocks = <&gcc GCC_CAMSS_MCLK1_CLK>; + clock-frequency = <24000000>; + reset-gpios = <&tlmm 129 GPIO_ACTIVE_LOW>; + dvdd-supply = <&vreg_cam_front_vdig>; + avdd-supply = <&vreg_cam_front_vana>; + vio-supply = <&pm8953_l6>; + rotation = <90>; + orientation = <1>; + + port { + front_cam_ep: endpoint { + data-lanes = <0 1 2 3>; + remote-endpoint = <&csiphy2_ep>; + }; + }; + }; +}; + &ft5406_ts { touchscreen-size-x = <720>; touchscreen-size-y = <1440>; @@ -129,13 +196,8 @@ compatible = "xiaomi,ysl-panel"; }; -&pm8953_l6 { - regulator-always-on; -}; - &pm8953_l10 { regulator-min-microvolt = <2800000>; - regulator-always-on; }; &sdhc_2 {