All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lorenzo Bianconi <lorenzo@kernel.org>
To: jic23@kernel.org
Cc: lorenzo.bianconi@redhat.com, linux-iio@vger.kernel.org,
	mario.tesi@st.com, devicetree@vger.kernel.org
Subject: [PATCH v2 0/2] add the capability to disable st_lsm6dsx sensor-hub
Date: Sat, 13 Nov 2021 16:23:13 +0100	[thread overview]
Message-ID: <cover.1636816719.git.lorenzo@kernel.org> (raw)

Introduce the capability to disable sensorhub through a device-tree property
since since there are some configurations where users want to
explicitly disable sensor-hub auto-probing at bootstrap.
A typical configuration is when the sensorhub clock/data lines are connected
to a pull-up resistor since no slave sensors are connected to the i2c master.
If SDO/SA0 line is connected to the same pull-up resistor, when the driver
tries to probe slave devices connected on sensor-hub, it will force SDO/SA0
line to low, modifying the device i2c address.

Changes since v1:
- rename disable-shub property in disable-sensor-hub
- improve commit log

Lorenzo Bianconi (2):
  iio: imu: st_lsm6dsx: add dts property to disable sensor-hub
  Documentation: dt: iio: st_lsm6dsx: add disable-sensor-hub property

 Documentation/devicetree/bindings/iio/imu/st,lsm6dsx.yaml | 7 +++++++
 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c              | 4 +++-
 2 files changed, 10 insertions(+), 1 deletion(-)

-- 
2.31.1


             reply	other threads:[~2021-11-13 15:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-13 15:23 Lorenzo Bianconi [this message]
2021-11-13 15:23 ` [PATCH v2 1/2] iio: imu: st_lsm6dsx: add dts property to disable sensor-hub Lorenzo Bianconi
2021-11-13 15:23 ` [PATCH v2 2/2] Documentation: dt: iio: st_lsm6dsx: add disable-sensor-hub property Lorenzo Bianconi
2021-11-29 21:26   ` Rob Herring
2021-12-04 15:12     ` Jonathan Cameron

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=cover.1636816719.git.lorenzo@kernel.org \
    --to=lorenzo@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=jic23@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=lorenzo.bianconi@redhat.com \
    --cc=mario.tesi@st.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 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.