[PATCH V3 1/9] dt-bindings: iio: imu: icm42607: Add devicetree binding
Chris Morgan
macromorgan at hotmail.com
Wed Apr 8 07:31:13 PDT 2026
On Wed, Apr 08, 2026 at 08:19:44AM -0500, Rob Herring wrote:
> On Mon, Mar 30, 2026 at 02:58:45PM -0500, Chris Morgan wrote:
> > From: Chris Morgan <macromorgan at hotmail.com>
> >
> Subject space is limited, so don't say devicetree binding twice:
>
> dt-bindings: iio: imu: Add Invensense ICM42607
>
> > Add devicetree binding for the Invensense ICM42607 and Invensense
> > ICM42607P inertial measurement unit. This unit is a combined
> > accelerometer, gyroscope, and thermometer available via I2C or SPI.
> >
> > This device is functionally very similar to the icm42600 series with a
> > very different register layout.
>
> Similar enough to use the same binding schema?
Yes. I was under the (possibly mistaken) impression that different drivers
required different binding schemas, but these should be similar enough to
use the same schema if it's allowed.
Thank you,
Chris
>
> > Signed-off-by: Chris Morgan <macromorgan at hotmail.com>
> > ---
> > .../bindings/iio/imu/invensense,icm42607.yaml | 95 +++++++++++++++++++
> > 1 file changed, 95 insertions(+)
> > create mode 100644 Documentation/devicetree/bindings/iio/imu/invensense,icm42607.yaml
> >
> > diff --git a/Documentation/devicetree/bindings/iio/imu/invensense,icm42607.yaml b/Documentation/devicetree/bindings/iio/imu/invensense,icm42607.yaml
> > new file mode 100644
> > index 000000000000..bbacdee5b906
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/iio/imu/invensense,icm42607.yaml
> > @@ -0,0 +1,95 @@
> > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> > +%YAML 1.2
> > +---
> > +$id: http://devicetree.org/schemas/iio/imu/invensense,icm42607.yaml#
> > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > +
> > +title: InvenSense ICM-42607 Inertial Measurement Unit
> > +
> > +maintainers:
> > + - Chris Morgan <macromorgan at hotmail.com>
> > +
> > +description: |
>
> Don't need '|'.
>
> > + 6-axis MotionTracking device that combines a 3-axis gyroscope and a 3-axis
> > + accelerometer.
> > +
> > +properties:
> > + compatible:
> > + enum:
> > + - invensense,icm42607
> > + - invensense,icm42607p
>
> blank line
>
> > + reg:
> > + maxItems: 1
> > +
> > + interrupts:
> > + minItems: 1
> > + maxItems: 2
> > +
> > + interrupt-names:
> > + minItems: 1
> > + maxItems: 2
> > + items:
> > + enum:
> > + - INT1
> > + - INT2
> > +
> > + drive-open-drain:
> > + type: boolean
> > +
> > + mount-matrix: true
> > +
> > + spi-cpha: true
> > + spi-cpol: true
> > +
> > + vdd-supply:
> > + description: Regulator that provides power to the sensor
> > +
> > + vddio-supply:
> > + description: Regulator that provides power to the bus
> > +
> > +required:
> > + - compatible
> > + - reg
> > + - interrupts
> > +
> > +allOf:
> > + - $ref: /schemas/spi/spi-peripheral-props.yaml#
> > +
> > +unevaluatedProperties: false
> > +
> > +examples:
> > + - |
> > + #include <dt-bindings/interrupt-controller/irq.h>
> > + i2c {
> > + #address-cells = <1>;
> > + #size-cells = <0>;
> > +
> > + icm42607p at 68 {
> > + compatible = "invensense,icm42607p";
> > + reg = <0x68>;
> > + interrupt-parent = <&gpio2>;
> > + interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
> > + interrupt-names = "INT1";
> > + vdd-supply = <&vdd>;
> > + vddio-supply = <&vddio>;
> > + };
> > + };
> > + - |
> > + #include <dt-bindings/interrupt-controller/irq.h>
> > + spi {
> > + #address-cells = <1>;
> > + #size-cells = <0>;
> > +
> > + icm42607p at 0 {
> > + compatible = "invensense,icm42607p";
> > + reg = <0>;
> > + spi-max-frequency = <24000000>;
> > + spi-cpha;
> > + spi-cpol;
> > + interrupt-parent = <&gpio1>;
> > + interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
> > + interrupt-names = "INT1";
> > + vdd-supply = <&vdd>;
> > + vddio-supply = <&vddio>;
> > + };
> > + };
> > --
> > 2.43.0
> >
More information about the Linux-rockchip
mailing list