提交 ee410d51 编写于 作者: B Biao Huang 提交者: David S. Miller

net: dt-bindings: dwmac: add support for mt8195

Add binding document for the ethernet on mt8195.
Signed-off-by: NBiao Huang <biao.huang@mediatek.com>
Reviewed-by: NRob Herring <robh@kernel.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 f2d356a6
...@@ -19,6 +19,7 @@ select: ...@@ -19,6 +19,7 @@ select:
contains: contains:
enum: enum:
- mediatek,mt2712-gmac - mediatek,mt2712-gmac
- mediatek,mt8195-gmac
required: required:
- compatible - compatible
...@@ -27,26 +28,35 @@ allOf: ...@@ -27,26 +28,35 @@ allOf:
properties: properties:
compatible: compatible:
items: oneOf:
- enum: - items:
- mediatek,mt2712-gmac - enum:
- const: snps,dwmac-4.20a - mediatek,mt2712-gmac
- const: snps,dwmac-4.20a
- items:
- enum:
- mediatek,mt8195-gmac
- const: snps,dwmac-5.10a
clocks: clocks:
minItems: 5
items: items:
- description: AXI clock - description: AXI clock
- description: APB clock - description: APB clock
- description: MAC Main clock - description: MAC Main clock
- description: PTP clock - description: PTP clock
- description: RMII reference clock provided by MAC - description: RMII reference clock provided by MAC
- description: MAC clock gate
clock-names: clock-names:
minItems: 5
items: items:
- const: axi - const: axi
- const: apb - const: apb
- const: mac_main - const: mac_main
- const: ptp_ref - const: ptp_ref
- const: rmii_internal - const: rmii_internal
- const: mac_cg
mediatek,pericfg: mediatek,pericfg:
$ref: /schemas/types.yaml#/definitions/phandle $ref: /schemas/types.yaml#/definitions/phandle
...@@ -61,6 +71,8 @@ properties: ...@@ -61,6 +71,8 @@ properties:
or will round down. Range 0~31*170. or will round down. Range 0~31*170.
For MT2712 RMII/MII interface, Allowed value need to be a multiple of 550, For MT2712 RMII/MII interface, Allowed value need to be a multiple of 550,
or will round down. Range 0~31*550. or will round down. Range 0~31*550.
For MT8195 RGMII/RMII/MII interface, Allowed value need to be a multiple of 290,
or will round down. Range 0~31*290.
mediatek,rx-delay-ps: mediatek,rx-delay-ps:
description: description:
...@@ -69,6 +81,8 @@ properties: ...@@ -69,6 +81,8 @@ properties:
or will round down. Range 0~31*170. or will round down. Range 0~31*170.
For MT2712 RMII/MII interface, Allowed value need to be a multiple of 550, For MT2712 RMII/MII interface, Allowed value need to be a multiple of 550,
or will round down. Range 0~31*550. or will round down. Range 0~31*550.
For MT8195 RGMII/RMII/MII interface, Allowed value need to be a multiple
of 290, or will round down. Range 0~31*290.
mediatek,rmii-rxc: mediatek,rmii-rxc:
type: boolean type: boolean
...@@ -102,6 +116,12 @@ properties: ...@@ -102,6 +116,12 @@ properties:
3. the inside clock, which be sent to MAC, will be inversed in RMII case when 3. the inside clock, which be sent to MAC, will be inversed in RMII case when
the reference clock is from MAC. the reference clock is from MAC.
mediatek,mac-wol:
type: boolean
description:
If present, indicates that MAC supports WOL(Wake-On-LAN), and MAC WOL will be enabled.
Otherwise, PHY WOL is perferred.
required: required:
- compatible - compatible
- reg - reg
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册