Path: blob/master/Documentation/devicetree/bindings/iio/accel/kionix,kx022a.yaml
26309 views
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause1%YAML 1.22---3$id: http://devicetree.org/schemas/iio/accel/kionix,kx022a.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: ROHM/Kionix KX022A, KX132/134-1211 and KX132/134ACR-LBZ Accelerometers78maintainers:9- Matti Vaittinen <mazziesaccount@gmail.com>1011description: |12KX022A, KX132ACR-LBZ and KX132-1211 are 3-axis accelerometers supporting13+/- 2G, 4G, 8G and 16G ranges. The KX134ACR-LBZ and KX134-1211 support14+/- 8G, 16G, 32G and 64G. All the sensors also have variable output15data-rates and a hardware-fifo buffering. These accelerometers can be16accessed either via I2C or SPI.1718properties:19compatible:20enum:21- kionix,kx022a22- kionix,kx132-121123- kionix,kx134-121124- rohm,kx132acr-lbz25- rohm,kx134acr-lbz2627reg:28maxItems: 12930interrupts:31minItems: 132maxItems: 23334interrupt-names:35minItems: 136items:37- enum: [INT1, INT2]38- const: INT23940vdd-supply: true41io-vdd-supply: true4243mount-matrix:44description: |45an optional 3x3 mounting rotation matrix.4647required:48- compatible49- reg50- interrupts5152additionalProperties: false5354examples:55- |56#include <dt-bindings/interrupt-controller/irq.h>57i2c {58#address-cells = <1>;59#size-cells = <0>;60accel@1f {61compatible = "kionix,kx022a";62reg = <0x1f>;6364interrupt-parent = <&gpio1>;65interrupts = <29 IRQ_TYPE_LEVEL_LOW>;66interrupt-names = "INT1";6768io-vdd-supply = <&iovdd>;69vdd-supply = <&vdd>;70};71};727374