Bosch BMC150 magnetometer sensor

Schema identifier ($id): "http://devicetree.org/schemas/iio/magnetometer/bosch,bmc150_magn.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Jonathan Cameron <jic23@kernel.org>"

Supports a range of parts, some of which form part of a multi die package that also contains other sensors. The interface is independent however, so a separate driver is used to support the magnetometer part. Datasheet at: http://ae-bst.resource.bosch.com/media/products/dokumente/bmc150/BST-BMC150-DS000-04.pdf

Properties and child nodes (properties) #

compatible — required here #

Note the bmm150_magn is a deprecated compatible as this part contains only a magnetometer.

Allowed values (enum): "bosch,bmc150_magn", "bosch,bmc156_magn", "bosch,bmm150", "bosch,bmm150_magn"

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.

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

mount-matrix — not listed as required here #

an optional 3x3 mounting rotation matrix.

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg"

Examples (examples) #

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    magnetometer@12 {
        compatible = "bosch,bmc150_magn";
        reg = <0x12>;
        interrupt-parent = <&gpio1>;
        interrupts = <0 1>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Edit this page