[PATCH v6 3/3] arm64: dts: qcom: msm8953-xiaomi-tissot: enable front camera

From: Hikmah Gumelar

Date: Fri Dec 04 2026 - 08:50:47 EST


Enable CAMSS, CCI, CSIPHY2 port, and the Samsung S5K5E8 front image
sensor on the Xiaomi Mi A1.

Signed-off-by: Hikmah Gumelar <hikmahgumelar@xxxxxxxxx>
---
arch/arm64/boot/dts/qcom/msm8953-xiaomi-tissot.dts | 59 ++++++++++++++++++++++
1 file changed, 59 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/msm8953-xiaomi-tissot.dts b/arch/arm64/boot/dts/qcom/msm8953-xiaomi-tissot.dts
index fccb9c4360cae545b52fbff06bc5ba024a62da75..3fe1a2486bd132bccbaf18d71dbde93a51cfa2be 100644
--- a/arch/arm64/boot/dts/qcom/msm8953-xiaomi-tissot.dts
+++ b/arch/arm64/boot/dts/qcom/msm8953-xiaomi-tissot.dts
@@ -76,6 +76,57 @@ vph_pwr: vph-pwr-regulator {
};
};

+&camss {
+ vdda-supply = <&pm8953_s3>;
+ status = "okay";
+
+ ports {
+ port@2 {
+ reg = <2>;
+
+ csiphy2_ep: endpoint {
+ clock-lanes = <7>;
+ data-lanes = <0 1>;
+ remote-endpoint = <&front_cam_ep>;
+ };
+ };
+ };
+};
+
+&cci {
+ status = "okay";
+};
+
+&cci_i2c1 {
+ camera@2d {
+ compatible = "samsung,s5k5e8";
+ reg = <0x2d>;
+
+ clocks = <&gcc GCC_CAMSS_MCLK1_CLK>;
+ assigned-clocks = <&gcc GCC_CAMSS_MCLK1_CLK>;
+ assigned-clock-rates = <24000000>;
+ pinctrl-0 = <&cam_sensor_front_default &camss_mclk1_default>;
+ pinctrl-names = "default";
+
+ reset-gpios = <&tlmm 129 GPIO_ACTIVE_LOW>;
+
+ vdda-supply = <&pm8953_l22>;
+ vddd-supply = <&pm8953_l23>;
+ vddio-supply = <&pm8953_l6>;
+
+ rotation = <90>;
+ orientation = <0>;
+
+ port {
+ front_cam_ep: endpoint {
+ data-lanes = <1 2>;
+ link-frequencies = /bits/ 64 <420000000>;
+ remote-endpoint = <&csiphy2_ep>;
+ };
+ };
+ };
+};
+
&hsusb_phy {
vdd-supply = <&pm8953_l3>;
vdda-pll-supply = <&pm8953_l7>;
@@ -169,6 +220,7 @@ regulators {
vdd_l4_l5_l6_l7_l16_l19-supply = <&pm8953_s4>;
vdd_l8_l11_l12_l13_l14_l15-supply = <&vph_pwr>;
vdd_l9_l10_l17_l18_l22-supply = <&vph_pwr>;
+ vdd_l23-supply = <&pm8953_s3>;

pm8953_s1: s1 {
regulator-min-microvolt = <870000>;
@@ -302,6 +354,13 @@ gpio_hall_sensor_default: gpio-hall-sensor-state {
bias-pull-up;
};

+ cam_sensor_front_default: cam-sensor-front-default-state {
+ pins = "gpio129";
+ function = "gpio";
+ drive-strength = <2>;
+ bias-disable;
+ };
+
ts_int_default: ts-int-default-state {
pins = "gpio65";
function = "gpio";

--
2.47.3