From: Gerard Marull-Paretas <gerard@teslabs.com>
To: Jonathan Cameron <jic23@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>
Cc: "David Lechner" <dlechner@baylibre.com>,
"Nuno Sá" <nuno.sa@analog.com>,
"Andy Shevchenko" <andy@kernel.org>,
"Frank Li" <Frank.li@nxp.com>,
linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: [PATCH v4 2/4] iio: magnetometer: mmc5633: Reference the datasheet for the SET/RESET wait
Date: Mon, 23 Nov 2026 21:26:13 +0100 [thread overview]
Message-ID: <20261123202616.17334-3-gerard@teslabs.com> (raw)
In-Reply-To: <20261123202616.17334-1-gerard@teslabs.com>
The 1 ms wait after a SET or RESET is tSR in the Operating Timing Diagram
section of both datasheets. Describe it where it is defined, with the
revision and page of each datasheet, in place of the comment at its use
that pointed at the datasheet without either.
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
---
drivers/iio/magnetometer/mmc5633.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/drivers/iio/magnetometer/mmc5633.c b/drivers/iio/magnetometer/mmc5633.c
index b651f01e1b5d..92a09316ccdc 100644
--- a/drivers/iio/magnetometer/mmc5633.c
+++ b/drivers/iio/magnetometer/mmc5633.c
@@ -63,6 +63,11 @@
#define MMC5633_CTRL1_BW_MASK GENMASK(1, 0)
+/*
+ * tSR, minimum time between SET or RESET and other operations, per MMC5603NJ
+ * datasheet (Rev. B, page 15) and MMC5633NJL datasheet (Rev. A, page 23),
+ * Operating Timing Diagram section.
+ */
#define MMC5633_WAIT_SET_RESET_US (1 * USEC_PER_MSEC)
#define MMC5633_HDR_CTRL0_MEAS_M 0x01
@@ -144,10 +149,6 @@ static int mmc5633_init(struct mmc5633_data *data)
if (ret)
return ret;
- /*
- * Minimum time interval between SET or RESET to other operations is
- * 1ms according to Operating Timing Diagram in datasheet.
- */
fsleep(MMC5633_WAIT_SET_RESET_US);
ret = regmap_write(data->regmap, MMC5633_REG_CTRL0, MMC5633_CTRL0_RESET);
--
2.45.2
next prev parent reply other threads:[~2026-11-23 20:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 20:26 [PATCH v4 0/4] iio: magnetometer: mmc5633: Binding, supply and mount matrix Gerard Marull-Paretas
2026-11-23 20:26 ` [PATCH v4 1/4] dt-bindings: iio: magnetometer: Add MEMSIC MMC5603 and MMC5633 Gerard Marull-Paretas
2026-11-23 20:26 ` Gerard Marull-Paretas [this message]
2026-11-23 20:26 ` [PATCH v4 3/4] iio: magnetometer: mmc5633: Enable the VDD supply Gerard Marull-Paretas
2026-11-23 20:26 ` [PATCH v4 4/4] iio: magnetometer: mmc5633: Add mount matrix support Gerard Marull-Paretas
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=20261123202616.17334-3-gerard@teslabs.com \
--to=gerard@teslabs.com \
--cc=Frank.li@nxp.com \
--cc=andy@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlechner@baylibre.com \
--cc=jic23@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nuno.sa@analog.com \
--cc=robh@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox