# Lantiq PEF2256

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

> Device-tree binding reference for Lantiq PEF2256.

<!-- 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;net&#47;lantiq&#44;pef2256&#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;Herve Codina &#60;herve&#46;codina&#64;bootlin&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The Lantiq PEF2256, also known as Infineon PEF2256 or FALC56, is a framer and line interface component designed to fulfill all required interfacing between an analog E1/T1/J1 line and the digital PCM system highway/H.100 bus.</p>
</div>

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

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

<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**

> **Exact value (<code>const</code>):** <span id="dt-aaadfb6b044cada8472e"><code>&#34;lantiq&#44;pef2256&#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-4e9a371963ac013ad39d"></a>

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

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

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

<a id="dt-41adf3ed8101eca13466"></a>

**Item 1**

> <div id="dt-4cfd4c1642ba13c357d6">
> <p style="white-space: pre-wrap">Master Clock</p>
> </div>

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

**Item 2**

> <div id="dt-6b79aebfd2287d4aeab8">
> <p style="white-space: pre-wrap">System Clock Receive</p>
> </div>

<a id="dt-2e04c77836db3f7805be"></a>

**Item 3**

> <div id="dt-98e44cf6c35fb1f8c6f9">
> <p style="white-space: pre-wrap">System Clock Transmit</p>
> </div>

<a id="dt-041d7cd76b652a5de06a"></a>

### <code>clock&#45;names</code> — required here

<a id="dt-3d1de59bdfddccf00eed"></a>

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

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

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-3403d68873725c15739a"><code>&#34;mclk&#34;</code></span>

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

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-0298e5f353a64a09a8a6"><code>&#34;sclkr&#34;</code></span>

<a id="dt-261be8310c899fd46631"></a>

**Item 3**

> **Exact value (<code>const</code>):** <span id="dt-ad55fa67f3e765bf6ab6"><code>&#34;sclkx&#34;</code></span>

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

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

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

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

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

<div id="dt-451564af2b6998692dea">
<p style="white-space: pre-wrap">GPIO used to reset the device.</p>
</div>

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

<a id="dt-2a73799bc37844734021"></a>

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-750f6955378f610b76b5">[<code>&#47;schemas&#47;pinctrl&#47;pinctrl&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-pinctrl/pinctrl.md#dt-root>)</span>

<a id="dt-b2d5bb8f7da956a0f3d8"></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-9cc621683017a043b1fc"></a>

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

<a id="dt-426dd6214d43e5940e9f"></a>

**<code>&#45;pins&#36;</code> — name matches this regular expression**

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-b0cabea67e7fbbc1b3ce">[<code>&#47;schemas&#47;pinctrl&#47;pinmux&#45;node&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-pinctrl/pinmux-node.md#dt-root>)</span>

<a id="dt-967f5fe4f0ff5d051884"></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-04507964fd96155293ff"></a>

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

<a id="dt-964896132121ce5780ea"></a>

**<code>pins</code> — required here**

**Allowed values (<code>enum</code>):** <a id="dt-dff44587c72be2dea7fd"></a> <span id="dt-527e12851bbf5d0f2ad7"><code>&#34;RPA&#34;</code></span>, <span id="dt-be06bbace057918142bd"><code>&#34;RPB&#34;</code></span>, <span id="dt-a8389aa1bf741bc5df58"><code>&#34;RPC&#34;</code></span>, <span id="dt-a18cd3a7ef3cc2ab23cb"><code>&#34;RPD&#34;</code></span>, <span id="dt-9ae22a650e7b7f59d49b"><code>&#34;XPA&#34;</code></span>, <span id="dt-e343204c3da87f78cbca"><code>&#34;XPB&#34;</code></span>, <span id="dt-fc8e7bd77dfd0e8ad577"><code>&#34;XPC&#34;</code></span>, <span id="dt-142e4b28dfd2a91e3750"><code>&#34;XPD&#34;</code></span>

<a id="dt-2b57cd78ec5398bfa4b0"></a>

**<code>function</code> — required here**

**Allowed values (<code>enum</code>):** <a id="dt-9862fc5ff79b59fd4630"></a> <span id="dt-60beb793e74220ffea5c"><code>&#34;SYPR&#34;</code></span>, <span id="dt-a08deee590693ab52c3f"><code>&#34;RFM&#34;</code></span>, <span id="dt-a26f8912f7652d9b85ff"><code>&#34;RFMB&#34;</code></span>, <span id="dt-4f4d2043ffd3c2137d6c"><code>&#34;RSIGM&#34;</code></span>, <span id="dt-448df702ee5d72a03525"><code>&#34;RSIG&#34;</code></span>, <span id="dt-cfccf7b13a086aa3a5e8"><code>&#34;DLR&#34;</code></span>, <span id="dt-63bddba2a491be205cda"><code>&#34;FREEZE&#34;</code></span>, <span id="dt-714dde03d1927ef00bb5"><code>&#34;RFSP&#34;</code></span>, <span id="dt-6f7fa9b5c6cb7d3b340f"><code>&#34;LOS&#34;</code></span>, <span id="dt-6f34bc26d994a6e1dc9b"><code>&#34;SYPX&#34;</code></span>, <span id="dt-735dd8395763d585fbee"><code>&#34;XFMS&#34;</code></span>, <span id="dt-1d6830556311a941ae1d"><code>&#34;XSIG&#34;</code></span>, <span id="dt-9744cff13938a9f60b19"><code>&#34;TCLK&#34;</code></span>, <span id="dt-0b6a4d669a78f0872fda"><code>&#34;XMFB&#34;</code></span>, <span id="dt-ebe9cf4c4b60e8a642f1"><code>&#34;XSIGM&#34;</code></span>, <span id="dt-55ad4633b9222c5075b0"><code>&#34;DLX&#34;</code></span>, <span id="dt-3cfcc0d3a61467a916be"><code>&#34;XCLK&#34;</code></span>, <span id="dt-ab938fbddf93f50a1e74"><code>&#34;XLT&#34;</code></span>, <span id="dt-6d9a5eabab54fdf04bff"><code>&#34;GPI&#34;</code></span>, <span id="dt-4e069f21268f0467ae68"><code>&#34;GPOH&#34;</code></span>, <span id="dt-c6b79dbc8118ebcc6605"><code>&#34;GPOL&#34;</code></span>

**Required in this object (<code>required</code>):** <a id="dt-cde40325dca28a7dfaa2"></a> <span id="dt-058a3a590c6dd0db30f2"><code>&#34;pins&#34;</code></span>, <span id="dt-bc37348b9d86c1b88b52"><code>&#34;function&#34;</code></span>

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

### <code>lantiq&#44;data&#45;rate&#45;bps</code> — not listed as required here

**Allowed values (<code>enum</code>):** <a id="dt-3a8142ea4a88d687abf1"></a> <span id="dt-f2c3865a38a289df5d95"><code>2048000</code></span>, <span id="dt-2324fdbb5b15e583fb8e"><code>4096000</code></span>, <span id="dt-16f3a016c4ef14924089"><code>8192000</code></span>, <span id="dt-cb9b2a8cf9a15da40a9a"><code>16384000</code></span>

**Default value (<code>default</code>):** <span id="dt-642a68a136c5f4f23ff2"><code>2048000</code></span>

<div id="dt-2a358ee6bb5a10e26059">
<p style="white-space: pre-wrap">Data rate (bit per seconds) on the system highway.</p>
</div>

<a id="dt-8e294ed900d86ada6edc"></a>

### <code>lantiq&#44;clock&#45;falling&#45;edge</code> — not listed as required here

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

<div id="dt-9fa81ef9e184df2efd35">
<p style="white-space: pre-wrap">Data is sent on falling edge of the clock (and received on the rising edge). If 'clock-falling-edge' is not present, data is sent on the rising edge (and received on the falling edge).</p>
</div>

<a id="dt-3112070bc9987da8767a"></a>

### <code>lantiq&#44;channel&#45;phase</code> — not listed as required here

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

**Allowed values (<code>enum</code>):** <a id="dt-2bf99c9e285f53390efa"></a> <span id="dt-065b669c99c3b14a6872"><code>0</code></span>, <span id="dt-58ef4c5450b95f92d4ed"><code>1</code></span>, <span id="dt-318f30215c937900c383"><code>2</code></span>, <span id="dt-60c3e524290e2690bb02"><code>3</code></span>, <span id="dt-5c1a008cd4c6e7b71e33"><code>4</code></span>, <span id="dt-f11ddcb727dc9da9cb64"><code>5</code></span>, <span id="dt-e2204eea5a8593df1ea3"><code>6</code></span>, <span id="dt-643efc4134fc902a6bb6"><code>7</code></span>

**Default value (<code>default</code>):** <span id="dt-44a7c45ffb6e3e7c9987"><code>0</code></span>

<div id="dt-fd8324bc7818cb813528">
<pre><code>The pef2256 delivers a full frame (32 8-bit time-slots in E1 and 24 8-bit
time-slots 8 8-bit signaling in E1/J1) every 125us. This lead to a data
rate of 2048000 bit/s. When lantiq,data-rate-bps is more than 2048000
bit/s, the data (all 32 8-bit) present in the frame are interleave with
unused time-slots. The lantiq,channel-phase property allows to set the
correct alignment of the interleave mechanism.
For instance, suppose lantiq,data-rate-bps = 8192000 (ie 4*2048000), and
lantiq,channel-phase = 2, the interleave schema with unused time-slots
(nu) and used time-slots (XX) for TSi is
  nu nu XX nu nu nu XX nu nu nu XX nu
  &lt;-- TSi --&gt; &lt;- TSi+1 -&gt; &lt;- TSi+2 -&gt;
With lantiq,data-rate-bps = 8192000, and lantiq,channel-phase = 1, the
interleave schema is
  nu XX nu nu nu XX nu nu nu XX nu nu
  &lt;-- TSi --&gt; &lt;- TSi+1 -&gt; &lt;- TSi+2 -&gt;
With lantiq,data-rate-bps = 4096000 (ie 2*2048000), and
lantiq,channel-phase = 1, the interleave schema is
  nu    XX    nu    XX    nu    XX
  &lt;-- TSi --&gt; &lt;- TSi+1 -&gt; &lt;- TSi+2 -&gt;</code></pre>
</div>

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

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

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

### <code>&#94;codec&#40;&#45;&#40;&#91;0&#45;9&#93;&#124;&#91;1&#45;2&#93;&#91;0&#45;9&#93;&#124;3&#91;0&#45;1&#93;&#41;&#41;&#63;&#36;</code> — name matches this regular expression

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-93d8e6094594ea01c959">[<code>&#47;schemas&#47;sound&#47;dai&#45;common&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-sound/dai-common.md#dt-root>)</span>

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

#### Properties not evaluated by applicable rules (<code>unevaluatedProperties</code>)

<code>false</code>

Not allowed by this rule.

<div id="dt-62831172aabd58468e17">
<p style="white-space: pre-wrap">Codec provided by the pef2256. This codec allows to use some of the PCM system highway time-slots as audio channels to transport audio data over the E1/T1/J1 lines. The time-slots used by the codec must be set and so, the properties 'dai-tdm-slot-num', 'dai-tdm-slot-width', 'dai-tdm-slot-tx-mask' and 'dai-tdm-slot-rx-mask' must be present in the sound card node for sub-nodes that involve the codec. The codec uses 8-bit time-slots. 'dai-tdm-tdm-slot-with' must be set to 8. The tx and rx masks define the pef2256 time-slots assigned to the codec.</p>
</div>

<a id="dt-46db359ec9e26fc8e50e"></a>

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

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

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

**Exact value (<code>const</code>):** <span id="dt-f6cc97358c08f503e2c7"><code>&#34;lantiq&#44;pef2256&#45;codec&#34;</code></span>

<a id="dt-2526a89f5aa7d863a0ad"></a>

**<code>&#35;sound&#45;dai&#45;cells</code> — required here**

**Exact value (<code>const</code>):** <span id="dt-15e8e16be97add28587c"><code>0</code></span>

**Required in this object (<code>required</code>):** <a id="dt-ffae8a0b4994115e954a"></a> <span id="dt-f73c7c16ca31e676ee0b"><code>&#34;compatible&#34;</code></span>, <span id="dt-40fa0107cedab0b8d804"><code>&#34;&#35;sound&#45;dai&#45;cells&#34;</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;clocks&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;clock&#45;names&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;interrupts&#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/gpio/gpio.h&gt;
#include &lt;dt-bindings/interrupt-controller/irq.h&gt;

pef2256: framer@2000000 {
  compatible = "lantiq,pef2256";
  reg = &lt;0x2000000 0x100&gt;;
  interrupts = &lt;8 IRQ_TYPE_LEVEL_LOW&gt;;
  interrupt-parent = &lt;&amp;intc&gt;;
  clocks = &lt;&amp;clk_mclk&gt;, &lt;&amp;clk_sclkr&gt;, &lt;&amp;clk_sclkx&gt;;
  clock-names = "mclk", "sclkr", "sclkx";
  reset-gpios = &lt;&amp;gpio 11 GPIO_ACTIVE_LOW&gt;;
  lantiq,data-rate-bps = &lt;4096000&gt;;

  pinctrl {
    pef2256_rpa_sypr: rpa-pins {
      pins = "RPA";
      function = "SYPR";
    };
    pef2256_xpa_sypx: xpa-pins {
      pins = "XPA";
      function = "SYPX";
    };
  };

  pef2256_codec0: codec-0 {
    compatible = "lantiq,pef2256-codec";
    #sound-dai-cells = &lt;0&gt;;
    sound-name-prefix = "PEF2256_0";
  };

  pef2256_codec1: codec-1 {
    compatible = "lantiq,pef2256-codec";
    #sound-dai-cells = &lt;0&gt;;
    sound-name-prefix = "PEF2256_1";
  };
};

sound {
  compatible = "simple-audio-card";
  #address-cells = &lt;1&gt;;
  #size-cells = &lt;0&gt;;
  simple-audio-card,dai-link@0 { /* CPU DAI1 - pef2256 codec 1 */
    reg = &lt;0&gt;;
    cpu {
      sound-dai = &lt;&amp;cpu_dai1&gt;;
    };
    codec {
      sound-dai = &lt;&amp;pef2256_codec0&gt;;
      dai-tdm-slot-num = &lt;4&gt;;
      dai-tdm-slot-width = &lt;8&gt;;
      /* TS 1, 2, 3, 4 */
      dai-tdm-slot-tx-mask = &lt;0 1 1 1 1&gt;;
      dai-tdm-slot-rx-mask = &lt;0 1 1 1 1&gt;;
    };
  };
  simple-audio-card,dai-link@1 { /* CPU DAI2 - pef2256 codec 2 */
    reg = &lt;1&gt;;
    cpu {
      sound-dai = &lt;&amp;cpu_dai2&gt;;
    };
    codec {
      sound-dai = &lt;&amp;pef2256_codec1&gt;;
      dai-tdm-slot-num = &lt;4&gt;;
      dai-tdm-slot-width = &lt;8&gt;;
      /* TS 5, 6, 7, 8 */
      dai-tdm-slot-tx-mask = &lt;0 0 0 0 0 1 1 1 1&gt;;
      dai-tdm-slot-rx-mask = &lt;0 0 0 0 0 1 1 1 1&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>
