xref: /linux/Documentation/devicetree/bindings/net/snps,dwmac.yaml (revision 67d0da99163f99eb39a931e79b128cbf0647dfdb)
17db3545aSMaxime Ripard# SPDX-License-Identifier: GPL-2.0
27db3545aSMaxime Ripard%YAML 1.2
37db3545aSMaxime Ripard---
47db3545aSMaxime Ripard$id: http://devicetree.org/schemas/net/snps,dwmac.yaml#
57db3545aSMaxime Ripard$schema: http://devicetree.org/meta-schemas/core.yaml#
67db3545aSMaxime Ripard
77db3545aSMaxime Ripardtitle: Synopsys DesignWare MAC Device Tree Bindings
87db3545aSMaxime Ripard
97db3545aSMaxime Ripardmaintainers:
107db3545aSMaxime Ripard  - Alexandre Torgue <alexandre.torgue@st.com>
117db3545aSMaxime Ripard  - Giuseppe Cavallaro <peppe.cavallaro@st.com>
127db3545aSMaxime Ripard  - Jose Abreu <joabreu@synopsys.com>
137db3545aSMaxime Ripard
147db3545aSMaxime Ripard# Select every compatible, including the deprecated ones. This way, we
157db3545aSMaxime Ripard# will be able to report a warning when we have that compatible, since
167db3545aSMaxime Ripard# we will validate the node thanks to the select, but won't report it
177db3545aSMaxime Ripard# as a valid value in the compatible property description
187db3545aSMaxime Ripardselect:
197db3545aSMaxime Ripard  properties:
207db3545aSMaxime Ripard    compatible:
217db3545aSMaxime Ripard      contains:
227db3545aSMaxime Ripard        enum:
237db3545aSMaxime Ripard          - snps,dwmac
247db3545aSMaxime Ripard          - snps,dwmac-3.50a
257db3545aSMaxime Ripard          - snps,dwmac-3.610
267db3545aSMaxime Ripard          - snps,dwmac-3.70a
277db3545aSMaxime Ripard          - snps,dwmac-3.710
287db3545aSMaxime Ripard          - snps,dwmac-4.00
297db3545aSMaxime Ripard          - snps,dwmac-4.10a
307db3545aSMaxime Ripard          - snps,dwxgmac
317db3545aSMaxime Ripard          - snps,dwxgmac-2.10
327db3545aSMaxime Ripard
337db3545aSMaxime Ripard          # Deprecated
347db3545aSMaxime Ripard          - st,spear600-gmac
357db3545aSMaxime Ripard
367db3545aSMaxime Ripard  required:
377db3545aSMaxime Ripard    - compatible
387db3545aSMaxime Ripard
397db3545aSMaxime Ripardproperties:
407db3545aSMaxime Ripard
417db3545aSMaxime Ripard  # We need to include all the compatibles from schemas that will
427db3545aSMaxime Ripard  # include that schemas, otherwise compatible won't validate for
437db3545aSMaxime Ripard  # those.
447db3545aSMaxime Ripard  compatible:
457db3545aSMaxime Ripard    contains:
467db3545aSMaxime Ripard      enum:
474b859450SMaxime Ripard        - allwinner,sun7i-a20-gmac
480569929dSMaxime Ripard        - allwinner,sun8i-a83t-emac
490569929dSMaxime Ripard        - allwinner,sun8i-h3-emac
500569929dSMaxime Ripard        - allwinner,sun8i-r40-emac
510569929dSMaxime Ripard        - allwinner,sun8i-v3s-emac
520569929dSMaxime Ripard        - allwinner,sun50i-a64-emac
537db3545aSMaxime Ripard        - snps,dwmac
547db3545aSMaxime Ripard        - snps,dwmac-3.50a
557db3545aSMaxime Ripard        - snps,dwmac-3.610
567db3545aSMaxime Ripard        - snps,dwmac-3.70a
577db3545aSMaxime Ripard        - snps,dwmac-3.710
587db3545aSMaxime Ripard        - snps,dwmac-4.00
597db3545aSMaxime Ripard        - snps,dwmac-4.10a
607db3545aSMaxime Ripard        - snps,dwxgmac
617db3545aSMaxime Ripard        - snps,dwxgmac-2.10
627db3545aSMaxime Ripard
637db3545aSMaxime Ripard  reg:
647db3545aSMaxime Ripard    maxItems: 1
657db3545aSMaxime Ripard
667db3545aSMaxime Ripard  interrupts:
677db3545aSMaxime Ripard    minItems: 1
687db3545aSMaxime Ripard    maxItems: 3
697db3545aSMaxime Ripard    items:
707db3545aSMaxime Ripard      - description: Combined signal for various interrupt events
717db3545aSMaxime Ripard      - description: The interrupt to manage the remote wake-up packet detection
727db3545aSMaxime Ripard      - description: The interrupt that occurs when Rx exits the LPI state
737db3545aSMaxime Ripard
747db3545aSMaxime Ripard  interrupt-names:
757db3545aSMaxime Ripard    minItems: 1
767db3545aSMaxime Ripard    maxItems: 3
777db3545aSMaxime Ripard    items:
787db3545aSMaxime Ripard      - const: macirq
797db3545aSMaxime Ripard      - const: eth_wake_irq
807db3545aSMaxime Ripard      - const: eth_lpi
817db3545aSMaxime Ripard
827db3545aSMaxime Ripard  clocks:
837db3545aSMaxime Ripard    minItems: 1
847db3545aSMaxime Ripard    maxItems: 3
857db3545aSMaxime Ripard    items:
867db3545aSMaxime Ripard      - description: GMAC main clock
877db3545aSMaxime Ripard      - description: Peripheral registers interface clock
887db3545aSMaxime Ripard      - description:
897db3545aSMaxime Ripard          PTP reference clock. This clock is used for programming the
907db3545aSMaxime Ripard          Timestamp Addend Register. If not passed then the system
917db3545aSMaxime Ripard          clock will be used and this is fine on some platforms.
927db3545aSMaxime Ripard
937db3545aSMaxime Ripard  clock-names:
947db3545aSMaxime Ripard    additionalItems: true
957db3545aSMaxime Ripard    contains:
967db3545aSMaxime Ripard      enum:
977db3545aSMaxime Ripard        - stmmaceth
987db3545aSMaxime Ripard        - pclk
997db3545aSMaxime Ripard        - ptp_ref
1007db3545aSMaxime Ripard
1017db3545aSMaxime Ripard  resets:
1027db3545aSMaxime Ripard    maxItems: 1
1037db3545aSMaxime Ripard    description:
1047db3545aSMaxime Ripard      MAC Reset signal.
1057db3545aSMaxime Ripard
1067db3545aSMaxime Ripard  reset-names:
1077db3545aSMaxime Ripard    const: stmmaceth
1087db3545aSMaxime Ripard
1097db3545aSMaxime Ripard  snps,axi-config:
1107db3545aSMaxime Ripard    $ref: /schemas/types.yaml#definitions/phandle
1117db3545aSMaxime Ripard    description:
1127db3545aSMaxime Ripard      AXI BUS Mode parameters. Phandle to a node that can contain the
1137db3545aSMaxime Ripard      following properties
1147db3545aSMaxime Ripard        * snps,lpi_en, enable Low Power Interface
1157db3545aSMaxime Ripard        * snps,xit_frm, unlock on WoL
1167db3545aSMaxime Ripard        * snps,wr_osr_lmt, max write outstanding req. limit
1177db3545aSMaxime Ripard        * snps,rd_osr_lmt, max read outstanding req. limit
1187db3545aSMaxime Ripard        * snps,kbbe, do not cross 1KiB boundary.
1197db3545aSMaxime Ripard        * snps,blen, this is a vector of supported burst length.
1207db3545aSMaxime Ripard        * snps,fb, fixed-burst
1217db3545aSMaxime Ripard        * snps,mb, mixed-burst
1227db3545aSMaxime Ripard        * snps,rb, rebuild INCRx Burst
1237db3545aSMaxime Ripard
1247db3545aSMaxime Ripard  snps,mtl-rx-config:
1257db3545aSMaxime Ripard    $ref: /schemas/types.yaml#definitions/phandle
1267db3545aSMaxime Ripard    description:
1277db3545aSMaxime Ripard      Multiple RX Queues parameters. Phandle to a node that can
1287db3545aSMaxime Ripard      contain the following properties
1297db3545aSMaxime Ripard        * snps,rx-queues-to-use, number of RX queues to be used in the
1307db3545aSMaxime Ripard          driver
1317db3545aSMaxime Ripard        * Choose one of these RX scheduling algorithms
1327db3545aSMaxime Ripard          * snps,rx-sched-sp, Strict priority
1337db3545aSMaxime Ripard          * snps,rx-sched-wsp, Weighted Strict priority
1347db3545aSMaxime Ripard        * For each RX queue
1357db3545aSMaxime Ripard          * Choose one of these modes
1367db3545aSMaxime Ripard            * snps,dcb-algorithm, Queue to be enabled as DCB
1377db3545aSMaxime Ripard            * snps,avb-algorithm, Queue to be enabled as AVB
1387db3545aSMaxime Ripard          * snps,map-to-dma-channel, Channel to map
1397db3545aSMaxime Ripard          * Specifiy specific packet routing
1407db3545aSMaxime Ripard            * snps,route-avcp, AV Untagged Control packets
1417db3545aSMaxime Ripard            * snps,route-ptp, PTP Packets
1427db3545aSMaxime Ripard            * snps,route-dcbcp, DCB Control Packets
1437db3545aSMaxime Ripard            * snps,route-up, Untagged Packets
1447db3545aSMaxime Ripard            * snps,route-multi-broad, Multicast & Broadcast Packets
1457db3545aSMaxime Ripard          * snps,priority, RX queue priority (Range 0x0 to 0xF)
1467db3545aSMaxime Ripard
1477db3545aSMaxime Ripard  snps,mtl-tx-config:
1487db3545aSMaxime Ripard    $ref: /schemas/types.yaml#definitions/phandle
1497db3545aSMaxime Ripard    description:
1507db3545aSMaxime Ripard      Multiple TX Queues parameters. Phandle to a node that can
1517db3545aSMaxime Ripard      contain the following properties
1527db3545aSMaxime Ripard        * snps,tx-queues-to-use, number of TX queues to be used in the
1537db3545aSMaxime Ripard          driver
1547db3545aSMaxime Ripard        * Choose one of these TX scheduling algorithms
1557db3545aSMaxime Ripard          * snps,tx-sched-wrr, Weighted Round Robin
1567db3545aSMaxime Ripard          * snps,tx-sched-wfq, Weighted Fair Queuing
1577db3545aSMaxime Ripard          * snps,tx-sched-dwrr, Deficit Weighted Round Robin
1587db3545aSMaxime Ripard          * snps,tx-sched-sp, Strict priority
1597db3545aSMaxime Ripard        * For each TX queue
1607db3545aSMaxime Ripard          * snps,weight, TX queue weight (if using a DCB weight
1617db3545aSMaxime Ripard            algorithm)
1627db3545aSMaxime Ripard          * Choose one of these modes
1637db3545aSMaxime Ripard            * snps,dcb-algorithm, TX queue will be working in DCB
1647db3545aSMaxime Ripard            * snps,avb-algorithm, TX queue will be working in AVB
1657db3545aSMaxime Ripard              [Attention] Queue 0 is reserved for legacy traffic
1667db3545aSMaxime Ripard                          and so no AVB is available in this queue.
1677db3545aSMaxime Ripard          * Configure Credit Base Shaper (if AVB Mode selected)
1687db3545aSMaxime Ripard            * snps,send_slope, enable Low Power Interface
1697db3545aSMaxime Ripard            * snps,idle_slope, unlock on WoL
1707db3545aSMaxime Ripard            * snps,high_credit, max write outstanding req. limit
1717db3545aSMaxime Ripard            * snps,low_credit, max read outstanding req. limit
1727db3545aSMaxime Ripard          * snps,priority, TX queue priority (Range 0x0 to 0xF)
1737db3545aSMaxime Ripard
1747db3545aSMaxime Ripard  snps,reset-gpio:
175f80b1dfcSMaxime Ripard    deprecated: true
1767db3545aSMaxime Ripard    maxItems: 1
1777db3545aSMaxime Ripard    description:
1787db3545aSMaxime Ripard      PHY Reset GPIO
1797db3545aSMaxime Ripard
1807db3545aSMaxime Ripard  snps,reset-active-low:
181f80b1dfcSMaxime Ripard    deprecated: true
1827db3545aSMaxime Ripard    $ref: /schemas/types.yaml#definitions/flag
1837db3545aSMaxime Ripard    description:
1847db3545aSMaxime Ripard      Indicates that the PHY Reset is active low
1857db3545aSMaxime Ripard
1867db3545aSMaxime Ripard  snps,reset-delays-us:
187f80b1dfcSMaxime Ripard    deprecated: true
1887db3545aSMaxime Ripard    allOf:
1897db3545aSMaxime Ripard      - $ref: /schemas/types.yaml#definitions/uint32-array
1907db3545aSMaxime Ripard      - minItems: 3
1917db3545aSMaxime Ripard        maxItems: 3
1927db3545aSMaxime Ripard    description:
1937db3545aSMaxime Ripard      Triplet of delays. The 1st cell is reset pre-delay in micro
1947db3545aSMaxime Ripard      seconds. The 2nd cell is reset pulse in micro seconds. The 3rd
1957db3545aSMaxime Ripard      cell is reset post-delay in micro seconds.
1967db3545aSMaxime Ripard
1977db3545aSMaxime Ripard  snps,aal:
1987db3545aSMaxime Ripard    $ref: /schemas/types.yaml#definitions/flag
1997db3545aSMaxime Ripard    description:
2007db3545aSMaxime Ripard      Use Address-Aligned Beats
2017db3545aSMaxime Ripard
2027db3545aSMaxime Ripard  snps,fixed-burst:
2037db3545aSMaxime Ripard    $ref: /schemas/types.yaml#definitions/flag
2047db3545aSMaxime Ripard    description:
2057db3545aSMaxime Ripard      Program the DMA to use the fixed burst mode
2067db3545aSMaxime Ripard
2077db3545aSMaxime Ripard  snps,mixed-burst:
2087db3545aSMaxime Ripard    $ref: /schemas/types.yaml#definitions/flag
2097db3545aSMaxime Ripard    description:
2107db3545aSMaxime Ripard      Program the DMA to use the mixed burst mode
2117db3545aSMaxime Ripard
2127db3545aSMaxime Ripard  snps,force_thresh_dma_mode:
2137db3545aSMaxime Ripard    $ref: /schemas/types.yaml#definitions/flag
2147db3545aSMaxime Ripard    description:
2157db3545aSMaxime Ripard      Force DMA to use the threshold mode for both tx and rx
2167db3545aSMaxime Ripard
2177db3545aSMaxime Ripard  snps,force_sf_dma_mode:
2187db3545aSMaxime Ripard    $ref: /schemas/types.yaml#definitions/flag
2197db3545aSMaxime Ripard    description:
2207db3545aSMaxime Ripard      Force DMA to use the Store and Forward mode for both tx and
2217db3545aSMaxime Ripard      rx. This flag is ignored if force_thresh_dma_mode is set.
2227db3545aSMaxime Ripard
2237db3545aSMaxime Ripard  snps,en-tx-lpi-clockgating:
2247db3545aSMaxime Ripard    $ref: /schemas/types.yaml#definitions/flag
2257db3545aSMaxime Ripard    description:
2267db3545aSMaxime Ripard      Enable gating of the MAC TX clock during TX low-power mode
2277db3545aSMaxime Ripard
2287db3545aSMaxime Ripard  snps,multicast-filter-bins:
2297db3545aSMaxime Ripard    $ref: /schemas/types.yaml#definitions/uint32
2307db3545aSMaxime Ripard    description:
2317db3545aSMaxime Ripard      Number of multicast filter hash bins supported by this device
2327db3545aSMaxime Ripard      instance
2337db3545aSMaxime Ripard
2347db3545aSMaxime Ripard  snps,perfect-filter-entries:
2357db3545aSMaxime Ripard    $ref: /schemas/types.yaml#definitions/uint32
2367db3545aSMaxime Ripard    description:
2377db3545aSMaxime Ripard      Number of perfect filter entries supported by this device
2387db3545aSMaxime Ripard      instance
2397db3545aSMaxime Ripard
2407db3545aSMaxime Ripard  snps,ps-speed:
2417db3545aSMaxime Ripard    $ref: /schemas/types.yaml#definitions/uint32
2427db3545aSMaxime Ripard    description:
2437db3545aSMaxime Ripard      Port selection speed that can be passed to the core when PCS
2447db3545aSMaxime Ripard      is supported. For example, this is used in case of SGMII and
2457db3545aSMaxime Ripard      MAC2MAC connection.
2467db3545aSMaxime Ripard
2477db3545aSMaxime Ripard  mdio:
2487db3545aSMaxime Ripard    type: object
2497db3545aSMaxime Ripard    description:
2507db3545aSMaxime Ripard      Creates and registers an MDIO bus.
2517db3545aSMaxime Ripard
2527db3545aSMaxime Ripard    properties:
2537db3545aSMaxime Ripard      compatible:
2547db3545aSMaxime Ripard        const: snps,dwmac-mdio
2557db3545aSMaxime Ripard
2567db3545aSMaxime Ripard    required:
2577db3545aSMaxime Ripard      - compatible
2587db3545aSMaxime Ripard
2597db3545aSMaxime Ripardrequired:
2607db3545aSMaxime Ripard  - compatible
2617db3545aSMaxime Ripard  - reg
2627db3545aSMaxime Ripard  - interrupts
2637db3545aSMaxime Ripard  - interrupt-names
264*67d0da99SMaxime Ripard  - phy-mode
2657db3545aSMaxime Ripard
2667db3545aSMaxime Riparddependencies:
2677db3545aSMaxime Ripard  snps,reset-active-low: ["snps,reset-gpio"]
2687db3545aSMaxime Ripard  snps,reset-delay-us: ["snps,reset-gpio"]
2697db3545aSMaxime Ripard
2707db3545aSMaxime RipardallOf:
2717db3545aSMaxime Ripard  - $ref: "ethernet-controller.yaml#"
2727db3545aSMaxime Ripard  - if:
2737db3545aSMaxime Ripard      properties:
2747db3545aSMaxime Ripard        compatible:
2757db3545aSMaxime Ripard          contains:
2767db3545aSMaxime Ripard            enum:
2774b859450SMaxime Ripard              - allwinner,sun7i-a20-gmac
2780569929dSMaxime Ripard              - allwinner,sun8i-a83t-emac
2790569929dSMaxime Ripard              - allwinner,sun8i-h3-emac
2800569929dSMaxime Ripard              - allwinner,sun8i-r40-emac
2810569929dSMaxime Ripard              - allwinner,sun8i-v3s-emac
2820569929dSMaxime Ripard              - allwinner,sun50i-a64-emac
2837db3545aSMaxime Ripard              - snps,dwxgmac
2847db3545aSMaxime Ripard              - snps,dwxgmac-2.10
2857db3545aSMaxime Ripard              - st,spear600-gmac
2867db3545aSMaxime Ripard
2877db3545aSMaxime Ripard    then:
2887db3545aSMaxime Ripard      properties:
2897db3545aSMaxime Ripard        snps,pbl:
2907db3545aSMaxime Ripard          allOf:
2917db3545aSMaxime Ripard            - $ref: /schemas/types.yaml#definitions/uint32
2927db3545aSMaxime Ripard            - enum: [2, 4, 8]
2937db3545aSMaxime Ripard          description:
2947db3545aSMaxime Ripard            Programmable Burst Length (tx and rx)
2957db3545aSMaxime Ripard
2967db3545aSMaxime Ripard        snps,txpbl:
2977db3545aSMaxime Ripard          allOf:
2987db3545aSMaxime Ripard            - $ref: /schemas/types.yaml#definitions/uint32
2997db3545aSMaxime Ripard            - enum: [2, 4, 8]
3007db3545aSMaxime Ripard          description:
3017db3545aSMaxime Ripard            Tx Programmable Burst Length. If set, DMA tx will use this
3027db3545aSMaxime Ripard            value rather than snps,pbl.
3037db3545aSMaxime Ripard
3047db3545aSMaxime Ripard        snps,rxpbl:
3057db3545aSMaxime Ripard          allOf:
3067db3545aSMaxime Ripard            - $ref: /schemas/types.yaml#definitions/uint32
3077db3545aSMaxime Ripard            - enum: [2, 4, 8]
3087db3545aSMaxime Ripard          description:
3097db3545aSMaxime Ripard            Rx Programmable Burst Length. If set, DMA rx will use this
3107db3545aSMaxime Ripard            value rather than snps,pbl.
3117db3545aSMaxime Ripard
3127db3545aSMaxime Ripard        snps,no-pbl-x8:
3137db3545aSMaxime Ripard          $ref: /schemas/types.yaml#definitions/flag
3147db3545aSMaxime Ripard          description:
3157db3545aSMaxime Ripard            Don\'t multiply the pbl/txpbl/rxpbl values by 8. For core
3167db3545aSMaxime Ripard            rev < 3.50, don\'t multiply the values by 4.
3177db3545aSMaxime Ripard
3187db3545aSMaxime Ripard  - if:
3197db3545aSMaxime Ripard      properties:
3207db3545aSMaxime Ripard        compatible:
3217db3545aSMaxime Ripard          contains:
3227db3545aSMaxime Ripard            enum:
3234b859450SMaxime Ripard              - allwinner,sun7i-a20-gmac
3240569929dSMaxime Ripard              - allwinner,sun8i-a83t-emac
3250569929dSMaxime Ripard              - allwinner,sun8i-h3-emac
3260569929dSMaxime Ripard              - allwinner,sun8i-r40-emac
3270569929dSMaxime Ripard              - allwinner,sun8i-v3s-emac
3280569929dSMaxime Ripard              - allwinner,sun50i-a64-emac
3297db3545aSMaxime Ripard              - snps,dwmac-4.00
3307db3545aSMaxime Ripard              - snps,dwmac-4.10a
3317db3545aSMaxime Ripard              - snps,dwxgmac
3327db3545aSMaxime Ripard              - snps,dwxgmac-2.10
3337db3545aSMaxime Ripard              - st,spear600-gmac
3347db3545aSMaxime Ripard
3357db3545aSMaxime Ripard    then:
3367db3545aSMaxime Ripard        snps,tso:
3377db3545aSMaxime Ripard          $ref: /schemas/types.yaml#definitions/flag
3387db3545aSMaxime Ripard          description:
3397db3545aSMaxime Ripard            Enables the TSO feature otherwise it will be managed by
3407db3545aSMaxime Ripard            MAC HW capability register.
3417db3545aSMaxime Ripard
3427db3545aSMaxime Ripardexamples:
3437db3545aSMaxime Ripard  - |
3447db3545aSMaxime Ripard    stmmac_axi_setup: stmmac-axi-config {
3457db3545aSMaxime Ripard        snps,wr_osr_lmt = <0xf>;
3467db3545aSMaxime Ripard        snps,rd_osr_lmt = <0xf>;
3477db3545aSMaxime Ripard        snps,blen = <256 128 64 32 0 0 0>;
3487db3545aSMaxime Ripard    };
3497db3545aSMaxime Ripard
3507db3545aSMaxime Ripard    mtl_rx_setup: rx-queues-config {
3517db3545aSMaxime Ripard        snps,rx-queues-to-use = <1>;
3527db3545aSMaxime Ripard        snps,rx-sched-sp;
3537db3545aSMaxime Ripard        queue0 {
3547db3545aSMaxime Ripard            snps,dcb-algorithm;
3557db3545aSMaxime Ripard            snps,map-to-dma-channel = <0x0>;
3567db3545aSMaxime Ripard            snps,priority = <0x0>;
3577db3545aSMaxime Ripard        };
3587db3545aSMaxime Ripard    };
3597db3545aSMaxime Ripard
3607db3545aSMaxime Ripard    mtl_tx_setup: tx-queues-config {
3617db3545aSMaxime Ripard        snps,tx-queues-to-use = <2>;
3627db3545aSMaxime Ripard        snps,tx-sched-wrr;
3637db3545aSMaxime Ripard        queue0 {
3647db3545aSMaxime Ripard            snps,weight = <0x10>;
3657db3545aSMaxime Ripard            snps,dcb-algorithm;
3667db3545aSMaxime Ripard            snps,priority = <0x0>;
3677db3545aSMaxime Ripard        };
3687db3545aSMaxime Ripard
3697db3545aSMaxime Ripard        queue1 {
3707db3545aSMaxime Ripard            snps,avb-algorithm;
3717db3545aSMaxime Ripard            snps,send_slope = <0x1000>;
3727db3545aSMaxime Ripard            snps,idle_slope = <0x1000>;
3737db3545aSMaxime Ripard            snps,high_credit = <0x3E800>;
3747db3545aSMaxime Ripard            snps,low_credit = <0xFFC18000>;
3757db3545aSMaxime Ripard            snps,priority = <0x1>;
3767db3545aSMaxime Ripard        };
3777db3545aSMaxime Ripard    };
3787db3545aSMaxime Ripard
3797db3545aSMaxime Ripard    gmac0: ethernet@e0800000 {
3807db3545aSMaxime Ripard        compatible = "snps,dwxgmac-2.10", "snps,dwxgmac";
3817db3545aSMaxime Ripard        reg = <0xe0800000 0x8000>;
3827db3545aSMaxime Ripard        interrupt-parent = <&vic1>;
3837db3545aSMaxime Ripard        interrupts = <24 23 22>;
3847db3545aSMaxime Ripard        interrupt-names = "macirq", "eth_wake_irq", "eth_lpi";
3857db3545aSMaxime Ripard        mac-address = [000000000000]; /* Filled in by U-Boot */
3867db3545aSMaxime Ripard        max-frame-size = <3800>;
387*67d0da99SMaxime Ripard        phy-mode = "gmii";
3887db3545aSMaxime Ripard        snps,multicast-filter-bins = <256>;
3897db3545aSMaxime Ripard        snps,perfect-filter-entries = <128>;
3907db3545aSMaxime Ripard        rx-fifo-depth = <16384>;
3917db3545aSMaxime Ripard        tx-fifo-depth = <16384>;
3927db3545aSMaxime Ripard        clocks = <&clock>;
3937db3545aSMaxime Ripard        clock-names = "stmmaceth";
3947db3545aSMaxime Ripard        snps,axi-config = <&stmmac_axi_setup>;
3957db3545aSMaxime Ripard        snps,mtl-rx-config = <&mtl_rx_setup>;
3967db3545aSMaxime Ripard        snps,mtl-tx-config = <&mtl_tx_setup>;
3977db3545aSMaxime Ripard        mdio0 {
3987db3545aSMaxime Ripard            #address-cells = <1>;
3997db3545aSMaxime Ripard            #size-cells = <0>;
4007db3545aSMaxime Ripard            compatible = "snps,dwmac-mdio";
4017db3545aSMaxime Ripard            phy1: ethernet-phy@0 {
4027db3545aSMaxime Ripard                reg = <0>;
4037db3545aSMaxime Ripard            };
4047db3545aSMaxime Ripard        };
4057db3545aSMaxime Ripard    };
4067db3545aSMaxime Ripard
4077db3545aSMaxime Ripard# FIXME: We should set it, but it would report all the generic
4087db3545aSMaxime Ripard# properties as additional properties.
4097db3545aSMaxime Ripard# additionalProperties: false
4107db3545aSMaxime Ripard
4117db3545aSMaxime Ripard...
412