# ON Semiconductor Analog Audio Switch

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

> Device-tree binding reference for ON Semiconductor Analog Audio Switch.

<!-- 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;fcs&#44;fsa4480&#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;Bjorn Andersson &#60;bjorn&#46;andersson&#64;linaro&#46;org&#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-39566f01414e34c67b85"></a>

#### Exactly one of these rules must match (<code>oneOf</code>)

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

**Rule 1**

> **Exact value (<code>const</code>):** <span id="dt-d1fe1b456a54b64074d3"><code>&#34;fcs&#44;fsa4480&#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**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-aa1230b5a2b80f9fb387"></a> <span id="dt-49b534c9c8948cfc8034"><code>&#34;ocs&#44;ocp96011&#34;</code></span>
>
> <a id="dt-bdc26de0ccb1d52bb6a4"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-cc26fa5d96bc7cf0a818"><code>&#34;fcs&#44;fsa4480&#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>

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

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

<div id="dt-304923183fea32e69a40">
<p style="white-space: pre-wrap">power supply (2.7V-5.5V)</p>
</div>

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

### <code>mode&#45;switch</code> — not listed as required here

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

<a id="dt-8459239d22594ac44b38"></a>

### <code>orientation&#45;switch</code> — not listed as required here

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

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-1ed24d3512fbe8ce2017">[<code>&#47;schemas&#47;graph&#46;yaml&#35;&#47;&#36;defs&#47;port&#45;base</code>](</kernel/hardware/devicetree-bindings/dt-shared/graph.md#dt-61dbefbf4cdd7cc4556a>)</span>

<div id="dt-0cd71b006a1fcbec8daa">
<p style="white-space: pre-wrap">A port node to link the FSA4480 to a TypeC controller for the purpose of handling altmode muxing and orientation switching.</p>
</div>

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

#### Properties not evaluated by applicable rules (<code>unevaluatedProperties</code>)

<code>false</code>

Not allowed by this rule.

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

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

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-4d56cb4bb8332929f9b4">[<code>&#47;schemas&#47;graph&#46;yaml&#35;&#47;&#36;defs&#47;endpoint&#45;base</code>](</kernel/hardware/devicetree-bindings/dt-shared/graph.md#dt-7415ffe8e57fb59e2968>)</span>

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

**Properties not evaluated by applicable rules (<code>unevaluatedProperties</code>)**

<code>false</code>

Not allowed by this rule.

<a id="dt-379ad4ba4c48ef74875c"></a>

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

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

**<code>data&#45;lanes</code> — not listed as required here**

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-12a920e61ee2dc0d8305">[<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-b3ec2f95ab718f293e41">
<p style="white-space: pre-wrap">Specifies how the AUX+/- lines are connected to SBU1/2.</p>
</div>

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

**Exactly one of these rules must match (<code>oneOf</code>)**

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

**Rule 1**

> <a id="dt-186991646770d2d78964"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-6e6952455d3d877fb1f3"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-a42469169171aea45417"><code>0</code></span>
>
> <a id="dt-d48022e31b3d00074fca"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-fdcd4807e141c375570d"><code>1</code></span>
>
> <div id="dt-0f0742ef1b70978758fd">
> <p style="white-space: pre-wrap">Default AUX/SBU layout (FSA4480)
> - AUX+ connected to SBU2
> - AUX- connected to SBU1
> Default AUX/SBU layout (OCP96011)
> - AUX+ connected to SBU1
> - AUX- connected to SBU2</p>
> </div>

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

**Rule 2**

> <a id="dt-56348236755e73db2b3b"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-5080b43219d7e5703321"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-a2b272cb4a832947d40f"><code>1</code></span>
>
> <a id="dt-fcde869396159c52b53a"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-a4a17d66a75440576920"><code>0</code></span>
>
> <div id="dt-363f6fc3dc504eb3ae6e">
> <p style="white-space: pre-wrap">Swapped AUX/SBU layout (FSA4480)
> - AUX+ connected to SBU1
> - AUX- connected to SBU2
> Swapped AUX/SBU layout (OCP96011)
> - AUX+ connected to SBU2
> - AUX- connected to SBU1</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>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;port&#34;</code></span>

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

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

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

### Rule 1

> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-95c8874f25311f4b1ab1">[<code>usb&#45;switch&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-usb/usb-switch.md#dt-root>)</span>

<a id="dt-22ca5ec5b89308748ecc"></a>

### Rule 2

> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-8549616abc3b04702c51">[<code>usb&#45;switch&#45;ports&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-usb/usb-switch-ports.md#dt-root>)</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">#include &lt;dt-bindings/interrupt-controller/irq.h&gt;
i2c13 {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    typec-mux@42 {
        compatible = "fcs,fsa4480";
        reg = &lt;0x42&gt;;

        interrupts-extended = &lt;&amp;tlmm 2 IRQ_TYPE_LEVEL_LOW&gt;;

        vcc-supply = &lt;&amp;vreg_bob&gt;;

        mode-switch;
        orientation-switch;

        port {
            fsa4480_ept: endpoint {
                remote-endpoint = &lt;&amp;typec_controller&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>
