# Qualcomm QCA7000

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

> Device-tree binding reference for Qualcomm QCA7000.

<!-- 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;qca&#44;qca7000&#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;Frank Li &#60;Frank&#46;Li&#64;nxp&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The QCA7000 is a serial-to-powerline bridge with a host interface which could
be configured either as SPI or UART slave. This configuration is done by
the QCA7000 firmware.</p>
<p style="white-space: pre-wrap">(a) Ethernet over SPI</p>
<p style="white-space: pre-wrap">In order to use the QCA7000 as SPI device it must be defined as a child of a
SPI master in the device tree.</p>
<p style="white-space: pre-wrap">(b) Ethernet over UART</p>
<p style="white-space: pre-wrap">In order to use the QCA7000 as UART slave it must be defined as a child of a
UART master in the device tree. It is possible to preconfigure the UART
settings of the QCA7000 firmware, but it's not possible to change them during
runtime</p>
</div>

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

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

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

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

**Exact value (<code>const</code>):** <span id="dt-1765195bf8e86c3ccec6"><code>&#34;qca&#44;qca7000&#34;</code></span>

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

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

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

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

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

### <code>qca&#44;legacy&#45;mode</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-1d60d61c5c767376fb64">[<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-cd07a073124d75039ff0">
<p style="white-space: pre-wrap">Set the SPI data transfer of the QCA7000 to legacy mode. In this mode the SPI master must toggle the chip select between each data word. In burst mode these gaps aren't necessary, which is faster. This setting depends on how the QCA7000 is setup via GPIO pin strapping. If the property is missing the driver defaults to burst mode.</p>
</div>

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

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

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

### Rule 1

> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-95c8874f25311f4b1ab1">[<code>ethernet&#45;controller&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-net/ethernet-controller.md#dt-root>)</span>

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

### Rule 2

> <a id="dt-ffbf5afb799d5f07b3e1"></a>
>
> #### Condition (<code>if</code>)
>
> > **Required in this object (<code>required</code>):** <a id="dt-5f135e3db8ef1aa53700"></a> <span id="dt-0164887f025a095456fa"><code>&#34;reg&#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-d5a286cdbb8a51ea5b5f"></a>
> >
> > **<code>spi&#45;cpha</code> — not listed as required here**
> >
> > <code>true</code> — No constraints added by this property rule.
> >
> > <a id="dt-e7d1ba732492729165e2"></a>
> >
> > **<code>spi&#45;cpol</code> — not listed as required here**
> >
> > <code>true</code> — No constraints added by this property rule.
> >
> > <a id="dt-1b3105c3b929b1ab9741"></a>
> >
> > **<code>spi&#45;max&#45;frequency</code> — not listed as required here**
> >
> > **Default value (<code>default</code>):** <span id="dt-1825c0b9e9e03995c9d3"><code>8000000</code></span>
> >
> > **Maximum value (<code>maximum</code>):** <span id="dt-b5de97063cb4c30a984f"><code>16000000</code></span>
> >
> > **Minimum value (<code>minimum</code>):** <span id="dt-6da05209dab5226ebb56"><code>1000000</code></span>
> >
> > <a id="dt-912011cf51ecf30ae3ba"></a>
> >
> > **All of these rules must match (<code>allOf</code>)**
> >
> > <a id="dt-b9d87d83df45e38fd1e3"></a>
> >
> > **Rule 1**
> >
> > > **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-7c95a3c8002bcfead490">[<code>&#47;schemas&#47;spi&#47;spi&#45;peripheral&#45;props&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-spi/spi-peripheral-props.md#dt-root>)</span>
>
> <a id="dt-56ef1e95d4edd6e6f24c"></a>
>
> #### When the condition does not match (<code>else</code>)
>
> > <a id="dt-f0255e6a88a00985d33b"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-b9fc283f83ee2c0c0ec7"></a>
> >
> > **<code>current&#45;speed</code> — not listed as required here**
> >
> > **Default value (<code>default</code>):** <span id="dt-cf3c73136004be9d6ab3"><code>115200</code></span>
> >
> > <a id="dt-879f3f93ada3720ddd2e"></a>
> >
> > **<code>qca&#44;legacy&#45;mode</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.
> >
> > <a id="dt-53dd531afe157c6bf1b7"></a>
> >
> > **All of these rules must match (<code>allOf</code>)**
> >
> > <a id="dt-4d887051b820e4873c64"></a>
> >
> > **Rule 1**
> >
> > > **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-384df262f8d1737026de">[<code>&#47;schemas&#47;serial&#47;serial&#45;peripheral&#45;props&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-serial/serial-peripheral-props.md#dt-root>)</span>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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;

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

    ethernet@0 {
        compatible = "qca,qca7000";
        reg = &lt;0x0&gt;;
        interrupt-parent = &lt;&amp;gpio3&gt;;
        interrupts = &lt;25 IRQ_TYPE_EDGE_RISING&gt;;
        spi-cpha;
        spi-cpol;
        spi-max-frequency = &lt;8000000&gt;;
        local-mac-address = [ a0 b0 c0 d0 e0 f0 ];
    };
};
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><code class="language-dts">serial {
    ethernet {
        compatible = "qca,qca7000";
        local-mac-address = [ a0 b0 c0 d0 e0 f0 ];
        current-speed = &lt;38400&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>
