2020-03-20 10:42:36

by Yangbo Lu

[permalink] [raw]
Subject: [PATCH 0/6] Support programmable pins for Ocelot PTP driver

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


2020-03-20 10:43:40

by Yangbo Lu

[permalink] [raw]
Subject: [PATCH 2/6] MAINTAINERS: add entry for Microsemi Ocelot PTP driver

Add entry for Microsemi Ocelot PTP driver.

Signed-off-by: Yangbo Lu <[email protected]>
---
MAINTAINERS | 9 +++++++++
1 file changed, 9 insertions(+)

diff --git a/MAINTAINERS b/MAINTAINERS
index 5dbee41..8da6fc1 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -11115,6 +11115,15 @@ S: Supported
F: drivers/net/ethernet/mscc/
F: include/soc/mscc/ocelot*

+MICROSEMI OCELOT PTP CLOCK DRIVER
+M: Alexandre Belloni <[email protected]>
+M: Yangbo Lu <[email protected]>
+M: Microchip Linux Driver Support <[email protected]>
+L: [email protected]
+S: Supported
+F: drivers/ptp/ptp_ocelot.c
+F: include/soc/mscc/ptp_ocelot.h
+
MICROSOFT SURFACE PRO 3 BUTTON DRIVER
M: Chen Yu <[email protected]>
L: [email protected]
--
2.7.4

2020-03-20 17:29:21

by Alexandre Belloni

[permalink] [raw]
Subject: Re: [PATCH 2/6] MAINTAINERS: add entry for Microsemi Ocelot PTP driver

Hi,

On 20/03/2020 18:37:22+0800, Yangbo Lu wrote:
> Add entry for Microsemi Ocelot PTP driver.
>
> Signed-off-by: Yangbo Lu <[email protected]>
> ---
> MAINTAINERS | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 5dbee41..8da6fc1 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -11115,6 +11115,15 @@ S: Supported
> F: drivers/net/ethernet/mscc/
> F: include/soc/mscc/ocelot*
>
> +MICROSEMI OCELOT PTP CLOCK DRIVER
> +M: Alexandre Belloni <[email protected]>

I'm open to not be listed here as I'm not the main author of the code
and I'm not actively working on ptp for ocelot...

> +M: Yangbo Lu <[email protected]>
> +M: Microchip Linux Driver Support <[email protected]>

...as long as you keep that address.

> +L: [email protected]
> +S: Supported
> +F: drivers/ptp/ptp_ocelot.c
> +F: include/soc/mscc/ptp_ocelot.h
> +
> MICROSOFT SURFACE PRO 3 BUTTON DRIVER
> M: Chen Yu <[email protected]>
> L: [email protected]
> --
> 2.7.4
>

--
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

2020-03-24 04:51:18

by Yangbo Lu

[permalink] [raw]
Subject: RE: [PATCH 2/6] MAINTAINERS: add entry for Microsemi Ocelot PTP driver

Hi Alexandre,

> -----Original Message-----
> From: Alexandre Belloni <[email protected]>
> Sent: Saturday, March 21, 2020 1:29 AM
> To: Y.b. Lu <[email protected]>
> Cc: [email protected]; [email protected]; David S . Miller
> <[email protected]>; Richard Cochran <[email protected]>;
> Vladimir Oltean <[email protected]>; Claudiu Manoil
> <[email protected]>; Andrew Lunn <[email protected]>; Vivien Didelot
> <[email protected]>; Florian Fainelli <[email protected]>;
> Microchip Linux Driver Support <[email protected]>
> Subject: Re: [PATCH 2/6] MAINTAINERS: add entry for Microsemi Ocelot PTP
> driver
>
> Hi,
>
> On 20/03/2020 18:37:22+0800, Yangbo Lu wrote:
> > Add entry for Microsemi Ocelot PTP driver.
> >
> > Signed-off-by: Yangbo Lu <[email protected]>
> > ---
> > MAINTAINERS | 9 +++++++++
> > 1 file changed, 9 insertions(+)
> >
> > diff --git a/MAINTAINERS b/MAINTAINERS
> > index 5dbee41..8da6fc1 100644
> > --- a/MAINTAINERS
> > +++ b/MAINTAINERS
> > @@ -11115,6 +11115,15 @@ S: Supported
> > F: drivers/net/ethernet/mscc/
> > F: include/soc/mscc/ocelot*
> >
> > +MICROSEMI OCELOT PTP CLOCK DRIVER
> > +M: Alexandre Belloni <[email protected]>
>
> I'm open to not be listed here as I'm not the main author of the code
> and I'm not actively working on ptp for ocelot...
>
> > +M: Yangbo Lu <[email protected]>
> > +M: Microchip Linux Driver Support <[email protected]>
>
> ...as long as you keep that address.

Get it. And thanks a lot.

>
> > +L: [email protected]
> > +S: Supported
> > +F: drivers/ptp/ptp_ocelot.c
> > +F: include/soc/mscc/ptp_ocelot.h
> > +
> > MICROSOFT SURFACE PRO 3 BUTTON DRIVER
> > M: Chen Yu <[email protected]>
> > L: [email protected]
> > --
> > 2.7.4
> >
>
> --
> Alexandre Belloni, Bootlin
> Embedded Linux and Kernel engineering
> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbootlin.
> com&amp;data=02%7C01%7Cyangbo.lu%40nxp.com%7Ca8238c4d91e74bb0
> 29b708d7ccf41ed6%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C
> 637203221179059159&amp;sdata=zEpGkU97BJryTf9NpcHj1%2BgHnxQhV%2
> BXoC9iewMmzjrw%3D&amp;reserved=0