# Renesas Electronics SH EtherMAC

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

> Device-tree binding reference for Renesas Electronics SH EtherMAC.

<!-- 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;net&#47;renesas&#44;ether&#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>

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

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Sergei Shtylyov &#60;sergei&#46;shtylyov&#64;gmail&#46;com&#62;&#34;</code></span>

<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-39566f01414e34c67b85"></a>

#### Exactly one of these rules must match (<code>oneOf</code>)

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

**Rule 1**

> <a id="dt-07409cc9508405f48983"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-822691c82c9797f7b1f9"></a>
>
> **Item 1**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-3b212051dcd0fc641cd8"></a> <span id="dt-bd6e6716d05ec45653db"><code>&#34;renesas&#44;gether&#45;r8a7740&#34;</code></span>, <span id="dt-3e7fb897881b12f43f81"><code>&#34;renesas&#44;gether&#45;r8a77980&#34;</code></span>, <span id="dt-b7d19de74fd35364d49f"><code>&#34;renesas&#44;ether&#45;r7s72100&#34;</code></span>, <span id="dt-6cbdeefc52e7132bc62c"><code>&#34;renesas&#44;ether&#45;r7s9210&#34;</code></span>

<a id="dt-7482b6e745c4f056161a"></a>

**Rule 2**

> <a id="dt-4c3e118873fbaedb5de2"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-b02d8860067795c00ae4"></a>
>
> **Item 1**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-aa1230b5a2b80f9fb387"></a> <span id="dt-49b534c9c8948cfc8034"><code>&#34;renesas&#44;ether&#45;r8a7778&#34;</code></span>, <span id="dt-93451931f534c9a92fb4"><code>&#34;renesas&#44;ether&#45;r8a7779&#34;</code></span>
>
> <a id="dt-bdc26de0ccb1d52bb6a4"></a>
>
> **Item 2**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-a400b9f7a23cd39bfbe8"></a> <span id="dt-150639d9ec5a95647f02"><code>&#34;renesas&#44;rcar&#45;gen1&#45;ether&#34;</code></span>

<a id="dt-39cb5b72c94e12bd53ea"></a>

**Rule 3**

> <a id="dt-e626d61e9d5d76cc48f9"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-6b46935eab08de6d1f0a"></a>
>
> **Item 1**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-9d5b9f6fd2f9759f6e43"></a> <span id="dt-73fb2f4b762df7b35870"><code>&#34;renesas&#44;ether&#45;r8a7742&#34;</code></span>, <span id="dt-4f2dd487e4b2e6e79827"><code>&#34;renesas&#44;ether&#45;r8a7743&#34;</code></span>, <span id="dt-dba59cbb664a09df0380"><code>&#34;renesas&#44;ether&#45;r8a7745&#34;</code></span>, <span id="dt-7337bb6973adc8f5010d"><code>&#34;renesas&#44;ether&#45;r8a7790&#34;</code></span>, <span id="dt-2a4824de128057522b89"><code>&#34;renesas&#44;ether&#45;r8a7791&#34;</code></span>, <span id="dt-9d0b7e5fcd963b685b0d"><code>&#34;renesas&#44;ether&#45;r8a7793&#34;</code></span>, <span id="dt-53e062f93be7aa5d7bb3"><code>&#34;renesas&#44;ether&#45;r8a7794&#34;</code></span>
>
> <a id="dt-5ea82ea034747ba6da29"></a>
>
> **Item 2**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-b2eed3287983c13df547"></a> <span id="dt-0e78c7a35850437ebd09"><code>&#34;renesas&#44;rcar&#45;gen2&#45;ether&#34;</code></span>

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

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

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

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

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

**Item 1**

> <div id="dt-e773fec0b410a1422253">
> <p style="white-space: pre-wrap">E-DMAC/feLic registers</p>
> </div>

<a id="dt-302751dd79bfd514b9d7"></a>

**Item 2**

> <div id="dt-b729cb065b03c20c0e01">
> <p style="white-space: pre-wrap">TSU registers</p>
> </div>

**Minimum number of items (<code>minItems</code>):** <span id="dt-4b3e7791b11b96c3db87"><code>1</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-2efe70314a961a652abe"></a>

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

<div id="dt-56d7bd958afc920979c6">
<p style="white-space: pre-wrap">number of address cells for the MDIO bus</p>
</div>

**Exact value (<code>const</code>):** <span id="dt-e6e6af09ab617572731b"><code>1</code></span>

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

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

<div id="dt-a7b8b6ab7c1846810ef9">
<p style="white-space: pre-wrap">number of size cells on the MDIO bus</p>
</div>

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

<a id="dt-4e9a371963ac013ad39d"></a>

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

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

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

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

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

<a id="dt-030bda573e8c53177f1a"></a>

### <code>power&#45;domains</code> — not listed as required here

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

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

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

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

<a id="dt-74df141c96ce385e8e45"></a>

### <code>phy&#45;mode</code> — required here

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

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

### <code>phy&#45;handle</code> — required here

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

<a id="dt-498e6fbb2a59fa3d9743"></a>

### <code>renesas&#44;no&#45;ether&#45;link</code> — not listed as required here

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

<div id="dt-fd350a07d8b8346955e9">
<p style="white-space: pre-wrap">specify when a board does not provide a proper Ether LINK signal</p>
</div>

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

### <code>renesas&#44;ether&#45;link&#45;active&#45;low</code> — not listed as required here

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

<div id="dt-bf164fcfb1ef22f0ff27">
<p style="white-space: pre-wrap">specify when the Ether LINK signal is active-low instead of normal active-high</p>
</div>

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

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

<a id="dt-7f18949a6780d4ac5174"></a>

### <code>&#64;&#91;0&#45;9a&#45;f&#93;&#36;</code> — name matches this regular expression

**Value type (<code>type</code>):** <span id="dt-05ae12fa398398dbbd2d"><code>&#34;object&#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;interrupts&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;phy&#45;mode&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;phy&#45;handle&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;&#35;address&#45;cells&#34;</code></span>, <span id="dt-a5d07fc4223c155670a0"><code>&#34;&#35;size&#45;cells&#34;</code></span>, <span id="dt-4503833a9b225761c43a"><code>&#34;clocks&#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/clock/r8a7790-cpg-mssr.h&gt;
#include &lt;dt-bindings/interrupt-controller/arm-gic.h&gt;
#include &lt;dt-bindings/power/r8a7790-sysc.h&gt;
#include &lt;dt-bindings/gpio/gpio.h&gt;

ethernet@ee700000 {
    compatible = "renesas,ether-r8a7790", "renesas,rcar-gen2-ether";
    reg = &lt;0xee700000 0x400&gt;;
    interrupts = &lt;GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH&gt;;
    clocks = &lt;&amp;cpg CPG_MOD 813&gt;;
    power-domains = &lt;&amp;sysc R8A7790_PD_ALWAYS_ON&gt;;
    resets = &lt;&amp;cpg 813&gt;;
    phy-mode = "rmii";
    phy-handle = &lt;&amp;phy1&gt;;
    renesas,ether-link-active-low;
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    phy1: ethernet-phy@1 {
        compatible = "ethernet-phy-id0022.1537",
                     "ethernet-phy-ieee802.3-c22";
        reg = &lt;1&gt;;
        interrupt-parent = &lt;&amp;irqc0&gt;;
        interrupts = &lt;0 IRQ_TYPE_LEVEL_LOW&gt;;
        reset-gpios = &lt;&amp;gpio5 31 GPIO_ACTIVE_LOW&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</span></p>

<p id="dt-comment-1"><strong>Line 20:</strong> <span> device is a part of R8A7740 SoC</span></p>

<p id="dt-comment-2"><strong>Line 21:</strong> <span> device is a part of R8A77980 SoC</span></p>

<p id="dt-comment-3"><strong>Line 22:</strong> <span> device is a part of R7S72100 SoC</span></p>

<p id="dt-comment-4"><strong>Line 23:</strong> <span> device is a part of R7S9210 SoC</span></p>

<p id="dt-comment-5"><strong>Line 26:</strong> <span> device is a part of R8A7778 SoC</span></p>

<p id="dt-comment-6"><strong>Line 27:</strong> <span> device is a part of R8A7779 SoC</span></p>

<p id="dt-comment-7"><strong>Line 29:</strong> <span> a generic R-Car Gen1 device</span></p>

<p id="dt-comment-8"><strong>Line 32:</strong> <span> device is a part of R8A7742 SoC</span></p>

<p id="dt-comment-9"><strong>Line 33:</strong> <span> device is a part of R8A7743 SoC</span></p>

<p id="dt-comment-10"><strong>Line 34:</strong> <span> device is a part of R8A7745 SoC</span></p>

<p id="dt-comment-11"><strong>Line 35:</strong> <span> device is a part of R8A7790 SoC</span></p>

<p id="dt-comment-12"><strong>Line 36:</strong> <span> device is a part of R8A7791 SoC</span></p>

<p id="dt-comment-13"><strong>Line 37:</strong> <span> device is a part of R8A7793 SoC</span></p>

<p id="dt-comment-14"><strong>Line 38:</strong> <span> device is a part of R8A7794 SoC</span></p>

<p id="dt-comment-15"><strong>Line 40:</strong> <span> a generic R-Car Gen2 or RZ/G1 device</span></p>

<p id="dt-comment-16"><strong>Line 103:</strong> <span> Lager board</span></p>

</details>
