xref: /freebsd/sys/contrib/device-tree/Bindings/iio/magnetometer/fsl,mag3110.yaml (revision 0e8011faf58b743cc652e3b2ad0f7671227610df)
15def4c47SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
25def4c47SEmmanuel Vadot%YAML 1.2
35def4c47SEmmanuel Vadot---
45def4c47SEmmanuel Vadot$id: http://devicetree.org/schemas/iio/magnetometer/fsl,mag3110.yaml#
55def4c47SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
65def4c47SEmmanuel Vadot
75def4c47SEmmanuel Vadottitle: Freescale MAG3110 magnetometer sensor
85def4c47SEmmanuel Vadot
95def4c47SEmmanuel Vadotmaintainers:
10*0e8011faSEmmanuel Vadot  - Jonathan Cameron <jic23@kernel.org>
115def4c47SEmmanuel Vadot
125def4c47SEmmanuel Vadotproperties:
135def4c47SEmmanuel Vadot  compatible:
145def4c47SEmmanuel Vadot    const: fsl,mag3110
155def4c47SEmmanuel Vadot
165def4c47SEmmanuel Vadot  reg:
175def4c47SEmmanuel Vadot    maxItems: 1
185def4c47SEmmanuel Vadot
195def4c47SEmmanuel Vadot  interrupts:
205def4c47SEmmanuel Vadot    maxItems: 1
215def4c47SEmmanuel Vadot
225def4c47SEmmanuel Vadot  vdd-supply: true
235def4c47SEmmanuel Vadot
245def4c47SEmmanuel Vadot  vddio-supply: true
255def4c47SEmmanuel Vadot
265def4c47SEmmanuel VadotadditionalProperties: false
275def4c47SEmmanuel Vadot
285def4c47SEmmanuel Vadotrequired:
295def4c47SEmmanuel Vadot  - compatible
305def4c47SEmmanuel Vadot  - reg
315def4c47SEmmanuel Vadot
325def4c47SEmmanuel Vadotexamples:
335def4c47SEmmanuel Vadot  - |
345def4c47SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
355def4c47SEmmanuel Vadot    i2c {
365def4c47SEmmanuel Vadot        #address-cells = <1>;
375def4c47SEmmanuel Vadot        #size-cells = <0>;
385def4c47SEmmanuel Vadot
395def4c47SEmmanuel Vadot        magnetometer@e {
405def4c47SEmmanuel Vadot            compatible = "fsl,mag3110";
415def4c47SEmmanuel Vadot            reg = <0x0e>;
425def4c47SEmmanuel Vadot            pinctrl-names = "default";
435def4c47SEmmanuel Vadot            pinctrl-0 = <&pinctrl_i2c3_mag3110_int>;
445def4c47SEmmanuel Vadot            interrupt-parent = <&gpio3>;
455def4c47SEmmanuel Vadot            interrupts = <16 IRQ_TYPE_EDGE_RISING>;
465def4c47SEmmanuel Vadot        };
475def4c47SEmmanuel Vadot    };
485def4c47SEmmanuel Vadot...
49