Marvell MVEBU COMPHY Controller

Schema identifier ($id): "http://devicetree.org/schemas/phy/marvell,comphy-cp110.yaml#"

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

Maintainers (maintainers): "Miquel Raynal <miquel.raynal@bootlin.com>"

COMPHY controllers can be found on the following Marvell MVEBU SoCs:

  * Armada 7k/8k (on the CP110)
  * Armada 3700

It provides a number of shared PHYs used by various interfaces (network, SATA, USB, PCIe...).

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "marvell,comphy-cp110", "marvell,comphy-a3700"

reg — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Generic COMPHY registers

Item 2

Lane 1 (PCIe/GbE) registers (Armada 3700)

Item 3

Lane 0 (USB3/GbE) registers (Armada 3700)

Item 4

Lane 2 (SATA/USB3) registers (Armada 3700)

reg-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "comphy"

Item 2

Exact value (const): "lane1_pcie_gbe"

Item 3

Exact value (const): "lane0_usb3_gbe"

Item 4

Exact value (const): "lane2_sata_usb3"

#address-cells — not listed as required here #

Exact value (const): 1

#size-cells — not listed as required here #

Exact value (const): 0

clocks — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

clock-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

marvell,system-controller — not listed as required here #

Phandle to the Marvell system controller (CP110 only)

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

Properties matching a name pattern (patternProperties) #

^phy@[0-5]$ — name matches this regular expression #

A COMPHY lane child node

Value type (type): "object"

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

false

Not allowed by this rule.

Properties and child nodes (properties) #

reg — required here

COMPHY lane number

Maximum value (maximum): 5

#phy-cells — required here

Exact value (const): 1

connector — not listed as required here

Value type (type): "object"

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

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

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

false

Not allowed by this rule.

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Exact value (const): "marvell,comphy-a3700"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Maximum number of items (maxItems): 1

clock-names — not listed as required here

Exact value (const): "xtal"

Required in this object (required): "reg-names"

When the condition does not match (else) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 3

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "mg_clk"

Item 2

Exact value (const): "mg_core_clk"

Item 3

Exact value (const): "axi_clk"

Required in this object (required): "marvell,system-controller"

Examples (examples) #

phy@120000 {
    compatible = "marvell,comphy-cp110";
    reg = <0x120000 0x6000>;
    clocks = <&clk 1 5>, <&clk 1 6>, <&clk 1 18>;
    clock-names = "mg_clk", "mg_core_clk", "axi_clk";
    #address-cells = <1>;
    #size-cells = <0>;
    marvell,system-controller = <&syscon0>;

    phy@0 {
        reg = <0>;
        #phy-cells = <1>;
    };

    phy@1 {
        reg = <1>;
        #phy-cells = <1>;
    };
};
phy@18300 {
    compatible = "marvell,comphy-a3700";
    reg = <0x18300 0x300>,
          <0x1F000 0x400>,
          <0x5C000 0x400>,
          <0xe0178 0x8>;
    reg-names = "comphy",
                "lane1_pcie_gbe",
                "lane0_usb3_gbe",
                "lane2_sata_usb3";
    #address-cells = <1>;
    #size-cells = <0>;

    comphy0: phy@0 {
        reg = <0>;
        #phy-cells = <1>;
    };

    comphy1: phy@1 {
        reg = <1>;
        #phy-cells = <1>;
    };

    comphy2: phy@2 {
        reg = <2>;
        #phy-cells = <1>;
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page