Documentation / devicetree / bindings / iio / magnetometer / qstcorp,qmc5883l.yaml


Based on kernel version 7.3. Page generated on 2026-10-19 13:17 EDT.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/iio/magnetometer/qstcorp,qmc5883l.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: QST QMC5883L 3-Axis Magnetic Sensor

maintainers:
  - Siratul Islam <siratul.islam@linux.dev>

description: |
  QST QMC5883L 3-Axis Magnetic Sensor on I2C bus.
  https://www.qstcorp.com/upload/pdf/202512/13-52-04%20QMC5883L%20Datasheet%20Rev.%20B.pdf

properties:
  compatible:
    enum:
      - qstcorp,qmc5883l

  reg:
    maxItems: 1

  interrupts:
    maxItems: 1

  vdd-supply: true

  vddio-supply: true

additionalProperties: false

required:
  - compatible
  - reg
  - vdd-supply
  - vddio-supply

examples:
  - |
    i2c {
        #address-cells = <1>;
        #size-cells = <0>;
 
        magnetometer@d {
            compatible = "qstcorp,qmc5883l";
            reg = <0x0d>;
            vdd-supply = <&vdd_3v3_reg>;
            vddio-supply = <&vdd_3v3_reg>;
        };
    };
...