ON Semiconductor Analog Audio Switch

Schema identifier ($id): "http://devicetree.org/schemas/usb/fcs,fsa4480.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Bjorn Andersson <bjorn.andersson@linaro.org>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "fcs,fsa4480"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "ocs,ocp96011"

Item 2

Exact value (const): "fcs,fsa4480"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

vcc-supply — not listed as required here #

power supply (2.7V-5.5V)

mode-switch — not listed as required here #

true — No constraints added by this property rule.

orientation-switch — not listed as required here #

true — No constraints added by this property rule.

port — required here #

Shared schema rule ($ref): /schemas/graph.yaml#/$defs/port-base

A port node to link the FSA4480 to a TypeC controller for the purpose of handling altmode muxing and orientation switching.

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

endpoint — not listed as required here

Shared schema rule ($ref): /schemas/graph.yaml#/$defs/endpoint-base

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

data-lanes — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Specifies how the AUX+/- lines are connected to SBU1/2.

Exactly one of these rules must match (oneOf)

Rule 1

Array item rules (items)

Item 1

Exact value (const): 0

Item 2

Exact value (const): 1

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

Rule 2

Array item rules (items)

Item 1

Exact value (const): 1

Item 2

Exact value (const): 0

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

Required in this object (required): "compatible", "reg", "port"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): usb-switch.yaml#

Rule 2 #

Shared schema rule ($ref): usb-switch-ports.yaml#

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
i2c13 {
    #address-cells = <1>;
    #size-cells = <0>;

    typec-mux@42 {
        compatible = "fcs,fsa4480";
        reg = <0x42>;

        interrupts-extended = <&tlmm 2 IRQ_TYPE_LEVEL_LOW>;

        vcc-supply = <&vreg_bob>;

        mode-switch;
        orientation-switch;

        port {
            fsa4480_ept: endpoint {
                remote-endpoint = <&typec_controller>;
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Edit this page