Bosch BMG160 triaxial rotation sensor (gyroscope)
Schema identifier ($id): "http://devicetree.org/schemas/iio/gyroscope/bosch,bmg160.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "H. Nikolaus Schaller <hns@goldelico.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "bosch,bmg160", "bosch,bmi055_gyro", "bosch,bmi088_gyro"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
true — No constraints added by this property rule.
vddio-supply — not listed as required here #
true — No constraints added by this property rule.
spi-max-frequency — not listed as required here #
Maximum value (maximum): 10000000
interrupts — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Should be configured with type IRQ_TYPE_EDGE_RISING. If two interrupts are provided, expected order is INT1 and INT2.
Required in this object (required): "compatible", "reg"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
gyroscope@69 {
compatible = "bosch,bmg160";
reg = <0x69>;
interrupt-parent = <&gpio6>;
interrupts = <18 IRQ_TYPE_EDGE_RISING>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)