Re: [PATCH] [v2] iio: light: bh1750: Add hardware reset support via GPIO

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx>
> ---
>  .../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




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux