xref: /freebsd/sys/contrib/device-tree/Bindings/iio/accel/kionix,kx022a.yaml (revision 84943d6f38e936ac3b7a3947ca26eeb27a39f938)
18bab661aSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
28bab661aSEmmanuel Vadot%YAML 1.2
38bab661aSEmmanuel Vadot---
48bab661aSEmmanuel Vadot$id: http://devicetree.org/schemas/iio/accel/kionix,kx022a.yaml#
58bab661aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
68bab661aSEmmanuel Vadot
7*84943d6fSEmmanuel Vadottitle: ROHM/Kionix KX022A, KX132-1211 and KX132ACR-LBZ Accelerometers
88bab661aSEmmanuel Vadot
98bab661aSEmmanuel Vadotmaintainers:
108bab661aSEmmanuel Vadot  - Matti Vaittinen <mazziesaccount@gmail.com>
118bab661aSEmmanuel Vadot
128bab661aSEmmanuel Vadotdescription: |
13*84943d6fSEmmanuel Vadot  KX022A, KX132ACR-LBZ and KX132-1211 are 3-axis accelerometers supporting
14*84943d6fSEmmanuel Vadot  +/- 2G, 4G, 8G and 16G ranges, variable output data-rates and a
15*84943d6fSEmmanuel Vadot  hardware-fifo buffering. These accelerometers can be accessed either
16*84943d6fSEmmanuel Vadot  via I2C or SPI.
178bab661aSEmmanuel Vadot
188bab661aSEmmanuel Vadotproperties:
198bab661aSEmmanuel Vadot  compatible:
20*84943d6fSEmmanuel Vadot    enum:
21*84943d6fSEmmanuel Vadot      - kionix,kx022a
22*84943d6fSEmmanuel Vadot      - kionix,kx132-1211
23*84943d6fSEmmanuel Vadot      - rohm,kx132acr-lbz
248bab661aSEmmanuel Vadot
258bab661aSEmmanuel Vadot  reg:
268bab661aSEmmanuel Vadot    maxItems: 1
278bab661aSEmmanuel Vadot
288bab661aSEmmanuel Vadot  interrupts:
298bab661aSEmmanuel Vadot    minItems: 1
308bab661aSEmmanuel Vadot    maxItems: 2
318bab661aSEmmanuel Vadot
328bab661aSEmmanuel Vadot  interrupt-names:
338bab661aSEmmanuel Vadot    minItems: 1
348bab661aSEmmanuel Vadot    items:
358bab661aSEmmanuel Vadot      - enum: [INT1, INT2]
368bab661aSEmmanuel Vadot      - const: INT2
378bab661aSEmmanuel Vadot
388bab661aSEmmanuel Vadot  vdd-supply: true
398bab661aSEmmanuel Vadot  io-vdd-supply: true
408bab661aSEmmanuel Vadot
418bab661aSEmmanuel Vadot  mount-matrix:
428bab661aSEmmanuel Vadot    description: |
438bab661aSEmmanuel Vadot      an optional 3x3 mounting rotation matrix.
448bab661aSEmmanuel Vadot
458bab661aSEmmanuel Vadotrequired:
468bab661aSEmmanuel Vadot  - compatible
478bab661aSEmmanuel Vadot  - reg
488bab661aSEmmanuel Vadot  - interrupts
498bab661aSEmmanuel Vadot
508bab661aSEmmanuel VadotadditionalProperties: false
518bab661aSEmmanuel Vadot
528bab661aSEmmanuel Vadotexamples:
538bab661aSEmmanuel Vadot  - |
548bab661aSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
558bab661aSEmmanuel Vadot    i2c {
568bab661aSEmmanuel Vadot        #address-cells = <1>;
578bab661aSEmmanuel Vadot        #size-cells = <0>;
588bab661aSEmmanuel Vadot        accel@1f {
598bab661aSEmmanuel Vadot            compatible = "kionix,kx022a";
608bab661aSEmmanuel Vadot            reg = <0x1f>;
618bab661aSEmmanuel Vadot
628bab661aSEmmanuel Vadot            interrupt-parent = <&gpio1>;
638bab661aSEmmanuel Vadot            interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
648bab661aSEmmanuel Vadot            interrupt-names = "INT1";
658bab661aSEmmanuel Vadot
668bab661aSEmmanuel Vadot            io-vdd-supply = <&iovdd>;
678bab661aSEmmanuel Vadot            vdd-supply = <&vdd>;
688bab661aSEmmanuel Vadot        };
698bab661aSEmmanuel Vadot    };
70