Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Kaustabh Chakraborty" <kauschluss@disroot.org>
Cc: robh@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v4 3/3] arm64: dts: exynos7870-j6lte: add Sharp GP2AP070S proximity sensor
Date: Thu, 06 Aug 2026 20:06:41 +0000	[thread overview]
Message-ID: <20260806200641.EB60D1F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260807-gp2ap070s-v4-3-74f6a67b6272@disroot.org>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] The devicetree node `i2c-proximity` uses the software bit-banged `i2c-gpio` driver, but its pinctrl node `i2c_proxm_bus` explicitly configures the pins to the hardware I2C controller's alternate function instead of GPIO mode.
--

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

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

The commit adds a Sharp GP2AP070S proximity sensor to the exynos7870-j6lte
device tree. It connects the sensor via a GPIO-driven I2C bus and provides
necessary regulator supplies.

> 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
> @@ -73,6 +73,35 @@ key-volup {
>  		};
>  	};
>  
> +	i2c-proximity {
> +		compatible = "i2c-gpio";
> +		#address-cells = <1>;
> +		#size-cells = <0>;
> +
> +		pinctrl-names = "default";
> +		pinctrl-0 = <&i2c_proxm_bus>;
> +
> +		sda-gpios = <&gpf4 3 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
> +		scl-gpios = <&gpf4 2 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;

[ ... ]

> @@ -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]
Is it intentional to configure these pins to the hardware I2C controller
alternate function (EXYNOS_PIN_FUNC_3) while using the software bit-banged
i2c-gpio driver?

During device probe, the pinctrl framework will route the pins to the hardware
I2C controller.

This contradicts the bit-banged I2C design and creates a window where the pins
are driven by the hardware controller before the GPIO framework eventually
overrides the pin multiplexing.

If the hardware controller isn't powered or properly initialized, could this
cause the pins to float or drive the bus incorrectly, leading to I2C bus
glitches?

> +		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
> +	};
> +

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260807-gp2ap070s-v4-0-74f6a67b6272@disroot.org?part=3

      reply	other threads:[~2026-08-06 20:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-06 19:48 [PATCH v4 0/3] Add Sharp GP2AP070S Proximity Driver and enable it in Galaxy J6 (j6lte) Kaustabh Chakraborty
2026-08-06 19:48 ` [PATCH v4 1/3] dt-bindings: iio: proximity: add Sharp GP2AP070S proximity sensor Kaustabh Chakraborty
2026-08-07  7:27   ` Krzysztof Kozlowski
2026-08-06 19:48 ` [PATCH v4 2/3] iio: proximity: add driver for " Kaustabh Chakraborty
2026-08-06 20:02   ` sashiko-bot
2026-08-06 19:48 ` [PATCH v4 3/3] arm64: dts: exynos7870-j6lte: add " Kaustabh Chakraborty
2026-08-06 20:06   ` 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=20260806200641.EB60D1F000E9@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox