[PATCH] arm64: dts: rockchip: change eth phy mode to rgmii-id for orangepi r1 plus lts

Dragan Simic dsimic at manjaro.org
Fri Jan 31 01:10:13 PST 2025


Hello Heiko,

On 2025-01-31 10:01, Heiko Stuebner wrote:
> Am Freitag, 24. Januar 2025, 07:35:50 MEZ schrieb Dragan Simic:
>> On 2025-01-24 07:28, Tianling Shen wrote:
>> > On 2025/1/19 23:48, Tianling Shen wrote:
>> >> On 2025/1/19 19:36, Dragan Simic wrote:
>> >>> On 2025-01-19 12:15, Tianling Shen wrote:
>> >>>> On 2025/1/19 17:54, Dragan Simic wrote:
>> >>>>> Thanks for the patch.  Please, see a comment below.
>> >>>>>
>> >>>>> On 2025-01-19 10:11, Tianling Shen wrote:
>> >>>>>> In general the delay should be added by the PHY instead of the
>> >>>>>> MAC,
>> >>>>>> and this improves network stability on some boards which seem to
>> >>>>>> need different delay.
>> >>>>>>
>> >>>>>> Fixes: 387b3bbac5ea ("arm64: dts: rockchip: Add Xunlong OrangePi
>> >>>>>> R1 Plus LTS")
>> >>>>>> Cc: stable at vger.kernel.org # 6.6+
>> >>>>>> Signed-off-by: Tianling Shen <cnsztl at gmail.com>
>> >>>>>> ---
>> >>>>>>  arch/arm64/boot/dts/rockchip/rk3328-orangepi-r1-plus-lts.dts | 3
>> >>>>>> +--
>> >>>>>>  arch/arm64/boot/dts/rockchip/rk3328-orangepi-r1-plus.dts     | 1
>> >>>>>> +
>> >>>>>>  arch/arm64/boot/dts/rockchip/rk3328-orangepi-r1-plus.dtsi    | 1
>> >>>>>> -
>> >>>>>>  3 files changed, 2 insertions(+), 3 deletions(-)
>> >>>>>>
>> >>>>>> diff --git
>> >>>>>> a/arch/arm64/boot/dts/rockchip/rk3328-orangepi-r1-plus-lts.dts
>> >>>>>> b/arch/arm64/boot/dts/rockchip/rk3328-orangepi-r1-plus-lts.dts
>> >>>>>> index 67c246ad8b8c..ec2ce894da1f 100644
>> >>>>>> --- a/arch/arm64/boot/dts/rockchip/rk3328-orangepi-r1-plus-lts.dts
>> >>>>>> +++ b/arch/arm64/boot/dts/rockchip/rk3328-orangepi-r1-plus-lts.dts
>> >>>>>> @@ -17,8 +17,7 @@ / {
>> >>>>>>
>> >>>>>>  &gmac2io {
>> >>>>>>      phy-handle = <&yt8531c>;
>> >>>>>> -    tx_delay = <0x19>;
>> >>>>>> -    rx_delay = <0x05>;
>> >>>>>> +    phy-mode = "rgmii-id";
>> >>>>>
>> >>>>> Shouldn't the "tx_delay" and "rx_delay" DT parameters be converted
>> >>>>> into the "tx-internal-delay-ps" and "rx-internal-delay-ps"
>> >>>>> parameters,
>> >>>>> respectively, so the Motorcomm PHY driver can pick them up and
>> >>>>> actually configure the internal PHY delays?
>> >>>>
>> >>>> The documentation[1] says "{t,r}x-internal-delay-ps" default to 1950
>> >>>> and that value already works fine on my board.
>> >>>>
>> >>>> 1. https://www.kernel.org/doc/Documentation/devicetree/bindings/net/
>> >>>> motorcomm%2Cyt8xxx.yaml
>> >>>
>> >>> I see, but those values differ from the values found in the
>> >>> "tx_delay" and "rx_delay" DT parameters, so I think this patch
>> >>> should be tested with at least one more Orange Pi R1 Plus LTS
>> >>> board, to make sure it's all still fine.
>> >>
>> >> This patch has been tested on 2 boards, and we will do more tests in
>> >> next week.
>> >
>> > Managed to test on another board and looks so far so good.
>> > (Working network connection, no packet drop)
>> 
>> Sounds good to me, thanks for the additional testing.
> 
> I assume that means there are no more open issues, right?
> At least I got that impression from glancing at the thread :-)

Yes, Tianling performed the additional testing, and the
introduced changes worked fine on three boards in total.
To me, that sounds good. :)



More information about the Linux-rockchip mailing list