From: "Juan Manuel López Carrillo" <juanmanuellopezcarrillo@gmail.com>
To: wens@kernel.org, andre.przywara@arm.com
Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
jernej.skrabec@gmail.com, samuel@sholland.org,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org,
"Juan Manuel López Carrillo" <juanmanuellopezcarrillo@gmail.com>
Subject: Re: [PATCH] pinctrl: sunxi: A523: fix voltage withstand encoding
Date: Mon, 3 Aug 2026 17:35:19 +0200 [thread overview]
Message-ID: <20260803153519.262827-1-juanmanuellopezcarrillo@gmail.com> (raw)
In-Reply-To: <CAGb2v67CGcaQmSz_tTbSTQ7dzfCV2+7i5t_34iHKmyU05h-yRQ@mail.gmail.com>
Hi Andre, Chen-Yu,
> So can you please double check this?
Checked on my Orange Pi 4A (T527, GMAC1, Motorcomm YT8531 PHY). You are right:
PJ10 is not needed on this board.
PJ10 function 5 is RGMII1-EPHY-25M, "25 MHz Output for GMAC PHY" in the A523
manual v1.4. The RGMII1 bus itself is the other 15 pins (PJ0-PJ9, PJ11-PJ15),
which mainline already has. My claim came from a stale comment in my tree, from
when I was chasing the dead RX. It is gone now and my rgmii1 group matches
sunxi/for-next. The Tested-by I sent on 22 July was already measured on plain
mainline without PJ10, so what revived RX here was your withstand fix alone.
> Those settings differ from what's in mainline. What are the results with
> those delays?
Measured on the same board, DTB-only changes, TCP for 10 s per direction:
A mine (rgmii-rxid, MAC tx 100 / rx 0, PHY rx 1900 ps)
TX 0.938-0.940 RX 0.929-0.930 Gbit/s
B mainline delays (rgmii-id, MAC tx 0 / rx 300, none on the PHY)
TX 0.941 RX 0.929 Gbit/s
C the Ethernet path exactly as mainline has it
(B, minus motorcomm,auto-sleep-disabled, minus PJ10)
TX 0.941 RX 0.929 Gbit/s
All three saturate the link, with rx_errs, rx_drop, tx_errs and tx_drop at 0
over roughly 1.6 million packets each. So mine are just other values that
work, and I am dropping them in favour of mainline's.
> ethernet on the A523 has other problems. The performance is really bad
> (even RX), and there are errors or packet drops.
I do not see that on this board, not even with C, which is mainline's Ethernet
DT unmodified. I also checked the YT8531 auto-sleep: the first packet after 5,
10, 20, 30 and 45 s of silence came back in 0.21-0.24 ms, no losses.
The kernel is my own 6.18-based tree, although stmmac and motorcomm.c are
stock, and this is one board with one PHY. Chen-Yu, which board and which MAC
are you seeing it on, and how do you measure it? If it is another board or
GMAC0, I can try to reproduce it here.
Cheers,
Juan
next prev parent reply other threads:[~2026-08-03 15:37 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-21 22:39 [PATCH] pinctrl: sunxi: A523: fix voltage withstand encoding Andre Przywara
2026-07-22 12:17 ` Per Larsson
2026-07-22 17:23 ` Juan Manuel López Carrillo
2026-07-22 22:23 ` Andre Przywara
2026-07-30 17:40 ` Juan Manuel
2026-07-31 13:08 ` Andre Przywara
2026-07-31 13:20 ` Chen-Yu Tsai
2026-08-03 15:35 ` Juan Manuel López Carrillo [this message]
2026-08-03 15:51 ` Chen-Yu Tsai
2026-08-04 18:11 ` Chen-Yu Tsai
2026-08-10 17:22 ` Juan Manuel López Carrillo
2026-07-22 17:26 ` Chen-Yu Tsai
2026-09-10 20:13 ` Andre Przywara
2026-09-13 15:34 ` Chen-Yu Tsai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260803153519.262827-1-juanmanuellopezcarrillo@gmail.com \
--to=juanmanuellopezcarrillo@gmail.com \
--cc=andre.przywara@arm.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jernej.skrabec@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sunxi@lists.linux.dev \
--cc=robh@kernel.org \
--cc=samuel@sholland.org \
--cc=wens@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox