Documentation/devicetree/bindings/iio/magnetometer/fsl,mag3110.yaml

Source file repositories/reference/linux-study-clean/Documentation/devicetree/bindings/iio/magnetometer/fsl,mag3110.yaml

File Facts

System
Linux kernel
Corpus path
Documentation/devicetree/bindings/iio/magnetometer/fsl,mag3110.yaml
Extension
.yaml
Size
939 bytes
Lines
49
Domain
Support Tooling And Documentation
Bucket
Documentation
Inferred role
Support Tooling And Documentation: configuration, schema, or hardware description
Status
atlas-only

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/iio/magnetometer/fsl,mag3110.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Freescale MAG3110 magnetometer sensor

maintainers:
  - Jonathan Cameron <jic23@kernel.org>

properties:
  compatible:
    const: fsl,mag3110

  reg:
    maxItems: 1

  interrupts:
    maxItems: 1

  vdd-supply: true

  vddio-supply: true

additionalProperties: false

required:
  - compatible
  - reg

examples:
  - |
    #include <dt-bindings/interrupt-controller/irq.h>
    i2c {
        #address-cells = <1>;
        #size-cells = <0>;

        magnetometer@e {
            compatible = "fsl,mag3110";
            reg = <0x0e>;
            pinctrl-names = "default";
            pinctrl-0 = <&pinctrl_i2c3_mag3110_int>;
            interrupt-parent = <&gpio3>;
            interrupts = <16 IRQ_TYPE_EDGE_RISING>;
        };
    };
...

Annotation

Implementation Notes