# Broadcom USB pin map Controller

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

> Device-tree binding reference for Broadcom USB pin map Controller.

<!-- 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;usb&#47;brcm&#44;usb&#45;pinmap&#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;Al Cooper &#60;alcooperx&#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-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;brcm&#44;usb&#45;pinmap&#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-c2de09e7f7fd211b679d"></a>

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

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

<div id="dt-b3ddec0f69e9f0c0dc40">
<p style="white-space: pre-wrap">Interrupt for signals mirrored to out-gpios.</p>
</div>

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

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

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

**Maximum number of items (<code>maxItems</code>):** <span id="dt-1075ed08cdac56d36845"><code>2</code></span>

<div id="dt-c75e3135542864aaf67f">
<p style="white-space: pre-wrap">Array of one or two GPIO pins used for input signals.</p>
</div>

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

### <code>brcm&#44;in&#45;functions</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-86a9049361ceb62d16b1">[<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>

<div id="dt-c5b307741744f3659481">
<p style="white-space: pre-wrap">Array of input signal names, one per gpio in in-gpios.</p>
</div>

<a id="dt-52d40ca0eb56e31db1dd"></a>

### <code>brcm&#44;in&#45;masks</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-cd5df7953c8d2b6083a7">[<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>

<div id="dt-3ff0dc36d25a041e9ab4">
<p style="white-space: pre-wrap">Array of enable and mask pairs, one per gpio in-gpios.</p>
</div>

<a id="dt-7828d1c34138a4c00911"></a>

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

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

<div id="dt-6a66448e151ca5b4ceb3">
<p style="white-space: pre-wrap">Array of one GPIO pin used for output signals.</p>
</div>

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

### <code>brcm&#44;out&#45;functions</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-7c8d1a121485cbe80e64">[<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>

<div id="dt-d7810a43a4b3be6260ff">
<p style="white-space: pre-wrap">Array of output signal names, one per gpio in out-gpios.</p>
</div>

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

### <code>brcm&#44;out&#45;masks</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-bb2c6e239efcdc518a5e">[<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>

<div id="dt-619895419dba8b55554f">
<p style="white-space: pre-wrap">Array of enable, value, changed and clear masks, one per gpio in out-gpios.</p>
</div>

**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-3d235861b18e278e9c09"></a>

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

<a id="dt-080d42690184b85b5255"></a>

### <code>in&#45;gpios</code> — applies when this property is present

Also requires: <span id="dt-9564671d6f1b57b82008"><code>&#34;interrupts&#34;</code></span>

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

## Examples (<code>examples</code>)

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">usb_pinmap: usb-pinmap@22000d0 {
    compatible = "brcm,usb-pinmap";
    reg = &lt;0x22000d0 0x4&gt;;
    in-gpios = &lt;&amp;gpio 18 0&gt;, &lt;&amp;gpio 19 0&gt;;
    brcm,in-functions = "VBUS", "PWRFLT";
    brcm,in-masks = &lt;0x8000 0x40000 0x10000 0x80000&gt;;
    out-gpios = &lt;&amp;gpio 20 0&gt;;
    brcm,out-functions = "PWRON";
    brcm,out-masks = &lt;0x20000 0x800000 0x400000 0x200000&gt;;
    interrupts = &lt;0x0 0xb2 0x4&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>

</details>
