From: sashiko-bot@kernel.org
To: "David Heidelberg" <david@ixit.cz>
Cc: robh@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v6 1/2] arm64: dts: qcom: sdm845-google: Add dual front IMX355 cameras
Date: Mon, 20 Jul 2026 11:11:14 +0000 [thread overview]
Message-ID: <20260720111115.3E2681F00A3A@smtp.kernel.org> (raw)
In-Reply-To: <20260720-pixel3-camera-v6-1-afe419bef476@ixit.cz>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [High] Assigning the MCLK2 `pinctrl` to the `camss` node breaks the camera sensor probe due to decoupled runtime PM lifecycles.
- [Medium] Incorrect CCI I2C sleep state modification overrides `&cci0_sleep` instead of `&cci1_sleep`.
--
--- Patch [1]: [PATCH v6 1/2] arm64: dts: qcom: sdm845-google: Add dual front IMX355 cameras ---
commit c205a00f81a6553c73e74c2e70cc2c7b6bcef19f
Author: David Heidelberg <david@ixit.cz>
arm64: dts: qcom: sdm845-google: Add dual front IMX355 cameras
This commit adds device tree nodes for the two front-facing Sony IMX355
sensors on the Pixel 3. The sensors are connected via CSIPHY ports and
controlled over CCI I2C1, sharing MCLK2.
> diff --git a/arch/arm64/boot/dts/qcom/sdm845-google-common.dtsi b/arch/arm64/boot/dts/qcom/sdm845-google-common.dtsi
> --- a/arch/arm64/boot/dts/qcom/sdm845-google-common.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sdm845-google-common.dtsi
[ ... ]
> +&camss {
> + vdda-phy-supply = <&vreg_l1a_0p875>;
> + vdda-pll-supply = <&vreg_l26a_1p2>;
> +
> + /*
> + * MCLK2 (GPIO15) is shared between both front camera sensors.
> + * The clock is generated by CAMCC, therefore the pin is
> + * configured here rather than in individual sensor nodes.
> + */
> + pinctrl-0 = <&cam_mclk2_default>;
> + pinctrl-1 = <&cam_mclk2_sleep>;
> + pinctrl-names = "default", "sleep";
[Severity: High]
Does putting the MCLK2 pinctrl states in the camss node break the sensor probe?
Because camss operates with decoupled asynchronous runtime PM, it will likely
be suspended during the imx355 sensor probe. The PM core will put the pin into
the sleep state, which configures bias-pull-down.
When the imx355 driver calls clk_prepare_enable(mclk) during I2C probe to read
its chip ID, the clock controller generates the clock, but the sleep state on
camss will prevent the clock signal from reaching the sensors, causing the
probe to abort.
> +
> + status = "okay";
[ ... ]
> +};
> +
> +&cci0_sleep {
> + /* bus has external pull-up */
> + /delete-property/ bias-pull-down;
> + bias-disable;
> +};
[Severity: Medium]
Since the front cameras are added under the cci_i2c1 bus, should this be
modifying &cci1_sleep instead of &cci0_sleep?
This leaves the cci_i2c1 sleep state with its default bias-pull-down setting,
which will fight the external pull-up and could drain the battery during
sleep. It also incorrectly modifies cci_i2c0 which might affect other devices
on that bus.
> +
> +&cci {
> + status = "okay";
> +};
> @@ -358,7 +443,63 @@ &cci {
> &cci_i2c1 {
> /* actuator @0c */
>
> - /* front camera, imx355 @1a */
> + front_cam: camera@10 {
> + compatible = "sony,imx355";
[ ... ]
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260720-pixel3-camera-v6-0-afe419bef476@ixit.cz?part=1
next prev parent reply other threads:[~2026-07-20 11:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-20 10:53 [PATCH v6 0/2] Add initial dual front camera and rear flash support for Pixel 3 / 3 XL David Heidelberg via B4 Relay
2026-07-20 10:53 ` [PATCH v6 1/2] arm64: dts: qcom: sdm845-google: Add dual front IMX355 cameras David Heidelberg via B4 Relay
2026-07-20 11:01 ` Konrad Dybcio
2026-07-20 11:13 ` David Heidelberg
2026-07-20 11:11 ` sashiko-bot [this message]
2026-07-20 10:53 ` [PATCH v6 2/2] arm64: dts: qcom: sdm845-google: Enable PMI8998 camera flash LEDs David Heidelberg via B4 Relay
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=20260720111115.3E2681F00A3A@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=david@ixit.cz \
--cc=devicetree@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox