ROHM/Kionix KX022A, KX132/134-1211 and KX132/134ACR-LBZ Accelerometers
Schema identifier ($id): "http://devicetree.org/schemas/iio/accel/kionix,kx022a.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Matti Vaittinen <mazziesaccount@gmail.com>"
KX022A, KX132ACR-LBZ and KX132-1211 are 3-axis accelerometers supporting +/- 2G, 4G, 8G and 16G ranges. The KX134ACR-LBZ and KX134-1211 support +/- 8G, 16G, 32G and 64G. All the sensors also have variable output data-rates and a hardware-fifo buffering. These accelerometers can be accessed either via I2C or SPI.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "kionix,kx022a", "kionix,kx132-1211", "kionix,kx134-1211", "rohm,kx132acr-lbz", "rohm,kx134acr-lbz"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
interrupt-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Item 2
Exact value (
const):"INT2"
vdd-supply — not listed as required here #
true — No constraints added by this property rule.
io-vdd-supply — not listed as required here #
true — No constraints added by this property rule.
mount-matrix — not listed as required here #
an optional 3x3 mounting rotation matrix.
Required in this object (required): "compatible", "reg", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
accel@1f {
compatible = "kionix,kx022a";
reg = <0x1f>;
interrupt-parent = <&gpio1>;
interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
interrupt-names = "INT1";
io-vdd-supply = <&iovdd>;
vdd-supply = <&vdd>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause