61 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/iio/magnetometer/voltafield,af8133j.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Voltafield AF8133J magnetometer sensor8 9maintainers:10 - Ondřej Jirman <megi@xff.cz>11 12properties:13 compatible:14 const: voltafield,af8133j15 16 reg:17 maxItems: 118 19 reset-gpios:20 description:21 A signal for active low reset input of the sensor. (optional; if not22 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) to27 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 37required:38 - compatible39 - reg40 - avdd-supply41 - dvdd-supply42 43additionalProperties: false44 45examples: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 = <®_dldo1>;57 dvdd-supply = <®_dldo1>;58 reset-gpios = <&pio 1 1 GPIO_ACTIVE_LOW>;59 };60 };61