From: Hikmah Gumelar <hikmahgumelar@gmail.com>
To: 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>,
Stephen Boyd <sboyd@kernel.org>,
Brian Masney <bmasney+clk@redhat.com>,
Jerome Brunet <jbrunet+clk@baylibre.com>,
Sakari Ailus <sakari.ailus@linux.intel.com>
Cc: 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, Abel Vesa <abelvesa@kernel.org>
Subject: [PATCH v5 7/7] arm64: dts: qcom: msm8953-xiaomi-tissot: enable front and rear cameras
Date: Fri, 27 Nov 2026 20:45:07 +0700 [thread overview]
Message-ID: <20261127134507.125513-8-hikmahgumelar@gmail.com> (raw)
In-Reply-To: <20261127134507.125513-1-hikmahgumelar@gmail.com>
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..d8db3567fd36 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;
};
+ 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";
+ 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 {
@@ -169,6 +271,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 +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";
--
2.47.3
next prev parent reply other threads:[~2026-11-27 13:46 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <__OIHsqpwOqb8kxVYcd2PoPvNYDhN8XO6vyXiYMCCK6o3sfyJ1gl1GNdhcGYhdfBf43tQmn6Dt6cWXcSD1uiPA==@protonmail.internalid>
2026-11-27 13:45 ` [PATCH v5 0/7] Enable front and rear cameras on Xiaomi Mi A1 (tissot) Hikmah Gumelar
2026-11-27 13:45 ` [PATCH v5 1/7] clk: qcom: gcc-msm8953: fix csi_phytimer_clk_src 100MHz parent Hikmah Gumelar
2026-11-27 16:11 ` Bryan O'Donoghue
2026-11-27 16:57 ` Hikmah Gumelar
2026-11-27 13:45 ` [PATCH v5 2/7] media: dt-bindings: media: i2c: add Samsung S5K5E8 Hikmah Gumelar
2026-11-27 13:45 ` [PATCH v5 3/7] media: i2c: add s5k5e8 image sensor driver Hikmah Gumelar
2026-11-27 17:13 ` Vladimir Zapolskiy
2026-11-27 18:03 ` Sakari Ailus
2026-11-27 18:47 ` Hikmah Gumelar
2026-11-27 13:45 ` [PATCH v5 4/7] media: dt-bindings: media: i2c: add OmniVision OV12A10 Hikmah Gumelar
2026-11-27 13:45 ` [PATCH v5 5/7] media: i2c: add ov12a10 image sensor driver Hikmah Gumelar
2026-11-27 17:12 ` Vladimir Zapolskiy
2026-11-27 13:45 ` [PATCH v5 6/7] arm64: dts: qcom: msm8953: add CAMSS node and MCLK pinctrl states Hikmah Gumelar
2026-11-27 13:45 ` Hikmah Gumelar [this message]
2026-11-27 16:14 ` [PATCH v5 0/7] Enable front and rear cameras on Xiaomi Mi A1 (tissot) Bryan O'Donoghue
2026-11-27 16:32 ` 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=20261127134507.125513-8-hikmahgumelar@gmail.com \
--to=hikmahgumelar@gmail.com \
--cc=abelvesa@kernel.org \
--cc=andersson@kernel.org \
--cc=bmasney+clk@redhat.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--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 \
/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
all inboxes | Powered by JetHome®