Broadcom STB USB PHY

Schema identifier ($id): "http://devicetree.org/schemas/phy/brcm,brcmstb-usb-phy.yaml#"

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

Broadcom's PHY that handles EHCI/OHCI and/or XHCI

Maintainers (maintainers): "Al Cooper <alcooperx@gmail.com>", "Rafał Miłecki <rafal@milecki.pl>"

Properties and child nodes (properties) #

compatible — not listed as required here #

Allowed values (enum): "brcm,bcm4908-usb-phy", "brcm,bcm7211-usb-phy", "brcm,bcm7216-usb-phy", "brcm,bcm74110-usb-phy", "brcm,brcmstb-usb-phy"

reg — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

the base CTRL register

Item 2

XHCI EC register

Item 3

XHCI GBL register

Item 4

USB PHY register

Item 5

USB MDIO register

Item 6

BDC register

reg-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "ctrl"

Item 2

Exact value (const): "xhci_ec"

Item 3

Exact value (const): "xhci_gbl"

Item 4

Exact value (const): "usb_phy"

Item 5

Exact value (const): "usb_mdio"

Item 6

Exact value (const): "bdc_ec"

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

clock-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "sw_usb"

Item 2

Exact value (const): "sw_usb3"

interrupts — not listed as required here #

wakeup interrupt

interrupt-names — not listed as required here #

Exact value (const): "wake"

brcm,ipp — not listed as required here #

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

Invert Port Power

Minimum value (minimum): 0

Maximum value (maximum): 1

brcm,ioc — not listed as required here #

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

Invert Over Current detection

Minimum value (minimum): 0

Maximum value (maximum): 1

dr_mode — not listed as required here #

PHY Device mode. If this property is not defined, the PHY will default to "host" mode.

Allowed values (enum): "host", "peripheral", "drd", "typec-pd"

brcm,syscon-piarbctl — not listed as required here #

phandle to syscon for handling config registers

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

brcm,has-xhci — not listed as required here #

Indicates the PHY has an XHCI PHY.

Value type (type): "boolean"

brcm,has-eohci — not listed as required here #

Indicates the PHY has an EHCI/OHCI PHY.

Value type (type): "boolean"

#phy-cells — required here #

Cell allows setting the type of the PHY. Possible values are: - PHY_TYPE_USB2 for USB1.1/2.0 PHY - PHY_TYPE_USB3 for USB3.x PHY

Exact value (const): 1

Required in this object (required): "reg", "#phy-cells"

At least one of these rules must match (anyOf) #

Rule 1 #

Required in this object (required): "brcm,has-xhci"

Rule 2 #

Required in this object (required): "brcm,has-eohci"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "brcm,bcm4908-usb-phy", "brcm,brcmstb-usb-phy"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "brcm,bcm7211-usb-phy"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Minimum number of items (minItems): 5

Maximum number of items (maxItems): 6

reg-names — not listed as required here

Minimum number of items (minItems): 5

Maximum number of items (maxItems): 6

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "brcm,bcm7216-usb-phy", "brcm,bcm74110-usb-phy"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 3

reg-names — not listed as required here

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 3

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/phy/phy.h>

usb-phy@f0470200 {
    compatible = "brcm,brcmstb-usb-phy";
    reg = <0xf0470200 0xb8>,
          <0xf0471940 0x6c0>;
    #phy-cells = <1>;
    dr_mode = "host";
    brcm,ioc = <1>;
    brcm,ipp = <1>;
    brcm,has-xhci;
    brcm,has-eohci;
    clocks = <&usb20>, <&usb30>;
    clock-names = "sw_usb", "sw_usb3";
};
#include <dt-bindings/phy/phy.h>

usb-phy@29f0200 {
    compatible = "brcm,bcm7211-usb-phy";
    reg = <0x29f0200 0x200>,
          <0x29c0880 0x30>,
          <0x29cc100 0x534>,
          <0x2808000 0x24>,
          <0x2980080 0x8>;
    reg-names = "ctrl",
        "xhci_ec",
        "xhci_gbl",
        "usb_phy",
        "usb_mdio";
    brcm,ioc = <0x0>;
    brcm,ipp = <0x0>;
    interrupts = <0x30>;
    interrupt-parent = <&vpu_intr1_nosec_intc>;
    interrupt-names = "wake";
    #phy-cells = <0x1>;
    brcm,has-xhci;
    brcm,syscon-piarbctl = <&syscon_piarbctl>;
    clocks = <&scmi_clk 256>;
    clock-names = "sw_usb";
};

Source notes #

Annotations retained from the schema source

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

Edit this page