From: Jonathan Cameron <jic23@kernel.org>
To: Jonathan Santos <Jonathan.Santos@analog.com>
Cc: <linux-iio@vger.kernel.org>, <devicetree@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, <Michael.Hennerich@analog.com>,
<ramona.gradinariu@analog.com>, <antoniu.miclaus@analog.com>,
<dlechner@baylibre.com>, <nuno.sa@analog.com>, <andy@kernel.org>,
<robh@kernel.org>, <krzk+dt@kernel.org>, <conor+dt@kernel.org>,
Andy Shevchenko <andriy.shevchenko@intel.com>
Subject: Re: [PATCH v2 2/2] iio: accel: adxl380: add support for ADXL318 and ADXL319
Date: Sat, 15 Nov 2025 17:12:17 +0000 [thread overview]
Message-ID: <20251115171217.4f9d1d12@jic23-huawei> (raw)
In-Reply-To: <94f1c01bdaea81a1a5f14df6aa95bc2b209165e9.1763134751.git.Jonathan.Santos@analog.com>
On Fri, 14 Nov 2025 19:14:02 -0300
Jonathan Santos <Jonathan.Santos@analog.com> wrote:
> The ADXL318 and ADXL319 are low noise density, low power, 3-axis
> accelerometers based on ADXL380 and ADXL382, respectively. The main
> difference between the new parts and the existing ones are the absence
> of interrupts and events like tap detection, activity/inactivity, and
> free-fall detection.
>
> Other differences in the new parts are fewer power modes, basically
> allowing only idle and measurement modes, and the removal of the 12-bit
> SAR ADC path for the 3-axis signals (known as lower signal chain),
> being excluisive for the temperature sensor in the ADXL318/319.
>
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
> Signed-off-by: Jonathan Santos <Jonathan.Santos@analog.com>
One tiny thing I'll tweak whilst applying. Applied to the togreg
branch of iio.git which will go out initially as testing.
Thanks,
Jonathan
> static const unsigned int adxl380_th_reg_high_addr[2] = {
> [ADXL380_ACTIVITY] = ADXL380_THRESH_ACT_H_REG,
> [ADXL380_INACTIVITY] = ADXL380_THRESH_INACT_H_REG,
> @@ -276,9 +243,14 @@ static int adxl380_set_measure_en(struct adxl380_state *st, bool en)
> if (ret)
> return ret;
>
> - /* Activity/ Inactivity detection available only in VLP/ULP mode */
> - if (FIELD_GET(ADXL380_ACT_EN_MSK, act_inact_ctl) ||
> - FIELD_GET(ADXL380_INACT_EN_MSK, act_inact_ctl))
> + /*
> + * Activity/Inactivity detection available only in VLP/ULP
> + * mode and for devices that support low power modes. Otherwise
> + * go straight to measure mode (same bits as ADXL380_OP_MODE_HP).
> + */
> + if (st->chip_info->has_low_power &&
> + (FIELD_GET(ADXL380_ACT_EN_MSK, act_inact_ctl) ||
> + FIELD_GET(ADXL380_INACT_EN_MSK, act_inact_ctl)))
Looks like this is aligned one space before where it should be.
> op_mode = ADXL380_OP_MODE_VLP;
next prev parent reply other threads:[~2025-11-15 17:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-14 22:13 [PATCH v2 1/2] dt-bindings: iio: accel: adxl380: add new supported parts Jonathan Santos
2025-11-14 22:14 ` [PATCH v2 2/2] iio: accel: adxl380: add support for ADXL318 and ADXL319 Jonathan Santos
2025-11-15 17:12 ` Jonathan Cameron [this message]
2025-11-15 11:39 ` [PATCH v2 1/2] dt-bindings: iio: accel: adxl380: add new supported parts Krzysztof Kozlowski
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=20251115171217.4f9d1d12@jic23-huawei \
--to=jic23@kernel.org \
--cc=Jonathan.Santos@analog.com \
--cc=Michael.Hennerich@analog.com \
--cc=andriy.shevchenko@intel.com \
--cc=andy@kernel.org \
--cc=antoniu.miclaus@analog.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlechner@baylibre.com \
--cc=krzk+dt@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nuno.sa@analog.com \
--cc=ramona.gradinariu@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
all inboxes | Powered by JetHome®