# Renesas SoC compatibles naming convention

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Soc bindings / renesas_

> Device-tree binding reference for Renesas SoC compatibles naming convention.

<!-- 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;soc&#47;renesas&#47;renesas&#45;soc&#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;Geert Uytterhoeven &#60;geert&#43;renesas&#64;glider&#46;be&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Niklas Söderlund &#60;niklas&#46;soderlund&#64;ragnatech&#46;se&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<pre><code>Guidelines for new compatibles for SoC blocks/components.
When adding new compatibles in new bindings, use the format::
  renesas,SoC-IP</code></pre>
<p style="white-space: pre-wrap">For example::
 renesas,r8a77965-csi2</p>
<p style="white-space: pre-wrap">When adding new compatibles to existing bindings, use the format in the
existing binding, even if it contradicts the above.</p>
</div>

<a id="dt-865ef19e891fb9fe7b15"></a>

## Automatic schema selection (<code>select</code>)

> <a id="dt-54d143fae2406295c883"></a>
>
> ### Properties and child nodes (<code>properties</code>)
>
> <a id="dt-e3400bab629503b08322"></a>
>
> #### <code>compatible</code> — required here
>
> <a id="dt-2ae4f0f9580bb5b2e406"></a>
>
> **Rule for matching array elements (<code>contains</code>)**
>
> > **String pattern (<code>pattern</code>):** <span id="dt-f5709019d165905d4c1d"><code>&#34;&#94;renesas&#44;&#46;&#43;&#45;&#46;&#43;&#36;&#34;</code></span>
>
> **Required in this object (<code>required</code>):** <a id="dt-c7b135d3aebb6d627788"></a> <span id="dt-7b7a89ef483af1198868"><code>&#34;compatible&#34;</code></span>

<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

**Minimum number of items (<code>minItems</code>):** <span id="dt-e697bef756046906ffcf"><code>1</code></span>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-3feeef57fe8592fe7a5c"><code>4</code></span>

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

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

> <a id="dt-627fd79fa3ed9ee20bbe"></a>
>
> **At least one of these rules must match (<code>anyOf</code>)**
>
> <a id="dt-5385ef73984cc926e13d"></a>
>
> **Rule 1**
>
> > **String pattern (<code>pattern</code>):** <span id="dt-9feb6129a4caa29bd2e2"><code>&#34;&#94;renesas&#44;&#40;emev2&#124;r&#40;7s&#124;8a&#124;9a&#41;&#91;a&#45;z0&#45;9&#93;&#43;&#124;rcar&#124;rmobile&#124;rz&#91;a&#45;z0&#45;9&#93;&#42;&#124;sh&#40;7&#91;a&#45;z0&#45;9&#93;&#43;&#41;&#63;&#124;mobile&#41;&#45;&#91;a&#45;z0&#45;9&#45;&#93;&#43;&#36;&#34;</code></span>
>
> <a id="dt-95c0d95a327502f1f581"></a>
>
> **Rule 2**
>
> > **String pattern (<code>pattern</code>):** <span id="dt-9f1a84e596636e0a2ed4"><code>&#34;&#94;renesas&#44;&#40;condor&#124;falcon&#124;gr&#45;peach&#124;gray&#45;hawk&#124;salvator&#124;sk&#45;rz&#124;smar&#40;c&#40;2&#41;&#63;&#41;&#63;&#124;spider&#124;white&#45;hawk&#41;&#40;&#46;&#42;&#41;&#63;&#36;&#34;</code></span>
>
> <a id="dt-b6b40f38cda78bef0e6c"></a>
>
> **Rule 3**
>
> > **String pattern (<code>pattern</code>):** <span id="dt-7e0344966776e45be2b0"><code>&#34;&#94;renesas&#44;&#40;can&#124;cpg&#124;dmac&#124;du&#124;&#40;g&#41;&#63;ether&#40;avb&#41;&#63;&#124;gpio&#124;hscif&#124;&#40;r&#41;&#63;i&#91;i2&#93;c&#124;imr&#124;intc&#124;ipmmu&#124;irqc&#124;jpu&#124;mmcif&#124;msiof&#124;mtu2&#124;pci&#40;e&#41;&#63;&#124;pfc&#124;pwm&#124;&#91;rq&#93;spi&#124;rcar&#95;sound&#124;sata&#124;scif&#91;ab&#93;&#42;&#124;sdhi&#124;thermal&#124;tmu&#124;tpu&#124;usb&#40;2&#124;hs&#41;&#63;&#124;vin&#124;xhci&#41;&#45;&#91;a&#45;z0&#45;9&#45;&#93;&#43;&#36;&#34;</code></span>
>
> <a id="dt-7da71e18571fae72fc92"></a>
>
> **Rule 4**
>
> > **String pattern (<code>pattern</code>):** <span id="dt-2435b1479e443355fafc"><code>&#34;&#94;renesas&#44;&#40;d&#124;s&#41;&#63;bsc&#40;3&#41;&#63;&#45;&#40;r8a73a4&#124;r8a7740&#124;sh73a0&#41;&#36;&#34;</code></span>
>
> <a id="dt-78b7aa07f20254803afa"></a>
>
> **Rule 5**
>
> > **String pattern (<code>pattern</code>):** <span id="dt-c1e0e10bd32f18c23a58"><code>&#34;&#94;renesas&#44;em&#45;&#40;gio&#124;sti&#124;uart&#41;&#36;&#34;</code></span>
>
> <a id="dt-15409e66007565908bf6"></a>
>
> **Rule 6**
>
> > **String pattern (<code>pattern</code>):** <span id="dt-d8047ff39dc181b4bb4b"><code>&#34;&#94;renesas&#44;fsi2&#45;&#40;r8a7740&#124;sh73a0&#41;&#36;&#34;</code></span>
>
> <a id="dt-22f42c1b63e49795ee4f"></a>
>
> **Rule 7**
>
> > **String pattern (<code>pattern</code>):** <span id="dt-e69639783575db2dfb85"><code>&#34;&#94;renesas&#44;hspi&#45;r8a777&#91;89&#93;&#36;&#34;</code></span>
>
> <a id="dt-a45a9c2c381b6209298a"></a>
>
> **Rule 8**
>
> > **String pattern (<code>pattern</code>):** <span id="dt-4ce11dfebc548f1e8126"><code>&#34;&#94;renesas&#44;sysc&#45;&#40;r8a73a4&#124;r8a7740&#124;rmobile&#124;sh73a0&#41;&#36;&#34;</code></span>
>
> <a id="dt-a69a82d396eb04d922f3"></a>
>
> **Rule 9**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-5745f34b272200b0c2ed"></a> <span id="dt-e78da995db51e52e9dc4"><code>&#34;renesas&#44;imr&#45;lx4&#34;</code></span>, <span id="dt-0ff815cc032ccccf8ad0"><code>&#34;renesas&#44;mtu2&#45;r7s72100&#34;</code></span>
>
> <a id="dt-8dc4bbf4b9f496b22c75"></a>
>
> **Rule 10**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-408137e2a5db9cb0587e"></a> <span id="dt-f17b034781e65c2a8811"><code>&#34;renesas&#44;smp&#45;sram&#34;</code></span>
>
> <a id="dt-f30894b37194a50256c3"></a>
>
> **Rule 11**
>
> > **String pattern (<code>pattern</code>):** <span id="dt-51476f55be183aa246f9"><code>&#34;&#94;&#40;&#63;&#33;renesas&#44;&#46;&#43;&#45;&#46;&#43;&#41;&#46;&#43;&#36;&#34;</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-only OR BSD-2-Clause</span></p>

<p id="dt-comment-1"><strong>Line 38:</strong> <span> Preferred naming style for compatibles of SoC components</span></p>

<p id="dt-comment-2"><strong>Line 42:</strong> <span> Legacy compatibles</span></p>

<p id="dt-comment-3"><strong>Line 43:</strong> <span></span></p>

<p id="dt-comment-4"><strong>Line 44:</strong> <span> New compatibles are not allowed.</span></p>

<p id="dt-comment-5"><strong>Line 55:</strong> <span> None SoC component compatibles</span></p>

<p id="dt-comment-6"><strong>Line 56:</strong> <span></span></p>

<p id="dt-comment-7"><strong>Line 57:</strong> <span> Compatibles with the Renesas vendor prefix that do not relate to any SoC</span></p>

<p id="dt-comment-8"><strong>Line 58:</strong> <span> component are OK. New compatibles are allowed.</span></p>

<p id="dt-comment-9"><strong>Line 62:</strong> <span> Do not fail compatibles not matching the select pattern</span></p>

<p id="dt-comment-10"><strong>Line 63:</strong> <span></span></p>

<p id="dt-comment-11"><strong>Line 64:</strong> <span> Some SoC components in addition to a Renesas compatible list</span></p>

<p id="dt-comment-12"><strong>Line 65:</strong> <span> compatibles not related to Renesas. The select pattern for this</span></p>

<p id="dt-comment-13"><strong>Line 66:</strong> <span> schema hits all compatibles that have at lest one Renesas compatible</span></p>

<p id="dt-comment-14"><strong>Line 67:</strong> <span> and try to validate all values in that compatible array, allow all</span></p>

<p id="dt-comment-15"><strong>Line 68:</strong> <span> that don't match the schema select pattern. For example,</span></p>

<p id="dt-comment-16"><strong>Line 69:</strong> <span></span></p>

<p id="dt-comment-17"><strong>Line 70:</strong> <span>   compatible = "renesas,r9a07g044-mali", "arm,mali-bifrost";</span></p>

</details>
