[PATCH v2 03/14] dt-bindings: iio: accel: bosch,bma220 change irq type

Petre Rodan
2025-09-10T07:58:09Z

Set the interrupt type to rising edge instead of high level.

Quoting from the datasheet:

"If at least one of the configured conditions applies, an interrupt
(logic ‘1’) is issued through the INT pin of the sensor."

The old code did not request an irq line via devm_request_threaded_irq()
so there is no backward compatibility that would be affected by this
change.

Signed-off-by: Petre Rodan <petre.rodan@subdimension.ro>
---
ChangeLog:
- split out from a bigger patch file
---
Documentation/devicetree/bindings/iio/accel/bosch,bma220.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/iio/accel/bosch,bma220.yaml b/Documentation/devicetree/bindings/iio/accel/bosch,bma220.yaml
index 0e27ec74065acca611e63309d6ae889b8a3134ce..8c820c27f781e8001bc14b4ca6ab1f293bdb18ca 100644
--- a/Documentation/devicetree/bindings/iio/accel/bosch,bma220.yaml
+++ b/Documentation/devicetree/bindings/iio/accel/bosch,bma220.yaml
@@ -50,7 +50,7 @@ examples:
spi-cpol;
spi-cpha;
interrupt-parent = <&gpio0>;
- interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
+ interrupts = <0 IRQ_TYPE_EDGE_RISING>;
};
};
...

--
2.49.1