Micrel series Gigabit Ethernet PHYs

Schema identifier ($id): "http://devicetree.org/schemas/net/micrel,gigabit.yaml#"

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

Maintainers (maintainers): "Andrew Lunn <andrew@lunn.ch>", "Stefan Eichenberger <eichest@gmail.com>"

Some boards require special skew tuning values, particularly when it comes to clock delays. These values can be specified in the device tree using the properties listed here.

Properties and child nodes (properties) #

compatible — not listed as required here #

Allowed values (enum): "ethernet-phy-id0022.1610", "ethernet-phy-id0022.1611", "ethernet-phy-id0022.1620", "ethernet-phy-id0022.1631", "ethernet-phy-id0022.1640", "ethernet-phy-id0022.1650", "ethernet-phy-id0022.1660", "ethernet-phy-id0022.1670"

micrel,force-master — not listed as required here #

Value type (type): "boolean"

Force phy to master mode. Only set this option if the phy reference clock provided at CLK125_NDO pin is used as MAC reference clock because the clock jitter in slave mode is too high (errata#2). Attention: The link partner must be configurable as slave otherwise no link will be established.

coma-mode-gpios — not listed as required here #

Maximum number of items (maxItems): 1

If present the given gpio will be deasserted when the PHY is probed.

Some PHYs have a COMA mode input pin which puts the PHY into isolate and power-down mode. On some boards this input is connected to a GPIO of the SoC.

micrel,led-mode — not listed as required here #

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

LED mode value to set for PHYs with configurable LEDs.

Configure the LED mode with single value. The list of PHYs and the bits that are currently supported:

LAN8814: register EP5.0, bit 6

See the respective PHY datasheet for the mode values.

Minimum value (minimum): 0

Maximum value (maximum): 1

Properties matching a name pattern (patternProperties) #

^([rt]xc)-skew-psec$ — name matches this regular expression #

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

Skew control of the pad in picoseconds.

Minimum value (minimum): -700

Maximum value (maximum): 2400

Multiple of (multipleOf): 100

Default value (default): 0

^([rt]xd[0-3]|rxdv|txen)-skew-psec$ — name matches this regular expression #

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

Skew control of the pad in picoseconds.

Minimum value (minimum): -700

Maximum value (maximum): 800

Multiple of (multipleOf): 100

Default value (default): 0

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): ethernet-phy.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "ethernet-phy-id0022.1610", "ethernet-phy-id0022.1611"

When the condition matches (then) #

Properties matching a name pattern (patternProperties)

^([rt]xd[0-3]|[rt]xc|rxdv|txen)-skew-ps$ — name matches this regular expression

Skew control of the pad in picoseconds. The actual increment on the chip is 120ps ranging from -840ps to 960ps, this mismatch comes from a documentation error before datasheet revision 1.2 (Feb 2014).

The device tree value to delay mapping looks as follows: Device Tree Value Delay -------------------------- 0 -840ps 200 -720ps 400 -600ps 600 -480ps 800 -360ps 1000 -240ps 1200 -120ps 1400 0ps 1600 120ps 1800 240ps 2000 360ps 2200 480ps 2400 600ps 2600 720ps 2800 840ps 3000 960ps

Minimum value (minimum): 0

Maximum value (maximum): 3000

Multiple of (multipleOf): 200

Default value (default): 1400

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "ethernet-phy-id0022.1620"

When the condition matches (then) #

Properties matching a name pattern (patternProperties)

^([rt]xc)-skew-ps$ — name matches this regular expression

Skew control of the pad in picoseconds.

The device tree value to delay mapping is as follows: Device Tree Value Delay -------------------------- 0 -900ps 60 -840ps 120 -780ps 180 -720ps 240 -660ps 300 -600ps 360 -540ps 420 -480ps 480 -420ps 540 -360ps 600 -300ps 660 -240ps 720 -180ps 780 -120ps 840 -60ps 900 0ps 960 60ps 1020 120ps 1080 180ps 1140 240ps 1200 300ps 1260 360ps 1320 420ps 1380 480ps 1440 540ps 1500 600ps 1560 660ps 1620 720ps 1680 780ps 1740 840ps 1800 900ps 1860 960ps

Minimum value (minimum): 0

Maximum value (maximum): 1860

Multiple of (multipleOf): 60

Default value (default): 900

^([rt]xd[0-3]|rxdv|txen)-skew-ps$ — name matches this regular expression

Skew control of the pad in picoseconds.

The device tree value to delay mapping is as follows: Device Tree Value Delay -------------------------- 0 -420ps 60 -360ps 120 -300ps 180 -240ps 240 -180ps 300 -120ps 360 -60ps 420 0ps 480 60ps 540 120ps 600 180ps 660 240ps 720 300ps 780 360ps 840 420ps 900 480ps

Minimum value (minimum): 0

Maximum value (maximum): 900

Multiple of (multipleOf): 60

Default value (default): 420

Rule 4 #

Condition (if) #

This rule must not match (not)

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "ethernet-phy-id0022.1640", "ethernet-phy-id0022.1650"

When the condition matches (then) #

Properties matching a name pattern (patternProperties)

^([rt]xd[0-3]|[rt]xc|rxdv|txen)-skew-psec$ — name matches this regular expression

false — Not permitted by this property rule.

Rule 5 #

Condition (if) #

This rule must not match (not)

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "ethernet-phy-id0022.1620"

When the condition matches (then) #

Properties and child nodes (properties)

micrel,force-master — not listed as required here

false — Not permitted by this property rule.

Rule 6 #

Condition (if) #

This rule must not match (not)

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "ethernet-phy-id0022.1660"

When the condition matches (then) #

Properties and child nodes (properties)

coma-mode-gpios — not listed as required here

false — Not permitted by this property rule.

micrel,led-mode — not listed as required here

false — Not permitted by this property rule.

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

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

    ethernet-phy@7 {
        compatible = "ethernet-phy-id0022.1610";
        reg = <7>;
        rxc-skew-ps = <3000>;
        rxdv-skew-ps = <0>;
        txc-skew-ps = <3000>;
        txen-skew-ps = <0>;
    };

    ethernet-phy@9 {
        compatible = "ethernet-phy-id0022.1640";
        reg = <9>;
        rxc-skew-psec = <(-100)>;
        txc-skew-psec = <(-100)>;
    };
};

Source notes #

Annotations retained from the schema source

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

Line 21: KSZ9021

Line 22: KSZ9021RLRN

Line 23: KSZ9031

Line 24: KSZ9477

Line 25: KSZ9131

Line 26: LAN8841

Line 27: LAN8814

Line 28: LAN8804

Edit this page