0042-dt-bindings-net-snps-dwmac-Add-ahb-reset-reset-name.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. From 3b0609e57e031a3b680131b3fc25bc1165e3360f Mon Sep 17 00:00:00 2001
  2. From: Samin Guo <[email protected]>
  3. Date: Mon, 27 Feb 2023 18:26:04 +0800
  4. Subject: [PATCH 042/122] dt-bindings: net: snps,dwmac: Add 'ahb'
  5. reset/reset-name
  6. According to:
  7. stmmac_platform.c: stmmac_probe_config_dt
  8. stmmac_main.c: stmmac_dvr_probe
  9. dwmac controller may require one (stmmaceth) or two (stmmaceth+ahb)
  10. reset signals, and the maxItems of resets/reset-names is going to be 2.
  11. The gmac of Starfive Jh7110 SOC must have two resets.
  12. it uses snps,dwmac-5.20 IP.
  13. Reviewed-by: Krzysztof Kozlowski <[email protected]>
  14. Signed-off-by: Samin Guo <[email protected]>
  15. Signed-off-by: Paolo Abeni <[email protected]>
  16. ---
  17. .../devicetree/bindings/net/snps,dwmac.yaml | 12 ++++++++----
  18. 1 file changed, 8 insertions(+), 4 deletions(-)
  19. --- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml
  20. +++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml
  21. @@ -133,12 +133,16 @@ properties:
  22. - ptp_ref
  23. resets:
  24. - maxItems: 1
  25. - description:
  26. - MAC Reset signal.
  27. + minItems: 1
  28. + items:
  29. + - description: GMAC stmmaceth reset
  30. + - description: AHB reset
  31. reset-names:
  32. - const: stmmaceth
  33. + minItems: 1
  34. + items:
  35. + - const: stmmaceth
  36. + - const: ahb
  37. power-domains:
  38. maxItems: 1