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

From: Hikmah Gumelar

Date: Mon Nov 23 2026 - 10:28:58 EST


Enable CAMSS, CCI, CSIPHY0/CSIPHY2 ports, and the OmniVision OV12A10 rear and Samsung S5K5E8 front image sensors on the Xiaomi Mi A1.

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

diff --git a/arch/arm64/boot/dts/qcom/msm8953-xiaomi-tissot.dts b/arch/arm64/boot/dts/qcom/msm8953-xiaomi-tissot.dts
index fccb9c4360ca..e41cbd4d01b2 100644
--- a/arch/arm64/boot/dts/qcom/msm8953-xiaomi-tissot.dts
+++ b/arch/arm64/boot/dts/qcom/msm8953-xiaomi-tissot.dts
@@ -74,6 +74,104 @@ vph_pwr: vph-pwr-regulator {
regulator-always-on;
regulator-boot-on;
};
+ vreg_cam_avdd: regulator-cam-avdd {
+ compatible = "regulator-fixed";
+ regulator-name = "vreg_cam_avdd";
+ regulator-min-microvolt = <2800000>;
+ regulator-max-microvolt = <2800000>;
+ gpio = <&tlmm 62 GPIO_ACTIVE_HIGH>;
+ enable-active-high;
+ pinctrl-0 = <&cam_vreg_avdd_default>;
+ pinctrl-names = "default";
+ };
+};
+
+&camss {
+ vdda-supply = <&pm8953_s3>;
+ status = "okay";
+
+ ports {
+ port@0 {
+ reg = <0>;
+
+ csiphy0_ep: endpoint {
+ clock-lanes = <7>;
+ data-lanes = <1 2 3 4>;
+ remote-endpoint = <&rear_cam_ep>;
+ };
+ };
+
+ port@2 {
+ reg = <2>;
+
+ csiphy2_ep: endpoint {
+ clock-lanes = <7>;
+ data-lanes = <1 2>;
+ remote-endpoint = <&front_cam_ep>;
+ };
+ };
+ };
+};
+
+&cci {
+ status = "okay";
+};
+
+&cci_i2c0 {
+ camera@10 {
+ compatible = "ovti,ov12a10";
+ reg = <0x10>;
+
+ clocks = <&gcc GCC_CAMSS_MCLK0_CLK>;
+ pinctrl-0 = <&cam_sensor_rear_default &camss_mclk0_default>;
+ pinctrl-names = "default";
+
+ reset-gpios = <&tlmm 33 GPIO_ACTIVE_LOW>;
+ powerdown-gpios = <&tlmm 39 GPIO_ACTIVE_LOW>;
+
+ avdd-supply = <&vreg_cam_avdd>;
+ dvdd-supply = <&pm8953_l2>;
+ dovdd-supply = <&pm8953_l6>;
+
+ rotation = <270>;
+ orientation = <1>;
+
+ port {
+ rear_cam_ep: endpoint {
+ data-lanes = <1 2 3 4>;
+ link-frequencies = /bits/ 64 <216000000>;
+ remote-endpoint = <&csiphy0_ep>;
+ };
+ };
+ };
+};
+
+&cci_i2c1 {
+ camera@2d {
+ compatible = "samsung,s5k5e8";
+ reg = <0x2d>;
+
+ clocks = <&gcc GCC_CAMSS_MCLK1_CLK>;
+ pinctrl-0 = <&cam_sensor_front_default &camss_mclk1_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>;
+
+ port {
+ front_cam_ep: endpoint {
+ data-lanes = <1 2>;
+ link-frequencies = /bits/ 64 <418000000>;
+ remote-endpoint = <&csiphy2_ep>;
+ };
+ };
+ };
};

&hsusb_phy {
@@ -302,6 +400,27 @@ 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;
+ };
+
+ cam_sensor_rear_default: cam-sensor-rear-default-state {
+ pins = "gpio33", "gpio39";
+ function = "gpio";
+ drive-strength = <2>;
+ bias-disable;
+ };
+
+ cam_vreg_avdd_default: cam-vreg-avdd-default-state {
+ pins = "gpio62";
+ function = "gpio";
+ drive-strength = <2>;
+ bias-disable;
+ };
+
ts_int_default: ts-int-default-state {
pins = "gpio65";
function = "gpio";
--
2.47.3