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

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/net/pcs/renesas,rzn1-miic.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/net/pcs/renesas,rzn1-miic.yaml (Architecture i386) and /Documentation/devicetree/bindings/net/pcs/renesas,rzn1-miic.yaml (Architecture sparc)


  1 # SPDX-License-Identifier: (GPL-2.0-only OR BS      1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2 %YAML 1.2                                           2 %YAML 1.2
  3 ---                                                 3 ---
  4 $id: http://devicetree.org/schemas/net/pcs/ren      4 $id: http://devicetree.org/schemas/net/pcs/renesas,rzn1-miic.yaml#
  5 $schema: http://devicetree.org/meta-schemas/co      5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6                                                     6 
  7 title: Renesas RZ/N1 MII converter                  7 title: Renesas RZ/N1 MII converter
  8                                                     8 
  9 maintainers:                                        9 maintainers:
 10   - Clément Léger <clement.leger@bootlin.com>     10   - Clément Léger <clement.leger@bootlin.com>
 11                                                    11 
 12 description: |                                     12 description: |
 13   This MII converter is present on the Renesas     13   This MII converter is present on the Renesas RZ/N1 SoC family. It is
 14   responsible to do MII passthrough or convert     14   responsible to do MII passthrough or convert it to RMII/RGMII.
 15                                                    15 
 16 properties:                                        16 properties:
 17   '#address-cells':                                17   '#address-cells':
 18     const: 1                                       18     const: 1
 19                                                    19 
 20   '#size-cells':                                   20   '#size-cells':
 21     const: 0                                       21     const: 0
 22                                                    22 
 23   compatible:                                      23   compatible:
 24     items:                                         24     items:
 25       - enum:                                      25       - enum:
 26           - renesas,r9a06g032-miic                 26           - renesas,r9a06g032-miic
 27       - const: renesas,rzn1-miic                   27       - const: renesas,rzn1-miic
 28                                                    28 
 29   reg:                                             29   reg:
 30     maxItems: 1                                    30     maxItems: 1
 31                                                    31 
 32   clocks:                                          32   clocks:
 33     items:                                         33     items:
 34       - description: MII reference clock           34       - description: MII reference clock
 35       - description: RGMII reference clock         35       - description: RGMII reference clock
 36       - description: RMII reference clock          36       - description: RMII reference clock
 37       - description: AHB clock used for the MI     37       - description: AHB clock used for the MII converter register interface
 38                                                    38 
 39   clock-names:                                     39   clock-names:
 40     items:                                         40     items:
 41       - const: mii_ref                             41       - const: mii_ref
 42       - const: rgmii_ref                           42       - const: rgmii_ref
 43       - const: rmii_ref                            43       - const: rmii_ref
 44       - const: hclk                                44       - const: hclk
 45                                                    45 
 46   renesas,miic-switch-portin:                      46   renesas,miic-switch-portin:
 47     description: MII Switch PORTIN configurati     47     description: MII Switch PORTIN configuration. This value should use one of
 48       the values defined in dt-bindings/net/pc     48       the values defined in dt-bindings/net/pcs-rzn1-miic.h.
 49     $ref: /schemas/types.yaml#/definitions/uin     49     $ref: /schemas/types.yaml#/definitions/uint32
 50     enum: [1, 2]                                   50     enum: [1, 2]
 51                                                    51 
 52   power-domains:                                   52   power-domains:
 53     maxItems: 1                                    53     maxItems: 1
 54                                                    54 
 55 patternProperties:                                 55 patternProperties:
 56   "^mii-conv@[0-5]$":                              56   "^mii-conv@[0-5]$":
 57     type: object                                   57     type: object
 58     description: MII converter port                58     description: MII converter port
 59                                                    59 
 60     properties:                                    60     properties:
 61       reg:                                         61       reg:
 62         description: MII Converter port number     62         description: MII Converter port number.
 63         enum: [1, 2, 3, 4, 5]                      63         enum: [1, 2, 3, 4, 5]
 64                                                    64 
 65       renesas,miic-input:                          65       renesas,miic-input:
 66         description: Converter input port conf     66         description: Converter input port configuration. This value should use
 67           one of the values defined in dt-bind     67           one of the values defined in dt-bindings/net/pcs-rzn1-miic.h.
 68         $ref: /schemas/types.yaml#/definitions     68         $ref: /schemas/types.yaml#/definitions/uint32
 69                                                    69 
 70     required:                                      70     required:
 71       - reg                                        71       - reg
 72       - renesas,miic-input                         72       - renesas,miic-input
 73                                                    73 
 74     additionalProperties: false                    74     additionalProperties: false
 75                                                    75 
 76     allOf:                                         76     allOf:
 77       - if:                                        77       - if:
 78           properties:                              78           properties:
 79             reg:                                   79             reg:
 80               const: 1                             80               const: 1
 81         then:                                      81         then:
 82           properties:                              82           properties:
 83             renesas,miic-input:                    83             renesas,miic-input:
 84               const: 0                             84               const: 0
 85       - if:                                        85       - if:
 86           properties:                              86           properties:
 87             reg:                                   87             reg:
 88               const: 2                             88               const: 2
 89         then:                                      89         then:
 90           properties:                              90           properties:
 91             renesas,miic-input:                    91             renesas,miic-input:
 92               enum: [1, 11]                        92               enum: [1, 11]
 93       - if:                                        93       - if:
 94           properties:                              94           properties:
 95             reg:                                   95             reg:
 96               const: 3                             96               const: 3
 97         then:                                      97         then:
 98           properties:                              98           properties:
 99             renesas,miic-input:                    99             renesas,miic-input:
100               enum: [7, 10]                       100               enum: [7, 10]
101       - if:                                       101       - if:
102           properties:                             102           properties:
103             reg:                                  103             reg:
104               const: 4                            104               const: 4
105         then:                                     105         then:
106           properties:                             106           properties:
107             renesas,miic-input:                   107             renesas,miic-input:
108               enum: [4, 6, 9, 13]                 108               enum: [4, 6, 9, 13]
109       - if:                                       109       - if:
110           properties:                             110           properties:
111             reg:                                  111             reg:
112               const: 5                            112               const: 5
113         then:                                     113         then:
114           properties:                             114           properties:
115             renesas,miic-input:                   115             renesas,miic-input:
116               enum: [3, 5, 8, 12]                 116               enum: [3, 5, 8, 12]
117                                                   117 
118 required:                                         118 required:
119   - '#address-cells'                              119   - '#address-cells'
120   - '#size-cells'                                 120   - '#size-cells'
121   - compatible                                    121   - compatible
122   - reg                                           122   - reg
123   - clocks                                        123   - clocks
124   - clock-names                                   124   - clock-names
125   - power-domains                                 125   - power-domains
126                                                   126 
127 additionalProperties: false                       127 additionalProperties: false
128                                                   128 
129 examples:                                         129 examples:
130   - |                                             130   - |
131     #include <dt-bindings/net/pcs-rzn1-miic.h>    131     #include <dt-bindings/net/pcs-rzn1-miic.h>
132     #include <dt-bindings/clock/r9a06g032-sysc    132     #include <dt-bindings/clock/r9a06g032-sysctrl.h>
133                                                   133 
134     eth-miic@44030000 {                           134     eth-miic@44030000 {
135       #address-cells = <1>;                       135       #address-cells = <1>;
136       #size-cells = <0>;                          136       #size-cells = <0>;
137       compatible = "renesas,r9a06g032-miic", "    137       compatible = "renesas,r9a06g032-miic", "renesas,rzn1-miic";
138       reg = <0x44030000 0x10000>;                 138       reg = <0x44030000 0x10000>;
139       clocks = <&sysctrl R9A06G032_CLK_MII_REF    139       clocks = <&sysctrl R9A06G032_CLK_MII_REF>,
140               <&sysctrl R9A06G032_CLK_RGMII_RE    140               <&sysctrl R9A06G032_CLK_RGMII_REF>,
141               <&sysctrl R9A06G032_CLK_RMII_REF    141               <&sysctrl R9A06G032_CLK_RMII_REF>,
142               <&sysctrl R9A06G032_HCLK_SWITCH_    142               <&sysctrl R9A06G032_HCLK_SWITCH_RG>;
143       clock-names = "mii_ref", "rgmii_ref", "r    143       clock-names = "mii_ref", "rgmii_ref", "rmii_ref", "hclk";
144       renesas,miic-switch-portin = <MIIC_GMAC2    144       renesas,miic-switch-portin = <MIIC_GMAC2_PORT>;
145       power-domains = <&sysctrl>;                 145       power-domains = <&sysctrl>;
146                                                   146 
147       mii_conv1: mii-conv@1 {                     147       mii_conv1: mii-conv@1 {
148         renesas,miic-input = <MIIC_GMAC1_PORT>    148         renesas,miic-input = <MIIC_GMAC1_PORT>;
149         reg = <1>;                                149         reg = <1>;
150       };                                          150       };
151                                                   151 
152       mii_conv2: mii-conv@2 {                     152       mii_conv2: mii-conv@2 {
153         renesas,miic-input = <MIIC_SWITCH_PORT    153         renesas,miic-input = <MIIC_SWITCH_PORTD>;
154         reg = <2>;                                154         reg = <2>;
155       };                                          155       };
156                                                   156 
157       mii_conv3: mii-conv@3 {                     157       mii_conv3: mii-conv@3 {
158         renesas,miic-input = <MIIC_SWITCH_PORT    158         renesas,miic-input = <MIIC_SWITCH_PORTC>;
159         reg = <3>;                                159         reg = <3>;
160       };                                          160       };
161                                                   161 
162       mii_conv4: mii-conv@4 {                     162       mii_conv4: mii-conv@4 {
163         renesas,miic-input = <MIIC_SWITCH_PORT    163         renesas,miic-input = <MIIC_SWITCH_PORTB>;
164         reg = <4>;                                164         reg = <4>;
165       };                                          165       };
166                                                   166 
167       mii_conv5: mii-conv@5 {                     167       mii_conv5: mii-conv@5 {
168         renesas,miic-input = <MIIC_SWITCH_PORT    168         renesas,miic-input = <MIIC_SWITCH_PORTA>;
169         reg = <5>;                                169         reg = <5>;
170       };                                          170       };
171     };                                            171     };
                                                      

~ [ 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