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

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/net/snps,dwmac.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/snps,dwmac.yaml (Version linux-6.12-rc7) and /Documentation/devicetree/bindings/net/snps,dwmac.yaml (Version linux-5.11.22)


  1 # SPDX-License-Identifier: GPL-2.0                  1 # SPDX-License-Identifier: GPL-2.0
  2 %YAML 1.2                                           2 %YAML 1.2
  3 ---                                                 3 ---
  4 $id: http://devicetree.org/schemas/net/snps,dw      4 $id: http://devicetree.org/schemas/net/snps,dwmac.yaml#
  5 $schema: http://devicetree.org/meta-schemas/co      5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6                                                     6 
  7 title: Synopsys DesignWare MAC                 !!   7 title: Synopsys DesignWare MAC Device Tree Bindings
  8                                                     8 
  9 maintainers:                                        9 maintainers:
 10   - Alexandre Torgue <alexandre.torgue@foss.st. !!  10   - Alexandre Torgue <alexandre.torgue@st.com>
 11   - Giuseppe Cavallaro <peppe.cavallaro@st.com>     11   - Giuseppe Cavallaro <peppe.cavallaro@st.com>
 12   - Jose Abreu <joabreu@synopsys.com>               12   - Jose Abreu <joabreu@synopsys.com>
 13                                                    13 
 14 # Select every compatible, including the depre     14 # Select every compatible, including the deprecated ones. This way, we
 15 # will be able to report a warning when we hav     15 # will be able to report a warning when we have that compatible, since
 16 # we will validate the node thanks to the sele     16 # we will validate the node thanks to the select, but won't report it
 17 # as a valid value in the compatible property      17 # as a valid value in the compatible property description
 18 select:                                            18 select:
 19   properties:                                      19   properties:
 20     compatible:                                    20     compatible:
 21       contains:                                    21       contains:
 22         enum:                                      22         enum:
 23           - snps,dwmac                             23           - snps,dwmac
 24           - snps,dwmac-3.40a                   << 
 25           - snps,dwmac-3.50a                       24           - snps,dwmac-3.50a
 26           - snps,dwmac-3.610                       25           - snps,dwmac-3.610
 27           - snps,dwmac-3.70a                       26           - snps,dwmac-3.70a
 28           - snps,dwmac-3.710                       27           - snps,dwmac-3.710
 29           - snps,dwmac-4.00                        28           - snps,dwmac-4.00
 30           - snps,dwmac-4.10a                       29           - snps,dwmac-4.10a
 31           - snps,dwmac-4.20a                       30           - snps,dwmac-4.20a
 32           - snps,dwmac-5.10a                   << 
 33           - snps,dwmac-5.20                    << 
 34           - snps,dwxgmac                           31           - snps,dwxgmac
 35           - snps,dwxgmac-2.10                      32           - snps,dwxgmac-2.10
 36                                                    33 
 37           # Deprecated                             34           # Deprecated
 38           - st,spear600-gmac                       35           - st,spear600-gmac
 39                                                    36 
 40   required:                                        37   required:
 41     - compatible                                   38     - compatible
 42                                                    39 
 43 properties:                                        40 properties:
 44                                                    41 
 45   # We need to include all the compatibles fro     42   # We need to include all the compatibles from schemas that will
 46   # include that schemas, otherwise compatible     43   # include that schemas, otherwise compatible won't validate for
 47   # those.                                         44   # those.
 48   compatible:                                      45   compatible:
 49     contains:                                      46     contains:
 50       enum:                                        47       enum:
 51         - allwinner,sun7i-a20-gmac                 48         - allwinner,sun7i-a20-gmac
 52         - allwinner,sun8i-a83t-emac                49         - allwinner,sun8i-a83t-emac
 53         - allwinner,sun8i-h3-emac                  50         - allwinner,sun8i-h3-emac
 54         - allwinner,sun8i-r40-gmac             !!  51         - allwinner,sun8i-r40-emac
 55         - allwinner,sun8i-v3s-emac                 52         - allwinner,sun8i-v3s-emac
 56         - allwinner,sun50i-a64-emac                53         - allwinner,sun50i-a64-emac
 57         - amlogic,meson6-dwmac                     54         - amlogic,meson6-dwmac
 58         - amlogic,meson8b-dwmac                    55         - amlogic,meson8b-dwmac
 59         - amlogic,meson8m2-dwmac                   56         - amlogic,meson8m2-dwmac
 60         - amlogic,meson-gxbb-dwmac                 57         - amlogic,meson-gxbb-dwmac
 61         - amlogic,meson-axg-dwmac                  58         - amlogic,meson-axg-dwmac
 62         - ingenic,jz4775-mac                   << 
 63         - ingenic,x1000-mac                    << 
 64         - ingenic,x1600-mac                    << 
 65         - ingenic,x1830-mac                    << 
 66         - ingenic,x2000-mac                    << 
 67         - loongson,ls2k-dwmac                  << 
 68         - loongson,ls7a-dwmac                  << 
 69         - qcom,qcs404-ethqos                   << 
 70         - qcom,sa8775p-ethqos                  << 
 71         - qcom,sc8280xp-ethqos                 << 
 72         - qcom,sm8150-ethqos                   << 
 73         - renesas,r9a06g032-gmac               << 
 74         - renesas,rzn1-gmac                    << 
 75         - rockchip,px30-gmac                   << 
 76         - rockchip,rk3128-gmac                 << 
 77         - rockchip,rk3228-gmac                 << 
 78         - rockchip,rk3288-gmac                 << 
 79         - rockchip,rk3308-gmac                 << 
 80         - rockchip,rk3328-gmac                 << 
 81         - rockchip,rk3366-gmac                 << 
 82         - rockchip,rk3368-gmac                 << 
 83         - rockchip,rk3576-gmac                 << 
 84         - rockchip,rk3588-gmac                 << 
 85         - rockchip,rk3399-gmac                 << 
 86         - rockchip,rv1108-gmac                 << 
 87         - snps,dwmac                               59         - snps,dwmac
 88         - snps,dwmac-3.40a                     << 
 89         - snps,dwmac-3.50a                         60         - snps,dwmac-3.50a
 90         - snps,dwmac-3.610                         61         - snps,dwmac-3.610
 91         - snps,dwmac-3.70a                         62         - snps,dwmac-3.70a
 92         - snps,dwmac-3.710                         63         - snps,dwmac-3.710
 93         - snps,dwmac-4.00                          64         - snps,dwmac-4.00
 94         - snps,dwmac-4.10a                         65         - snps,dwmac-4.10a
 95         - snps,dwmac-4.20a                         66         - snps,dwmac-4.20a
 96         - snps,dwmac-5.10a                     << 
 97         - snps,dwmac-5.20                      << 
 98         - snps,dwxgmac                             67         - snps,dwxgmac
 99         - snps,dwxgmac-2.10                        68         - snps,dwxgmac-2.10
100         - starfive,jh7100-dwmac                << 
101         - starfive,jh7110-dwmac                << 
102                                                    69 
103   reg:                                             70   reg:
104     minItems: 1                                    71     minItems: 1
105     maxItems: 2                                    72     maxItems: 2
106                                                    73 
107   interrupts:                                      74   interrupts:
108     minItems: 1                                    75     minItems: 1
                                                   >>  76     maxItems: 3
109     items:                                         77     items:
110       - description: Combined signal for vario     78       - description: Combined signal for various interrupt events
111       - description: The interrupt to manage t     79       - description: The interrupt to manage the remote wake-up packet detection
112       - description: The interrupt that occurs     80       - description: The interrupt that occurs when Rx exits the LPI state
113       - description: The interrupt that occurs << 
114                                                    81 
115   interrupt-names:                                 82   interrupt-names:
116     minItems: 1                                    83     minItems: 1
                                                   >>  84     maxItems: 3
117     items:                                         85     items:
118       - const: macirq                              86       - const: macirq
119       - enum: [eth_wake_irq, eth_lpi, sfty]    !!  87       - const: eth_wake_irq
120       - enum: [eth_wake_irq, eth_lpi, sfty]    !!  88       - const: eth_lpi
121       - enum: [eth_wake_irq, eth_lpi, sfty]    << 
122                                                    89 
123   clocks:                                          90   clocks:
124     minItems: 1                                    91     minItems: 1
125     maxItems: 8                                !!  92     maxItems: 5
126     additionalItems: true                          93     additionalItems: true
127     items:                                         94     items:
128       - description: GMAC main clock               95       - description: GMAC main clock
129       - description: Peripheral registers inte     96       - description: Peripheral registers interface clock
130       - description:                               97       - description:
131           PTP reference clock. This clock is u     98           PTP reference clock. This clock is used for programming the
132           Timestamp Addend Register. If not pa     99           Timestamp Addend Register. If not passed then the system
133           clock will be used and this is fine     100           clock will be used and this is fine on some platforms.
134                                                   101 
135   clock-names:                                    102   clock-names:
136     minItems: 1                                   103     minItems: 1
137     maxItems: 8                                !! 104     maxItems: 5
138     additionalItems: true                         105     additionalItems: true
139     contains:                                     106     contains:
140       enum:                                       107       enum:
141         - stmmaceth                               108         - stmmaceth
142         - pclk                                    109         - pclk
143         - ptp_ref                                 110         - ptp_ref
144                                                   111 
145   resets:                                         112   resets:
146     minItems: 1                                !! 113     maxItems: 1
147     items:                                     !! 114     description:
148       - description: GMAC stmmaceth reset      !! 115       MAC Reset signal.
149       - description: AHB reset                 << 
150                                                   116 
151   reset-names:                                    117   reset-names:
152     oneOf:                                     !! 118     const: stmmaceth
153       - items:                                 << 
154           - enum: [stmmaceth, ahb]             << 
155       - items:                                 << 
156           - const: stmmaceth                   << 
157           - const: ahb                         << 
158                                                << 
159   power-domains:                               << 
160     maxItems: 1                                << 
161                                                   119 
162   mac-mode:                                       120   mac-mode:
163     $ref: ethernet-controller.yaml#/properties    121     $ref: ethernet-controller.yaml#/properties/phy-connection-type
164     description:                                  122     description:
165       The property is identical to 'phy-mode',    123       The property is identical to 'phy-mode', and assumes that there is mode
166       converter in-between the MAC & PHY (e.g.    124       converter in-between the MAC & PHY (e.g. GMII-to-RGMII). This converter
167       can be passive (no SW requirement), and     125       can be passive (no SW requirement), and requires that the MAC operate
168       in a different mode than the PHY in orde    126       in a different mode than the PHY in order to function.
169                                                   127 
170   snps,axi-config:                                128   snps,axi-config:
171     $ref: /schemas/types.yaml#/definitions/pha    129     $ref: /schemas/types.yaml#/definitions/phandle
172     description:                                  130     description:
173       AXI BUS Mode parameters. Phandle to a no    131       AXI BUS Mode parameters. Phandle to a node that can contain the
174       following properties                        132       following properties
175         * snps,lpi_en, enable Low Power Interf    133         * snps,lpi_en, enable Low Power Interface
176         * snps,xit_frm, unlock on WoL             134         * snps,xit_frm, unlock on WoL
177         * snps,wr_osr_lmt, max write outstandi    135         * snps,wr_osr_lmt, max write outstanding req. limit
178         * snps,rd_osr_lmt, max read outstandin    136         * snps,rd_osr_lmt, max read outstanding req. limit
179         * snps,kbbe, do not cross 1KiB boundar    137         * snps,kbbe, do not cross 1KiB boundary.
180         * snps,blen, this is a vector of suppo    138         * snps,blen, this is a vector of supported burst length.
181         * snps,fb, fixed-burst                    139         * snps,fb, fixed-burst
182         * snps,mb, mixed-burst                    140         * snps,mb, mixed-burst
183         * snps,rb, rebuild INCRx Burst            141         * snps,rb, rebuild INCRx Burst
184                                                   142 
185   snps,mtl-rx-config:                             143   snps,mtl-rx-config:
186     $ref: /schemas/types.yaml#/definitions/pha    144     $ref: /schemas/types.yaml#/definitions/phandle
187     description:                                  145     description:
188       Multiple RX Queues parameters. Phandle t !! 146       Multiple RX Queues parameters. Phandle to a node that can
189       implements the 'rx-queues-config' object !! 147       contain the following properties
190       this binding.                            !! 148         * snps,rx-queues-to-use, number of RX queues to be used in the
191                                                !! 149           driver
192   rx-queues-config:                            !! 150         * Choose one of these RX scheduling algorithms
193     type: object                               !! 151           * snps,rx-sched-sp, Strict priority
194     properties:                                !! 152           * snps,rx-sched-wsp, Weighted Strict priority
195       snps,rx-queues-to-use:                   !! 153         * For each RX queue
196         $ref: /schemas/types.yaml#/definitions !! 154           * Choose one of these modes
197         description: number of RX queues to be !! 155             * snps,dcb-algorithm, Queue to be enabled as DCB
198       snps,rx-sched-sp:                        !! 156             * snps,avb-algorithm, Queue to be enabled as AVB
199         type: boolean                          !! 157           * snps,map-to-dma-channel, Channel to map
200         description: Strict priority           !! 158           * Specifiy specific packet routing
201       snps,rx-sched-wsp:                       !! 159             * snps,route-avcp, AV Untagged Control packets
202         type: boolean                          !! 160             * snps,route-ptp, PTP Packets
203         description: Weighted Strict priority  !! 161             * snps,route-dcbcp, DCB Control Packets
204     allOf:                                     !! 162             * snps,route-up, Untagged Packets
205       - if:                                    !! 163             * snps,route-multi-broad, Multicast & Broadcast Packets
206           required:                            !! 164           * snps,priority, bitmask of the tagged frames priorities assigned to
207             - snps,rx-sched-sp                 !! 165             the queue
208         then:                                  << 
209           properties:                          << 
210             snps,rx-sched-wsp: false           << 
211       - if:                                    << 
212           required:                            << 
213             - snps,rx-sched-wsp                << 
214         then:                                  << 
215           properties:                          << 
216             snps,rx-sched-sp: false            << 
217     patternProperties:                         << 
218       "^queue[0-9]$":                          << 
219         description: Each subnode represents a << 
220         type: object                           << 
221         properties:                            << 
222           snps,dcb-algorithm:                  << 
223             type: boolean                      << 
224             description: Queue to be enabled a << 
225           snps,avb-algorithm:                  << 
226             type: boolean                      << 
227             description: Queue to be enabled a << 
228           snps,map-to-dma-channel:             << 
229             $ref: /schemas/types.yaml#/definit << 
230             description: DMA channel id to map << 
231           snps,route-avcp:                     << 
232             type: boolean                      << 
233             description: AV Untagged Control p << 
234           snps,route-ptp:                      << 
235             type: boolean                      << 
236             description: PTP Packets           << 
237           snps,route-dcbcp:                    << 
238             type: boolean                      << 
239             description: DCB Control Packets   << 
240           snps,route-up:                       << 
241             type: boolean                      << 
242             description: Untagged Packets      << 
243           snps,route-multi-broad:              << 
244             type: boolean                      << 
245             description: Multicast & Broadcast << 
246           snps,priority:                       << 
247             $ref: /schemas/types.yaml#/definit << 
248             maxItems: 1                        << 
249             description: Bitmask of the tagged << 
250         allOf:                                 << 
251           - if:                                << 
252               required:                        << 
253                 - snps,dcb-algorithm           << 
254             then:                              << 
255               properties:                      << 
256                 snps,avb-algorithm: false      << 
257           - if:                                << 
258               required:                        << 
259                 - snps,avb-algorithm           << 
260             then:                              << 
261               properties:                      << 
262                 snps,dcb-algorithm: false      << 
263           - if:                                << 
264               required:                        << 
265                 - snps,route-avcp              << 
266             then:                              << 
267               properties:                      << 
268                 snps,route-ptp: false          << 
269                 snps,route-dcbcp: false        << 
270                 snps,route-up: false           << 
271                 snps,route-multi-broad: false  << 
272           - if:                                << 
273               required:                        << 
274                 - snps,route-ptp               << 
275             then:                              << 
276               properties:                      << 
277                 snps,route-avcp: false         << 
278                 snps,route-dcbcp: false        << 
279                 snps,route-up: false           << 
280                 snps,route-multi-broad: false  << 
281           - if:                                << 
282               required:                        << 
283                 - snps,route-dcbcp             << 
284             then:                              << 
285               properties:                      << 
286                 snps,route-avcp: false         << 
287                 snps,route-ptp: false          << 
288                 snps,route-up: false           << 
289                 snps,route-multi-broad: false  << 
290           - if:                                << 
291               required:                        << 
292                 - snps,route-up                << 
293             then:                              << 
294               properties:                      << 
295                 snps,route-avcp: false         << 
296                 snps,route-ptp: false          << 
297                 snps,route-dcbcp: false        << 
298                 snps,route-multi-broad: false  << 
299           - if:                                << 
300               required:                        << 
301                 - snps,route-multi-broad       << 
302             then:                              << 
303               properties:                      << 
304                 snps,route-avcp: false         << 
305                 snps,route-ptp: false          << 
306                 snps,route-dcbcp: false        << 
307                 snps,route-up: false           << 
308         additionalProperties: false            << 
309     additionalProperties: false                << 
310                                                   166 
311   snps,mtl-tx-config:                             167   snps,mtl-tx-config:
312     $ref: /schemas/types.yaml#/definitions/pha    168     $ref: /schemas/types.yaml#/definitions/phandle
313     description:                                  169     description:
314       Multiple TX Queues parameters. Phandle t !! 170       Multiple TX Queues parameters. Phandle to a node that can
315       implements the 'tx-queues-config' object !! 171       contain the following properties
316       this binding.                            !! 172         * snps,tx-queues-to-use, number of TX queues to be used in the
317                                                !! 173           driver
318   tx-queues-config:                            !! 174         * Choose one of these TX scheduling algorithms
319     type: object                               !! 175           * snps,tx-sched-wrr, Weighted Round Robin
320     properties:                                !! 176           * snps,tx-sched-wfq, Weighted Fair Queuing
321       snps,tx-queues-to-use:                   !! 177           * snps,tx-sched-dwrr, Deficit Weighted Round Robin
322         $ref: /schemas/types.yaml#/definitions !! 178           * snps,tx-sched-sp, Strict priority
323         description: number of TX queues to be !! 179         * For each TX queue
324       snps,tx-sched-wrr:                       !! 180           * snps,weight, TX queue weight (if using a DCB weight
325         type: boolean                          !! 181             algorithm)
326         description: Weighted Round Robin      !! 182           * Choose one of these modes
327       snps,tx-sched-wfq:                       !! 183             * snps,dcb-algorithm, TX queue will be working in DCB
328         type: boolean                          !! 184             * snps,avb-algorithm, TX queue will be working in AVB
329         description: Weighted Fair Queuing     !! 185               [Attention] Queue 0 is reserved for legacy traffic
330       snps,tx-sched-dwrr:                      !! 186                           and so no AVB is available in this queue.
331         type: boolean                          !! 187           * Configure Credit Base Shaper (if AVB Mode selected)
332         description: Deficit Weighted Round Ro !! 188             * snps,send_slope, enable Low Power Interface
333     allOf:                                     !! 189             * snps,idle_slope, unlock on WoL
334       - if:                                    !! 190             * snps,high_credit, max write outstanding req. limit
335           required:                            !! 191             * snps,low_credit, max read outstanding req. limit
336             - snps,tx-sched-wrr                !! 192           * snps,priority, bitmask of the priorities assigned to the queue.
337         then:                                  !! 193             When a PFC frame is received with priorities matching the bitmask,
338           properties:                          !! 194             the queue is blocked from transmitting for the pause time specified
339             snps,tx-sched-wfq: false           !! 195             in the PFC frame.
340             snps,tx-sched-dwrr: false          << 
341       - if:                                    << 
342           required:                            << 
343             - snps,tx-sched-wfq                << 
344         then:                                  << 
345           properties:                          << 
346             snps,tx-sched-wrr: false           << 
347             snps,tx-sched-dwrr: false          << 
348       - if:                                    << 
349           required:                            << 
350             - snps,tx-sched-dwrr               << 
351         then:                                  << 
352           properties:                          << 
353             snps,tx-sched-wrr: false           << 
354             snps,tx-sched-wfq: false           << 
355     patternProperties:                         << 
356       "^queue[0-9]$":                          << 
357         description: Each subnode represents a << 
358         type: object                           << 
359         properties:                            << 
360           snps,weight:                         << 
361             $ref: /schemas/types.yaml#/definit << 
362             description: TX queue weight (if u << 
363           snps,dcb-algorithm:                  << 
364             type: boolean                      << 
365             description: TX queue will be work << 
366           snps,avb-algorithm:                  << 
367             type: boolean                      << 
368             description:                       << 
369               TX queue will be working in AVB. << 
370               Queue 0 is reserved for legacy t << 
371               available in this queue.         << 
372           snps,send_slope:                     << 
373             $ref: /schemas/types.yaml#/definit << 
374             description: enable Low Power Inte << 
375           snps,idle_slope:                     << 
376             $ref: /schemas/types.yaml#/definit << 
377             description: unlock on WoL         << 
378           snps,high_credit:                    << 
379             $ref: /schemas/types.yaml#/definit << 
380             description: max write outstanding << 
381           snps,low_credit:                     << 
382             $ref: /schemas/types.yaml#/definit << 
383             description: max read outstanding  << 
384           snps,priority:                       << 
385             $ref: /schemas/types.yaml#/definit << 
386             maxItems: 1                        << 
387             description:                       << 
388               Bitmask of the tagged frames pri << 
389               When a PFC frame is received wit << 
390               the queue is blocked from transm << 
391               in the PFC frame.                << 
392                                                << 
393           snps,coe-unsupported:                << 
394             type: boolean                      << 
395             description: TX checksum offload i << 
396                                                << 
397         allOf:                                 << 
398           - if:                                << 
399               required:                        << 
400                 - snps,dcb-algorithm           << 
401             then:                              << 
402               properties:                      << 
403                 snps,avb-algorithm: false      << 
404           - if:                                << 
405               required:                        << 
406                 - snps,avb-algorithm           << 
407             then:                              << 
408               properties:                      << 
409                 snps,dcb-algorithm: false      << 
410                 snps,weight: false             << 
411         additionalProperties: false            << 
412     additionalProperties: false                << 
413                                                   196 
414   snps,reset-gpio:                                197   snps,reset-gpio:
415     deprecated: true                              198     deprecated: true
416     maxItems: 1                                   199     maxItems: 1
417     description:                                  200     description:
418       PHY Reset GPIO                              201       PHY Reset GPIO
419                                                   202 
420   snps,reset-active-low:                          203   snps,reset-active-low:
421     deprecated: true                              204     deprecated: true
422     $ref: /schemas/types.yaml#/definitions/fla    205     $ref: /schemas/types.yaml#/definitions/flag
423     description:                                  206     description:
424       Indicates that the PHY Reset is active l    207       Indicates that the PHY Reset is active low
425                                                   208 
426   snps,reset-delays-us:                           209   snps,reset-delays-us:
427     deprecated: true                              210     deprecated: true
428     description:                                  211     description:
429       Triplet of delays. The 1st cell is reset    212       Triplet of delays. The 1st cell is reset pre-delay in micro
430       seconds. The 2nd cell is reset pulse in     213       seconds. The 2nd cell is reset pulse in micro seconds. The 3rd
431       cell is reset post-delay in micro second    214       cell is reset post-delay in micro seconds.
432     minItems: 3                                   215     minItems: 3
433     maxItems: 3                                   216     maxItems: 3
434                                                   217 
435   snps,aal:                                       218   snps,aal:
436     $ref: /schemas/types.yaml#/definitions/fla    219     $ref: /schemas/types.yaml#/definitions/flag
437     description:                                  220     description:
438       Use Address-Aligned Beats                   221       Use Address-Aligned Beats
439                                                   222 
440   snps,pbl:                                    << 
441     description:                               << 
442       Programmable Burst Length (tx and rx)    << 
443     $ref: /schemas/types.yaml#/definitions/uin << 
444     enum: [1, 2, 4, 8, 16, 32]                 << 
445                                                << 
446   snps,txpbl:                                  << 
447     description:                               << 
448       Tx Programmable Burst Length. If set, DM << 
449       value rather than snps,pbl.              << 
450     $ref: /schemas/types.yaml#/definitions/uin << 
451     enum: [1, 2, 4, 8, 16, 32]                 << 
452                                                << 
453   snps,rxpbl:                                  << 
454     description:                               << 
455       Rx Programmable Burst Length. If set, DM << 
456       value rather than snps,pbl.              << 
457     $ref: /schemas/types.yaml#/definitions/uin << 
458     enum: [1, 2, 4, 8, 16, 32]                 << 
459                                                << 
460   snps,no-pbl-x8:                              << 
461     $ref: /schemas/types.yaml#/definitions/fla << 
462     description:                               << 
463       Don\'t multiply the pbl/txpbl/rxpbl valu << 
464       rev < 3.50, don\'t multiply the values b << 
465                                                << 
466   snps,fixed-burst:                               223   snps,fixed-burst:
467     $ref: /schemas/types.yaml#/definitions/fla    224     $ref: /schemas/types.yaml#/definitions/flag
468     description:                                  225     description:
469       Program the DMA to use the fixed burst m    226       Program the DMA to use the fixed burst mode
470                                                   227 
471   snps,mixed-burst:                               228   snps,mixed-burst:
472     $ref: /schemas/types.yaml#/definitions/fla    229     $ref: /schemas/types.yaml#/definitions/flag
473     description:                                  230     description:
474       Program the DMA to use the mixed burst m    231       Program the DMA to use the mixed burst mode
475                                                   232 
476   snps,force_thresh_dma_mode:                     233   snps,force_thresh_dma_mode:
477     $ref: /schemas/types.yaml#/definitions/fla    234     $ref: /schemas/types.yaml#/definitions/flag
478     description:                                  235     description:
479       Force DMA to use the threshold mode for     236       Force DMA to use the threshold mode for both tx and rx
480                                                   237 
481   snps,force_sf_dma_mode:                         238   snps,force_sf_dma_mode:
482     $ref: /schemas/types.yaml#/definitions/fla    239     $ref: /schemas/types.yaml#/definitions/flag
483     description:                                  240     description:
484       Force DMA to use the Store and Forward m    241       Force DMA to use the Store and Forward mode for both tx and
485       rx. This flag is ignored if force_thresh    242       rx. This flag is ignored if force_thresh_dma_mode is set.
486                                                   243 
487   snps,en-tx-lpi-clockgating:                     244   snps,en-tx-lpi-clockgating:
488     $ref: /schemas/types.yaml#/definitions/fla    245     $ref: /schemas/types.yaml#/definitions/flag
489     description:                                  246     description:
490       Enable gating of the MAC TX clock during    247       Enable gating of the MAC TX clock during TX low-power mode
491                                                   248 
492   snps,multicast-filter-bins:                     249   snps,multicast-filter-bins:
493     $ref: /schemas/types.yaml#/definitions/uin    250     $ref: /schemas/types.yaml#/definitions/uint32
494     description:                                  251     description:
495       Number of multicast filter hash bins sup    252       Number of multicast filter hash bins supported by this device
496       instance                                    253       instance
497                                                   254 
498   snps,perfect-filter-entries:                    255   snps,perfect-filter-entries:
499     $ref: /schemas/types.yaml#/definitions/uin    256     $ref: /schemas/types.yaml#/definitions/uint32
500     description:                                  257     description:
501       Number of perfect filter entries support    258       Number of perfect filter entries supported by this device
502       instance                                    259       instance
503                                                   260 
504   snps,ps-speed:                                  261   snps,ps-speed:
505     $ref: /schemas/types.yaml#/definitions/uin    262     $ref: /schemas/types.yaml#/definitions/uint32
506     description:                                  263     description:
507       Port selection speed that can be passed     264       Port selection speed that can be passed to the core when PCS
508       is supported. For example, this is used     265       is supported. For example, this is used in case of SGMII and
509       MAC2MAC connection.                         266       MAC2MAC connection.
510                                                   267 
511   snps,clk-csr:                                << 
512     $ref: /schemas/types.yaml#/definitions/uin << 
513     description:                               << 
514       Frequency division factor for MDC clock. << 
515                                                << 
516   snps,tso:                                    << 
517     $ref: /schemas/types.yaml#/definitions/fla << 
518     description:                               << 
519       Enables the TSO feature otherwise it wil << 
520       register.                                << 
521                                                << 
522   mdio:                                           268   mdio:
523     $ref: mdio.yaml#                           !! 269     type: object
524     unevaluatedProperties: false               << 
525     description:                                  270     description:
526       Creates and registers an MDIO bus.          271       Creates and registers an MDIO bus.
527                                                   272 
528     properties:                                   273     properties:
529       compatible:                                 274       compatible:
530         const: snps,dwmac-mdio                    275         const: snps,dwmac-mdio
531                                                   276 
532     required:                                     277     required:
533       - compatible                                278       - compatible
534                                                   279 
535   stmmac-axi-config:                           << 
536     type: object                               << 
537     unevaluatedProperties: false               << 
538     description:                               << 
539       AXI BUS Mode parameters.                 << 
540                                                << 
541     properties:                                << 
542       snps,lpi_en:                             << 
543         $ref: /schemas/types.yaml#/definitions << 
544         description:                           << 
545           enable Low Power Interface           << 
546                                                << 
547       snps,xit_frm:                            << 
548         $ref: /schemas/types.yaml#/definitions << 
549         description:                           << 
550           unlock on WoL                        << 
551                                                << 
552       snps,wr_osr_lmt:                         << 
553         $ref: /schemas/types.yaml#/definitions << 
554         description:                           << 
555           max write outstanding req. limit     << 
556                                                << 
557       snps,rd_osr_lmt:                         << 
558         $ref: /schemas/types.yaml#/definitions << 
559         description:                           << 
560           max read outstanding req. limit      << 
561                                                << 
562       snps,kbbe:                               << 
563         $ref: /schemas/types.yaml#/definitions << 
564         description:                           << 
565           do not cross 1KiB boundary.          << 
566                                                << 
567       snps,blen:                               << 
568         $ref: /schemas/types.yaml#/definitions << 
569         description:                           << 
570           this is a vector of supported burst  << 
571         minItems: 7                            << 
572         maxItems: 7                            << 
573                                                << 
574       snps,fb:                                 << 
575         $ref: /schemas/types.yaml#/definitions << 
576         description:                           << 
577           fixed-burst                          << 
578                                                << 
579       snps,mb:                                 << 
580         $ref: /schemas/types.yaml#/definitions << 
581         description:                           << 
582           mixed-burst                          << 
583                                                << 
584       snps,rb:                                 << 
585         $ref: /schemas/types.yaml#/definitions << 
586         description:                           << 
587           rebuild INCRx Burst                  << 
588                                                << 
589 required:                                         280 required:
590   - compatible                                    281   - compatible
591   - reg                                           282   - reg
592   - interrupts                                    283   - interrupts
593   - interrupt-names                               284   - interrupt-names
594   - phy-mode                                      285   - phy-mode
595                                                   286 
596 dependencies:                                     287 dependencies:
597   snps,reset-active-low: ["snps,reset-gpio"]      288   snps,reset-active-low: ["snps,reset-gpio"]
598   snps,reset-delays-us: ["snps,reset-gpio"]    !! 289   snps,reset-delay-us: ["snps,reset-gpio"]
599                                                   290 
600 allOf:                                            291 allOf:
601   - $ref: ethernet-controller.yaml#            !! 292   - $ref: "ethernet-controller.yaml#"
602   - if:                                           293   - if:
603       properties:                                 294       properties:
604         compatible:                               295         compatible:
605           not:                                 !! 296           contains:
606             contains:                          !! 297             enum:
607               enum:                            !! 298               - allwinner,sun7i-a20-gmac
608                 - allwinner,sun7i-a20-gmac     !! 299               - allwinner,sun8i-a83t-emac
609                 - allwinner,sun8i-a83t-emac    !! 300               - allwinner,sun8i-h3-emac
610                 - allwinner,sun8i-h3-emac      !! 301               - allwinner,sun8i-r40-emac
611                 - allwinner,sun8i-r40-gmac     !! 302               - allwinner,sun8i-v3s-emac
612                 - allwinner,sun8i-v3s-emac     !! 303               - allwinner,sun50i-a64-emac
613                 - allwinner,sun50i-a64-emac    !! 304               - snps,dwxgmac
614                 - loongson,ls2k-dwmac          !! 305               - snps,dwxgmac-2.10
615                 - loongson,ls7a-dwmac          !! 306               - st,spear600-gmac
616                 - ingenic,jz4775-mac           << 
617                 - ingenic,x1000-mac            << 
618                 - ingenic,x1600-mac            << 
619                 - ingenic,x1830-mac            << 
620                 - ingenic,x2000-mac            << 
621                 - qcom,qcs404-ethqos           << 
622                 - qcom,sa8775p-ethqos          << 
623                 - qcom,sc8280xp-ethqos         << 
624                 - qcom,sm8150-ethqos           << 
625                 - snps,dwmac-4.00              << 
626                 - snps,dwmac-4.10a             << 
627                 - snps,dwmac-4.20a             << 
628                 - snps,dwmac-5.10a             << 
629                 - snps,dwmac-5.20              << 
630                 - snps,dwxgmac                 << 
631                 - snps,dwxgmac-2.10            << 
632                 - st,spear600-gmac             << 
633                                                   307 
634     then:                                         308     then:
635       properties:                                 309       properties:
636         snps,tso: false                        !! 310         snps,pbl:
                                                   >> 311           description:
                                                   >> 312             Programmable Burst Length (tx and rx)
                                                   >> 313           $ref: /schemas/types.yaml#/definitions/uint32
                                                   >> 314           enum: [2, 4, 8]
                                                   >> 315 
                                                   >> 316         snps,txpbl:
                                                   >> 317           description:
                                                   >> 318             Tx Programmable Burst Length. If set, DMA tx will use this
                                                   >> 319             value rather than snps,pbl.
                                                   >> 320           $ref: /schemas/types.yaml#/definitions/uint32
                                                   >> 321           enum: [2, 4, 8]
                                                   >> 322 
                                                   >> 323         snps,rxpbl:
                                                   >> 324           description:
                                                   >> 325             Rx Programmable Burst Length. If set, DMA rx will use this
                                                   >> 326             value rather than snps,pbl.
                                                   >> 327           $ref: /schemas/types.yaml#/definitions/uint32
                                                   >> 328           enum: [2, 4, 8]
                                                   >> 329 
                                                   >> 330         snps,no-pbl-x8:
                                                   >> 331           $ref: /schemas/types.yaml#/definitions/flag
                                                   >> 332           description:
                                                   >> 333             Don\'t multiply the pbl/txpbl/rxpbl values by 8. For core
                                                   >> 334             rev < 3.50, don\'t multiply the values by 4.
                                                   >> 335 
                                                   >> 336   - if:
                                                   >> 337       properties:
                                                   >> 338         compatible:
                                                   >> 339           contains:
                                                   >> 340             enum:
                                                   >> 341               - allwinner,sun7i-a20-gmac
                                                   >> 342               - allwinner,sun8i-a83t-emac
                                                   >> 343               - allwinner,sun8i-h3-emac
                                                   >> 344               - allwinner,sun8i-r40-emac
                                                   >> 345               - allwinner,sun8i-v3s-emac
                                                   >> 346               - allwinner,sun50i-a64-emac
                                                   >> 347               - snps,dwmac-4.00
                                                   >> 348               - snps,dwmac-4.10a
                                                   >> 349               - snps,dwmac-4.20a
                                                   >> 350               - snps,dwxgmac
                                                   >> 351               - snps,dwxgmac-2.10
                                                   >> 352               - st,spear600-gmac
                                                   >> 353 
                                                   >> 354     then:
                                                   >> 355       properties:
                                                   >> 356         snps,tso:
                                                   >> 357           $ref: /schemas/types.yaml#/definitions/flag
                                                   >> 358           description:
                                                   >> 359             Enables the TSO feature otherwise it will be managed by
                                                   >> 360             MAC HW capability register.
637                                                   361 
638 additionalProperties: true                        362 additionalProperties: true
639                                                   363 
640 examples:                                         364 examples:
641   - |                                             365   - |
                                                   >> 366     stmmac_axi_setup: stmmac-axi-config {
                                                   >> 367         snps,wr_osr_lmt = <0xf>;
                                                   >> 368         snps,rd_osr_lmt = <0xf>;
                                                   >> 369         snps,blen = <256 128 64 32 0 0 0>;
                                                   >> 370     };
                                                   >> 371 
                                                   >> 372     mtl_rx_setup: rx-queues-config {
                                                   >> 373         snps,rx-queues-to-use = <1>;
                                                   >> 374         snps,rx-sched-sp;
                                                   >> 375         queue0 {
                                                   >> 376             snps,dcb-algorithm;
                                                   >> 377             snps,map-to-dma-channel = <0x0>;
                                                   >> 378             snps,priority = <0x0>;
                                                   >> 379         };
                                                   >> 380     };
                                                   >> 381 
                                                   >> 382     mtl_tx_setup: tx-queues-config {
                                                   >> 383         snps,tx-queues-to-use = <2>;
                                                   >> 384         snps,tx-sched-wrr;
                                                   >> 385         queue0 {
                                                   >> 386             snps,weight = <0x10>;
                                                   >> 387             snps,dcb-algorithm;
                                                   >> 388             snps,priority = <0x0>;
                                                   >> 389         };
                                                   >> 390 
                                                   >> 391         queue1 {
                                                   >> 392             snps,avb-algorithm;
                                                   >> 393             snps,send_slope = <0x1000>;
                                                   >> 394             snps,idle_slope = <0x1000>;
                                                   >> 395             snps,high_credit = <0x3E800>;
                                                   >> 396             snps,low_credit = <0xFFC18000>;
                                                   >> 397             snps,priority = <0x1>;
                                                   >> 398         };
                                                   >> 399     };
                                                   >> 400 
642     gmac0: ethernet@e0800000 {                    401     gmac0: ethernet@e0800000 {
643         compatible = "snps,dwxgmac-2.10", "snp    402         compatible = "snps,dwxgmac-2.10", "snps,dwxgmac";
644         reg = <0xe0800000 0x8000>;                403         reg = <0xe0800000 0x8000>;
645         interrupt-parent = <&vic1>;               404         interrupt-parent = <&vic1>;
646         interrupts = <24 23 22>;                  405         interrupts = <24 23 22>;
647         interrupt-names = "macirq", "eth_wake_    406         interrupt-names = "macirq", "eth_wake_irq", "eth_lpi";
648         mac-address = [000000000000]; /* Fille    407         mac-address = [000000000000]; /* Filled in by U-Boot */
649         max-frame-size = <3800>;                  408         max-frame-size = <3800>;
650         phy-mode = "gmii";                        409         phy-mode = "gmii";
651         snps,multicast-filter-bins = <256>;       410         snps,multicast-filter-bins = <256>;
652         snps,perfect-filter-entries = <128>;      411         snps,perfect-filter-entries = <128>;
653         rx-fifo-depth = <16384>;                  412         rx-fifo-depth = <16384>;
654         tx-fifo-depth = <16384>;                  413         tx-fifo-depth = <16384>;
655         clocks = <&clock>;                        414         clocks = <&clock>;
656         clock-names = "stmmaceth";                415         clock-names = "stmmaceth";
657         snps,axi-config = <&stmmac_axi_setup>;    416         snps,axi-config = <&stmmac_axi_setup>;
658         snps,mtl-rx-config = <&mtl_rx_setup>;     417         snps,mtl-rx-config = <&mtl_rx_setup>;
659         snps,mtl-tx-config = <&mtl_tx_setup>;     418         snps,mtl-tx-config = <&mtl_tx_setup>;
660                                                << 
661         stmmac_axi_setup: stmmac-axi-config {  << 
662             snps,wr_osr_lmt = <0xf>;           << 
663             snps,rd_osr_lmt = <0xf>;           << 
664             snps,blen = <256 128 64 32 0 0 0>; << 
665         };                                     << 
666                                                << 
667         mtl_rx_setup: rx-queues-config {       << 
668             snps,rx-queues-to-use = <1>;       << 
669             snps,rx-sched-sp;                  << 
670             queue0 {                           << 
671                 snps,dcb-algorithm;            << 
672                 snps,map-to-dma-channel = <0x0 << 
673                 snps,priority = <0x0>;         << 
674             };                                 << 
675         };                                     << 
676                                                << 
677         mtl_tx_setup: tx-queues-config {       << 
678             snps,tx-queues-to-use = <2>;       << 
679             snps,tx-sched-wrr;                 << 
680             queue0 {                           << 
681                 snps,weight = <0x10>;          << 
682                 snps,dcb-algorithm;            << 
683                 snps,priority = <0x0>;         << 
684             };                                 << 
685                                                << 
686             queue1 {                           << 
687                 snps,avb-algorithm;            << 
688                 snps,send_slope = <0x1000>;    << 
689                 snps,idle_slope = <0x1000>;    << 
690                 snps,high_credit = <0x3E800>;  << 
691                 snps,low_credit = <0xFFC18000> << 
692                 snps,priority = <0x1>;         << 
693             };                                 << 
694         };                                     << 
695                                                << 
696         mdio0 {                                   419         mdio0 {
697             #address-cells = <1>;                 420             #address-cells = <1>;
698             #size-cells = <0>;                    421             #size-cells = <0>;
699             compatible = "snps,dwmac-mdio";       422             compatible = "snps,dwmac-mdio";
700             phy1: ethernet-phy@0 {                423             phy1: ethernet-phy@0 {
701                 reg = <0>;                        424                 reg = <0>;
702             };                                    425             };
703         };                                        426         };
704     };                                            427     };
705                                                   428 
706 # FIXME: We should set it, but it would report    429 # FIXME: We should set it, but it would report all the generic
707 # properties as additional properties.            430 # properties as additional properties.
708 # additionalProperties: false                     431 # additionalProperties: false
709                                                   432 
710 ...                                               433 ...
                                                      

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