public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: Sergio Perez <sergio@pereznus.es>, linux-iio@vger.kernel.org
Cc: devicetree@vger.kernel.org, tduszyns@gmail.com, jic23@kernel.org
Subject: Re: [PATCH] [v2] iio: light: bh1750: Add hardware reset support via GPIO
Date: Tue, 18 Mar 2025 08:32:12 +0100	[thread overview]
Message-ID: <9154eff7-bd76-447c-b0d7-d04e3c47ca65@kernel.org> (raw)
In-Reply-To: <20250317175621.593-1-sergio@pereznus.es>

On 17/03/2025 18:56, Sergio Perez wrote:
> Some BH1750 sensors require a hardware reset before they can be
> detected on the I2C bus. This patch adds support for an optional
> reset GPIO that can be specified in the device tree.
> 
> The reset sequence pulls the GPIO low and then high before
> initializing the sensor, which enables proper detection with
> tools like i2cdetect.
> 
> Signed-off-by: Sergio Perez <sergio@pereznus.es>
> ---
>  .../devicetree/bindings/iio/light/bh1750.yaml |  7 +++++-
>  drivers/iio/light/bh1750.c                    | 24 ++++++++++++++++++-
>  2 files changed, 29 insertions(+), 2 deletions(-)
> 

Respond to comments and implement them instead of sending the same three
times.

Best regards,
Krzysztof

      parent reply	other threads:[~2025-03-18  7:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-17 17:56 [PATCH] [v2] iio: light: bh1750: Add hardware reset support via GPIO Sergio Perez
2025-03-17 19:29 ` Rob Herring (Arm)
2025-03-18  7:32 ` Krzysztof Kozlowski [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=9154eff7-bd76-447c-b0d7-d04e3c47ca65@kernel.org \
    --to=krzk@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=jic23@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=sergio@pereznus.es \
    --cc=tduszyns@gmail.com \
    /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