Add new compatible string and clock definitions for the Ethernet MAC IP found in MT8189 SoC. Also, update "mediatek,rx-delay-ps" and "mediatek,tx-delay-ps" property description to add MT8189 RX/TX delay stage divider values, as they differ from existing supported SoC. Signed-off-by: Louis-Alexis Eyraud --- .../devicetree/bindings/net/mediatek-dwmac.yaml | 87 +++++++++++++++------- 1 file changed, 60 insertions(+), 27 deletions(-) diff --git a/Documentation/devicetree/bindings/net/mediatek-dwmac.yaml b/Documentation/devicetree/bindings/net/mediatek-dwmac.yaml index 3aab21b8e8de..6624dff015f0 100644 --- a/Documentation/devicetree/bindings/net/mediatek-dwmac.yaml +++ b/Documentation/devicetree/bindings/net/mediatek-dwmac.yaml @@ -20,13 +20,11 @@ select: enum: - mediatek,mt2712-gmac - mediatek,mt8188-gmac + - mediatek,mt8189-gmac - mediatek,mt8195-gmac required: - compatible -allOf: - - $ref: snps,dwmac.yaml# - properties: compatible: oneOf: @@ -36,6 +34,7 @@ properties: - const: snps,dwmac-4.20a - items: - enum: + - mediatek,mt8189-gmac - mediatek,mt8195-gmac - const: snps,dwmac-5.10a - items: @@ -44,26 +43,6 @@ properties: - const: mediatek,mt8195-gmac - const: snps,dwmac-5.10a - clocks: - minItems: 5 - items: - - description: AXI clock - - description: APB clock - - description: MAC Main clock - - description: PTP clock - - description: RMII reference clock provided by MAC - - description: MAC clock gate - - clock-names: - minItems: 5 - items: - - const: axi - - const: apb - - const: mac_main - - const: ptp_ref - - const: rmii_internal - - const: mac_cg - interrupts: maxItems: 1 @@ -86,8 +65,10 @@ properties: or will round down. Range 0~31*170. For MT2712 RMII/MII interface, Allowed value need to be a multiple of 550, or will round down. Range 0~31*550. - For MT8188/MT8195 RGMII/RMII/MII interface, Allowed value need to be a multiple of 290, - or will round down. Range 0~31*290. + For MT8188/MT8195 RGMII/RMII/MII interface, Allowed value need to be a + multiple of 290, or will round down. Range 0~31*290. + For MT8189 RGMII/RMII/MII interface, Allowed value need to + be a multiple of 180, or will round down. Range 0~31*180. mediatek,rx-delay-ps: description: @@ -96,8 +77,10 @@ properties: or will round down. Range 0~31*170. For MT2712 RMII/MII interface, Allowed value need to be a multiple of 550, or will round down. Range 0~31*550. - For MT8188/MT8195 RGMII/RMII/MII interface, Allowed value need to be a multiple - of 290, or will round down. Range 0~31*290. + For MT8188/MT8195 RGMII/RMII/MII interface, Allowed value need to be a + multiple of 290, or will round down. Range 0~31*290. + For MT8189 RGMII/RMII/MII interface, Allowed value need to + be a multiple of 180, or will round down. Range 0~31*180. mediatek,rmii-rxc: type: boolean @@ -147,6 +130,56 @@ required: - phy-mode - mediatek,pericfg +allOf: + - $ref: snps,dwmac.yaml# + - if: + properties: + compatible: + contains: + enum: + - mediatek,mt2712-gmac + - mediatek,mt8188-gmac + - mediatek,mt8195-gmac + then: + properties: + clocks: + minItems: 5 + items: + - description: AXI clock + - description: APB clock + - description: MAC Main clock + - description: PTP clock + - description: RMII reference clock provided by MAC + - description: MAC clock gate + + clock-names: + minItems: 5 + items: + - const: axi + - const: apb + - const: mac_main + - const: ptp_ref + - const: rmii_internal + - const: mac_cg + + - if: + properties: + compatible: + contains: + enum: + - mediatek,mt8189-gmac + then: + properties: + clocks: + items: + - description: MAC Main clock + - description: PTP clock + + clock-names: + items: + - const: mac_main + - const: ptp_ref + unevaluatedProperties: false examples: -- 2.55.0