# Yamaha YAS530 family of magnetometer sensors

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / magnetometer_

> Device-tree binding reference for Yamaha YAS530 family of magnetometer sensors.

<!-- SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -->


<a id="dt-root"></a>

**Schema identifier (<code>&#36;id</code>):** <span id="dt-09f478f44eb202ea573e"><code>&#34;http&#58;&#47;&#47;devicetree&#46;org&#47;schemas&#47;iio&#47;magnetometer&#47;yamaha&#44;yas530&#46;yaml&#35;&#34;</code></span>

**Schema dialect (<code>&#36;schema</code>):** <span id="dt-dcb375baab6014763a68"><code>&#34;http&#58;&#47;&#47;devicetree&#46;org&#47;meta&#45;schemas&#47;core&#46;yaml&#35;&#34;</code></span>

<a id="dt-e46b5a5dd81dbd751c9f"></a>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Linus Walleij &#60;linusw&#64;kernel&#46;org&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The Yamaha YAS530 magnetometers is a line of 3-axis magnetometers first introduced by Yamaha in 2009 with the YAS530. They are successors of Yamaha's first magnetometer YAS529. Over the years this magnetometer has been miniaturized and appeared in a number of different variants.</p>
</div>

<a id="dt-e1f655ed0ff4d595dadc"></a>

## Properties and child nodes (<code>properties</code>)

<a id="dt-5155525ecd924660ec0a"></a>

### <code>&#36;nodename</code> — not listed as required here

**String pattern (<code>pattern</code>):** <span id="dt-0b2111a24a010949ece7"><code>&#34;&#94;magnetometer&#64;&#91;0&#45;9a&#45;f&#93;&#43;&#36;&#34;</code></span>

<a id="dt-5c1d81699dcbe840de83"></a>

### <code>compatible</code> — required here

<a id="dt-cc3709943397035582d2"></a>

#### Array item rules (<code>items</code>)

<a id="dt-fec97e71a4359503ae6e"></a>

**Item 1**

> **Allowed values (<code>enum</code>):** <a id="dt-851ace07a50c83495949"></a> <span id="dt-63b688f2ccd82724cb8f"><code>&#34;yamaha&#44;yas530&#34;</code></span>, <span id="dt-2d97ae0f34d14dd8e72b"><code>&#34;yamaha&#44;yas532&#34;</code></span>, <span id="dt-9802844ed4869452d348"><code>&#34;yamaha&#44;yas533&#34;</code></span>, <span id="dt-24a1253e29125294194d"><code>&#34;yamaha&#44;yas535&#34;</code></span>, <span id="dt-6eb9cf2b3f55b257fde4"><code>&#34;yamaha&#44;yas536&#34;</code></span>, <span id="dt-50ce8af78a6d0f3b7b82"><code>&#34;yamaha&#44;yas537&#34;</code></span>, <span id="dt-8be3d578ae616ce6273c"><code>&#34;yamaha&#44;yas539&#34;</code></span>

<a id="dt-9c1635fdb65d87e33d77"></a>

### <code>reg</code> — required here

**Maximum number of items (<code>maxItems</code>):** <span id="dt-71421d35675d9a533ad2"><code>1</code></span>

<a id="dt-fdf18029f1f43a541a62"></a>

### <code>reset&#45;gpios</code> — not listed as required here

**Maximum number of items (<code>maxItems</code>):** <span id="dt-140c9736042c6903f7ff"><code>1</code></span>

<div id="dt-451564af2b6998692dea">
<p style="white-space: pre-wrap">The YAS530 sensor has a RSTN pin used to reset the logic inside the sensor. This GPIO line should connect to that pin and be marked as GPIO_ACTIVE_LOW.</p>
</div>

<a id="dt-c2de09e7f7fd211b679d"></a>

### <code>interrupts</code> — not listed as required here

**Maximum number of items (<code>maxItems</code>):** <span id="dt-b7823fb65b2f27642d26"><code>1</code></span>

<div id="dt-b3ddec0f69e9f0c0dc40">
<p style="white-space: pre-wrap">Interrupt for INT pin for interrupt generation. The polarity, whether the interrupt is active on the rising or the falling edge, is software-configurable in the hardware.</p>
</div>

<a id="dt-236855bde9eebcc9d904"></a>

### <code>vdd&#45;supply</code> — not listed as required here

<div id="dt-bc3e69b335e23d461899">
<p style="white-space: pre-wrap">An optional regulator providing core power supply on the VDD pin, typically 1.8 V or 3.0 V.</p>
</div>

<a id="dt-79d466fdcccc88d28b5b"></a>

### <code>iovdd&#45;supply</code> — not listed as required here

<div id="dt-2944c46a7e888b63a216">
<p style="white-space: pre-wrap">An optional regulator providing I/O power supply for the I2C interface on the IOVDD pin, typically 1.8 V.</p>
</div>

<a id="dt-86e43757fd8eca6a896a"></a>

### <code>mount&#45;matrix</code> — not listed as required here

<div id="dt-4647e7899506a53144c9">
<p style="white-space: pre-wrap">An optional 3x3 mounting rotation matrix.</p>
</div>

<a id="dt-935ee547587f3e75de61"></a>

## All of these rules must match (<code>allOf</code>)

<a id="dt-d33de94ac1d3652cd22a"></a>

### Rule 1

> <a id="dt-3bbb54dfa1f05dfb4d25"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-17723ad0bbc7f42a3e70"></a>
> >
> > **This rule must not match (<code>not</code>)**
> >
> > > <a id="dt-3defb1f4dc0d6847a043"></a>
> > >
> > > **Properties and child nodes (<code>properties</code>)**
> > >
> > > <a id="dt-0e5d4207b2374940f9d3"></a>
> > >
> > > **<code>compatible</code> — not listed as required here**
> > >
> > > <a id="dt-34dff455c687106bf44f"></a>
> > >
> > > **Array item rules (<code>items</code>)**
> > >
> > > > **Exact value (<code>const</code>):** <span id="dt-b204efcd93136626b123"><code>&#34;yamaha&#44;yas530&#34;</code></span>
>
> <a id="dt-1ba25143802b75b74702"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-b212c2ef78c22fab2e20"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-a7d7e9bb152e9982ff34"></a>
> >
> > **<code>reset&#45;gpios</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.

<a id="dt-22ca5ec5b89308748ecc"></a>

### Rule 2

> <a id="dt-ffbf5afb799d5f07b3e1"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-05d9c37a1275e72a170e"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-e9866824361c1aee7933"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-9b544d6733fcfbb3bd2b"></a>
> >
> > **Array item rules (<code>items</code>)**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-c36c49e047d0c326d2f3"><code>&#34;yamaha&#44;yas539&#34;</code></span>
>
> <a id="dt-0971d01a730acc20e97a"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-26d1c84fcc55a7d91dea"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-46e318450db8639361ba"></a>
> >
> > **<code>interrupts</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;compatible&#34;</code></span>, <span id="dt-ee7433925c1528c16b99"><code>&#34;reg&#34;</code></span>

<a id="dt-738c4b4f9e483441138b"></a>

## Properties not matched by properties or patternProperties in this schema (<code>additionalProperties</code>)

<code>false</code>

Not allowed by this rule.

<a id="dt-1a130cabaa8a47b058bf"></a>

## Examples (<code>examples</code>)

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">#include &lt;dt-bindings/interrupt-controller/irq.h&gt;
#include &lt;dt-bindings/gpio/gpio.h&gt;
i2c-0 {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    magnetometer@2e {
        compatible = "yamaha,yas530";
        reg = &lt;0x2e&gt;;
        vdd-supply = &lt;&amp;ldo1_reg&gt;;
        iovdd-supply = &lt;&amp;ldo2_reg&gt;;
        reset-gpios = &lt;&amp;gpio6 12 GPIO_ACTIVE_LOW&gt;;
        interrupts = &lt;13 IRQ_TYPE_EDGE_RISING&gt;;
    };
};

i2c-1 {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    magnetometer@2e {
        compatible = "yamaha,yas539";
        reg = &lt;0x2e&gt;;
        vdd-supply = &lt;&amp;ldo1_reg&gt;;
    };
};
</code></pre>

## Source notes

<details>
<summary>Annotations retained from the schema source</summary>

<p id="dt-comment-0"><strong>Line 1:</strong> <span> SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)</span></p>

</details>
