Path: blob/master/Documentation/devicetree/bindings/iio/magnetometer/yamaha,yas530.yaml
26309 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/iio/magnetometer/yamaha,yas530.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Yamaha YAS530 family of magnetometer sensors78maintainers:9- Linus Walleij <linus.walleij@linaro.org>1011description:12The Yamaha YAS530 magnetometers is a line of 3-axis magnetometers13first introduced by Yamaha in 2009 with the YAS530. They are successors14of Yamaha's first magnetometer YAS529. Over the years this magnetometer15has been miniaturized and appeared in a number of different variants.1617properties:18$nodename:19pattern: '^magnetometer@[0-9a-f]+$'2021compatible:22items:23- enum:24- yamaha,yas53025- yamaha,yas53226- yamaha,yas53327- yamaha,yas53528- yamaha,yas53629- yamaha,yas53730- yamaha,yas5393132reg:33maxItems: 13435reset-gpios:36maxItems: 137description: The YAS530 sensor has a RSTN pin used to reset38the logic inside the sensor. This GPIO line should connect39to that pin and be marked as GPIO_ACTIVE_LOW.4041interrupts:42maxItems: 143description: Interrupt for INT pin for interrupt generation.44The polarity, whether the interrupt is active on the rising45or the falling edge, is software-configurable in the hardware.4647vdd-supply:48description: An optional regulator providing core power supply49on the VDD pin, typically 1.8 V or 3.0 V.5051iovdd-supply:52description: An optional regulator providing I/O power supply53for the I2C interface on the IOVDD pin, typically 1.8 V.5455mount-matrix:56description: An optional 3x3 mounting rotation matrix.5758allOf:59- if:60not:61properties:62compatible:63items:64const: yamaha,yas53065then:66properties:67reset-gpios: false6869- if:70properties:71compatible:72items:73const: yamaha,yas53974then:75properties:76interrupts: false7778required:79- compatible80- reg8182additionalProperties: false8384examples:85- |86#include <dt-bindings/interrupt-controller/irq.h>87#include <dt-bindings/gpio/gpio.h>88i2c-0 {89#address-cells = <1>;90#size-cells = <0>;9192magnetometer@2e {93compatible = "yamaha,yas530";94reg = <0x2e>;95vdd-supply = <&ldo1_reg>;96iovdd-supply = <&ldo2_reg>;97reset-gpios = <&gpio6 12 GPIO_ACTIVE_LOW>;98interrupts = <13 IRQ_TYPE_EDGE_RISING>;99};100};101102i2c-1 {103#address-cells = <1>;104#size-cells = <0>;105106magnetometer@2e {107compatible = "yamaha,yas539";108reg = <0x2e>;109vdd-supply = <&ldo1_reg>;110};111};112113114