Re: [RFC PATCH 1/4] dt-bindings: iio: accel: fxls8962af: add interrupt options
From: Rob Herring <robh@kernel.org>
Date: 2021-05-03 19:21:51
Also in:
linux-iio
On Wed, Apr 28, 2021 at 10:22:00AM +0200, Sean Nyekjaer wrote:
quoted hunk ↗ jump to hunk
This in done for supporting hw buffered sampling Signed-off-by: Sean Nyekjaer <redacted> --- This series depends on "iio: accel: add support for FXLS8962AF/FXLS8964AF accelerometers" .../bindings/iio/accel/nxp,fxls8962af.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+)diff --git a/Documentation/devicetree/bindings/iio/accel/nxp,fxls8962af.yaml b/Documentation/devicetree/bindings/iio/accel/nxp,fxls8962af.yaml index c7be7a1679ab..e0e5542377df 100644 --- a/Documentation/devicetree/bindings/iio/accel/nxp,fxls8962af.yaml +++ b/Documentation/devicetree/bindings/iio/accel/nxp,fxls8962af.yaml@@ -32,6 +32,16 @@ properties: interrupts: maxItems: 1 + interrupt-names: + maxItems: 1 + items: + enum: + - INT1 + - INT2
You can simplify this to:
interrupt-names:
enum:
- INT1
- INT2
quoted hunk ↗ jump to hunk
+ + drive-open-drain: + type: boolean + required: - compatible - reg@@ -51,6 +61,7 @@ examples: reg = <0x62>; interrupt-parent = <&gpio0>; interrupts = <0 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "INT1"; }; }; - |@@ -66,5 +77,6 @@ examples: spi-max-frequency = <4000000>; interrupt-parent = <&gpio0>; interrupts = <0 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "INT1"; }; };-- 2.31.0