1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-C 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/iio/imu/bos 4 $id: http://devicetree.org/schemas/iio/imu/bosch,bmi323.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: Bosch BMI323 6-Axis IMU 7 title: Bosch BMI323 6-Axis IMU 8 8 9 maintainers: 9 maintainers: 10 - Jagath Jog J <jagathjog1996@gmail.com> 10 - Jagath Jog J <jagathjog1996@gmail.com> 11 11 12 description: 12 description: 13 BMI323 is a 6-axis inertial measurement unit 13 BMI323 is a 6-axis inertial measurement unit that supports acceleration and 14 gyroscopic measurements with hardware fifo b 14 gyroscopic measurements with hardware fifo buffering. Sensor also provides 15 events information such as motion, steps, or 15 events information such as motion, steps, orientation, single and double 16 tap detection. 16 tap detection. 17 17 18 properties: 18 properties: 19 compatible: 19 compatible: 20 const: bosch,bmi323 20 const: bosch,bmi323 21 21 22 reg: 22 reg: 23 maxItems: 1 23 maxItems: 1 24 24 25 vdd-supply: true 25 vdd-supply: true 26 vddio-supply: true 26 vddio-supply: true 27 27 28 interrupts: 28 interrupts: 29 minItems: 1 29 minItems: 1 30 maxItems: 2 30 maxItems: 2 31 31 32 interrupt-names: 32 interrupt-names: 33 minItems: 1 33 minItems: 1 34 maxItems: 2 34 maxItems: 2 35 items: 35 items: 36 enum: 36 enum: 37 - INT1 37 - INT1 38 - INT2 38 - INT2 39 39 40 drive-open-drain: 40 drive-open-drain: 41 description: 41 description: 42 set if the specified interrupt pin shoul 42 set if the specified interrupt pin should be configured as 43 open drain. If not set, defaults to push 43 open drain. If not set, defaults to push-pull. 44 44 45 mount-matrix: 45 mount-matrix: 46 description: 46 description: 47 an optional 3x3 mounting rotation matrix 47 an optional 3x3 mounting rotation matrix. 48 48 49 required: 49 required: 50 - compatible 50 - compatible 51 - reg 51 - reg 52 - vdd-supply 52 - vdd-supply 53 - vddio-supply 53 - vddio-supply 54 54 55 allOf: 55 allOf: 56 - $ref: /schemas/spi/spi-peripheral-props.ya 56 - $ref: /schemas/spi/spi-peripheral-props.yaml# 57 57 58 unevaluatedProperties: false 58 unevaluatedProperties: false 59 59 60 examples: 60 examples: 61 - | 61 - | 62 // Example for I2C 62 // Example for I2C 63 #include <dt-bindings/interrupt-controller 63 #include <dt-bindings/interrupt-controller/irq.h> 64 i2c { 64 i2c { 65 #address-cells = <1>; 65 #address-cells = <1>; 66 #size-cells = <0>; 66 #size-cells = <0>; 67 67 68 imu@68 { 68 imu@68 { 69 compatible = "bosch,bmi323"; 69 compatible = "bosch,bmi323"; 70 reg = <0x68>; 70 reg = <0x68>; 71 vddio-supply = <&vddio>; 71 vddio-supply = <&vddio>; 72 vdd-supply = <&vdd>; 72 vdd-supply = <&vdd>; 73 interrupt-parent = <&gpio1>; 73 interrupt-parent = <&gpio1>; 74 interrupts = <29 IRQ_TYPE_EDGE_RIS 74 interrupts = <29 IRQ_TYPE_EDGE_RISING>; 75 interrupt-names = "INT1"; 75 interrupt-names = "INT1"; 76 }; 76 }; 77 }; 77 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.