Documentation / devicetree / bindings / iio / magnetometer / memsic,mmc5983.yaml


Based on kernel version 7.2. Page generated on 2026-08-20 08:41 EST.

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 53 54 55 56 57 58 59 60 61 62 63
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/iio/magnetometer/memsic,mmc5983.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: MEMSIC MMC5983MA 3-axis magnetic sensor

maintainers:
  - Vladislav Kulikov <vlad.kulikov.c@gmail.com>

properties:
  compatible:
    const: memsic,mmc5983

  reg:
    maxItems: 1

  interrupts:
    maxItems: 1

  vdd-supply:
    description: Regulator that provides power to the sensor

  vddio-supply:
    description: Regulator that provides power to the digital interface and INT pin

required:
  - compatible
  - reg
  - vdd-supply

allOf:
  - $ref: /schemas/spi/spi-peripheral-props.yaml#

unevaluatedProperties: false

examples:
  - |
    i2c {
        #address-cells = <1>;
        #size-cells = <0>;
 
        magnetometer@30 {
            compatible = "memsic,mmc5983";
            reg = <0x30>;
            vdd-supply = <&vdd_3v3_reg>;
            vddio-supply = <&vdd_3v3_reg>;
        };
    };
  - |
    spi {
        #address-cells = <1>;
        #size-cells = <0>;
 
        magnetometer@0 {
            compatible = "memsic,mmc5983";
            reg = <0>;
            spi-max-frequency = <10000000>;
            vdd-supply = <&vdd_3v3_reg>;
            vddio-supply = <&vdd_3v3_reg>;
        };
    };