From: Cunhao Lu <1579567540@qq.com> 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@qq.com> Reviewed-by: Andrew Lunn Reviewed-by: Rob Herring (Arm) --- 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 ddfc32ba29cb..69d88a9b1925 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