Skip to content

GMAC support for A733 - #12

Draft
ziyao233 wants to merge 3 commits into
tina-devfrom
a733/gmac-support
Draft

GMAC support for A733#12
ziyao233 wants to merge 3 commits into
tina-devfrom
a733/gmac-support

Conversation

@ziyao233

@ziyao233 ziyao233 commented Aug 3, 2026

Copy link
Copy Markdown

No description provided.

A733 also ships a dwmac 4 GMAC controller, but its glue registers differ:
they are in a separate memory region instead of the syscon, and provide
wider fields for RGMII TX delay fine tunning. We also have a discrete
ahb reset, and we must delay glue register setup until clock/reset of the
GMAC is ready.

Note that we now use the externally-supplied RGMII clock as the GMAC
transmitting clock, since the internal one somehow doesn't work. This
doesn't match vendor driver behavior and requires investigation.

Signed-off-by: Yao Zi <me@ziyao.cc>
The expected GMAC delay differs a lot from the value provided by the
vendor. It might be caused by we're working with another GMAC TX
clock, i.e., the one supplied through SoC's RGMII0-CLKIN pin.

Signed-off-by: Yao Zi <me@ziyao.cc>
@ziyao233
ziyao233 marked this pull request as draft August 3, 2026 21:22
@ziyao233

ziyao233 commented Aug 3, 2026

Copy link
Copy Markdown
Author

Mark as draft for now since Kconfig updates couldn't be carried before #10 lands.

@ziyao233

ziyao233 commented Aug 3, 2026

Copy link
Copy Markdown
Author

Speedtesting,

$ iperf3 -c 192.168.114.50 --udp -b 950M
Connecting to host 192.168.114.50, port 5201
[  5] local 192.168.114.51 port 48335 connected to 192.168.114.50 port 5201
[ ID] Interval           Transfer     Bitrate         Total Datagrams
[  5]   0.00-1.00   sec   113 MBytes   950 Mbits/sec  82028
[  5]   1.00-2.00   sec   113 MBytes   948 Mbits/sec  81866
[  5]   2.00-3.00   sec   113 MBytes   949 Mbits/sec  81954
[  5]   3.00-4.00   sec   113 MBytes   949 Mbits/sec  81954
[  5]   4.00-5.00   sec   113 MBytes   949 Mbits/sec  81881
[  5]   5.00-6.00   sec   106 MBytes   890 Mbits/sec  76914
[  5]   6.00-7.00   sec   111 MBytes   934 Mbits/sec  80588
[  5]   7.00-8.00   sec   113 MBytes   949 Mbits/sec  81931
[  5]   8.00-9.00   sec   113 MBytes   949 Mbits/sec  81947
[  5]   9.00-10.00  sec   113 MBytes   949 Mbits/sec  81950
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Jitter    Lost/Total Datagrams
[  5]   0.00-10.00  sec  1.10 GBytes   942 Mbits/sec  0.000 ms  0/813013 (0%)  sender
[  5]   0.00-10.01  sec  1.10 GBytes   941 Mbits/sec  0.009 ms  0/813013 (0%)  receiver

iperf Done.
$ iperf3 -c 192.168.114.50                                            
Connecting to host 192.168.114.50, port 5201                               
[  5] local 192.168.114.51 port 46972 connected to 192.168.114.50 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec   113 MBytes   949 Mbits/sec    1    358 KBytes       
[  5]   1.00-2.00   sec   111 MBytes   934 Mbits/sec    0    253 KBytes       
[  5]   2.00-3.00   sec   111 MBytes   932 Mbits/sec    4    247 KBytes       
[  5]   3.00-4.00   sec   111 MBytes   935 Mbits/sec    0    362 KBytes       
[  5]   4.00-5.00   sec   112 MBytes   935 Mbits/sec    1    355 KBytes       
[  5]   5.00-6.00   sec   112 MBytes   937 Mbits/sec    1    358 KBytes       
[  5]   6.00-7.00   sec   111 MBytes   932 Mbits/sec    0    365 KBytes       
[  5]   7.00-8.00   sec   112 MBytes   939 Mbits/sec    2    236 KBytes       
[  5]   8.00-9.00   sec   111 MBytes   929 Mbits/sec    1    348 KBytes       
[  5]   9.00-10.00  sec   112 MBytes   938 Mbits/sec    0    362 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -                                                                                                              
[ ID] Interval           Transfer     Bitrate         Retr                                                                                                     
[  5]   0.00-10.00  sec  1.09 GBytes   936 Mbits/sec   10            sender                                                                                    
[  5]   0.00-10.01  sec  1.09 GBytes   934 Mbits/sec                  receiver

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants