net: dsa: microchip: ptp: add the posix clock support
authorChristian Eggers <ceggers@arri.de>
Tue, 10 Jan 2023 08:49:18 +0000 (14:19 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Jan 2023 08:40:40 +0000 (08:40 +0000)
commiteac1ea20261e1fac8ffbfb3b7da2d5e6b7c159e3
tree55bf17ccfb92d6a5d84b1b661240b4809bee912a
parent72863e08c3935bff9577d9ff56d034d68d3adf9b
net: dsa: microchip: ptp: add the posix clock support

This patch implement routines (adjfine, adjtime, gettime and settime)
for manipulating the chip's PTP clock. It registers the ptp caps
to posix clock register.

Signed-off-by: Christian Eggers <ceggers@arri.de>
Co-developed-by: Arun Ramadoss <arun.ramadoss@microchip.com>
Signed-off-by: Arun Ramadoss <arun.ramadoss@microchip.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com> # mostly api
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/microchip/Kconfig
drivers/net/dsa/microchip/Makefile
drivers/net/dsa/microchip/ksz_common.c
drivers/net/dsa/microchip/ksz_common.h
drivers/net/dsa/microchip/ksz_ptp.c [new file with mode: 0644]
drivers/net/dsa/microchip/ksz_ptp.h [new file with mode: 0644]
drivers/net/dsa/microchip/ksz_ptp_reg.h [new file with mode: 0644]