Skip to content

Commit 30e422c

Browse files
inochisaRevySR
authored andcommitted
UPSTREAM: dt-bindings: net: sophgo,sg2044-dwmac: Add support for Sophgo SG2042 dwmac
The GMAC IP on SG2042 is a standard Synopsys DesignWare MAC (version 5.00a) with tx clock. Add necessary compatible string for this device. Signed-off-by: Inochi Amaoto <[email protected]> Tested-by: Han Gao <[email protected]> Acked-by: Conor Dooley <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]> (cherry picked from commit e281c48) Signed-off-by: Han Gao <[email protected]>
1 parent fefff68 commit 30e422c

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

Documentation/devicetree/bindings/net/snps,dwmac.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ select:
3030
- snps,dwmac-4.00
3131
- snps,dwmac-4.10a
3232
- snps,dwmac-4.20a
33+
- snps,dwmac-5.00a
3334
- snps,dwmac-5.10a
3435
- snps,dwmac-5.20
3536
- snps,dwmac-5.30a
@@ -98,11 +99,13 @@ properties:
9899
- snps,dwmac-4.00
99100
- snps,dwmac-4.10a
100101
- snps,dwmac-4.20a
102+
- snps,dwmac-5.00a
101103
- snps,dwmac-5.10a
102104
- snps,dwmac-5.20
103105
- snps,dwmac-5.30a
104106
- snps,dwxgmac
105107
- snps,dwxgmac-2.10
108+
- sophgo,sg2042-dwmac
106109
- sophgo,sg2044-dwmac
107110
- starfive,jh7100-dwmac
108111
- starfive,jh7110-dwmac
@@ -641,6 +644,7 @@ allOf:
641644
- snps,dwmac-4.00
642645
- snps,dwmac-4.10a
643646
- snps,dwmac-4.20a
647+
- snps,dwmac-5.00a
644648
- snps,dwmac-5.10a
645649
- snps,dwmac-5.20
646650
- snps,dwmac-5.30a

Documentation/devicetree/bindings/net/sophgo,sg2044-dwmac.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,19 @@ select:
1515
contains:
1616
enum:
1717
- sophgo,sg2044-dwmac
18+
- sophgo,sg2042-dwmac
1819
required:
1920
- compatible
2021

2122
properties:
2223
compatible:
23-
items:
24-
- const: sophgo,sg2044-dwmac
25-
- const: snps,dwmac-5.30a
24+
oneOf:
25+
- items:
26+
- const: sophgo,sg2042-dwmac
27+
- const: snps,dwmac-5.00a
28+
- items:
29+
- const: sophgo,sg2044-dwmac
30+
- const: snps,dwmac-5.30a
2631

2732
reg:
2833
maxItems: 1

0 commit comments

Comments
 (0)