Asahi Kasei AK8974 magnetometer sensor

Schema identifier ($id): "http://devicetree.org/schemas/iio/magnetometer/asahi-kasei,ak8974.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "alps,hscdtd008a", "asahi-kasei,ak8974"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

Data ready (DRDY) and interrupt (INT1) lines from the chip. The DRDY interrupt must be placed first. The interrupts can be triggered on rising or falling edges.

avdd-supply — not listed as required here #

true — No constraints added by this property rule.

dvdd-supply — not listed as required here #

true — No constraints added by this property rule.

mount-matrix — not listed as required here #

true — No constraints added by this property rule.

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg"

Examples (examples) #

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

    magnetometer@f {
        compatible = "asahi-kasei,ak8974";
        reg = <0x0f>;
        avdd-supply = <&foo_reg>;
        dvdd-supply = <&bar_reg>;
        interrupts = <0 IRQ_TYPE_EDGE_RISING>,
                     <1 IRQ_TYPE_EDGE_RISING>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Edit this page