64 lines
1.3 KiB
YAML
64 lines
1.3 KiB
YAML
# 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>;
|
|
};
|
|
};
|