xref: /freebsd/sys/contrib/device-tree/Bindings/iio/imu/invensense,icm42600.yaml (revision 7ef62cebc2f965b0f640263e179276928885e33d)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/iio/imu/invensense,icm42600.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: InvenSense ICM-426xx Inertial Measurement Unit
8
9maintainers:
10  - Jean-Baptiste Maneyrol <jmaneyrol@invensense.com>
11
12description: |
13  6-axis MotionTracking device that combines a 3-axis gyroscope and a 3-axis
14  accelerometer.
15
16  It has a configurable host interface that supports I3C, I2C and SPI serial
17  communication, features a 2kB FIFO and 2 programmable interrupts with
18  ultra-low-power wake-on-motion support to minimize system power consumption.
19
20  Other industry-leading features include InvenSense on-chip APEX Motion
21  Processing engine for gesture recognition, activity classification, and
22  pedometer, along with programmable digital filters, and an embedded
23  temperature sensor.
24
25  https://invensense.tdk.com/wp-content/uploads/2020/03/DS-000292-ICM-42605-v1.4.pdf
26
27properties:
28  compatible:
29    enum:
30      - invensense,icm42600
31      - invensense,icm42602
32      - invensense,icm42605
33      - invensense,icm42622
34
35  reg:
36    maxItems: 1
37
38  interrupts:
39    maxItems: 1
40
41  drive-open-drain:
42    type: boolean
43
44  vdd-supply:
45    description: Regulator that provides power to the sensor
46
47  vddio-supply:
48    description: Regulator that provides power to the bus
49
50  spi-cpha: true
51  spi-cpol: true
52
53required:
54  - compatible
55  - reg
56  - interrupts
57
58allOf:
59  - $ref: /schemas/spi/spi-peripheral-props.yaml#
60
61unevaluatedProperties: false
62
63examples:
64  - |
65    #include <dt-bindings/gpio/gpio.h>
66    #include <dt-bindings/interrupt-controller/irq.h>
67    i2c0 {
68        #address-cells = <1>;
69        #size-cells = <0>;
70
71        icm42605@68 {
72          compatible = "invensense,icm42605";
73          reg = <0x68>;
74          interrupt-parent = <&gpio2>;
75          interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
76          vdd-supply = <&vdd>;
77          vddio-supply = <&vddio>;
78        };
79    };
80  - |
81    #include <dt-bindings/gpio/gpio.h>
82    #include <dt-bindings/interrupt-controller/irq.h>
83    spi0 {
84        #address-cells = <1>;
85        #size-cells = <0>;
86
87        icm42602@0 {
88          compatible = "invensense,icm42602";
89          reg = <0>;
90          spi-max-frequency = <24000000>;
91          spi-cpha;
92          spi-cpol;
93          interrupt-parent = <&gpio1>;
94          interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
95          vdd-supply = <&vdd>;
96          vddio-supply = <&vddio>;
97        };
98    };
99