[PATCH net-next v4 1/2] dt-bindings: net: rockchip-dwmac: Add RK3572
From: Cunhao Lu via B4 Relay
Date: Tue Nov 17 2026 - 04:04:56 EST
From: Cunhao Lu <1579567540@xxxxxx>
Add the rockchip,rk3572-gmac compatible with the snps,dwmac-4.20a
fallback and require rockchip,php-grf.
Mark tx_delay and rx_delay as deprecated and disallow them for RK3572
so new designs do not use the legacy delay properties.
Signed-off-by: Cunhao Lu <1579567540@xxxxxx>
Reviewed-by: Andrew Lunn <andrew@xxxxxxx>
---
Changes in v3:
- Deprecate tx_delay and rx_delay and disallow them for RK3572.
Changes in v2:
- Add RK3572 to the shared Synopsys compatible list for consistency.
---
Documentation/devicetree/bindings/net/rockchip-dwmac.yaml | 15 +++++++++++++++
Documentation/devicetree/bindings/net/snps,dwmac.yaml | 1 +
2 files changed, 16 insertions(+)
diff --git a/Documentation/devicetree/bindings/net/rockchip-dwmac.yaml b/Documentation/devicetree/bindings/net/rockchip-dwmac.yaml
index e8dda1961ab3..d7b7bb008235 100644
--- a/Documentation/devicetree/bindings/net/rockchip-dwmac.yaml
+++ b/Documentation/devicetree/bindings/net/rockchip-dwmac.yaml
@@ -27,6 +27,7 @@ select:
- rockchip,rk3506-gmac
- rockchip,rk3528-gmac
- rockchip,rk3568-gmac
+ - rockchip,rk3572-gmac
- rockchip,rk3576-gmac
- rockchip,rk3588-gmac
- rockchip,rv1108-gmac
@@ -54,6 +55,7 @@ properties:
- rockchip,rk3506-gmac
- rockchip,rk3528-gmac
- rockchip,rk3568-gmac
+ - rockchip,rk3572-gmac
- rockchip,rk3576-gmac
- rockchip,rk3588-gmac
- rockchip,rv1126-gmac
@@ -112,6 +114,7 @@ properties:
minimum: 0
maximum: 0x7F
default: 0x30
+ deprecated: true
rx_delay:
description: Delay value for RXD timing.
@@ -119,6 +122,7 @@ properties:
minimum: 0
maximum: 0x7F
default: 0x10
+ deprecated: true
pcs-handle:
description:
@@ -141,11 +145,22 @@ required:
allOf:
- $ref: snps,dwmac.yaml#
+ - if:
+ properties:
+ compatible:
+ contains:
+ const: rockchip,rk3572-gmac
+ then:
+ properties:
+ rx_delay: false
+ tx_delay: false
+
- if:
properties:
compatible:
contains:
enum:
+ - rockchip,rk3572-gmac
- rockchip,rk3576-gmac
- rockchip,rk3588-gmac
then:
diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml
index 2c4842404bf6..80d3b43e2889 100644
--- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml
+++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml
@@ -94,6 +94,7 @@ properties:
- rockchip,rk3506-gmac
- rockchip,rk3528-gmac
- rockchip,rk3568-gmac
+ - rockchip,rk3572-gmac
- rockchip,rk3576-gmac
- rockchip,rk3588-gmac
- rockchip,rv1108-gmac
--
2.34.1