lkml.org 
[lkml]   [2020]   [Dec]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 01/25] dt-bindings: net: dwmac: Validate PBL for all IP-cores
    Date
    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]
    for Generic DW *MAC IP-cores. Moreover the STMMAC set of drivers parse
    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. 380.

    Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
    ---
    .../devicetree/bindings/net/snps,dwmac.yaml | 69 +++++++------------
    1 file changed, 26 insertions(+), 43 deletions(-)

    diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml
    index 11a6fdb657c9..4b672499f20d 100644
    --- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml
    +++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml
    @@ -262,6 +262,32 @@ properties:
    is supported. For example, this is used in case of SGMII and
    MAC2MAC connection.

    + snps,pbl:
    + description:
    + Programmable Burst Length (tx and rx)
    + $ref: /schemas/types.yaml#definitions/uint32
    + enum: [2, 4, 8]
    +
    + snps,txpbl:
    + description:
    + Tx Programmable Burst Length. If set, DMA tx will use this
    + value rather than snps,pbl.
    + $ref: /schemas/types.yaml#definitions/uint32
    + enum: [2, 4, 8]
    +
    + snps,rxpbl:
    + description:
    + Rx Programmable Burst Length. If set, DMA rx will use this
    + value rather than snps,pbl.
    + $ref: /schemas/types.yaml#definitions/uint32
    + enum: [2, 4, 8]
    +
    + snps,no-pbl-x8:
    + $ref: /schemas/types.yaml#definitions/flag
    + description:
    + Don\'t multiply the pbl/txpbl/rxpbl values by 8. For core
    + rev < 3.50, don\'t multiply the values by 4.
    +
    mdio:
    type: object
    description:
    @@ -287,49 +313,6 @@ dependencies:

    allOf:
    - $ref: "ethernet-controller.yaml#"
    - - if:
    - properties:
    - compatible:
    - contains:
    - enum:
    - - allwinner,sun7i-a20-gmac
    - - allwinner,sun8i-a83t-emac
    - - allwinner,sun8i-h3-emac
    - - allwinner,sun8i-r40-emac
    - - allwinner,sun8i-v3s-emac
    - - allwinner,sun50i-a64-emac
    - - snps,dwxgmac
    - - snps,dwxgmac-2.10
    - - st,spear600-gmac
    -
    - then:
    - properties:
    - snps,pbl:
    - description:
    - Programmable Burst Length (tx and rx)
    - $ref: /schemas/types.yaml#definitions/uint32
    - enum: [2, 4, 8]
    -
    - snps,txpbl:
    - description:
    - Tx Programmable Burst Length. If set, DMA tx will use this
    - value rather than snps,pbl.
    - $ref: /schemas/types.yaml#definitions/uint32
    - enum: [2, 4, 8]
    -
    - snps,rxpbl:
    - description:
    - Rx Programmable Burst Length. If set, DMA rx will use this
    - value rather than snps,pbl.
    - $ref: /schemas/types.yaml#definitions/uint32
    - enum: [2, 4, 8]
    -
    - snps,no-pbl-x8:
    - $ref: /schemas/types.yaml#definitions/flag
    - description:
    - Don\'t multiply the pbl/txpbl/rxpbl values by 8. For core
    - rev < 3.50, don\'t multiply the values by 4.
    -
    - if:
    properties:
    compatible:
    --
    2.29.2
    \
     
     \ /
      Last update: 2020-12-14 10:32    [W:2.469 / U:0.016 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site