# RS485 serial communications

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Serial bindings_

> Device-tree binding reference for RS485 serial communications.

<!-- SPDX-License-Identifier: GPL-2.0 -->


<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;serial&#47;rs485&#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>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The RTS signal is capable of automatically controlling line direction for the built-in half-duplex mode. The properties described hereafter shall be given to a half-duplex capable UART node.</p>
</div>

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

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

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

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

### <code>rs485&#45;rts&#45;delay</code> — not listed as required here

<div id="dt-4ffca3185375b71fa065">
<p style="white-space: pre-wrap">prop-encoded-array &lt;a b&gt;</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-a4c4e953192361fc91b2">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32&#45;array</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-03a03f95a666fe4b033c>)</span>

<a id="dt-922701da3077d83f7760"></a>

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

<a id="dt-216c740dd936ee763c7c"></a>

**Item 1**

> <div id="dt-dfc0dccc3b01edb7bb0f">
> <p style="white-space: pre-wrap">Delay between rts signal and beginning of data sent in milliseconds. It corresponds to the delay before sending data.</p>
> </div>
>
> **Default value (<code>default</code>):** <span id="dt-d75ebd2a88d78b1371e3"><code>0</code></span>
>
> **Maximum value (<code>maximum</code>):** <span id="dt-81e23a887f663fa399d8"><code>100</code></span>

<a id="dt-7043a71b4f3706e47d3b"></a>

**Item 2**

> <div id="dt-f32367fcf41e69f6fdc0">
> <p style="white-space: pre-wrap">Delay between end of data sent and rts signal in milliseconds. It corresponds to the delay after sending data and actual release of the line.</p>
> </div>
>
> **Default value (<code>default</code>):** <span id="dt-77743cc9cd46bcc46db6"><code>0</code></span>
>
> **Maximum value (<code>maximum</code>):** <span id="dt-25bb36dff35ac9916e5b"><code>100</code></span>

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

### <code>rs485&#45;rts&#45;active&#45;high</code> — not listed as required here

<div id="dt-a8e3c36eec53898c0ae7">
<p style="white-space: pre-wrap">drive RTS high when sending (this is the default).</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-60bd89a7d2d9c222fa32">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;flag</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-4496aa5cdf2440415eba>)</span>

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

### <code>rs485&#45;rts&#45;active&#45;low</code> — not listed as required here

<div id="dt-e7844ca33cb74848182e">
<p style="white-space: pre-wrap">drive RTS low when sending (default is high).</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-6284529fa391d4d4d6c5">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;flag</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-4496aa5cdf2440415eba>)</span>

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

### <code>rs485&#45;rx&#45;active&#45;high</code> — not listed as required here

<div id="dt-21581a337023dd28c6fd">
<p style="white-space: pre-wrap">Polarity of receiver enable signal (when separate from RTS). True indicates active high (default is low).</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-d64c762da991a3fee2ae">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;flag</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-4496aa5cdf2440415eba>)</span>

<a id="dt-02deace2657a25665efe"></a>

### <code>linux&#44;rs485&#45;enabled&#45;at&#45;boot&#45;time</code> — not listed as required here

<div id="dt-b60101de774495c14a43">
<p style="white-space: pre-wrap">enables the rs485 feature at boot time. It can be disabled later with proper ioctl.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-733de0e4706d111227a6">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;flag</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-4496aa5cdf2440415eba>)</span>

<a id="dt-060af7f6a6dc06366e4a"></a>

### <code>rs485&#45;rx&#45;during&#45;tx</code> — not listed as required here

<div id="dt-28a9b98210aebc63a758">
<p style="white-space: pre-wrap">enables the receiving of data even while sending data.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-d99112fec3caf432ad72">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;flag</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-4496aa5cdf2440415eba>)</span>

<a id="dt-94cba41d04bab37c9c36"></a>

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

<div id="dt-65567b1ca7f37bee3ce8">
<p style="white-space: pre-wrap">GPIO pin to enable RS485 bus termination.</p>
</div>

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

<a id="dt-1067cc86f36b1460f19a"></a>

### <code>rs485&#45;rx&#45;during&#45;tx&#45;gpios</code> — not listed as required here

<div id="dt-c1b780a0a1c834f2923c">
<p style="white-space: pre-wrap">Output GPIO pin that sets the state of rs485-rx-during-tx. This signal can be used to control the RX part of an RS485 transceiver. Thereby the active state enables RX during TX.</p>
</div>

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

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

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

<code>true</code>

Allowed by this rule.

## 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</span></p>

</details>
