# Lantiq SoC Serial To Parallel (STP) GPIO controller

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

> Device-tree binding reference for Lantiq SoC Serial To Parallel (STP) GPIO controller.

<!-- SPDX-License-Identifier: (GPL-2.0-only 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;gpio&#47;gpio&#45;stp&#45;xway&#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 Serial To Parallel (STP) is found on MIPS based Lantiq socs. It is a
peripheral controller used to drive external shift register cascades. At most
3 groups of 8 bits can be driven. The hardware is able to allow the DSL modem
and Ethernet PHYs to drive some bytes of the cascade automatically.</p>
</div>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;John Crispin &#60;john&#64;phrozen&#46;org&#62;&#34;</code></span>

<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;gpio&#64;&#91;0&#45;9a&#45;f&#93;&#43;&#36;&#34;</code></span>

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

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

**Exact value (<code>const</code>):** <span id="dt-1765195bf8e86c3ccec6"><code>&#34;lantiq&#44;gpio&#45;stp&#45;xway&#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-f5d51cae76398cdb9d95"></a>

### <code>gpio&#45;controller</code> — required here

<code>true</code> — No constraints added by this property rule.

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

### <code>&#35;gpio&#45;cells</code> — required here

<div id="dt-70b20397c3c73794f833">
<p style="white-space: pre-wrap">The first cell is the pin number and the second cell is used to specify consumer flags.</p>
</div>

**Exact value (<code>const</code>):** <span id="dt-8950f722147d2cd640b8"><code>2</code></span>

<a id="dt-85b4641325d59d677d16"></a>

### <code>lantiq&#44;shadow</code> — not listed as required here

<div id="dt-6612558c948cf112ccb7">
<p style="white-space: pre-wrap">The default value that we shall assume as already set on the shift register cascade.</p>
</div>

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

**Minimum value (<code>minimum</code>):** <span id="dt-a704c70599d94acba30a"><code>0</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-5c9f3e10ba48038aa137"><code>16777215</code></span>

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

### <code>lantiq&#44;groups</code> — not listed as required here

<div id="dt-92b9527d8ecf625b50a2">
<p style="white-space: pre-wrap">Set the 3 bit mask to select which of the 3 groups are enabled in the shift register cascade.</p>
</div>

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

**Minimum value (<code>minimum</code>):** <span id="dt-c2f575752fd15dbf4520"><code>0</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-4bc63e18f3d01fc5deb1"><code>7</code></span>

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

### <code>lantiq&#44;dsl</code> — not listed as required here

<div id="dt-5c0b3f246b4a8775a580">
<p style="white-space: pre-wrap">The dsl core can control the 2 LSBs of the gpio cascade. This 2 bit property can enable this feature.</p>
</div>

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

**Minimum value (<code>minimum</code>):** <span id="dt-1b7407f13e155dbff2d2"><code>0</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-e513a4dc39dda7ba8119"><code>3</code></span>

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

### <code>lantiq&#44;rising</code> — not listed as required here

<div id="dt-6468283d96f69e4defeb">
<p style="white-space: pre-wrap">Use rising instead of falling edge for the shift register.</p>
</div>

**Value type (<code>type</code>):** <span id="dt-e5e21b4c03a11494e6e9"><code>&#34;boolean&#34;</code></span>

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

## Properties matching a name pattern (<code>patternProperties</code>)

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

### <code>&#94;lantiq&#44;phy&#91;1&#45;4&#93;&#36;</code> — name matches this regular expression

<div id="dt-5f481192159f618a7ba2">
<p style="white-space: pre-wrap">The gphy core can control 3 bits of the gpio cascade. In the xRX200 family phy[1-2] are available, in xRX330 phy[1-3] and in XRX330 phy[1-4].</p>
</div>

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

**Minimum value (<code>minimum</code>):** <span id="dt-b4e64d91723ac5cff771"><code>0</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-fe3738e69acde1680f1a"><code>7</code></span>

**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>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;gpio&#45;controller&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;&#35;gpio&#45;cells&#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">gpio@e100bb0 {
    compatible = "lantiq,gpio-stp-xway";
    reg = &lt;0xE100BB0 0x40&gt;;
    #gpio-cells = &lt;2&gt;;
    gpio-controller;

    pinctrl-0 = &lt;&amp;stp_pins&gt;;
    pinctrl-names = "default";

    lantiq,shadow = &lt;0xffffff&gt;;
    lantiq,groups = &lt;0x7&gt;;
    lantiq,dsl = &lt;0x3&gt;;
    lantiq,phy1 = &lt;0x7&gt;;
    lantiq,phy2 = &lt;0x7&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-only OR BSD-2-Clause)</span></p>

</details>
