1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/iio/accel/fsl,mma7455.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Freescale MMA7455 and MMA7456 three axis accelerometers
8
9 maintainers:
10 - Jonathan Cameron <jic23@kernel.org>
11
12 description:
13 Devices support both SPI and I2C interfaces.
14
15 properties:
16 compatible:
17 enum:
18 - fsl,mma7455
19 - fsl,mma7456
20 reg:
21 maxItems: 1
22
23 avdd-supply: true
24 vddio-supply: true
25
26 interrupts:
27 minItems: 1
28 maxItems: 2
29
30 interrupt-names:
31 description:
32 Data ready is only available on INT1, but events can use either or
33 both pins. If not specified, first element assumed to correspond
34 to INT1 and second (where present) to INT2.
35 minItems: 1
36 maxItems: 2
37 items:
38 enum:
39 - "INT1"
40 - "INT2"
41
42 spi-max-frequency: true
43
44 required:
45 - compatible
46 - reg
47
48 additionalProperties: false
49
50 examples:
51 - |
52 # include <dt-bindings/interrupt-controller/irq.h>
53 i2c {
54 #address-cells = <1>;
55 #size-cells = <0>;
56
57 accelerometer@18 {
58 compatible = "fsl,mma7455";
59 reg = <0x18>;
60 vddio-supply = <&iovdd>;
61 avdd-supply = <&avdd>;
62 interrupts = <57 IRQ_TYPE_EDGE_FALLING>, <58 IRQ_TYPE_EDGE_FALLING>;
63 interrupt-names = "INT2", "INT1";
64 };
65 };
66 - |
67 # include <dt-bindings/interrupt-controller/irq.h>
68 spi {
69 #address-cells = <1>;
70 #size-cells = <0>;
71 accelerometer@0 {
72 compatible = "fsl,mma7456";
73 reg = <0>;
74 spi-max-frequency = <10000000>;
75 vddio-supply = <&iovdd>;
76 avdd-supply = <&avdd>;
77 interrupts = <57 IRQ_TYPE_EDGE_FALLING>;
78 interrupt-names = "INT1";
79 };
80 };
81 ...
Cache object: bf3ef669ea3e8bb8c259f639458a3a02
|