[PATCH 6/6] arm64: dts: qcom: msm8953-xiaomi-tissot: enable front and rear cameras

From: Hikmah Gumelar

Date: Mon Nov 23 2026 - 06:09:16 EST


Enable the CAMSS, CCI, CSIPHY0/CSIPHY2 ports, and the OmniVision OV12A10
rear camera and Samsung S5K5E8 front camera on Xiaomi Mi A1 (tissot).

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

diff --git a/arch/arm64/boot/dts/qcom/msm8953-xiaomi-tissot.dts b/arch/arm64/boot/dts/qcom/msm8953-xiaomi-tissot.dts
index 8ba7982fcd81..40a14301ee3f 100644
--- a/arch/arm64/boot/dts/qcom/msm8953-xiaomi-tissot.dts
+++ b/arch/arm64/boot/dts/qcom/msm8953-xiaomi-tissot.dts
@@ -271,6 +271,20 @@ headphones_amp_default: headphones-switch-default-state {
bias-disable;
output-low;
};
+
+ cam_sensor_rear_default: cam-sensor-rear-default-state {
+ pins = "gpio33", "gpio39", "gpio62";
+ function = "gpio";
+ bias-disable;
+ drive-strength = <2>;
+ };
+
+ cam_sensor_front_default: cam-sensor-front-default-state {
+ pins = "gpio129";
+ function = "gpio";
+ bias-disable;
+ drive-strength = <2>;
+ };
};

&uart_0 {
@@ -288,3 +302,103 @@ &wcd_codec {
qcom,mbhc-vthreshold-high = <91 259 488 488 488>;
qcom,mbhc-vthreshold-low = <91 259 488 488 488>;
};
+
+&camss {
+ status = "okay";
+ vdda-supply = <&pm8953_s3>;
+
+ ports {
+ port@0 {
+ reg = <0>;
+ csiphy0_ep: endpoint {
+ clock-lanes = <7>;
+ data-lanes = <0 1 2 3>;
+ remote-endpoint = <&rear_cam_ep>;
+ };
+ };
+
+ port@2 {
+ reg = <2>;
+ csiphy2_ep: endpoint {
+ clock-lanes = <7>;
+ data-lanes = <0 1>;
+ remote-endpoint = <&front_cam_ep>;
+ };
+ };
+ };
+};
+
+&cci {
+ pinctrl-names = "default";
+ pinctrl-0 = <&cci0_default>,
+ <&cci1_default>,
+ <&camss_mclk0_default>,
+ <&camss_mclk1_default>,
+ <&camss_mclk2_default>;
+
+ status = "okay";
+};
+
+&cci_i2c0 {
+ camera-sensor@10 {
+ compatible = "ovti,ov12a10";
+ reg = <0x10>;
+ clocks = <&gcc GCC_CAMSS_MCLK0_CLK>;
+ pinctrl-0 = <&cam_sensor_rear_default>;
+ pinctrl-names = "default";
+ reset-gpios = <&tlmm 33 GPIO_ACTIVE_LOW>;
+ pwdn-gpios = <&tlmm 39 GPIO_ACTIVE_LOW>;
+ vana-gpios = <&tlmm 62 GPIO_ACTIVE_HIGH>;
+ avdd-supply = <&pm8953_l22>;
+ dvdd-supply = <&pm8953_l2>;
+ dovdd-supply = <&pm8953_l6>;
+ rotation = <270>;
+ orientation = <1>;
+ status = "okay";
+ port {
+ rear_cam_ep: endpoint {
+ data-lanes = <0 1 2 3>;
+ remote-endpoint = <&csiphy0_ep>;
+ link-frequencies = /bits/ 64 <216000000>;
+ };
+ };
+ };
+};
+
+&cci_i2c1 {
+ camera-sensor@2d {
+ compatible = "samsung,s5k5e8";
+ reg = <0x2d>;
+
+ clocks = <&gcc GCC_CAMSS_MCLK1_CLK>;
+ pinctrl-0 = <&cam_sensor_front_default>;
+ pinctrl-names = "default";
+
+ reset-gpios = <&tlmm 129 GPIO_ACTIVE_LOW>;
+
+ avdd-supply = <&pm8953_l22>;
+ dvdd-supply = <&pm8953_l23>;
+ dovdd-supply = <&pm8953_l6>;
+ rotation = <90>;
+ orientation = <0>;
+
+ status = "okay";
+
+ port {
+ front_cam_ep: endpoint {
+ data-lanes = <0 1>;
+ remote-endpoint = <&csiphy2_ep>;
+ link-frequencies = /bits/ 64 <418000000>;
+ };
+ };
+ };
+};
+
+&pm8953_l23 {
+ regulator-min-microvolt = <1200000>;
+};
+
+&pm8953_l2 {
+ regulator-min-microvolt = <1200000>;
+ regulator-max-microvolt = <1225000>;
+};
--
2.47.3