[PATCH 0/6] Support programmable pins for Ocelot PTP driver

From: Yangbo Lu
Date: Fri Mar 20 2020 - 06:41:02 EST


The Ocelot PTP clock driver had been embedded into ocelot.c driver.
It had supported basic gettime64/settime64/adjtime/adjfine functions
by now which were used by both Ocelot switch and Felix switch.

This patch-set is to move current ptp clock code out of ocelot.c driver
maintaining as a single ptp_ocelot.c driver, and to implement 4
programmable pins (with only periodic signal function for now).

Yangbo Lu (6):
ptp: move ocelot ptp clock code out of Ethernet driver
MAINTAINERS: add entry for Microsemi Ocelot PTP driver
net: mscc: ocelot: fix timestamp info if ptp clock does not work
net: mscc: ocelot: redefine PTP pins
net: mscc: ocelot: add wave programming registers definitions
ptp_ocelot: support 4 programmable pins

MAINTAINERS | 9 +
drivers/net/dsa/ocelot/felix.c | 3 +-
drivers/net/dsa/ocelot/felix_vsc9959.c | 2 +
drivers/net/ethernet/mscc/ocelot.c | 207 +-------------
drivers/net/ethernet/mscc/ocelot.h | 3 +-
drivers/net/ethernet/mscc/ocelot_board.c | 1 +
drivers/net/ethernet/mscc/ocelot_regs.c | 2 +
drivers/ptp/Kconfig | 10 +
drivers/ptp/Makefile | 1 +
drivers/ptp/ptp_ocelot.c | 310 +++++++++++++++++++++
include/soc/mscc/ocelot.h | 15 +-
.../net/ethernet => include/soc}/mscc/ocelot_ptp.h | 3 +
include/soc/mscc/ptp_ocelot.h | 34 +++
13 files changed, 395 insertions(+), 205 deletions(-)
create mode 100644 drivers/ptp/ptp_ocelot.c
rename {drivers/net/ethernet => include/soc}/mscc/ocelot_ptp.h (88%)
create mode 100644 include/soc/mscc/ptp_ocelot.h

--
2.7.4