0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/magnetometer/bosch,bmc150_magn.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Bosch BMC150 magnetometer sensor
0008
0009 maintainers:
0010 - Jonathan Cameron <jic23@kernel.org>
0011
0012 description: |
0013 Supports a range of parts, some of which form part of a multi die
0014 package that also contains other sensors. The interface is independent
0015 however, so a separate driver is used to support the magnetometer part.
0016 Datasheet at:
0017 http://ae-bst.resource.bosch.com/media/products/dokumente/bmc150/BST-BMC150-DS000-04.pdf
0018
0019 properties:
0020 compatible:
0021 description:
0022 Note the bmm150_magn is a deprecated compatible as this part contains only
0023 a magnetometer.
0024 enum:
0025 - bosch,bmc150_magn
0026 - bosch,bmc156_magn
0027 - bosch,bmm150
0028 - bosch,bmm150_magn
0029
0030 reg:
0031 maxItems: 1
0032
0033 vdd-supply: true
0034 vddio-supply: true
0035
0036 interrupts:
0037 maxItems: 1
0038
0039 additionalProperties: false
0040
0041 required:
0042 - compatible
0043 - reg
0044
0045 examples:
0046 - |
0047 i2c {
0048 #address-cells = <1>;
0049 #size-cells = <0>;
0050
0051 magnetometer@12 {
0052 compatible = "bosch,bmc150_magn";
0053 reg = <0x12>;
0054 interrupt-parent = <&gpio1>;
0055 interrupts = <0 1>;
0056 };
0057 };
0058 ...