1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 # Copyright (C) 2020 Texas Instruments Incorporated - http://www.ti.com/
5 $id: "http://devicetree.org/schemas/phy/ti,phy-gmii-sel.yaml#"
6 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
8 title: CPSW Port's Interface Mode Selection PHY Tree Bindings
11 - Kishon Vijay Abraham I <kishon@ti.com>
14 TI am335x/am437x/dra7(am5)/dm814x CPSW3G Ethernet Subsystem supports
15 two 10/100/1000 Ethernet ports with selectable G/MII, RMII, and RGMII interfaces.
16 The interface mode is selected by configuring the MII mode selection register(s)
17 (GMII_SEL) in the System Control Module chapter (SCM). GMII_SEL register(s) and
18 bit fields placement in SCM are different between SoCs while fields meaning
21 +-------------------------------+ |SCM |
22 | CPSW | | +---------+ |
23 | +--------------------------------+gmii_sel | |
25 | +----v---+ +--------+ | +--------------+
26 | |Port 1..<--+-->GMII/MII<------->
28 | +--------+ | +--------+ |
39 +-------------------------------+
41 CPSW Port's Interface Mode Selection PHY describes MII interface mode between
42 CPSW Port and Ethernet PHY which depends on Eth PHY and board configuration.
44 CPSW Port's Interface Mode Selection PHY device should defined as child device
45 of SCM node (scm_conf) and can be attached to each CPSW port node using standard
51 - ti,am3352-phy-gmii-sel
52 - ti,dra7xx-phy-gmii-sel
53 - ti,am43xx-phy-gmii-sel
54 - ti,dm814-phy-gmii-sel
55 - ti,am654-phy-gmii-sel
56 - ti,j7200-cpsw5g-phy-gmii-sel
64 $ref: /schemas/types.yaml#/definitions/uint32-array
66 Required only for QSGMII mode. Array to select the port for
67 QSGMII main mode. Rest of the ports are selected as QSGMII_SUB
68 ports automatically. Any one of the 4 CPSW5G ports can act as the
69 main port with the rest of them being the QSGMII_SUB ports.
81 - ti,dra7xx-phy-gmii-sel
82 - ti,dm814-phy-gmii-sel
83 - ti,am654-phy-gmii-sel
88 description: CPSW port number (starting from 1)
96 - ti,j7200-cpsw5g-phy-gmii-sel
99 ti,qsgmii-main-ports: false
106 - ti,am3352-phy-gmii-sel
107 - ti,am43xx-phy-gmii-sel
113 - CPSW port number (starting from 1)
121 additionalProperties: false
125 phy_gmii_sel: phy@650 {
126 compatible = "ti,am3352-phy-gmii-sel";