Skip to content

Add ENETC PTP clock driver

Yangbo Lu linux-devicetree netdev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest9 patches 1 replyIn review
  2. v29 patches 3 repliesSuperseded
  3. v19 patches 3 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9ptp_qoriq: make structure/function names more consistentdrivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c drivers/net/ethernet/freescale/gianfar_ethtool.c drivers/ptp/ptp_qoriq.c +2 more+171 -1710 replies
2/9ptp_qoriq: make ptp operations globaldrivers/ptp/ptp_qoriq.c include/linux/fsl/ptp_qoriq.h+25 -110 replies
3/9ptp_qoriq: convert to use ptp_qoriq_init/freedrivers/ptp/ptp_qoriq.c include/linux/fsl/ptp_qoriq.h+80 -670 replies
4/9ptp_qoriq: add little enadian supportdrivers/ptp/ptp_qoriq.c drivers/ptp/ptp_qoriq_debugfs.c include/linux/fsl/ptp_qoriq.h+60 -420 replies
5/9dt-binding: ptp_qoriq: add little-endian supportDocumentation/devicetree/bindings/ptp/ptp-qoriq.txt+3 -00 replies
6/9ptp_qoriq: fix register memory mapdrivers/ptp/ptp_qoriq.c include/linux/fsl/ptp_qoriq.h+15 -140 replies
7/9ptp: add QorIQ PTP support for ENETCdrivers/ptp/Kconfig+1 -10 replies
8/9enetc: add PTP clock driverdrivers/net/ethernet/freescale/enetc/Kconfig drivers/net/ethernet/freescale/enetc/Makefile drivers/net/ethernet/freescale/enetc/enetc_hw.h +1 more+162 -20 replies
9/9MAINTAINERS: add enetc_ptp driver into QorIQ PTP listMAINTAINERS+1 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [v3, 0/9] Add ENETC PTP clock driver

There is same QorIQ 1588 timer IP block on the new ENETC Ethernet controller with eTSEC/DPAA Ethernet controllers. However it's different endianness (little-endian) and using PCI driver.

To support ENETC PTP driver, ptp_qoriq driver needed to be reworked to make functions global for reusing, to add little- endian support, to add ENETC memory map support, and to add ENETC dependency for ptp_qoriq driver.

In addition, although ENETC PTP driver is a PCI driver, the dts node still could be used. Currently the ls1028a dtsi which is the only platform by now using ENETC is not complete, so there is still dependency for ENETC PTP node upstreaming. This will be done in the near future. The hardware timestamping support for ENETC is done but needs to be reworked with new method in internal git tree, and will be sent out soon.

Yangbo Lu (9):
ptp_qoriq: make structure/function names more consistent
ptp_qoriq: make ptp operations global
ptp_qoriq: convert to use ptp_qoriq_init/free
ptp_qoriq: add little enadian support
dt-binding: ptp_qoriq: add little-endian support
ptp_qoriq: fix register memory map
ptp: add QorIQ PTP support for ENETC
enetc: add PTP clock driver
MAINTAINERS: add enetc_ptp driver into QorIQ PTP list

 .../devicetree/bindings/ptp/ptp-qoriq.txt          |    3 +
 MAINTAINERS                                        |    1 +
 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c |    2 +-
 drivers/net/ethernet/freescale/enetc/Kconfig       |   12 +
 drivers/net/ethernet/freescale/enetc/Makefile      |    3 +
 drivers/net/ethernet/freescale/enetc/enetc_hw.h    |    5 +-
 drivers/net/ethernet/freescale/enetc/enetc_ptp.c   |  144 +++++++
 drivers/net/ethernet/freescale/gianfar_ethtool.c   |    2 +-
 drivers/ptp/Kconfig                                |    2 +-
 drivers/ptp/ptp_qoriq.c                            |  437 +++++++++++---------
 drivers/ptp/ptp_qoriq_debugfs.c                    |   48 ++--
 include/linux/fsl/ptp_qoriq.h                      |   63 ++-
 12 files changed, 466 insertions(+), 256 deletions(-)
 create mode 100644 drivers/net/ethernet/freescale/enetc/enetc_ptp.c