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