From: Jochen Henneberg <jh@henneberg-systemdesign.com>
To: linux-iio@vger.kernel.org
Subject: Question about bno055 mismatched reset gpio logical/physical state
Date: Fri, 07 Aug 2026 10:30:14 +0200 [thread overview]
Message-ID: <87ecgafi3t.fsf@henneberg-systemdesign.com> (raw)
Hi,
I just stumbled over a mismatch in bno055 where the wrong logical states
for the reset gpio are set and I'm not sure how to deal with it.
Looking at:
static int bno055_system_reset(struct bno055_priv *priv)
{
int ret;
if (priv->reset_gpio) {
gpiod_set_value_cansleep(priv->reset_gpio, 0);
usleep_range(5000, 10000);
gpiod_set_value_cansleep(priv->reset_gpio, 1);
} else if (priv->sw_reset) {
ret = regmap_write(priv->regmap, BNO055_SYS_TRIGGER_REG,
BNO055_SYS_TRIGGER_RST_SYS);
if (ret)
return ret;
} else {
return 0;
}
regcache_drop_region(priv->regmap, 0x0, 0xff);
usleep_range(650000, 700000);
return 0;
}
To reset the reset is first turned off and then turned on which makes no
sense unless the gpio is configured active high for an active low
pin. This happens also at another place in the code.
Question is: Does it make sense to provide a patch which will then
potentially break dtsi files of many projects? Or should this better get
a note in the binding documentation?
Regards
-Jochen
reply other threads:[~2026-08-07 8:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=87ecgafi3t.fsf@henneberg-systemdesign.com \
--to=jh@henneberg-systemdesign.com \
--cc=linux-iio@vger.kernel.org \
/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.