# Samsung Exynos SoC SROM Controller driver

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

> Device-tree binding reference for Samsung Exynos SoC SROM Controller driver.

<!-- 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;memory&#45;controllers&#47;exynos&#45;srom&#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;Krzysztof Kozlowski &#60;krzk&#64;kernel&#46;org&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The SROM controller can be used to attach external peripherals. In this case
extra properties, describing the bus behind it, should be specified.</p>
</div>

<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-cc3709943397035582d2"></a>

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

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

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-aaadfb6b044cada8472e"><code>&#34;samsung&#44;exynos4210&#45;srom&#34;</code></span>

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

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

**Maximum number of items (<code>maxItems</code>):** <span id="dt-71421d35675d9a533ad2"><code>1</code></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>2</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>1</code></span>

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

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

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

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

<div id="dt-e09d62fd28b1cb158f01">
<p style="white-space: pre-wrap">Reflects the memory layout with four integer values per bank. Format:
&lt;bank-number&gt; 0 &lt;parent address of bank&gt; &lt;size&gt;
Up to four banks are supported.</p>
</div>

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

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

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

### <code>&#94;&#46;&#42;&#64;&#91;0&#45;3&#93;&#44;&#91;a&#45;f0&#45;9&#93;&#43;&#36;</code> — name matches this regular expression

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-6b27555ac479a8e5e57d">[<code>mc&#45;peripheral&#45;props&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-memory-controllers/mc-peripheral-props.md#dt-root>)</span>

<a id="dt-892260074306d25445e5"></a>

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

<code>true</code>

Allowed by this rule.

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

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

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

**<code>reg&#45;io&#45;width</code> — not listed as required here**

**Allowed values (<code>enum</code>):** <a id="dt-16ade0806f81a7bdef6a"></a> <span id="dt-584780b11145435647ac"><code>1</code></span>, <span id="dt-92c8f19cc1090b5142c0"><code>2</code></span>

<div id="dt-84b2b6e4312796e938d4">
<p style="white-space: pre-wrap">Data width in bytes (1 or 2). If omitted, default of 1 is used.</p>
</div>

**Required in this object (<code>required</code>):** <a id="dt-c066b12b3565be53eb09"></a> <span id="dt-86f9c59193a3b4076bb4"><code>&#34;samsung&#44;srom&#45;timing&#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>

<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">// Example: basic definition, no banks are configured
memory-controller@12560000 {
    compatible = "samsung,exynos4210-srom";
    reg = &lt;0x12560000 0x14&gt;;
};
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><code class="language-dts">// Example: SROMc with SMSC911x ethernet chip on bank 3
memory-controller@12570000 {
    #address-cells = &lt;2&gt;;
    #size-cells = &lt;1&gt;;
    ranges = &lt;0 0 0x04000000 0x20000   // Bank0
              1 0 0x05000000 0x20000   // Bank1
              2 0 0x06000000 0x20000   // Bank2
              3 0 0x07000000 0x20000&gt;; // Bank3

    compatible = "samsung,exynos4210-srom";
    reg = &lt;0x12570000 0x14&gt;;

    ethernet@3,0 {
        compatible = "smsc,lan9115";
        reg = &lt;3 0 0x10000&gt;;     // Bank 3, offset = 0
        phy-mode = "mii";
        interrupt-parent = &lt;&amp;gpx0&gt;;
        interrupts = &lt;5 8&gt;;
        reg-io-width = &lt;2&gt;;
        smsc,irq-push-pull;
        smsc,force-internal-phy;

        samsung,srom-page-mode;
        samsung,srom-timing = &lt;9 12 1 9 1 1&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>

</details>
