MediaTek SGMIISYS Controller

Schema identifier ($id): "http://devicetree.org/schemas/net/pcs/mediatek,sgmiisys.yaml#"

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

Maintainers (maintainers): "Matthias Brugger <matthias.bgg@gmail.com>"

The MediaTek SGMIISYS controller provides a SGMII PCS and some clocks to the ethernet subsystem to which it is attached.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "mediatek,mt7622-sgmiisys", "mediatek,mt7629-sgmiisys", "mediatek,mt7981-sgmiisys_0", "mediatek,mt7981-sgmiisys_1", "mediatek,mt7986-sgmiisys_0", "mediatek,mt7986-sgmiisys_1"

Item 2

Exact value (const): "syscon"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "mediatek,mt7988-sgmiisys0", "mediatek,mt7988-sgmiisys1"

Item 2

Exact value (const): "simple-mfd"

Item 3

Exact value (const): "syscon"

reg — required here #

Maximum number of items (maxItems): 1

#clock-cells — required here #

Exact value (const): 1

mediatek,pnswap — not listed as required here #

Invert polarity of the SGMII data lanes. This property is deprecated, for details please refer to Documentation/devicetree/bindings/phy/phy-common-props.yaml.

Value type (type): "boolean"

Deprecated (deprecated): true

pcs — not listed as required here #

Value type (type): "object"

MediaTek LynxI HSGMII PCS

Shared schema rule ($ref): /schemas/phy/phy-common-props.yaml#

Properties and child nodes (properties) #

compatible — required here

Exact value (const): "mediatek,mt7988-sgmii"

clocks — required here

Maximum number of items (maxItems): 3

clock-names — required here

Array item rules (items)

Item 1

Exact value (const): "sgmii_sel"

Item 2

Exact value (const): "sgmii_tx"

Item 3

Exact value (const): "sgmii_rx"

Required in this object (required): "compatible", "clocks", "clock-names"

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

false

Not allowed by this rule.

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

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): "mediatek,mt7988-sgmiisys0", "mediatek,mt7988-sgmiisys1"

When the condition matches (then) #

Required in this object (required): "pcs"

When the condition does not match (else) #

Properties and child nodes (properties)

pcs — not listed as required here

false — Not permitted by this property rule.

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

false

Not allowed by this rule.

Examples (examples) #

soc {
  #address-cells = <2>;
  #size-cells = <2>;
  sgmiisys: syscon@1b128000 {
    compatible = "mediatek,mt7622-sgmiisys", "syscon";
    reg = <0 0x1b128000 0 0x1000>;
    #clock-cells = <1>;
  };
};

Source notes #

Annotations retained from the schema source

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

Edit this page