Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "David Heidelberg" <david@ixit.cz>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v5 1/2] arm64: dts: qcom: sdm845-google: Add dual front IMX355 cameras
Date: Sun, 19 Jul 2026 18:24:01 +0000	[thread overview]
Message-ID: <20260719182401.D720A1F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260719-pixel3-camera-v5-1-99593f1bd8ec@ixit.cz>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [High] Pinctrl for MCLK2 is attached to the camss consumer, causing a probe deadlock that breaks camera initialization.
- [Medium] Incorrect pinctrl sleep state override for I2C bus causes power leakage and configuration conflict.
--

--- Patch [1]: [PATCH v5 1/2] arm64: dts: qcom: sdm845-google: Add dual front IMX355 cameras ---
commit 650af867be78a11fabbd3346603a6fc8f7cb758f
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.
This enables support for the dual front camera configuration.

> diff --git a/arch/arm64/boot/dts/qcom/sdm845-google-common.dtsi b/arch/arm64/boot/dts/qcom/sdm845-google-common.dtsi
> index 9368fd6b87515..cb5c261802bc9 100644
> --- a/arch/arm64/boot/dts/qcom/sdm845-google-common.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sdm845-google-common.dtsi

[ ... ]

> @@ -351,6 +389,52 @@ 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]
Will this cause a probe deadlock that breaks camera initialization?

Since fw_devlink parses the remote-endpoint properties, it establishes that
camss depends on the imx355 sensors, meaning imx355 will probe first.
During the imx355 probe, it requests and enables MCLK2.

However, because the pinctrl for MCLK2 is attached to the camss consumer
rather than the provider (camcc) or a dedicated gpio-gate-clock node, the
physical pin (GPIO15) won't be configured to output the clock until camss
probes.

Without the clock active, will the imx355 sensor fail to respond to the I2C
read for its CHIP_ID and fail to probe entirely?

[ ... ]

> +};
> +
> +&cci0_sleep {
> +	/* bus has external pull-up, don't pull down */
> +	bias-disable;
> +};

[Severity: Medium]
Is this targeting the correct CCI bus?

The commit message states the cameras are controlled over CCI I2C1, which
uses cci1_sleep. By overriding cci0_sleep instead, does this leave the
I2C lines for the cameras pulled down against their external pull-ups
during sleep, causing a continuous power leak?

Additionally, without using /delete-property/ bias-pull-down;, won't
cci0_sleep incorrectly contain both bias-disable and bias-pull-down
conflicting settings?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260719-pixel3-camera-v5-0-99593f1bd8ec@ixit.cz?part=1

  reply	other threads:[~2026-07-19 18:24 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-19 18:03 [PATCH v5 0/2] Add initial dual front camera and rear flash support for Pixel 3 / 3 XL David Heidelberg via B4 Relay
2026-07-19 18:03 ` [PATCH v5 1/2] arm64: dts: qcom: sdm845-google: Add dual front IMX355 cameras David Heidelberg via B4 Relay
2026-07-19 18:24   ` sashiko-bot [this message]
2026-07-19 18:57     ` David Heidelberg
2026-07-20  8:24   ` Konrad Dybcio
2026-07-20 10:49     ` David Heidelberg
2026-07-19 18:03 ` [PATCH v5 2/2] arm64: dts: qcom: sdm845-google: Enable PMI8998 camera flash LEDs David Heidelberg via B4 Relay
2026-07-19 18:12   ` sashiko-bot
2026-07-20  8:26   ` Konrad Dybcio

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=20260719182401.D720A1F000E9@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