Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'riscv-sophgo-add-ethernet-support-for-sg2042'

Inochi Amaoto says:

====================
riscv: sophgo: Add ethernet support for SG2042

The ethernet controller of SG2042 is Synopsys DesignWare IP with
tx clock. Add device id for it.

This patch can only be tested on a SG2042 evb board, as pioneer
does not expose this device.

The user dts patch link:
https://lore.kernel.org/linux-riscv/cover.1751700954.git.rabenda.cn@gmail.com
====================

Link: https://patch.msgid.link/20250708064052.507094-1-inochiama@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

+14 -3
+4
Documentation/devicetree/bindings/net/snps,dwmac.yaml
··· 30 30 - snps,dwmac-4.00 31 31 - snps,dwmac-4.10a 32 32 - snps,dwmac-4.20a 33 + - snps,dwmac-5.00a 33 34 - snps,dwmac-5.10a 34 35 - snps,dwmac-5.20 35 36 - snps,dwmac-5.30a ··· 99 98 - snps,dwmac-4.00 100 99 - snps,dwmac-4.10a 101 100 - snps,dwmac-4.20a 101 + - snps,dwmac-5.00a 102 102 - snps,dwmac-5.10a 103 103 - snps,dwmac-5.20 104 104 - snps,dwmac-5.30a 105 105 - snps,dwxgmac 106 106 - snps,dwxgmac-2.10 107 + - sophgo,sg2042-dwmac 107 108 - sophgo,sg2044-dwmac 108 109 - starfive,jh7100-dwmac 109 110 - starfive,jh7110-dwmac ··· 644 641 - snps,dwmac-4.00 645 642 - snps,dwmac-4.10a 646 643 - snps,dwmac-4.20a 644 + - snps,dwmac-5.00a 647 645 - snps,dwmac-5.10a 648 646 - snps,dwmac-5.20 649 647 - snps,dwmac-5.30a
+8 -3
Documentation/devicetree/bindings/net/sophgo,sg2044-dwmac.yaml
··· 15 15 contains: 16 16 enum: 17 17 - sophgo,sg2044-dwmac 18 + - sophgo,sg2042-dwmac 18 19 required: 19 20 - compatible 20 21 21 22 properties: 22 23 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 26 31 27 32 reg: 28 33 maxItems: 1
+1
drivers/net/ethernet/stmicro/stmmac/dwmac-sophgo.c
··· 54 54 } 55 55 56 56 static const struct of_device_id sophgo_dwmac_match[] = { 57 + { .compatible = "sophgo,sg2042-dwmac" }, 57 58 { .compatible = "sophgo,sg2044-dwmac" }, 58 59 { /* sentinel */ } 59 60 };
+1
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
··· 410 410 "snps,dwmac-4.00", 411 411 "snps,dwmac-4.10a", 412 412 "snps,dwmac-4.20a", 413 + "snps,dwmac-5.00a", 413 414 "snps,dwmac-5.10a", 414 415 "snps,dwmac-5.20", 415 416 "snps,dwmac-5.30a",