Documentation / devicetree / bindings / iio / magnetometer / qstcorp,qmc6308.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
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/iio/magnetometer/qstcorp,qmc6308.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: QST QMC6308 3-Axis Magnetic Sensor

maintainers:
  - Jorijn van der Graaf <jorijnvdgraaf@catcrafts.net>

description:
  QST QMC6308 3-axis anisotropic magnetoresistive (AMR) magnetic sensor
  on I2C bus, with a single supply and no interrupt pin.
  https://qstcorp.com/upload/pdf/202202/13-52-15%20QMC6308%20Datasheet%20Rev.%20F(1).pdf

properties:
  compatible:
    const: qstcorp,qmc6308

  reg:
    maxItems: 1

  vdd-supply: true

  mount-matrix: true

required:
  - compatible
  - reg
  - vdd-supply

additionalProperties: false

examples:
  - |
    i2c {
        #address-cells = <1>;
        #size-cells = <0>;
 
        magnetometer@2c {
            compatible = "qstcorp,qmc6308";
            reg = <0x2c>;
            vdd-supply = <&vdd_1v8_reg>;
        };
    };
...