From: sashiko-bot@kernel.org
To: "Hikmah Gumelar" <hikmahgumelar@gmail.com>
Cc: devicetree@vger.kernel.org, linux-clk@vger.kernel.org,
robh@kernel.org, conor+dt@kernel.org, media-ci@linuxtv.org
Subject: Re: [PATCH v3 7/7] arm64: dts: qcom: msm8953-xiaomi-tissot: enable front and rear cameras
Date: Mon, 23 Nov 2026 15:46:19 +0000 [thread overview]
Message-ID: <sashiko-outbox-229602@kernel.org> (raw)
In-Reply-To: <20261123152722.168879-8-hikmahgumelar@gmail.com>
Thank you for your contribution! Sashiko AI review found 3 potential
issues to consider:
- [High] arm64: dts: qcom: 1-based data-lanes in camss endpoints break
camss_probe()
- [High] arm64: dts: qcom: powerdown-gpios in camera@10 ignored by
ov12a10_probe()
- [Medium] arm64: dts: qcom: missing vdd_l23-supply parent for camera@2d
dvdd-supply
--
commit f90e380b7cfcacb30ebf79d76d723184343a3304
Author: Hikmah Gumelar <hikmahgumelar@gmail.com>
arm64: dts: qcom: msm8953-xiaomi-tissot: enable front and rear cameras
This commit enables CAMSS, CCI, CSIPHY0/CSIPHY2 ports, and the OmniVision
OV12A10 rear and Samsung S5K5E8 front camera sensors on the Xiaomi Mi A1.
> diff --git a/arch/arm64/boot/dts/qcom/msm8953-xiaomi-tissot.dts b/arch/arm64/boot/dts/qcom/msm8953-xiaomi-tissot.dts
> index fccb9c4360cae..e41cbd4d01b28 100644
> --- a/arch/arm64/boot/dts/qcom/msm8953-xiaomi-tissot.dts
> +++ b/arch/arm64/boot/dts/qcom/msm8953-xiaomi-tissot.dts
[ ... ]
> +&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>;
> + };
> + };
> + };
> +};
[Severity: High]
Should data-lanes in csiphy0_ep and csiphy2_ep be 0-based (<0 1 2 3> and
<0 1>)?
On MSM8953, the CAMSS endpoints connect directly to sensor endpoints
rather than standalone PHY nodes, so camss_detect_legacy_phy() sets
camss->legacy_phy = true and camss_parse_ports() passes lane_base = 0 to
camss_parse_endpoint_node():
drivers/media/platform/qcom/camss/camss.c:camss_parse_endpoint_node() {
...
for (i = 0; i < lncfg->num_data; i++) {
u8 lane = mipi_csi2->data_lanes[i];
if (lane < lane_base || lane - lane_base >= MSM_CSIPHY_MAX_DATA_LANE) {
dev_err(dev, "invalid data-lane %u\n", lane);
return -EINVAL;
}
lncfg->data[i].pos = mipi_csi2->data_lanes[i] - lane_base;
...
}
Because MSM_CSIPHY_MAX_DATA_LANE is 4, lane 4 in csiphy0_ep fails this
check and aborts camss_probe() with -EINVAL. In csiphy2_ep, <1 2> with
lane_base = 0 shifts lncfg->data[i].pos to physical data lanes 1 and 2
instead of lanes 0 and 1.
> +
> +&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>;
[Severity: High]
Will ov12a10_probe() ignore powerdown-gpios here?
ov12a10_probe() requests the GPIO with con_id "pwdn" via
devm_gpiod_get_optional(dev, "pwdn", GPIOD_OUT_HIGH), and gpiolib has no
OF rename entry mapping "pwdn" to "powerdown-gpios". The lookup silently
returns NULL, so ov12a10_power_on() and ov12a10_power_off() never drive
GPIO 39 and the rear sensor stays powered down.
[ ... ]
> +&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>;
[Severity: Medium]
Does the rpm-pm8953-regulators node also need vdd_l23-supply =
<&pm8953_s3>?
camera@2d is the first consumer of pm8953_l23 in this device tree, and
rpm_pm8953_regulators in drivers/regulator/qcom_smd-regulator.c defines
"vdd_l23" as l23's parent supply. Without vdd_l23-supply in the
regulators node, pm8953_l23 falls back to dummy-regulator and enabling
dvdd-supply in s5k5e8_power_on() does not vote for pm8953_s3.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261123152722.168879-1-hikmahgumelar@gmail.com?part=7
prev parent reply other threads:[~2026-11-23 15:46 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 11:07 [PATCH 0/6] arm64: dts: qcom: msm8953-xiaomi-tissot: enable front and rear cameras Hikmah Gumelar
2026-11-23 11:08 ` [PATCH 1/6] clk: qcom: gcc-msm8953: fix csi_phytimer_clk_src 100MHz parent Hikmah Gumelar
2026-11-23 11:08 ` [PATCH 2/6] media: dt-bindings: media: i2c: add Samsung S5K5E8 Hikmah Gumelar
2026-11-23 15:11 ` Rob Herring (Arm)
2026-11-23 11:08 ` [PATCH 3/6] media: i2c: add s5k5e8 image sensor driver Hikmah Gumelar
2026-11-23 11:08 ` [PATCH 4/6] media: dt-bindings: media: i2c: add OmniVision OV12A10 Hikmah Gumelar
2026-11-23 11:08 ` [PATCH 5/6] media: i2c: add ov12a10 image sensor driver Hikmah Gumelar
2026-11-23 11:08 ` [PATCH 6/6] arm64: dts: qcom: msm8953-xiaomi-tissot: enable front and rear cameras Hikmah Gumelar
2026-11-23 12:35 ` [PATCH v2 0/7] " Hikmah Gumelar
2026-11-23 12:35 ` [PATCH v2 1/7] clk: qcom: gcc-msm8953: fix csi_phytimer_clk_src 100MHz parent Hikmah Gumelar
2026-11-23 12:42 ` sashiko-bot
2026-11-23 12:35 ` [PATCH v2 2/7] media: dt-bindings: media: i2c: add Samsung S5K5E8 Hikmah Gumelar
2026-11-23 12:43 ` sashiko-bot
2026-11-23 15:11 ` Rob Herring (Arm)
2026-11-23 12:35 ` [PATCH v2 3/7] media: i2c: add s5k5e8 image sensor driver Hikmah Gumelar
2026-11-23 12:52 ` sashiko-bot
2026-11-23 13:56 ` Uwe Kleine-König
2026-11-23 14:14 ` Hikmah Gumelar
2026-11-23 12:35 ` [PATCH v2 4/7] media: dt-bindings: media: i2c: add OmniVision OV12A10 Hikmah Gumelar
2026-11-23 12:45 ` sashiko-bot
2026-11-23 15:11 ` Rob Herring (Arm)
2026-11-23 12:35 ` [PATCH v2 5/7] media: i2c: add ov12a10 image sensor driver Hikmah Gumelar
2026-11-23 12:57 ` sashiko-bot
2026-11-23 12:35 ` [PATCH v2 6/7] arm64: dts: qcom: msm8953: add CAMSS node and MCLK pinctrl states Hikmah Gumelar
2026-11-23 12:49 ` sashiko-bot
2026-11-23 12:35 ` [PATCH v2 7/7] arm64: dts: qcom: msm8953-xiaomi-tissot: enable front and rear cameras Hikmah Gumelar
2026-11-23 12:52 ` sashiko-bot
2026-11-23 15:27 ` [PATCH v3 0/7] " Hikmah Gumelar
2026-11-23 15:27 ` [PATCH v3 1/7] clk: qcom: gcc-msm8953: fix csi_phytimer_clk_src 100MHz parent Hikmah Gumelar
2026-11-23 19:18 ` Abel Vesa
2026-11-23 15:27 ` [PATCH v3 2/7] media: dt-bindings: media: i2c: add Samsung S5K5E8 Hikmah Gumelar
2026-11-23 17:25 ` Konrad Dybcio
2026-11-23 15:27 ` [PATCH v3 3/7] media: i2c: add s5k5e8 image sensor driver Hikmah Gumelar
2026-11-23 15:53 ` sashiko-bot
2026-11-23 15:27 ` [PATCH v3 4/7] media: dt-bindings: media: i2c: add OmniVision OV12A10 Hikmah Gumelar
2026-11-23 15:27 ` [PATCH v3 5/7] media: i2c: add ov12a10 image sensor driver Hikmah Gumelar
2026-11-23 15:50 ` sashiko-bot
2026-11-23 15:27 ` [PATCH v3 6/7] arm64: dts: qcom: msm8953: add CAMSS node and MCLK pinctrl states Hikmah Gumelar
2026-11-23 15:27 ` [PATCH v3 7/7] arm64: dts: qcom: msm8953-xiaomi-tissot: enable front and rear cameras Hikmah Gumelar
2026-11-23 15:46 ` sashiko-bot [this message]
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=sashiko-outbox-229602@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=hikmahgumelar@gmail.com \
--cc=linux-clk@vger.kernel.org \
--cc=media-ci@linuxtv.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.