Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: net: dwmac: Validate PBL for all IP-cores

Indeed the maximum DMA burst length can be programmed not only for DW
xGMACs, Allwinner EMACs and Spear SoC GMAC, but in accordance with
[1, 2, 3] for Generic DW *MAC IP-cores. Moreover the STMMAC driver parses
the property and then apply the configuration for all supported DW MAC
devices. All of that makes the property being available for all IP-cores
the bindings supports. Let's make sure the PBL-related properties are
validated for all of them by the common DW *MAC DT schema.

[1] DesignWare Cores Ethernet MAC Universal Databook, Revision 3.73a,
October 2013, p.378.

[2] DesignWare Cores Ethernet Quality-of-Service Databook, Revision 5.10a,
December 2017, p.1223.

[3] DesignWare Cores XGMAC - 10G Ethernet MAC Databook, Revision 2.11a,
September 2015, p.469-473.

Signed-off-by: Serge Semin <fancer.lancer@gmail.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://patch.msgid.link/20240628154515.8783-1-fancer.lancer@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

authored by

Serge Semin and committed by
Paolo Abeni
d01e0e98 2a01a889

+26 -54
+26 -54
Documentation/devicetree/bindings/net/snps,dwmac.yaml
··· 436 436 description: 437 437 Use Address-Aligned Beats 438 438 439 + snps,pbl: 440 + description: 441 + Programmable Burst Length (tx and rx) 442 + $ref: /schemas/types.yaml#/definitions/uint32 443 + enum: [1, 2, 4, 8, 16, 32] 444 + 445 + snps,txpbl: 446 + description: 447 + Tx Programmable Burst Length. If set, DMA tx will use this 448 + value rather than snps,pbl. 449 + $ref: /schemas/types.yaml#/definitions/uint32 450 + enum: [1, 2, 4, 8, 16, 32] 451 + 452 + snps,rxpbl: 453 + description: 454 + Rx Programmable Burst Length. If set, DMA rx will use this 455 + value rather than snps,pbl. 456 + $ref: /schemas/types.yaml#/definitions/uint32 457 + enum: [1, 2, 4, 8, 16, 32] 458 + 459 + snps,no-pbl-x8: 460 + $ref: /schemas/types.yaml#/definitions/flag 461 + description: 462 + Don\'t multiply the pbl/txpbl/rxpbl values by 8. For core 463 + rev < 3.50, don\'t multiply the values by 4. 464 + 439 465 snps,fixed-burst: 440 466 $ref: /schemas/types.yaml#/definitions/flag 441 467 description: ··· 592 566 593 567 allOf: 594 568 - $ref: ethernet-controller.yaml# 595 - - if: 596 - properties: 597 - compatible: 598 - contains: 599 - enum: 600 - - allwinner,sun7i-a20-gmac 601 - - allwinner,sun8i-a83t-emac 602 - - allwinner,sun8i-h3-emac 603 - - allwinner,sun8i-r40-gmac 604 - - allwinner,sun8i-v3s-emac 605 - - allwinner,sun50i-a64-emac 606 - - ingenic,jz4775-mac 607 - - ingenic,x1000-mac 608 - - ingenic,x1600-mac 609 - - ingenic,x1830-mac 610 - - ingenic,x2000-mac 611 - - qcom,sa8775p-ethqos 612 - - qcom,sc8280xp-ethqos 613 - - snps,dwmac-3.50a 614 - - snps,dwmac-4.10a 615 - - snps,dwmac-4.20a 616 - - snps,dwmac-5.20 617 - - snps,dwxgmac 618 - - snps,dwxgmac-2.10 619 - - st,spear600-gmac 620 - 621 - then: 622 - properties: 623 - snps,pbl: 624 - description: 625 - Programmable Burst Length (tx and rx) 626 - $ref: /schemas/types.yaml#/definitions/uint32 627 - enum: [1, 2, 4, 8, 16, 32] 628 - 629 - snps,txpbl: 630 - description: 631 - Tx Programmable Burst Length. If set, DMA tx will use this 632 - value rather than snps,pbl. 633 - $ref: /schemas/types.yaml#/definitions/uint32 634 - enum: [1, 2, 4, 8, 16, 32] 635 - 636 - snps,rxpbl: 637 - description: 638 - Rx Programmable Burst Length. If set, DMA rx will use this 639 - value rather than snps,pbl. 640 - $ref: /schemas/types.yaml#/definitions/uint32 641 - enum: [1, 2, 4, 8, 16, 32] 642 - 643 - snps,no-pbl-x8: 644 - $ref: /schemas/types.yaml#/definitions/flag 645 - description: 646 - Don\'t multiply the pbl/txpbl/rxpbl values by 8. For core 647 - rev < 3.50, don\'t multiply the values by 4. 648 - 649 569 - if: 650 570 properties: 651 571 compatible: