darrylring opened a new pull request, #20121:
URL: https://github.com/apache/nuttx/pull/20121

   ## Summary
   
   Copy the MDIO bus changes from the STM32H7 port. This uses the same MDIO 
lower half driver as the STM32H7 and replaces the existing Ethernet PHY 
register read/write functionality.
   
   ## Impact
   
   There should be no user impact.
   
   ## Testing
   
   Built this configuration for the Nucleo H563ZI board: 
[nucleo-h563zi-netnsh.patch](https://github.com/user-attachments/files/32126620/nucleo-h563zi-netnsh.patch)
   
   Ethernet comes up as expected, PHY communication works, receives IP via 
DHCP, etc.
   
   ```
   ABCG
   telnetd [5:100]
   
   NuttShell (NSH) NuttX-13.0.1-RC1
   nsh> ifconfig
   eth0    Link encap:Ethernet HWaddr a2:60:64:cb:97:19 at RUNNING mtu 576
           inet addr:192.168.2.10 DRaddr:192.168.2.30 Mask:255.255.255.0
   ...
   nsh> ping 192.168.2.30
   PING 192.168.2.30 56 bytes of data
   56 bytes from 192.168.2.30: icmp_seq=0 time=0.0 ms
   56 bytes from 192.168.2.30: icmp_seq=1 time=0.0 ms
   56 bytes from 192.168.2.30: icmp_seq=2 time=0.0 ms
   56 bytes from 192.168.2.30: icmp_seq=3 time=0.0 ms
   56 bytes from 192.168.2.30: icmp_seq=4 time=0.0 ms
   56 bytes from 192.168.2.30: icmp_seq=5 time=0.0 ms
   56 bytes from 192.168.2.30: icmp_seq=6 time=0.0 ms
   56 bytes from 192.168.2.30: icmp_seq=7 time=0.0 ms
   56 bytes from 192.168.2.30: icmp_seq=8 time=0.0 ms
   56 bytes from 192.168.2.30: icmp_seq=9 time=0.0 ms
   10 packets transmitted, 10 received, 0% packet loss, time 10110 ms
   rtt min/avg/max/mdev = 0.000/0.000/0.000/0.000 ms
   ...
   nsh> mdio 0
   phy[0][0] = 0x1100
   phy[0][1] = 0x782d
   phy[0][2] = 0x   7
   phy[0][3] = 0xc131
   phy[0][4] = 0x 1e1
   phy[0][5] = 0xcde1
   phy[0][6] = 0x  6f
   phy[0][7] = 0x2001
   phy[0][8] = 0x4000
   phy[0][9] = 0xffff
   phy[0][10] = 0xffff
   phy[0][11] = 0xffff
   phy[0][12] = 0xffff
   phy[0][13] = 0x   0
   phy[0][14] = 0x   0
   phy[0][15] = 0x   0
   phy[0][16] = 0x  41
   phy[0][17] = 0x   2
   phy[0][18] = 0x60e0
   phy[0][19] = 0xffff
   phy[0][20] = 0x   0
   phy[0][21] = 0x   0
   phy[0][22] = 0x   0
   phy[0][23] = 0x   0
   phy[0][24] = 0x9b9d
   phy[0][25] = 0x   0
   phy[0][26] = 0x   0
   phy[0][27] = 0x   a
   phy[0][28] = 0x4000
   phy[0][29] = 0x  c8
   phy[0][30] = 0x   0
   phy[0][31] = 0x1058
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to