NXP PTN5110 Type-C Port Controller

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

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

Maintainers (maintainers): "Li Jun <jun.li@nxp.com>"

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Exact value (const): "nxp,ptn5110"

Item 2

Exact value (const): "tcpci"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

connector — required here #

Value type (type): "object"

Shared schema rule ($ref): /schemas/connector/usb-connector.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

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

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/usb/pd.h>
i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    tcpci@50 {
        compatible = "nxp,ptn5110", "tcpci";
        reg = <0x50>;
        interrupt-parent = <&gpio3>;
        interrupts = <3 IRQ_TYPE_LEVEL_LOW>;

        usb_con: connector {
            compatible = "usb-c-connector";
            label = "USB-C";
            data-role = "dual";
            power-role = "dual";
            try-power-role = "sink";
            source-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM)>;
            sink-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM) PDO_VAR(5000, 12000, 2000)>;
            op-sink-microwatt = <10000000>;

            ports {
                #address-cells = <1>;
                #size-cells = <0>;

                port@0 {
                   reg = <0>;
                   typec1_dr_sw: endpoint {
                       remote-endpoint = <&usb1_drd_sw>;
                   };
                };
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page