xref: /freebsd/sys/contrib/device-tree/Bindings/iio/magnetometer/voltafield,af8133j.yaml (revision 01950c46b8155250f64374fb72fc11faa44bf099)
1*01950c46SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2*01950c46SEmmanuel Vadot%YAML 1.2
3*01950c46SEmmanuel Vadot---
4*01950c46SEmmanuel Vadot$id: http://devicetree.org/schemas/iio/magnetometer/voltafield,af8133j.yaml#
5*01950c46SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*01950c46SEmmanuel Vadot
7*01950c46SEmmanuel Vadottitle: Voltafield AF8133J magnetometer sensor
8*01950c46SEmmanuel Vadot
9*01950c46SEmmanuel Vadotmaintainers:
10*01950c46SEmmanuel Vadot  - Ondřej Jirman <megi@xff.cz>
11*01950c46SEmmanuel Vadot
12*01950c46SEmmanuel Vadotproperties:
13*01950c46SEmmanuel Vadot  compatible:
14*01950c46SEmmanuel Vadot    const: voltafield,af8133j
15*01950c46SEmmanuel Vadot
16*01950c46SEmmanuel Vadot  reg:
17*01950c46SEmmanuel Vadot    maxItems: 1
18*01950c46SEmmanuel Vadot
19*01950c46SEmmanuel Vadot  reset-gpios:
20*01950c46SEmmanuel Vadot    description:
21*01950c46SEmmanuel Vadot      A signal for active low reset input of the sensor. (optional; if not
22*01950c46SEmmanuel Vadot      used, software reset over I2C will be used instead)
23*01950c46SEmmanuel Vadot
24*01950c46SEmmanuel Vadot  avdd-supply:
25*01950c46SEmmanuel Vadot    description:
26*01950c46SEmmanuel Vadot      A regulator that provides AVDD power (Working power, usually 3.3V) to
27*01950c46SEmmanuel Vadot      the sensor.
28*01950c46SEmmanuel Vadot
29*01950c46SEmmanuel Vadot  dvdd-supply:
30*01950c46SEmmanuel Vadot    description:
31*01950c46SEmmanuel Vadot      A regulator that provides DVDD power (Digital IO power, 1.8V - AVDD)
32*01950c46SEmmanuel Vadot      to the sensor.
33*01950c46SEmmanuel Vadot
34*01950c46SEmmanuel Vadot  mount-matrix:
35*01950c46SEmmanuel Vadot    description: An optional 3x3 mounting rotation matrix.
36*01950c46SEmmanuel Vadot
37*01950c46SEmmanuel Vadotrequired:
38*01950c46SEmmanuel Vadot  - compatible
39*01950c46SEmmanuel Vadot  - reg
40*01950c46SEmmanuel Vadot  - avdd-supply
41*01950c46SEmmanuel Vadot  - dvdd-supply
42*01950c46SEmmanuel Vadot
43*01950c46SEmmanuel VadotadditionalProperties: false
44*01950c46SEmmanuel Vadot
45*01950c46SEmmanuel Vadotexamples:
46*01950c46SEmmanuel Vadot  - |
47*01950c46SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
48*01950c46SEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
49*01950c46SEmmanuel Vadot    i2c {
50*01950c46SEmmanuel Vadot        #address-cells = <1>;
51*01950c46SEmmanuel Vadot        #size-cells = <0>;
52*01950c46SEmmanuel Vadot
53*01950c46SEmmanuel Vadot        magnetometer@1c {
54*01950c46SEmmanuel Vadot            compatible = "voltafield,af8133j";
55*01950c46SEmmanuel Vadot            reg = <0x1c>;
56*01950c46SEmmanuel Vadot            avdd-supply = <&reg_dldo1>;
57*01950c46SEmmanuel Vadot            dvdd-supply = <&reg_dldo1>;
58*01950c46SEmmanuel Vadot            reset-gpios = <&pio 1 1 GPIO_ACTIVE_LOW>;
59*01950c46SEmmanuel Vadot        };
60*01950c46SEmmanuel Vadot    };
61