Path: blob/main/sys/contrib/device-tree/Bindings/iio/accel/kionix,kx022a.yaml
48523 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-1211 and KX132ACR-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, variable output data-rates and a14hardware-fifo buffering. These accelerometers can be accessed either15via I2C or SPI.1617properties:18compatible:19enum:20- kionix,kx022a21- kionix,kx132-121122- rohm,kx132acr-lbz2324reg:25maxItems: 12627interrupts:28minItems: 129maxItems: 23031interrupt-names:32minItems: 133items:34- enum: [INT1, INT2]35- const: INT23637vdd-supply: true38io-vdd-supply: true3940mount-matrix:41description: |42an optional 3x3 mounting rotation matrix.4344required:45- compatible46- reg47- interrupts4849additionalProperties: false5051examples:52- |53#include <dt-bindings/interrupt-controller/irq.h>54i2c {55#address-cells = <1>;56#size-cells = <0>;57accel@1f {58compatible = "kionix,kx022a";59reg = <0x1f>;6061interrupt-parent = <&gpio1>;62interrupts = <29 IRQ_TYPE_LEVEL_LOW>;63interrupt-names = "INT1";6465io-vdd-supply = <&iovdd>;66vdd-supply = <&vdd>;67};68};697071