CPSW Port's Interface Mode Selection PHY
Schema identifier ($id): "http://devicetree.org/schemas/phy/ti,phy-gmii-sel.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Kishon Vijay Abraham I <kishon@ti.com>"
TI am335x/am437x/dra7(am5)/dm814x CPSW3G Ethernet Subsystem supports
two 10/100/1000 Ethernet ports with selectable G/MII, RMII, and RGMII interfaces.
The interface mode is selected by configuring the MII mode selection register(s)
(GMII_SEL) in the System Control Module chapter (SCM). GMII_SEL register(s) and
bit fields placement in SCM are different between SoCs while fields meaning
is the same.
+--------------+
+-------------------------------+ |SCM |
| CPSW | | +---------+ |
| +--------------------------------+gmii_sel | |
| | | | +---------+ |
| +----v---+ +--------+ | +--------------+
| |Port 1..<--+-->GMII/MII<------->
| | | | | | |
| +--------+ | +--------+ |
| | |
| | +--------+ |
| | | RMII <------->
| +--> | |
| | +--------+ |
| | |
| | +--------+ |
| | | RGMII <------->
| +--> | |
| +--------+ |
+-------------------------------+
CPSW Port's Interface Mode Selection PHY describes MII interface mode between CPSW Port and Ethernet PHY which depends on Eth PHY and board configuration. | CPSW Port's Interface Mode Selection PHY device should defined as child device of SCM node (scm_conf) and can be attached to each CPSW port node using standard PHY bindings.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,am3352-phy-gmii-sel", "ti,dra7xx-phy-gmii-sel", "ti,am43xx-phy-gmii-sel", "ti,dm814-phy-gmii-sel", "ti,am654-phy-gmii-sel", "ti,j7200-cpsw5g-phy-gmii-sel", "ti,j721e-cpsw9g-phy-gmii-sel", "ti,j784s4-cpsw9g-phy-gmii-sel"
reg — required here #
Maximum number of items (maxItems): 1
#phy-cells — required here #
true — No constraints added by this property rule.
ti,qsgmii-main-ports — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Required only for QSGMII mode. Array to select the port/s for QSGMII main mode. The size of the array corresponds to the number of QSGMII interfaces and thus, the number of distinct QSGMII main ports, supported by the device. If the device supports two QSGMII interfaces but only one QSGMII interface is desired, repeat the QSGMII main port value corresponding to the QSGMII interface in the array.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Array item rules (items) #
Minimum value (
minimum):1Maximum value (
maximum):8
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"ti,dra7xx-phy-gmii-sel","ti,dm814-phy-gmii-sel","ti,am654-phy-gmii-sel","ti,j7200-cpsw5g-phy-gmii-sel","ti,j721e-cpsw9g-phy-gmii-sel","ti,j784s4-cpsw9g-phy-gmii-sel"When the condition matches (
then) #Properties and child nodes (
properties)
#phy-cells— not listed as required hereExact value (
const):1CPSW port number (starting from 1)
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
ti,qsgmii-main-ports— not listed as required hereMaximum number of items (
maxItems):1Array item rules (
items)Minimum value (
minimum):1Maximum value (
maximum):4
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"ti,j721e-cpsw9g-phy-gmii-sel","ti,j784s4-cpsw9g-phy-gmii-sel"When the condition matches (
then) #Properties and child nodes (
properties)
ti,qsgmii-main-ports— not listed as required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):2Array item rules (
items)Minimum value (
minimum):1Maximum value (
maximum):8
Rule 4 #
Condition (
if) #This rule must not match (
not)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"ti,j7200-cpsw5g-phy-gmii-sel","ti,j721e-cpsw9g-phy-gmii-sel","ti,j784s4-cpsw9g-phy-gmii-sel"When the condition matches (
then) #Properties and child nodes (
properties)
ti,qsgmii-main-ports— not listed as required here
false— Not permitted by this property rule.
Rule 5 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"ti,am3352-phy-gmii-sel","ti,am43xx-phy-gmii-sel"When the condition matches (
then) #Properties and child nodes (
properties)
#phy-cells— not listed as required hereExact value (
const):2- CPSW port number (starting from 1) - RMII refclk mode
Required in this object (required): "compatible", "reg", "#phy-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
phy_gmii_sel: phy@650 {
compatible = "ti,am3352-phy-gmii-sel";
reg = <0x650 0x4>;
#phy-cells = <2>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 2: Copyright (C) 2020 Texas Instruments Incorporated - http://www.ti.com/