phytool: add phytool utility
authorChristian Lamparter <chunkeey@gmail.com>
Sun, 3 Mar 2019 17:33:25 +0000 (18:33 +0100)
committerChristian Lamparter <chunkeey@gmail.com>
Tue, 11 Aug 2020 17:10:55 +0000 (19:10 +0200)
commit2f56affd31f4afa6e0f676064d1e715652ae4c13
treeeeacb13004bef2cd3a30cb41f4ec283dae5b4ab3
parenta76d39faf1d7bf8f896f018aa9b08ab3a821d15e
phytool: add phytool utility

From the README.md:

phytool is a Linux MDIO register access utility.

Usage:

phytool read  IFACE/ADDR/REG
phytool write IFACE/ADDR/REG <0-0xffff>
phytool print IFACE/ADDR[/REG]

where

ADDR := C22 | C45
C22  := <0-0x1f>
C45  := <0-0x1f>:<0-0x1f>
REG  := <0-0x1f>

Note: Not all MDIO drivers support the port:device
      Clause 45 address format.

The read and write commands are simple register level accessors.
The print command will pretty-print a register. When using the
print command, the register is optional. If left out, the most
common registers will be shown.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
package/network/utils/phytool/Makefile [new file with mode: 0644]