0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/magnetometer/asahi-kasei,ak8974.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Asahi Kasei AK8974 magnetometer sensor
0008
0009 maintainers:
0010 - Linus Walleij <linus.walleij@linaro.org>
0011
0012 properties:
0013 compatible:
0014 enum:
0015 - alps,hscdtd008a
0016 - asahi-kasei,ak8974
0017
0018 reg:
0019 maxItems: 1
0020
0021 interrupts:
0022 minItems: 1
0023 maxItems: 2
0024 description: |
0025 Data ready (DRDY) and interrupt (INT1) lines from the chip. The DRDY
0026 interrupt must be placed first. The interrupts can be triggered on
0027 rising or falling edges.
0028
0029 avdd-supply: true
0030
0031 dvdd-supply: true
0032
0033 mount-matrix: true
0034
0035 additionalProperties: false
0036
0037 required:
0038 - compatible
0039 - reg
0040
0041 examples:
0042 - |
0043 #include <dt-bindings/interrupt-controller/irq.h>
0044 i2c {
0045 #address-cells = <1>;
0046 #size-cells = <0>;
0047
0048 magnetometer@f {
0049 compatible = "asahi-kasei,ak8974";
0050 reg = <0x0f>;
0051 avdd-supply = <&foo_reg>;
0052 dvdd-supply = <&bar_reg>;
0053 interrupts = <0 IRQ_TYPE_EDGE_RISING>,
0054 <1 IRQ_TYPE_EDGE_RISING>;
0055 };
0056 };
0057 ...