• John Efstathiades's avatar
    Support LAN743x PTP periodic output on any GPIO · 22820017
    John Efstathiades authored
    The LAN743x Ethernet controller provides two independent PTP event
    channels. Each one can be used to generate a periodic output from
    the PTP clock. The output can be routed to any one of the available
    GPIO pins on the device.
    
    The PTP clock API can now be used to:
    - select any LAN743x GPIO pin to function as a periodic output
    - select either LAN743x PTP event channel to generate the output
    
    The LAN7430 has 4 GPIO pins that are multiplexed with its internal
    PHY LED control signals. A pin assigned to the LED control function
    will be assigned to the GPIO function if selected for PTP periodic
    output.
    Signed-off-by: default avatarJohn Efstathiades <john.efstathiades@pebblebay.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    22820017
lan743x_ptp.c 34.6 KB