Skip to content

Commit ebf0aa3

Browse files
Rubuschjic23
authored andcommitted
dt-bindings: iio: accel: adxl345: add interrupt-names
Add interrupt-names INT1 and INT2 for the two interrupt lines of the sensor. When one of the two interrupt lines is connected, the interrupt as its interrupt-name, need to be declared in the devicetree. The driver then configures the sensor to indicate its events on either INT1 or INT2. If no interrupt is configured, then no interrupt-name should be configured, and vice versa. In this case the sensor runs in FIFO BYPASS mode. This allows sensor measurements, but none of the sensor events. Signed-off-by: Lothar Rubusch <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
1 parent 9f2223e commit ebf0aa3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Documentation/devicetree/bindings/iio/accel/adi,adxl345.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ properties:
3737
interrupts:
3838
maxItems: 1
3939

40+
interrupt-names:
41+
items:
42+
- enum: [INT1, INT2]
43+
44+
dependencies:
45+
interrupts: [ interrupt-names ]
46+
interrupt-names: [ interrupts ]
47+
4048
required:
4149
- compatible
4250
- reg
@@ -60,6 +68,7 @@ examples:
6068
reg = <0x2a>;
6169
interrupt-parent = <&gpio0>;
6270
interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
71+
interrupt-names = "INT1";
6372
};
6473
};
6574
- |
@@ -78,5 +87,6 @@ examples:
7887
spi-cpha;
7988
interrupt-parent = <&gpio0>;
8089
interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
90+
interrupt-names = "INT2";
8191
};
8292
};

0 commit comments

Comments
 (0)