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