Devicetree
 help / color / mirror / Atom feed
From: "Barnabás Czémán" <barnabas.czeman@mainlining.org>
To: Hikmah Gumelar <hikmahgumelar@gmail.com>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Bjorn Andersson <andersson@kernel.org>,
	Konrad Dybcio <konradybcio@kernel.org>,
	Abel Vesa <abelvesa@kernel.org>, Stephen Boyd <sboyd@kernel.org>,
	Brian Masney <bmasney+clk@redhat.com>,
	Jerome Brunet <jbrunet+clk@baylibre.com>,
	Sakari Ailus <sakari.ailus@linux.intel.com>,
	linux-media@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org,
	linux-clk@vger.kernel.org, u.kleine-koenig@baylibre.com
Subject: Re: [PATCH v4 7/7] arm64: dts: qcom: msm8953-xiaomi-tissot: enable front and rear cameras
Date: Fri, 27 Nov 2026 17:34:32 +0100	[thread overview]
Message-ID: <eae86bfe27d119c6170b25de5a917df3@mainlining.org> (raw)
In-Reply-To: <20261125123146.379057-8-hikmahgumelar@gmail.com>

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@gmail.com>
> ---
>  .../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";

  parent reply	other threads:[~2026-11-27 16:34 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25 12:31 [PATCH v4 0/7] arm64: dts: qcom: msm8953-xiaomi-tissot: enable front and rear cameras Hikmah Gumelar
2026-11-25 12:31 ` [PATCH v4 1/7] clk: qcom: gcc-msm8953: fix csi_phytimer_clk_src 100MHz parent Hikmah Gumelar
2026-11-25 12:31 ` [PATCH v4 2/7] media: dt-bindings: media: i2c: add Samsung S5K5E8 Hikmah Gumelar
2026-11-25 12:31 ` [PATCH v4 3/7] media: i2c: add s5k5e8 image sensor driver Hikmah Gumelar
2026-11-25 12:44   ` sashiko-bot
2026-11-25 21:16   ` kernel test robot
2026-11-25 21:57   ` kernel test robot
2026-11-25 12:31 ` [PATCH v4 4/7] media: dt-bindings: media: i2c: add OmniVision OV12A10 Hikmah Gumelar
2026-11-25 12:31 ` [PATCH v4 5/7] media: i2c: add ov12a10 image sensor driver Hikmah Gumelar
2026-11-25 12:50   ` sashiko-bot
2026-11-25 12:31 ` [PATCH v4 6/7] arm64: dts: qcom: msm8953: add CAMSS node and MCLK pinctrl states Hikmah Gumelar
2026-11-25 12:31 ` [PATCH v4 7/7] arm64: dts: qcom: msm8953-xiaomi-tissot: enable front and rear cameras Hikmah Gumelar
2026-11-25 12:45   ` sashiko-bot
2026-11-27 16:34   ` Barnabás Czémán [this message]
2026-11-27 16:40     ` Hikmah Gumelar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=eae86bfe27d119c6170b25de5a917df3@mainlining.org \
    --to=barnabas.czeman@mainlining.org \
    --cc=abelvesa@kernel.org \
    --cc=andersson@kernel.org \
    --cc=bmasney+clk@redhat.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=hikmahgumelar@gmail.com \
    --cc=jbrunet+clk@baylibre.com \
    --cc=konradybcio@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=robh@kernel.org \
    --cc=sakari.ailus@linux.intel.com \
    --cc=sboyd@kernel.org \
    --cc=u.kleine-koenig@baylibre.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox