xref: /linux/Documentation/devicetree/bindings/iio/magnetometer/qstcorp,qmc5883l.yaml (revision 67f8bc848ee31831336bd478e57d2f993551902e)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/iio/magnetometer/qstcorp,qmc5883l.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: QST QMC5883L 3-Axis Magnetic Sensor
8
9maintainers:
10  - Siratul Islam <siratul.islam@linux.dev>
11
12description: |
13  QST QMC5883L 3-Axis Magnetic Sensor on I2C bus.
14  https://www.qstcorp.com/upload/pdf/202512/13-52-04%20QMC5883L%20Datasheet%20Rev.%20B.pdf
15
16properties:
17  compatible:
18    enum:
19      - qstcorp,qmc5883l
20
21  reg:
22    maxItems: 1
23
24  interrupts:
25    maxItems: 1
26
27  vdd-supply: true
28
29  vddio-supply: true
30
31additionalProperties: false
32
33required:
34  - compatible
35  - reg
36  - vdd-supply
37  - vddio-supply
38
39examples:
40  - |
41    i2c {
42        #address-cells = <1>;
43        #size-cells = <0>;
44
45        magnetometer@d {
46            compatible = "qstcorp,qmc5883l";
47            reg = <0x0d>;
48            vdd-supply = <&vdd_3v3_reg>;
49            vddio-supply = <&vdd_3v3_reg>;
50        };
51    };
52...
53