# An Example Device

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

> Device-tree binding reference for An Example Device.

<!-- 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;example&#45;schema&#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;Rob Herring &#60;robh&#64;kernel&#46;org&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">A more detailed multi-line description of the binding.</p>
<p style="white-space: pre-wrap">Details about the hardware device and any links to datasheets can go here.</p>
<p style="white-space: pre-wrap">Literal blocks are marked with the '|' at the beginning. The end is marked by
indentation less than the first line of the literal block. Lines also cannot
begin with a tab character.</p>
</div>

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

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

<code>false</code>

Not selected automatically by this rule.

<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;vendor&#44;soc4&#45;ip&#34;</code></span>, <span id="dt-3e7fb897881b12f43f81"><code>&#34;vendor&#44;soc3&#45;ip&#34;</code></span>, <span id="dt-b7d19de74fd35364d49f"><code>&#34;vendor&#44;soc2&#45;ip&#34;</code></span>
>
> <a id="dt-bc83d1191bdc72da8559"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-1da74b37131fdcec1073"><code>&#34;vendor&#44;soc1&#45;ip&#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**
>
> > **Exact value (<code>const</code>):** <span id="dt-82dceb5784ff71f5fdf5"><code>&#34;vendor&#44;soc1&#45;ip&#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">core registers</p>
> </div>

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

**Item 2**

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

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

### <code>reg&#45;names</code> — not listed as required here

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

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

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

**Item 1**

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

<a id="dt-12013039402717d72b48"></a>

**Item 2**

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

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

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

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

<div id="dt-853257adf43f6880d753">
<p style="white-space: pre-wrap">bus clock. A description is only needed for a single item if there's something unique to add. The items should have a fixed order, so pattern matching names are discouraged.</p>
</div>

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

### <code>clock&#45;names</code> — not listed as 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;bus&#34;</code></span>

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

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

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

<a id="dt-985aed94c3a5de8e946a"></a>

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

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

**Item 1**

> <div id="dt-094ee990c529b33ab668">
> <p style="white-space: pre-wrap">tx or combined interrupt</p>
> </div>

<a id="dt-14fdf3275cf454d3c593"></a>

**Item 2**

> <div id="dt-f26fcb0c97f34db34fe4">
> <p style="white-space: pre-wrap">rx interrupt</p>
> </div>

<div id="dt-b3ddec0f69e9f0c0dc40">
<p style="white-space: pre-wrap">A variable number of interrupts warrants a description of what conditions affect the number of interrupts. Otherwise, descriptions on standard properties are not necessary. The items should have a fixed order, so pattern matching names are discouraged.</p>
</div>

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

### <code>interrupt&#45;names</code> — not listed as required here

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

<a id="dt-77e94e63ca0b20bb5ef1"></a>

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

<a id="dt-1198ecbdbe49337cf73e"></a>

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-7f7686a533ef09dda0b1"><code>&#34;tx irq&#34;</code></span>

<a id="dt-0d40baae5346e6957f8a"></a>

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-5af1964d23a153c89b8a"><code>&#34;rx irq&#34;</code></span>

<a id="dt-8586fac2d9a71adf4795"></a>

### <code>&#35;interrupt&#45;cells</code> — not listed as required here

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

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

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

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

<a id="dt-0298421e73bc073162cc"></a>

### <code>clock&#45;frequency</code> — not listed as required here

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

**Maximum value (<code>maximum</code>):** <span id="dt-60cd7829fc24dc9d0dc0"><code>400000</code></span>

**Default value (<code>default</code>):** <span id="dt-f1c4f38c5bf0a6f6c783"><code>200</code></span>

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

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

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

<div id="dt-0d36f5cbc738e7cc984f">
<p style="white-space: pre-wrap">A connection of the 'foo' gpio line.</p>
</div>

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

### <code>foo&#45;supply</code> — not listed as required here

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

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

### <code>vendor&#44;int&#45;property</code> — not listed as required here

<div id="dt-7eb0dad62c25a6d881d6">
<p style="white-space: pre-wrap">Vendor-specific properties must have a description</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-4fda40efc9025b590269">[<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-ee124ff32a33b23695f9"></a> <span id="dt-356955cd0e68ee3cfa0a"><code>2</code></span>, <span id="dt-5a121a4720891f5c7608"><code>4</code></span>, <span id="dt-f8e05448d80014857fb7"><code>6</code></span>, <span id="dt-0390f9bcf6f7dab19b2e"><code>8</code></span>, <span id="dt-9bb1a418462715438955"><code>10</code></span>

<a id="dt-0af54a124302e4a2d3c9"></a>

### <code>vendor&#44;bool&#45;property</code> — not listed as required here

<div id="dt-34c04c2d62e53846c4ed">
<p style="white-space: pre-wrap">Vendor-specific properties must have a description. Boolean properties are one case where the json-schema 'type' keyword can be used directly.</p>
</div>

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

<a id="dt-57a0068611a2a104e47d"></a>

### <code>vendor&#44;string&#45;array&#45;property</code> — not listed as required here

<div id="dt-b0d8da9a4a3cd97e4c81">
<p style="white-space: pre-wrap">Vendor-specific properties should reference a type in the core schema.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-064e3a52747389ede7ea">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;string&#45;array</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-7360acce49da10397d42>)</span>

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

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

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

**Item 1**

> **Allowed values (<code>enum</code>):** <a id="dt-afc33ba0c436918e4f69"></a> <span id="dt-ac3f41cfdc330722f953"><code>&#34;foo&#34;</code></span>, <span id="dt-609fe06a39e27da36da9"><code>&#34;bar&#34;</code></span>

<a id="dt-1dbb7242daee604b251e"></a>

**Item 2**

> **Allowed values (<code>enum</code>):** <a id="dt-b6ec9c483e8d9c1df571"></a> <span id="dt-b8136cf5df5fcea86175"><code>&#34;baz&#34;</code></span>, <span id="dt-eb79985cc7211ee7984d"><code>&#34;boo&#34;</code></span>

<a id="dt-8743d15a988f0c2560e8"></a>

### <code>vendor&#44;property&#45;in&#45;standard&#45;units&#45;microvolt</code> — not listed as required here

<div id="dt-67c35d41ba2c69f587df">
<p style="white-space: pre-wrap">Vendor-specific properties having a standard unit suffix don't need a type.</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-46e3d07445d77887c40f"></a> <span id="dt-34ec54a6b50baa219023"><code>100</code></span>, <span id="dt-64f19f28b0ed5e189b91"><code>200</code></span>, <span id="dt-235f299c243853ef0ead"><code>300</code></span>

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

### <code>vendor&#44;int&#45;array&#45;variable&#45;length&#45;and&#45;constrained&#45;values</code> — not listed as required here

<div id="dt-43079740f72561f18f85">
<p style="white-space: pre-wrap">Array might define what type of elements might be used (e.g. their range).</p>
</div>

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

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

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

<a id="dt-991ea0a347099cacc3df"></a>

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

> **Minimum value (<code>minimum</code>):** <span id="dt-2e0304e7eeda25492ad9"><code>0</code></span>
>
> **Maximum value (<code>maximum</code>):** <span id="dt-b283c7bed930905ff565"><code>8</code></span>

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

### <code>child&#45;node</code> — not listed as required here

<div id="dt-b65457a9a78558820b55">
<p style="white-space: pre-wrap">Child nodes are just another property from a json-schema perspective.</p>
</div>

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

<a id="dt-7fd8c3a323c25b16cae8"></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-61bee31711d0101f28ef"></a>

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

<a id="dt-672bb7fb5c526bf0efef"></a>

**<code>vendor&#44;a&#45;child&#45;node&#45;property</code> — required here**

<div id="dt-172b035c2a4b08f66c77">
<p style="white-space: pre-wrap">Child node properties have all the same schema requirements.</p>
</div>

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

**Required in this object (<code>required</code>):** <a id="dt-f02b304097a6ad2a531a"></a> <span id="dt-17dc689bf2913e2d0d97"><code>&#34;vendor&#44;a&#45;child&#45;node&#45;property&#34;</code></span>

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

### <code>child&#45;node&#45;with&#45;own&#45;schema</code> — not listed as required here

<div id="dt-e27738a8f59cb4b9acfc">
<p style="white-space: pre-wrap">Child node with their own compatible and device schema which ends in
'additionalProperties: false' or 'unevaluatedProperties: false' can
mention only the compatible and use here 'additionalProperties: true'.</p>
</div>

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

<a id="dt-126a2e1fa005a191090f"></a>

#### Properties not matched by properties or patternProperties in this schema (<code>additionalProperties</code>)

<code>true</code>

Allowed by this rule.

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

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

<a id="dt-43db879859421842489d"></a>

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

**Exact value (<code>const</code>):** <span id="dt-6e1f957931a0d863c9a0"><code>&#34;vendor&#44;sub&#45;device&#34;</code></span>

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

## Property dependencies (<code>dependencies</code>)

<a id="dt-10271e43f270746076ee"></a>

### <code>vendor&#44;bool&#45;property</code> — applies when this property is present

Also requires: <span id="dt-c34cbac3172062f6ccbe"><code>&#34;vendor&#44;string&#45;array&#45;property&#34;</code></span>

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

### <code>vendor&#44;string&#45;array&#45;property</code> — applies when this property is present

Also requires: <span id="dt-33452b824b6ac9a914c5"><code>&#34;vendor&#44;bool&#45;property&#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;interrupt&#45;controller&#34;</code></span>

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

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

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

### Rule 1

> <a id="dt-3bbb54dfa1f05dfb4d25"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-97f47e9dc804c839f86d"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-bbadeeb73dfaefabae79"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-ebe43a424f4497a78746"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-8997992e7087b5549d86"><code>&#34;vendor&#44;soc2&#45;ip&#34;</code></span>
>
> <a id="dt-1ba25143802b75b74702"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > **Required in this object (<code>required</code>):** <a id="dt-b0b2f2243ff9a854f151"></a> <span id="dt-4e9ead0e861b67997dec"><code>&#34;foo&#45;supply&#34;</code></span>
>
> <a id="dt-f985d6aaa3f73a650205"></a>
>
> #### When the condition does not match (<code>else</code>)
>
> > <a id="dt-0b56c96a40292905ded0"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-6175979162c454e4d1c6"></a>
> >
> > **<code>foo&#45;supply</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.

<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;vendor&#44;bool&#45;property&#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-8a7034c4798737c21f75"></a>
> >
> > **<code>vendor&#44;int&#45;property</code> — not listed as required here**
> >
> > **Allowed values (<code>enum</code>):** <a id="dt-528993fd0dc69a11507a"></a> <span id="dt-dc830dd7f8516d88d3f8"><code>2</code></span>, <span id="dt-ffc12f8e381a1fb52439"><code>4</code></span>, <span id="dt-5f50d87f52e949559fd3"><code>6</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">node@1000 {
    compatible = "vendor,soc4-ip", "vendor,soc1-ip";
    reg = &lt;0x1000 0x80&gt;,
          &lt;0x3000 0x80&gt;;
    reg-names = "core", "aux";
    interrupts = &lt;10&gt;;
    interrupt-controller;
    #interrupt-cells = &lt;2&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>

<p id="dt-comment-1"><strong>Line 2:</strong> <span> Copyright 2018 Linaro Ltd.</span></p>

<p id="dt-comment-2"><strong>Line 5:</strong> <span> All the top-level keys are standard json-schema keywords except for</span></p>

<p id="dt-comment-3"><strong>Line 6:</strong> <span> 'maintainers' and 'select'</span></p>

<p id="dt-comment-4"><strong>Line 8:</strong> <span> $id is a unique identifier based on the filename. There may or may not be a</span></p>

<p id="dt-comment-5"><strong>Line 9:</strong> <span> file present at the URL.</span></p>

<p id="dt-comment-6"><strong>Line 11:</strong> <span> $schema is the meta-schema this schema should be validated with.</span></p>

<p id="dt-comment-7"><strong>Line 29:</strong> <span> 'select' is a schema applied to a DT node to determine if this binding</span></p>

<p id="dt-comment-8"><strong>Line 30:</strong> <span> schema should be applied to the node. It is optional and by default the</span></p>

<p id="dt-comment-9"><strong>Line 31:</strong> <span> possible compatible strings are extracted and used to match.</span></p>

<p id="dt-comment-10"><strong>Line 33:</strong> <span> In this case, a 'false' schema will never match.</span></p>

<p id="dt-comment-11"><strong>Line 36:</strong> <span> A dictionary of DT properties for this binding schema</span></p>

<p id="dt-comment-12"><strong>Line 38:</strong> <span> More complicated schema can use oneOf (XOR), anyOf (OR), or allOf (AND)</span></p>

<p id="dt-comment-13"><strong>Line 39:</strong> <span> to handle different conditions.</span></p>

<p id="dt-comment-14"><strong>Line 40:</strong> <span> In this case, it's needed to handle a variable number of values as there</span></p>

<p id="dt-comment-15"><strong>Line 41:</strong> <span> isn't another way to express a constraint of the last string value.</span></p>

<p id="dt-comment-16"><strong>Line 42:</strong> <span> The boolean schema must be a list of schemas.</span></p>

<p id="dt-comment-17"><strong>Line 45:</strong> <span> items is a list of possible values for the property. The number of</span></p>

<p id="dt-comment-18"><strong>Line 46:</strong> <span> values is determined by the number of elements in the list.</span></p>

<p id="dt-comment-19"><strong>Line 47:</strong> <span> Order in lists is significant, order in dicts is not</span></p>

<p id="dt-comment-20"><strong>Line 48:</strong> <span> Must be one of the 1st enums followed by the 2nd enum</span></p>

<p id="dt-comment-21"><strong>Line 49:</strong> <span></span></p>

<p id="dt-comment-22"><strong>Line 50:</strong> <span> Each element in items should be 'enum' or 'const'</span></p>

<p id="dt-comment-23"><strong>Line 56:</strong> <span> additionalItems being false is implied</span></p>

<p id="dt-comment-24"><strong>Line 57:</strong> <span> minItems/maxItems equal to 2 is implied</span></p>

<p id="dt-comment-25"><strong>Line 59:</strong> <span> 'const' is just a special case of an enum with a single possible value</span></p>

<p id="dt-comment-26"><strong>Line 63:</strong> <span> The core schema already checks that reg values are numbers, so device</span></p>

<p id="dt-comment-27"><strong>Line 64:</strong> <span> specific schema don't need to do those checks.</span></p>

<p id="dt-comment-28"><strong>Line 65:</strong> <span> The description of each element defines the order and implicitly defines</span></p>

<p id="dt-comment-29"><strong>Line 66:</strong> <span> the number of reg entries.</span></p>

<p id="dt-comment-30"><strong>Line 70:</strong> <span> minItems/maxItems equal to 2 is implied</span></p>

<p id="dt-comment-31"><strong>Line 73:</strong> <span> The core schema enforces this (*-names) is a string array</span></p>

<p id="dt-comment-32"><strong>Line 79:</strong> <span> Cases that have only a single entry just need to express that with maxItems</span></p>

<p id="dt-comment-33"><strong>Line 87:</strong> <span> For single-entry lists in clocks, resets etc., the xxx-names often do not</span></p>

<p id="dt-comment-34"><strong>Line 88:</strong> <span> bring any value, especially if they copy the IP block name.  In such case</span></p>

<p id="dt-comment-35"><strong>Line 89:</strong> <span> just skip the xxx-names.</span></p>

<p id="dt-comment-36"><strong>Line 94:</strong> <span> Either 1 or 2 interrupts can be present</span></p>

<p id="dt-comment-37"><strong>Line 107:</strong> <span> minItems must be specified here because the default would be 2</span></p>

<p id="dt-comment-38"><strong>Line 113:</strong> <span> Property names starting with '#' must be quoted</span></p>

<p id="dt-comment-39"><strong>Line 115:</strong> <span> A simple case where the value must always be '2'.</span></p>

<p id="dt-comment-40"><strong>Line 116:</strong> <span> The core schema handles that this must be a single integer.</span></p>

<p id="dt-comment-41"><strong>Line 120:</strong> <span> The core checks this is a boolean, so just have to list it here to be</span></p>

<p id="dt-comment-42"><strong>Line 121:</strong> <span> valid for this binding.</span></p>

<p id="dt-comment-43"><strong>Line 124:</strong> <span> The type is set in the core schema. Per-device schema only need to set</span></p>

<p id="dt-comment-44"><strong>Line 125:</strong> <span> constraints on the possible values.</span></p>

<p id="dt-comment-45"><strong>Line 128:</strong> <span> The value that should be used if the property is not present</span></p>

<p id="dt-comment-46"><strong>Line 135:</strong> <span> *-supply is always a single phandle, so nothing more to define.</span></p>

<p id="dt-comment-47"><strong>Line 138:</strong> <span> Vendor-specific properties</span></p>

<p id="dt-comment-48"><strong>Line 139:</strong> <span></span></p>

<p id="dt-comment-49"><strong>Line 140:</strong> <span> Vendor-specific properties have slightly different schema requirements than</span></p>

<p id="dt-comment-50"><strong>Line 141:</strong> <span> common properties. They must have at least a type definition and</span></p>

<p id="dt-comment-51"><strong>Line 142:</strong> <span> 'description'.</span></p>

<p id="dt-comment-52"><strong>Line 180:</strong> <span> DT nodes are json objects</span></p>

<p id="dt-comment-53"><strong>Line 181:</strong> <span> Child nodes also need additionalProperties or unevaluatedProperties, where</span></p>

<p id="dt-comment-54"><strong>Line 182:</strong> <span> 'false' should be used in most cases (see 'child-node-with-own-schema'</span></p>

<p id="dt-comment-55"><strong>Line 183:</strong> <span> below).</span></p>

<p id="dt-comment-56"><strong>Line 205:</strong> <span> Describe the relationship between different properties</span></p>

<p id="dt-comment-57"><strong>Line 207:</strong> <span> 'vendor,bool-property' is only allowed when 'vendor,string-array-property'</span></p>

<p id="dt-comment-58"><strong>Line 208:</strong> <span> is present</span></p>

<p id="dt-comment-59"><strong>Line 210:</strong> <span> Expressing 2 properties in both orders means all of the set of properties</span></p>

<p id="dt-comment-60"><strong>Line 211:</strong> <span> must be present or none of them.</span></p>

<p id="dt-comment-61"><strong>Line 220:</strong> <span> if/then schema can be used to handle conditions on a property affecting</span></p>

<p id="dt-comment-62"><strong>Line 221:</strong> <span> another property. A typical case is a specific 'compatible' value changes the</span></p>

<p id="dt-comment-63"><strong>Line 222:</strong> <span> constraints on other properties.</span></p>

<p id="dt-comment-64"><strong>Line 223:</strong> <span></span></p>

<p id="dt-comment-65"><strong>Line 224:</strong> <span> For multiple 'if' schema, group them under an 'allOf'.</span></p>

<p id="dt-comment-66"><strong>Line 225:</strong> <span></span></p>

<p id="dt-comment-67"><strong>Line 226:</strong> <span> If the conditionals become too unwieldy, then it may be better to just split</span></p>

<p id="dt-comment-68"><strong>Line 227:</strong> <span> the binding into separate schema documents.</span></p>

<p id="dt-comment-69"><strong>Line 238:</strong> <span> If otherwise the property is not allowed:</span></p>

<p id="dt-comment-70"><strong>Line 241:</strong> <span> Altering schema depending on presence of properties is usually done by</span></p>

<p id="dt-comment-71"><strong>Line 242:</strong> <span> dependencies (see above), however some adjustments might require if:</span></p>

<p id="dt-comment-72"><strong>Line 251:</strong> <span> Ideally, the schema should have this line otherwise any other properties</span></p>

<p id="dt-comment-73"><strong>Line 252:</strong> <span> present are allowed. There's a few common properties such as 'status' and</span></p>

<p id="dt-comment-74"><strong>Line 253:</strong> <span> 'pinctrl-*' which are added automatically by the tooling.</span></p>

<p id="dt-comment-75"><strong>Line 254:</strong> <span></span></p>

<p id="dt-comment-76"><strong>Line 255:</strong> <span> This can't be used in cases where another schema is referenced</span></p>

<p id="dt-comment-77"><strong>Line 256:</strong> <span> (i.e. allOf: [{$ref: ...}]).</span></p>

<p id="dt-comment-78"><strong>Line 257:</strong> <span> If and only if another schema is referenced and arbitrary children nodes can</span></p>

<p id="dt-comment-79"><strong>Line 258:</strong> <span> appear, "unevaluatedProperties: false" could be used.  A typical example is</span></p>

<p id="dt-comment-80"><strong>Line 259:</strong> <span> an I2C controller where no name pattern matching for children can be added.</span></p>

<p id="dt-comment-81"><strong>Line 263:</strong> <span> Examples are now compiled with dtc and validated against the schemas</span></p>

<p id="dt-comment-82"><strong>Line 264:</strong> <span></span></p>

<p id="dt-comment-83"><strong>Line 265:</strong> <span> Examples have a default #address-cells and #size-cells value of 1. This can</span></p>

<p id="dt-comment-84"><strong>Line 266:</strong> <span> be overridden or an appropriate parent bus node should be shown (such as on</span></p>

<p id="dt-comment-85"><strong>Line 267:</strong> <span> i2c buses).</span></p>

<p id="dt-comment-86"><strong>Line 268:</strong> <span></span></p>

<p id="dt-comment-87"><strong>Line 269:</strong> <span> Any includes used have to be explicitly included. Use 4-space indentation.</span></p>

</details>
