Skip to content

Commit

Permalink
arm64: dts: qcom: msm8953: xiaomi-ysl: enable s5k3p8sp
Browse files Browse the repository at this point in the history
Enable s5k3p8sp front camera sensor.

Signed-off-by: Barnabás Czémán <[email protected]>
  • Loading branch information
barni2000 authored and Barnabás Czémán committed Jun 29, 2024
1 parent db640e9 commit 8b5f652
Showing 1 changed file with 67 additions and 5 deletions.
72 changes: 67 additions & 5 deletions arch/arm64/boot/dts/qcom/msm8953-xiaomi-ysl.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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>;
Expand All @@ -129,13 +196,8 @@
compatible = "xiaomi,ysl-panel";
};

&pm8953_l6 {
regulator-always-on;
};

&pm8953_l10 {
regulator-min-microvolt = <2800000>;
regulator-always-on;
};

&sdhc_2 {
Expand Down

0 comments on commit 8b5f652

Please sign in to comment.