Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: iio: magnetometer: Add Voltafield AF8133J

Voltafield AF8133J is a simple magnetometer sensor produced by Voltafield
Technology Corp, with dual power supplies (one for core and one for I/O)
and active-low reset pin.

The sensor has configurable range 1.2 - 2.2 mT and a software controlled
standby mode.

Add a device tree binding for it.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Signed-off-by: Ondřej Jirman <megi@xff.cz>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20240222011341.3232645-3-megi@xff.cz
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Icenowy Zheng and committed by
Jonathan Cameron
3b2eaffd 14166bac

+60
+60
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 + };