Re: [PATCH v4 7/7] arm64: dts: qcom: msm8953-xiaomi-tissot: enable front and rear cameras
From: Hikmah Gumelar
Date: Fri Nov 27 2026 - 11:40:53 EST
Hi Barnabás,
Thanks for the review and the notes on msm8953-xiaomi-tissot.dts.
- I will add the blank line before vreg_cam_avdd.
- Noted on OV5675 variants; for now this series focuses on S5K5E8 and
OV12A10, and OV5675 can be a separate follow-up later.
- I had already moved vdd_l23-supply into the regulators node in newer
revisions, and I will double-check its placement and parent supply
against the board DTS.
Also, following review feedback, I am splitting this work into separate
series for s5k5e8, ov12a10, and the MSM8953/tissot changes.
Best regards,
Hikmah Gumelar
Pada Jum, 27 Nov 2026 pukul 23.34 Barnabás Czémán
<barnabas.czeman@xxxxxxxxxxxxxx> menulis:
>
> On 2026-11-25 13:31, Hikmah Gumelar wrote:
> > 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 | 124 ++++++++++++++++++
> > 1 file changed, 124 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..87db6b18d191 100644
> > --- a/arch/arm64/boot/dts/qcom/msm8953-xiaomi-tissot.dts
> > +++ b/arch/arm64/boot/dts/qcom/msm8953-xiaomi-tissot.dts
> > @@ -74,6 +74,108 @@ vph_pwr: vph-pwr-regulator {
> > regulator-always-on;
> > regulator-boot-on;
> > };
> nitpick: add an empty line here
> > + 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 = <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 {
> > + status = "okay";
> > +};
> > +
> > +&cci_i2c0 {
> > + camera@10 {
> > + compatible = "ovti,ov12a10";
> > + reg = <0x10>;
> > +
> > + clocks = <&gcc GCC_CAMSS_MCLK0_CLK>;
> > + assigned-clocks = <&gcc GCC_CAMSS_MCLK0_CLK>;
> > + assigned-clock-rates = <24000000>;
> > + 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";
> xiaomi-tissot can come with ov5675 also.
> > + 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>;
> > +
> > + 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 {
> > @@ -154,6 +256,7 @@ &pmi8950_wled {
> > };
> >
> > &rpm_requests {
> > + vdd_l23-supply = <&pm8953_s3>;
> It should be placed under vdd_l9_l10_l17_l18_l22-supply = <&vph_pwr>;
> > regulators {
> > compatible = "qcom,rpm-pm8953-regulators";
> >
> > @@ -302,6 +405,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";
--
Best regards,
Hikmah Gumelar