All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Kaustabh Chakraborty" <kauschluss@disroot.org>
Cc: conor+dt@kernel.org, devicetree@vger.kernel.org, robh@kernel.org
Subject: Re: [PATCH 3/3] arm64: dts: exynos7870-j6lte: add Sharp GP2AP070S proximity sensor
Date: Thu, 23 Jul 2026 17:42:52 +0000	[thread overview]
Message-ID: <20260723174310.58B5F1F00A3A@smtp.kernel.org> (raw)
In-Reply-To: <20260723-gp2ap070s-v1-3-b8ca3a4c10dd@disroot.org>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] The device tree explicitly configures the pins for a bit-banged `i2c-gpio` bus to an alternate hardware function (`EXYNOS_PIN_FUNC_3`), which contradicts the use of the GPIO controller.
--

--- Patch [3]: [PATCH 3/3] arm64: dts: exynos7870-j6lte: add Sharp GP2AP070S proximity sensor ---
commit 930975d14f401bcd9e271c568ee73bd61323dc94
Author: Kaustabh Chakraborty <kauschluss@disroot.org>

arm64: dts: exynos7870-j6lte: add Sharp GP2AP070S proximity sensor

This commit adds a devicetree node for the Sharp GP2AP070S proximity sensor
on the Exynos7870 j6lte platform. It sets up an i2c-gpio bus for the sensor
and configures a dedicated fixed regulator for the sensor's VDD supply.

> diff --git a/arch/arm64/boot/dts/exynos/exynos7870-j6lte.dts b/arch/arm64/boot/dts/exynos/exynos7870-j6lte.dts
> index de30d0970336f..dd493138fed6e 100644
> --- a/arch/arm64/boot/dts/exynos/exynos7870-j6lte.dts
> +++ b/arch/arm64/boot/dts/exynos/exynos7870-j6lte.dts

[ ... ]

> @@ -579,6 +624,12 @@ bt_enable: bt-enable-pins {
>  		samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
>  	};
>  
> +	i2c_proxm_bus: i2c-proxm-bus-pins {
> +		samsung,pins = "gpf4-3", "gpf4-2";
> +		samsung,pin-function = <EXYNOS_PIN_FUNC_3>;

[Severity: Medium]
Does this pin configuration conflict with the i2c-gpio usage?

This node configures the pins to an alternate hardware function
(EXYNOS_PIN_FUNC_3) rather than GPIO, but it is referenced by the
bit-banged i2c-proximity node.

When the i2c-proximity device is instantiated, the pinctrl core applies
this state. Shortly after, the i2c-gpio driver probes and requests the pins
via gpiod_get(), which causes the pinctrl driver to silently overwrite the
pin function back to GPIO input/output.

While the driver ultimately recovers the pins for GPIO usage, configuring
them to an alternate hardware function initially creates a window where the
pins might be driven by an uninitialized hardware IP block. This risks
causing spurious signals or electrical contention on the I2C bus during
boot.

> +		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
> +	};
> +
>  	wlan_enable: wlan-enable-pins {
>  		samsung,pins = "gpd3-6";
>  		samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260723-gp2ap070s-v1-0-b8ca3a4c10dd@disroot.org?part=3

      reply	other threads:[~2026-07-23 17:43 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-23 17:28 [PATCH 0/3] Add Sharp GP2AP070S Proximity Driver and enable it in Galaxy J6 (j6lte) Kaustabh Chakraborty
2026-07-23 17:28 ` [PATCH 1/3] dt-bindings: iio: proximity: add Sharp GP2AP070S proximity sensor Kaustabh Chakraborty
2026-07-23 21:47   ` Joshua Crofts
2026-07-23 17:28 ` [PATCH 2/3] iio: proximity: add driver for " Kaustabh Chakraborty
2026-07-23 17:40   ` sashiko-bot
2026-07-23 21:44   ` Joshua Crofts
2026-07-23 17:28 ` [PATCH 3/3] arm64: dts: exynos7870-j6lte: add " Kaustabh Chakraborty
2026-07-23 17:42   ` 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=20260723174310.58B5F1F00A3A@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=kauschluss@disroot.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.