0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/magnetometer/fsl,mag3110.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Freescale MAG3110 magnetometer sensor
0008
0009 maintainers:
0010 - Anson Huang <Anson.Huang@nxp.com>
0011
0012 properties:
0013 compatible:
0014 const: fsl,mag3110
0015
0016 reg:
0017 maxItems: 1
0018
0019 interrupts:
0020 maxItems: 1
0021
0022 vdd-supply: true
0023
0024 vddio-supply: true
0025
0026 additionalProperties: false
0027
0028 required:
0029 - compatible
0030 - reg
0031
0032 examples:
0033 - |
0034 #include <dt-bindings/interrupt-controller/irq.h>
0035 i2c {
0036 #address-cells = <1>;
0037 #size-cells = <0>;
0038
0039 magnetometer@e {
0040 compatible = "fsl,mag3110";
0041 reg = <0x0e>;
0042 pinctrl-names = "default";
0043 pinctrl-0 = <&pinctrl_i2c3_mag3110_int>;
0044 interrupt-parent = <&gpio3>;
0045 interrupts = <16 IRQ_TYPE_EDGE_RISING>;
0046 };
0047 };
0048 ...