70 lines · yaml
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause2%YAML 1.23---4$id: http://devicetree.org/schemas/iio/accel/kionix,kx022a.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: ROHM/Kionix KX022A, KX132-1211 and KX132ACR-LBZ Accelerometers8 9maintainers:10 - Matti Vaittinen <mazziesaccount@gmail.com>11 12description: |13 KX022A, KX132ACR-LBZ and KX132-1211 are 3-axis accelerometers supporting14 +/- 2G, 4G, 8G and 16G ranges, variable output data-rates and a15 hardware-fifo buffering. These accelerometers can be accessed either16 via I2C or SPI.17 18properties:19 compatible:20 enum:21 - kionix,kx022a22 - kionix,kx132-121123 - rohm,kx132acr-lbz24 25 reg:26 maxItems: 127 28 interrupts:29 minItems: 130 maxItems: 231 32 interrupt-names:33 minItems: 134 items:35 - enum: [INT1, INT2]36 - const: INT237 38 vdd-supply: true39 io-vdd-supply: true40 41 mount-matrix:42 description: |43 an optional 3x3 mounting rotation matrix.44 45required:46 - compatible47 - reg48 - interrupts49 50additionalProperties: false51 52examples:53 - |54 #include <dt-bindings/interrupt-controller/irq.h>55 i2c {56 #address-cells = <1>;57 #size-cells = <0>;58 accel@1f {59 compatible = "kionix,kx022a";60 reg = <0x1f>;61 62 interrupt-parent = <&gpio1>;63 interrupts = <29 IRQ_TYPE_LEVEL_LOW>;64 interrupt-names = "INT1";65 66 io-vdd-supply = <&iovdd>;67 vdd-supply = <&vdd>;68 };69 };70