~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/phy/ti,phy-gmii-sel.yaml

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /Documentation/devicetree/bindings/phy/ti,phy-gmii-sel.yaml (Version linux-6.12-rc7) and /Documentation/devicetree/bindings/phy/ti,phy-gmii-sel.yaml (Version linux-6.3.13)


  1 # SPDX-License-Identifier: (GPL-2.0-only OR BS      1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2 # Copyright (C) 2020 Texas Instruments Incorpo      2 # Copyright (C) 2020 Texas Instruments Incorporated - http://www.ti.com/
  3 %YAML 1.2                                           3 %YAML 1.2
  4 ---                                                 4 ---
  5 $id: http://devicetree.org/schemas/phy/ti,phy- !!   5 $id: "http://devicetree.org/schemas/phy/ti,phy-gmii-sel.yaml#"
  6 $schema: http://devicetree.org/meta-schemas/co !!   6 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
  7                                                     7 
  8 title: CPSW Port's Interface Mode Selection PH      8 title: CPSW Port's Interface Mode Selection PHY
  9                                                     9 
 10 maintainers:                                       10 maintainers:
 11   - Kishon Vijay Abraham I <kishon@ti.com>          11   - Kishon Vijay Abraham I <kishon@ti.com>
 12                                                    12 
 13 description: |                                     13 description: |
 14   TI am335x/am437x/dra7(am5)/dm814x CPSW3G Eth     14   TI am335x/am437x/dra7(am5)/dm814x CPSW3G Ethernet Subsystem supports
 15   two 10/100/1000 Ethernet ports with selectab     15   two 10/100/1000 Ethernet ports with selectable G/MII, RMII, and RGMII interfaces.
 16   The interface mode is selected by configurin     16   The interface mode is selected by configuring the MII mode selection register(s)
 17   (GMII_SEL) in the System Control Module chap     17   (GMII_SEL) in the System Control Module chapter (SCM). GMII_SEL register(s) and
 18   bit fields placement in SCM are different be     18   bit fields placement in SCM are different between SoCs while fields meaning
 19   is the same.                                     19   is the same.
 20                                                    20                                                +--------------+
 21         +-------------------------------+          21         +-------------------------------+      |SCM           |
 22         |                     CPSW      |          22         |                     CPSW      |      |  +---------+ |
 23         |        +----------------------------     23         |        +--------------------------------+gmii_sel | |
 24         |        |                      |          24         |        |                      |      |  +---------+ |
 25         |   +----v---+     +--------+   |          25         |   +----v---+     +--------+   |      +--------------+
 26         |   |Port 1..<--+-->GMII/MII<------->      26         |   |Port 1..<--+-->GMII/MII<------->
 27         |   |        |  |  |        |   |          27         |   |        |  |  |        |   |
 28         |   +--------+  |  +--------+   |          28         |   +--------+  |  +--------+   |
 29         |               |               |          29         |               |               |
 30         |               |  +--------+   |          30         |               |  +--------+   |
 31         |               |  | RMII   <------->      31         |               |  | RMII   <------->
 32         |               +-->        |   |          32         |               +-->        |   |
 33         |               |  +--------+   |          33         |               |  +--------+   |
 34         |               |               |          34         |               |               |
 35         |               |  +--------+   |          35         |               |  +--------+   |
 36         |               |  | RGMII  <------->      36         |               |  | RGMII  <------->
 37         |               +-->        |   |          37         |               +-->        |   |
 38         |                  +--------+   |          38         |                  +--------+   |
 39         +-------------------------------+          39         +-------------------------------+
 40                                                    40 
 41   CPSW Port's Interface Mode Selection PHY des     41   CPSW Port's Interface Mode Selection PHY describes MII interface mode between
 42   CPSW Port and Ethernet PHY which depends on      42   CPSW Port and Ethernet PHY which depends on Eth PHY and board configuration.
 43   |                                                43   |
 44   CPSW Port's Interface Mode Selection PHY dev     44   CPSW Port's Interface Mode Selection PHY device should defined as child device
 45   of SCM node (scm_conf) and can be attached t     45   of SCM node (scm_conf) and can be attached to each CPSW port node using standard
 46   PHY bindings.                                    46   PHY bindings.
 47                                                    47 
 48 properties:                                        48 properties:
 49   compatible:                                      49   compatible:
 50     enum:                                          50     enum:
 51       - ti,am3352-phy-gmii-sel                     51       - ti,am3352-phy-gmii-sel
 52       - ti,dra7xx-phy-gmii-sel                     52       - ti,dra7xx-phy-gmii-sel
 53       - ti,am43xx-phy-gmii-sel                     53       - ti,am43xx-phy-gmii-sel
 54       - ti,dm814-phy-gmii-sel                      54       - ti,dm814-phy-gmii-sel
 55       - ti,am654-phy-gmii-sel                      55       - ti,am654-phy-gmii-sel
 56       - ti,j7200-cpsw5g-phy-gmii-sel               56       - ti,j7200-cpsw5g-phy-gmii-sel
 57       - ti,j721e-cpsw9g-phy-gmii-sel               57       - ti,j721e-cpsw9g-phy-gmii-sel
 58       - ti,j784s4-cpsw9g-phy-gmii-sel          << 
 59                                                    58 
 60   reg:                                             59   reg:
 61     maxItems: 1                                    60     maxItems: 1
 62                                                    61 
 63   '#phy-cells': true                               62   '#phy-cells': true
 64                                                    63 
 65   ti,qsgmii-main-ports:                            64   ti,qsgmii-main-ports:
 66     $ref: /schemas/types.yaml#/definitions/uin     65     $ref: /schemas/types.yaml#/definitions/uint32-array
 67     description: |                                 66     description: |
 68       Required only for QSGMII mode. Array to      67       Required only for QSGMII mode. Array to select the port/s for QSGMII
 69       main mode. The size of the array corresp     68       main mode. The size of the array corresponds to the number of QSGMII
 70       interfaces and thus, the number of disti     69       interfaces and thus, the number of distinct QSGMII main ports,
 71       supported by the device. If the device s     70       supported by the device. If the device supports two QSGMII interfaces
 72       but only one QSGMII interface is desired     71       but only one QSGMII interface is desired, repeat the QSGMII main port
 73       value corresponding to the QSGMII interf     72       value corresponding to the QSGMII interface in the array.
 74     minItems: 1                                    73     minItems: 1
 75     maxItems: 2                                    74     maxItems: 2
 76     items:                                         75     items:
 77       minimum: 1                                   76       minimum: 1
 78       maximum: 8                                   77       maximum: 8
 79                                                    78 
 80 allOf:                                             79 allOf:
 81   - if:                                            80   - if:
 82       properties:                                  81       properties:
 83         compatible:                                82         compatible:
 84           contains:                                83           contains:
 85             enum:                                  84             enum:
 86               - ti,dra7xx-phy-gmii-sel             85               - ti,dra7xx-phy-gmii-sel
 87               - ti,dm814-phy-gmii-sel              86               - ti,dm814-phy-gmii-sel
 88               - ti,am654-phy-gmii-sel              87               - ti,am654-phy-gmii-sel
 89               - ti,j7200-cpsw5g-phy-gmii-sel       88               - ti,j7200-cpsw5g-phy-gmii-sel
 90               - ti,j721e-cpsw9g-phy-gmii-sel       89               - ti,j721e-cpsw9g-phy-gmii-sel
 91               - ti,j784s4-cpsw9g-phy-gmii-sel  << 
 92     then:                                          90     then:
 93       properties:                                  91       properties:
 94         '#phy-cells':                              92         '#phy-cells':
 95           const: 1                                 93           const: 1
 96           description: CPSW port number (start     94           description: CPSW port number (starting from 1)
 97                                                    95 
 98   - if:                                            96   - if:
 99       properties:                                  97       properties:
100         compatible:                                98         compatible:
101           contains:                                99           contains:
102             enum:                                 100             enum:
103               - ti,j7200-cpsw5g-phy-gmii-sel      101               - ti,j7200-cpsw5g-phy-gmii-sel
104     then:                                         102     then:
105       properties:                                 103       properties:
106         ti,qsgmii-main-ports:                     104         ti,qsgmii-main-ports:
107           maxItems: 1                             105           maxItems: 1
108           items:                                  106           items:
109             minimum: 1                            107             minimum: 1
110             maximum: 4                            108             maximum: 4
111                                                   109 
112   - if:                                           110   - if:
113       properties:                                 111       properties:
114         compatible:                               112         compatible:
115           contains:                               113           contains:
116             enum:                                 114             enum:
117               - ti,j721e-cpsw9g-phy-gmii-sel      115               - ti,j721e-cpsw9g-phy-gmii-sel
118               - ti,j784s4-cpsw9g-phy-gmii-sel  << 
119     then:                                         116     then:
120       properties:                                 117       properties:
121         ti,qsgmii-main-ports:                     118         ti,qsgmii-main-ports:
122           minItems: 2                             119           minItems: 2
123           maxItems: 2                             120           maxItems: 2
124           items:                                  121           items:
125             minimum: 1                            122             minimum: 1
126             maximum: 8                            123             maximum: 8
127                                                   124 
128   - if:                                           125   - if:
129       not:                                        126       not:
130         properties:                               127         properties:
131           compatible:                             128           compatible:
132             contains:                             129             contains:
133               enum:                               130               enum:
134                 - ti,j7200-cpsw5g-phy-gmii-sel    131                 - ti,j7200-cpsw5g-phy-gmii-sel
135                 - ti,j721e-cpsw9g-phy-gmii-sel    132                 - ti,j721e-cpsw9g-phy-gmii-sel
136                 - ti,j784s4-cpsw9g-phy-gmii-se << 
137     then:                                         133     then:
138       properties:                                 134       properties:
139         ti,qsgmii-main-ports: false               135         ti,qsgmii-main-ports: false
140                                                   136 
141   - if:                                           137   - if:
142       properties:                                 138       properties:
143         compatible:                               139         compatible:
144           contains:                               140           contains:
145             enum:                                 141             enum:
146               - ti,am3352-phy-gmii-sel            142               - ti,am3352-phy-gmii-sel
147               - ti,am43xx-phy-gmii-sel            143               - ti,am43xx-phy-gmii-sel
148     then:                                         144     then:
149       properties:                                 145       properties:
150         '#phy-cells':                             146         '#phy-cells':
151           const: 2                                147           const: 2
152           description: |                          148           description: |
153             - CPSW port number (starting from     149             - CPSW port number (starting from 1)
154             - RMII refclk mode                    150             - RMII refclk mode
155                                                   151 
156 required:                                         152 required:
157   - compatible                                    153   - compatible
158   - reg                                           154   - reg
159   - '#phy-cells'                                  155   - '#phy-cells'
160                                                   156 
161 additionalProperties: false                       157 additionalProperties: false
162                                                   158 
163 examples:                                         159 examples:
164   - |                                             160   - |
165     phy_gmii_sel: phy@650 {                       161     phy_gmii_sel: phy@650 {
166         compatible = "ti,am3352-phy-gmii-sel";    162         compatible = "ti,am3352-phy-gmii-sel";
167         reg = <0x650 0x4>;                        163         reg = <0x650 0x4>;
168         #phy-cells = <2>;                         164         #phy-cells = <2>;
169     };                                            165     };
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php