# Common i2c-controller class

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Shared binding definitions / i2c_

> Device-tree binding reference for Common i2c-controller class.

<!-- SPDX-License-Identifier: 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;i2c&#47;i2c&#45;controller&#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>

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

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

<a id="dt-5155525ecd924660ec0a"></a>

### <code>&#36;nodename</code> — not listed as required here

**String pattern (<code>pattern</code>):** <span id="dt-0b2111a24a010949ece7"><code>&#34;&#94;i2c&#40;&#64;&#46;&#43;&#124;&#45;&#91;a&#45;z0&#45;9&#93;&#43;&#41;&#63;&#36;&#34;</code></span>

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

### <code>i2c&#45;bus</code> — not listed as required here

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-8be81b57838cdadec017">[<code>&#35;</code>](<#dt-root>)</span>

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

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

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

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

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

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

<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>1</code></span>

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

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

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

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

<a id="dt-483ad10d63c0af298e6c"></a>

### <code>i2c&#45;scl&#45;falling&#45;time&#45;ns</code> — not listed as required here

<div id="dt-cf2722e21ee84c23a7bb">
<p style="white-space: pre-wrap">Number of nanoseconds the SCL signal takes to fall; t(f) in the I2C specification.</p>
</div>

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

### <code>i2c&#45;scl&#45;internal&#45;delay&#45;ns</code> — not listed as required here

<div id="dt-a126a9b34820c410c23a">
<p style="white-space: pre-wrap">Number of nanoseconds the IP core additionally needs to setup SCL.</p>
</div>

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

### <code>i2c&#45;scl&#45;rising&#45;time&#45;ns</code> — not listed as required here

<div id="dt-107124a2fd1d4637d3d9">
<p style="white-space: pre-wrap">Number of nanoseconds the SCL signal takes to rise; t(r) in the I2C specification.</p>
</div>

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

### <code>i2c&#45;scl&#45;clk&#45;low&#45;timeout&#45;us</code> — not listed as required here

<div id="dt-fd0d2fd9faff1ab6a48c">
<p style="white-space: pre-wrap">Number of microseconds the clock line needs to be pulled down in order to force a waiting state.</p>
</div>

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

### <code>i2c&#45;transfer&#45;timeout&#45;us</code> — not listed as required here

<div id="dt-c106dce8703186ef8c1e">
<p style="white-space: pre-wrap">Number of microseconds to wait before considering an I2C transfer has failed.</p>
</div>

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

### <code>i2c&#45;scl&#45;has&#45;clk&#45;low&#45;timeout</code> — not listed as required here

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

<div id="dt-8651b2e5ca268a224636">
<p style="white-space: pre-wrap">Indicates whether the controller implements the feature of wait induction through SCL low, with the timeout being implemented internally by the controller.</p>
</div>

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

### <code>i2c&#45;sda&#45;falling&#45;time&#45;ns</code> — not listed as required here

<div id="dt-baaafa8c682a778f3747">
<p style="white-space: pre-wrap">Number of nanoseconds the SDA signal takes to fall; t(f) in the I2C specification.</p>
</div>

<a id="dt-06bf20d65d15cbfadade"></a>

### <code>i2c&#45;analog&#45;filter</code> — not listed as required here

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

<div id="dt-3897878c9d58b8e0128f">
<p style="white-space: pre-wrap">Enable analog filter for i2c lines.</p>
</div>

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

### <code>i2c&#45;digital&#45;filter</code> — not listed as required here

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

<div id="dt-d110fe08687579f30d37">
<p style="white-space: pre-wrap">Enable digital filter for i2c lines.</p>
</div>

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

### <code>i2c&#45;digital&#45;filter&#45;width&#45;ns</code> — not listed as required here

<div id="dt-d4fa297b613ed28a2fb5">
<p style="white-space: pre-wrap">Width of spikes which can be filtered by digital filter (i2c-digital-filter). This width is specified in nanoseconds.</p>
</div>

<a id="dt-585be01d30f6ebb57759"></a>

### <code>i2c&#45;analog&#45;filter&#45;cutoff&#45;frequency</code> — not listed as required here

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

<div id="dt-77b462fab01e5b651de0">
<p style="white-space: pre-wrap">Frequency that the analog filter (i2c-analog-filter) uses to distinguish which signal to filter. Signal with higher frequency than specified will be filtered out. Only lower frequency will pass (this is applicable to a low-pass analog filter). Typical value should be above the normal i2c bus clock frequency (clock-frequency). Specified in Hz.</p>
</div>

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

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

<div id="dt-b3ddec0f69e9f0c0dc40">
<p style="white-space: pre-wrap">If not using interrupt-names, the first interrupt will be treated as the primary interrupt for the controller.</p>
</div>

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

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

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

#### At least one of these rules must match (<code>anyOf</code>)

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

**Rule 1**

> This rule adds no constraints.

<a id="dt-257d4d1bd90fc0caa425"></a>

**Rule 2**

> <a id="dt-87639e5fa99af54e89ec"></a>
>
> **Rule for matching array elements (<code>contains</code>)**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-c0d704a2f67e2f52a2fb"></a> <span id="dt-b7a055bfbfd802ace135"><code>&#34;smbus&#95;alert&#34;</code></span>
>
> <div id="dt-482641be9708ff416b28">
> <p style="white-space: pre-wrap">Generic name is "smbus_alert" for the SMBusAlert signal. Other names are left to individual bindings.</p>
> </div>

<a id="dt-857bcbb2f1c5b337382c"></a>

### <code>mctp&#45;controller</code> — not listed as required here

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

<div id="dt-2222a5e670411ba9541d">
<p style="white-space: pre-wrap">Indicates that the system is accessible via this bus as an endpoint for MCTP over I2C transport.</p>
</div>

<a id="dt-23944a22e5dfbbc996fb"></a>

### <code>multi&#45;master</code> — not listed as required here

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

<div id="dt-65bd0c9b0020ccd6872b">
<p style="white-space: pre-wrap">States that there is another controller active on this bus. The OS can use this information to adapt power management to keep the arbitration awake all the time, for example. Can not be combined with 'single-master'.</p>
</div>

<a id="dt-8613faf4e22687cd03b4"></a>

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

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

<div id="dt-c462f43ad0f1705d55d3">
<p style="white-space: pre-wrap">Specifies the GPIO related to SCL pin. Used for GPIO bus recovery.</p>
</div>

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

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

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

<div id="dt-5d89f3877cf5b7ec40ea">
<p style="white-space: pre-wrap">Specifies the GPIO related to SDA pin. Optional for GPIO bus recovery.</p>
</div>

<a id="dt-7769797f45a82d03fddf"></a>

### <code>single&#45;master</code> — not listed as required here

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

<div id="dt-151fd00f6fa398e01710">
<p style="white-space: pre-wrap">States that there is no other controller active on this bus. The OS can use this information to detect a stalled bus more reliably, for example. Can not be combined with 'multi-master'.</p>
</div>

<a id="dt-2376930404b317231e7e"></a>

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

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

<div id="dt-3ce87fd5aa4355bb06fd">
<p style="white-space: pre-wrap">Specifies the GPIO used for the SMBALERT# line. Optional.</p>
</div>

<a id="dt-24b89eefb6dff4b2c0ce"></a>

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

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

<div id="dt-7d954838486f9d919e26">
<p style="white-space: pre-wrap">States that additional SMBus restrictions and features apply to this bus. An example of feature is SMBusHostNotify. Examples of restrictions are more reserved addresses and timeout definitions.</p>
</div>

<a id="dt-31258f9471ac0b59eb0d"></a>

### <code>smbus&#45;alert</code> — not listed as required here

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

<div id="dt-a52f623383715f312536">
<p style="white-space: pre-wrap">states that the optional SMBus-Alert feature apply to this bus.</p>
</div>

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

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

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

### Rule 1

> <a id="dt-f357ab697ab7a4c6eb31"></a>
>
> #### This rule must not match (<code>not</code>)
>
> > **Required in this object (<code>required</code>):** <a id="dt-2315c258b000185502a6"></a> <span id="dt-628f804e14727b8cd020"><code>&#34;i2c&#45;scl&#45;clk&#45;low&#45;timeout&#45;us&#34;</code></span>, <span id="dt-11e1b1627b92721a32f3"><code>&#34;i2c&#45;scl&#45;has&#45;clk&#45;low&#45;timeout&#34;</code></span>

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

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

<a id="dt-573587cdb3ff39c5b5e0"></a>

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

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

<a id="dt-2086facb1246423cc914"></a>

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

<a id="dt-11d15fd5bdba07ab85a5"></a>

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

<a id="dt-77231ae4a1cc0849a3a3"></a>

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

> <a id="dt-6da5a14672d5e6829465"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-a1e766768fe9dbb545f9"></a>
>
> **Item 1**
>
> > <a id="dt-b3678c2f69522a0ce8a5"></a>
> >
> > **Exactly one of these rules must match (<code>oneOf</code>)**
> >
> > <a id="dt-1bc34cd403a4127fec77"></a>
> >
> > **Rule 1**
> >
> > > **Maximum value (<code>maximum</code>):** <span id="dt-4a144b94e4babb20d14e"><code>127</code></span>
> >
> > <a id="dt-2b2776b4dfe3519597da"></a>
> >
> > **Rule 2**
> >
> > > **Minimum value (<code>minimum</code>):** <span id="dt-5ea1dbcd46bbde8937ed"><code>1073741824</code></span>
> > >
> > > **Maximum value (<code>maximum</code>):** <span id="dt-e0223049e95ba3a68696"><code>1073741951</code></span>
> >
> > <a id="dt-8968660ce417a120e636"></a>
> >
> > **Rule 3**
> >
> > > **Minimum value (<code>minimum</code>):** <span id="dt-4c881389cb35d6cfe3ff"><code>2147483648</code></span>
> > >
> > > **Maximum value (<code>maximum</code>):** <span id="dt-ae6e59b8d840924eca88"><code>2147484671</code></span>
> >
> > <a id="dt-325df2bd3794fa0fb2c9"></a>
> >
> > **Rule 4**
> >
> > > **Minimum value (<code>minimum</code>):** <span id="dt-2bb9ae056cc8a7cfd246"><code>3221225472</code></span>
> > >
> > > **Maximum value (<code>maximum</code>):** <span id="dt-3964c7fd0b2ee1626636"><code>3221226495</code></span>

<div id="dt-97f4c9116970a1f94f97">
<p style="white-space: pre-wrap">One or many I2C target addresses. These are usually 7 bit addresses.
However, flags can be attached to an address. I2C_TEN_BIT_ADDRESS is
used to mark a 10 bit address. It is needed to avoid the ambiguity
between e.g. a 7 bit address of 0x50 and a 10 bit address of 0x050
which, in theory, can be on the same bus.
Another flag is I2C_OWN_SLAVE_ADDRESS to mark addresses on which we
listen to be devices ourselves.</p>
</div>

<a id="dt-6e94a74b5a58e2375687"></a>

**<code>host&#45;notify</code> — not listed as required here**

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

<div id="dt-bef0dd38b987dcd11dce">
<p style="white-space: pre-wrap">Device uses SMBus host notify protocol instead of interrupt line. Requires being connected to an adapter that supports this feature.</p>
</div>

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

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

<div id="dt-fd19442c5c0a6a8385d7">
<p style="white-space: pre-wrap">If not using interrupt-names, the first interrupt will be treated as the primary interrupt for the target.</p>
</div>

<a id="dt-2917b4a4520ba79d83e8"></a>

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

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

**At least one of these rules must match (<code>anyOf</code>)**

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

**Rule 1**

> This rule adds no constraints.

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

**Rule 2**

> <a id="dt-2f8391eaf171f50e8c87"></a>
>
> **Rule for matching array elements (<code>contains</code>)**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-b1f2c5564728a3722668"></a> <span id="dt-854895b0ef0d7c68411b"><code>&#34;irq&#34;</code></span>, <span id="dt-6d7dd7236c33a45900eb"><code>&#34;wakeup&#34;</code></span>
>
> <div id="dt-22d5b3391cf76ea53a12">
> <p style="white-space: pre-wrap">Generic names are "irq" for the primary interrupt and "wakeup" for the wakeup interrupt. Other names are left to individual bindings.</p>
> </div>

<a id="dt-191074c1affd8e199c15"></a>

**<code>wakeup&#45;source</code> — not listed as required here**

<div id="dt-0d120759d48585b70765">
<p style="white-space: pre-wrap">Device can be used as a wakeup source. The device should also have "wakeup" interrupt for the device. If "wakeup" interrupt name is not present in the binding, then primary interrupt will be used as wakeup interrupt.</p>
</div>

**Required in this object (<code>required</code>):** <a id="dt-135aee2a2b59e6c53533"></a> <span id="dt-edfb2b957765627279df"><code>&#34;reg&#34;</code></span>

**Requirements triggered by another property (<code>dependentRequired</code>):** <a id="dt-e3a4857bf233f030e290"></a> { <code>i2c&#45;analog&#45;filter&#45;cutoff&#45;frequency</code>: <a id="dt-8d3d666f9acb947f8c48"></a> <span id="dt-2d706e51e8084d4d25de"><code>&#34;i2c&#45;analog&#45;filter&#34;</code></span>, <code>i2c&#45;digital&#45;filter&#45;width&#45;ns</code>: <a id="dt-5ea079facdb9ed231718"></a> <span id="dt-534e2e0901c195dffa18"><code>&#34;i2c&#45;digital&#45;filter&#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: 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 3:</strong> <span> Copyright 2015,2020 Wolfram Sang &lt;wsa@sang-engineering.com&gt;</span></p>

<p id="dt-comment-3"><strong>Line 4:</strong> <span> Copyright 2022 Arm Ltd.</span></p>

<p id="dt-comment-4"><strong>Line 102:</strong> <span> Any name is allowed.</span></p>

<p id="dt-comment-5"><strong>Line 201:</strong> <span> Any name is allowed.</span></p>

</details>
