0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/accel/fsl,mma8452.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title:
0008 Freescale MMA8451Q, MMA8452Q, MMA8453Q, MMA8652FC, MMA8653FC or FXLS8471Q
0009 triaxial accelerometer
0010
0011 maintainers:
0012 - Martin Kepplinger <martin.kepplinger@theobroma-systems.com>
0013
0014 properties:
0015 compatible:
0016 enum:
0017 - fsl,mma8451
0018 - fsl,mma8452
0019 - fsl,mma8453
0020 - fsl,mma8652
0021 - fsl,mma8653
0022 - fsl,fxls8471
0023
0024 reg:
0025 maxItems: 1
0026
0027 interrupts:
0028 description:
0029 2 highly configurable interrupt lines exist.
0030 minItems: 1
0031 maxItems: 2
0032
0033 interrupt-names:
0034 description: Specify which interrupt line is in use.
0035 items:
0036 enum:
0037 - INT1
0038 - INT2
0039 minItems: 1
0040 maxItems: 2
0041
0042 vdd-supply: true
0043 vddio-supply: true
0044
0045 required:
0046 - compatible
0047 - reg
0048
0049 additionalProperties: false
0050
0051 examples:
0052 - |
0053 i2c {
0054 #address-cells = <1>;
0055 #size-cells = <0>;
0056
0057 accel@1d {
0058 compatible = "fsl,mma8453";
0059 reg = <0x1d>;
0060 interrupt-parent = <&gpio1>;
0061 interrupts = <5 0>;
0062 interrupt-names = "INT2";
0063 };
0064 };
0065 ...