From: sashiko-bot@kernel.org
To: "David Heidelberg" <david@ixit.cz>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org,
media-ci@linuxtv.org
Subject: Re: [PATCH 3/3] arm64: dts: qcom: sdm845-oneplus: Enable front and back camera
Date: Mon, 23 Nov 2026 01:31:15 +0000 [thread overview]
Message-ID: <sashiko-outbox-228518@kernel.org> (raw)
In-Reply-To: <20261123-op6-upstream-cameras-v1-3-234fb3b7bb18@ixit.cz>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] arm64: dts: qcom: regulator GPIO pinctrl placed on camera sensor
nodes
--
commit 255c3e91ccc8d6209496c3a95ff032200871681d
Author: David Heidelberg <david@ixit.cz>
arm64: dts: qcom: sdm845-oneplus: Enable front and back camera
This commit adds Devicetree nodes, regulators, and pinctrl configurations
to enable the front (Sony IMX371) and rear (Sony IMX376k) cameras on
OnePlus 6 and 6T.
> diff --git a/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi b/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi
> index 1df09da3c4d71..92317f23bdd15 100644
> --- a/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi
[ ... ]
> @@ -961,6 +1108,98 @@ &usb_1_hsphy {
> &tlmm {
> gpio-reserved-ranges = <0 4>, <81 4>;
>
> + sub_cam_default: sub-cam-default-state {
> + rst-pins {
> + pins = "gpio23";
> + function = "gpio";
> + bias-disable;
> + drive-strength = <2>;
> + };
> +
> + ana-pins {
> + pins = "gpio78";
> + function = "gpio";
> + bias-disable;
> + drive-strength = <2>;
> + };
> +
> + dig-pins {
> + pins = "gpio79";
> + function = "gpio";
> + bias-disable;
> + drive-strength = <2>;
> + };
> + };
> +
> + sub_cam_sleep: sub-cam-sleep-state {
> + rst-pins {
> + pins = "gpio23";
> + function = "gpio";
> + bias-disable;
> + drive-strength = <2>;
> + };
> +
> + ana-pins {
> + pins = "gpio78";
> + function = "gpio";
> + bias-pull-down;
> + drive-strength = <2>;
> + };
> +
> + dig-pins {
> + pins = "gpio79";
> + function = "gpio";
> + bias-pull-down;
> + drive-strength = <2>;
> + };
> + };
> +
> + front_cam_default: front-cam-default-state {
> + rst-pins {
> + pins = "gpio9";
> + function = "gpio";
> + bias-disable;
> + drive-strength = <2>;
> + };
> +
> + ana-pins {
> + pins = "gpio104";
> + function = "gpio";
> + bias-disable;
> + drive-strength = <2>;
> + };
> +
> + dig-pins {
> + pins = "gpio117";
> + function = "gpio";
> + bias-disable;
> + drive-strength = <2>;
> + };
> + };
> +
> + front_cam_sleep: front-cam-sleep-state {
> + rst-pins {
> + pins = "gpio9";
> + function = "gpio";
> + bias-disable;
> + drive-strength = <2>;
> + };
> +
> + ana-pins {
> + pins = "gpio104";
> + function = "gpio";
> + bias-pull-down;
> + drive-strength = <2>;
> + };
> +
> + dig-pins {
> + pins = "gpio117";
> + function = "gpio";
> + bias-pull-down;
> + drive-strength = <2>;
> + };
> + };
[Severity: Low]
Should the pinctrl states for gpio78, gpio79, gpio104, and gpio117 be
attached to sub_cam_vana, sub_cam_vdig, front_cam_vana, and
front_cam_vdig instead of the sub_cam and front_cam sensor nodes?
Because the regulator-fixed nodes own those enable GPIOs and have no
pinctrl-0 properties, reg_fixed_voltage_probe() requests and drives the
pins before the CCI I2C camera sensors probe (or leaves them unconfigured
when the mipi-ccs driver is not bound). Splitting the regulator pinconf
into separate states on the regulator nodes would also match
panel_vci_3v3 and panel_vddi_poc_1p8 earlier in this file.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261123-op6-upstream-cameras-v1-0-234fb3b7bb18@ixit.cz?part=3
prev parent reply other threads:[~2026-11-23 1:31 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 1:21 [PATCH 0/3] OnePlus 6 and 6T support for front and one of the back cameras David Heidelberg
2026-11-23 1:21 ` David Heidelberg via B4 Relay
2026-11-23 1:21 ` [PATCH 1/3] media: dt-bindings: mipi-ccs: Allow 90 and 270 deg rotation David Heidelberg
2026-11-23 1:21 ` David Heidelberg via B4 Relay
2026-11-23 1:21 ` [PATCH 2/3] media: dt-bindings: mipi-ccs: Support IMX371 and IMX376K David Heidelberg
2026-11-23 1:21 ` David Heidelberg via B4 Relay
2026-11-23 1:21 ` [PATCH 3/3] arm64: dts: qcom: sdm845-oneplus: Enable front and back camera David Heidelberg
2026-11-23 1:21 ` David Heidelberg via B4 Relay
2026-11-23 1:31 ` 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-228518@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=david@ixit.cz \
--cc=devicetree@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.