Devicetree
 help / color / mirror / Atom feed
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 v10 1/2] arm64: dts: qcom: sdm845-google: Add dual front IMX355 cameras
Date: Thu, 17 Sep 2026 10:01:29 +0000	[thread overview]
Message-ID: <20260917100129.DB6651F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260917-pixel3-camera-v10-1-df631279b39d@ixit.cz>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [High] arm64: dts: qcom: imx355 probe failure due to MCLK2 pinmux tied to camss runtime PM
- [Medium] arm64: dts: qcom: cci1 bus power leak due to typo in sleep pinctrl override
--

commit 2ddcaa50bae24562b4521343bdbdd9cdac1d78ec
Author: David Heidelberg <david@ixit.cz>

arm64: dts: qcom: sdm845-google: Add dual front IMX355 cameras
    
The Pixel 3 features two front-facing Sony IMX355 sensors with
different focal lengths (standard and wide-angle).
    
Sensors are connected via CSIPHY port 1 and 2 and controlled over CCI
I2C1, using MCLK2 as the clock source.

> diff --git a/arch/arm64/boot/dts/qcom/sdm845-google-common.dtsi b/arch/arm64/boot/dts/qcom/sdm845-google-common.dtsi
> index f1379857e2742..8b430776e8a54 100644
> --- a/arch/arm64/boot/dts/qcom/sdm845-google-common.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sdm845-google-common.dtsi
[ ... ]
> @@ -351,6 +389,53 @@ vreg_s3c_0p6: smps3 {
>  	};
>  };
>  
> +&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 assigning the MCLK2 pinmux to the &camss node cause probe failures?

Because camss uses runtime PM, it remains suspended while the sensors probe
asynchronously over I2C. During their probe routine, the sensors request the
clock and attempt an I2C read to identify the module.

Since camss is still suspended, MCLK2 will be left in the sleep state. This
prevents the clock signal from routing to the sensors, causing the I2C chip ID
read to fail.

Should this pinctrl be assigned to a node whose lifecycle matches the clock
or sensor, such as the clock controller (camcc)?

> +
> +	status = "okay";
[ ... ]
> +};
> +
> +&cci0_sleep {
> +	/* bus has external pull-up */
> +	/delete-property/ bias-pull-down;
> +	bias-disable;
> +};
> +

[Severity: Medium]
Does this override configure the wrong bus?

The fix meant to address power leakage caused by an external pull-up by
removing the internal bias-pull-down and applying bias-disable during sleep. 
However, it targets &cci0_sleep instead of &cci1_sleep.

>  &cci {
>  	status = "okay";
>  };
> @@ -358,7 +443,63 @@ &cci {
>  &cci_i2c1 {
>  	/* actuator @0c */
>  
> -	/* front camera, imx355 @1a */
> +	front_cam: camera@10 {

Since the newly added front cameras are connected to cci_i2c1, its sleep state
(cci1_sleep) should be updated to avoid conflicting with the external pull-up.

Because cci0 is unused for cameras on this board, updating &cci0_sleep leaves
the cci_i2c1 bus with internal pull-downs enabled during sleep, which will fight
the external pull-up and leak power.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260917-pixel3-camera-v10-0-df631279b39d@ixit.cz?part=1

  parent reply	other threads:[~2026-09-17 10:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-17  9:46 [PATCH v10 0/2] Add initial dual front camera and rear flash support for Pixel 3 / 3 XL David Heidelberg via B4 Relay
2026-09-17  9:46 ` [PATCH v10 1/2] arm64: dts: qcom: sdm845-google: Add dual front IMX355 cameras David Heidelberg via B4 Relay
2026-09-17  9:53   ` Konrad Dybcio
2026-09-17 10:01   ` sashiko-bot [this message]
2026-09-17  9:46 ` [PATCH v10 2/2] arm64: dts: qcom: sdm845-google: Enable PMI8998 camera flash LEDs David Heidelberg via B4 Relay
2026-09-21  9:09 ` [PATCH v10 0/2] Add initial dual front camera and rear flash support for Pixel 3 / 3 XL David Heidelberg

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=20260917100129.DB6651F000FF@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