[PATCH v3 0/4] iio: accel: adxl367: add INT2 interrupt pin support

Antoniu Miclaus posted 4 patches 1 month, 1 week ago
There is a newer version of this series
.../bindings/iio/accel/adi,adxl367.yaml       | 13 ++++-
.../bindings/iio/adc/adi,ad4130.yaml          |  3 +-
.../bindings/iio/addac/adi,ad74115.yaml       |  3 +-
.../bindings/iio/addac/adi,ad74413r.yaml      |  3 +-
MAINTAINERS                                   |  4 ++
drivers/iio/accel/adxl367.c                   | 47 +++++++++++++++----
6 files changed, 60 insertions(+), 13 deletions(-)
[PATCH v3 0/4] iio: accel: adxl367: add INT2 interrupt pin support
Posted by Antoniu Miclaus 1 month, 1 week ago
The ADXL367 exposes two independent interrupt output pins, INT1 and INT2,
each with its own event mapping register. The driver has always hardcoded
INT1, so a board that routes only INT2 to the host never receives
interrupts. This series lets the driver pick the interrupt map register
based on the interrupt-names device tree property.

v3 addresses review feedback on the driver patch: the interrupt number
returned by fwnode_irq_get_byname() is now used for the request, so the
requested line always matches the routed INTMAP register even if the
interrupts are listed in an unexpected order. A precursor patch converts
the existing regmap_update_bits(..., en ? mask : 0) helpers to
regmap_assign_bits() as suggested during review.

Changes in v3:
- New precursor patch converting the boolean regmap_update_bits() helpers
  to regmap_assign_bits().
- Use the fwnode_irq_get_byname() interrupt number for
  devm_request_threaded_irq() in the INT2 patch.
- Rebased on the latest togreg/testing.

Antoniu Miclaus (4):
  dt-bindings: iio: update unreachable maintainer entries
  dt-bindings: iio: accel: adi,adxl367: add interrupt-names
  iio: accel: adxl367: use regmap_assign_bits()
  iio: accel: adxl367: add support for INT2 interrupt pin

 .../bindings/iio/accel/adi,adxl367.yaml       | 13 ++++-
 .../bindings/iio/adc/adi,ad4130.yaml          |  3 +-
 .../bindings/iio/addac/adi,ad74115.yaml       |  3 +-
 .../bindings/iio/addac/adi,ad74413r.yaml      |  3 +-
 MAINTAINERS                                   |  4 ++
 drivers/iio/accel/adxl367.c                   | 47 +++++++++++++++----
 6 files changed, 60 insertions(+), 13 deletions(-)


base-commit: 350d1fb9204b13c5f95e511e98b8bcb47574d425
-- 
2.43.0
Re: [PATCH v3 0/4] iio: accel: adxl367: add INT2 interrupt pin support
Posted by Jonathan Cameron 3 weeks, 6 days ago
On Fri, 21 Aug 2026 21:07:49 +0300
Antoniu Miclaus <antoniu.miclaus@analog.com> wrote:

> The ADXL367 exposes two independent interrupt output pins, INT1 and INT2,
> each with its own event mapping register. The driver has always hardcoded
> INT1, so a board that routes only INT2 to the host never receives
> interrupts. This series lets the driver pick the interrupt map register
> based on the interrupt-names device tree property.

Whilst the discussion has perhaps not ended on patch 4, I'm going to take
the view that something will probably change and mark this one
as changes requested in patchwork.

That doesn't stop me applying it as is - if the discussion heads that way -
but reduces the headache I get when I see how many things are
waiting for decisions.

Jonathan