Skip to content

Reuse ptp_qoriq driver for dpaa2-ptp

Yangbo Lu linux-arm-kernel linux-devicetree lkml netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 1 replyIn review
  2. v16 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- Allowed to compile with COMPILE_TEST.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6ptp: add QorIQ PTP support for DPAA2drivers/ptp/Kconfig+1 -10 replies
2/6dpaa2-ptp: reuse ptp_qoriq driverdrivers/net/ethernet/freescale/dpaa2/Kconfig drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.c drivers/net/ethernet/freescale/dpaa2/dprtc-cmd.h +2 more+34 -2820 replies
3/6dt-binding: ptp_qoriq: support DPAA2 PTP compatibleDocumentation/devicetree/bindings/ptp/ptp-qoriq.txt+2 -10 replies
4/6arm64: dts: fsl: add ptp timer node for dpaa2 platformsarch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi+24 -00 replies
5/6dpaa2-ptp: add interrupt supportdrivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.c drivers/net/ethernet/freescale/dpaa2/dprtc-cmd.h drivers/net/ethernet/freescale/dpaa2/dprtc.c +1 more+417 -10 replies
6/6MAINTAINERS: maintain DPAA2 PTP driver in QorIQ PTP entryMAINTAINERS+2 -70 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [v2, 0/6] Reuse ptp_qoriq driver for dpaa2-ptp

Although dpaa2-ptp.c driver is a fsl_mc_driver which is using MC APIs for register accessing, it's same IP block with eTSEC/DPAA/ENETC 1588 timer.
This patch-set is to convert to reuse ptp_qoriq driver by using register ioremap and dropping related MC APIs. However the interrupts could only be handled by MC which fires MSIs to ARM cores. So the interrupt enabling and handling still rely on MC APIs. MC APIs for interrupt and PPS event support are also added by this patch-set.

---
Changes for v2:
- Allowed to compile with COMPILE_TEST.

Yangbo Lu (6):
ptp: add QorIQ PTP support for DPAA2
dpaa2-ptp: reuse ptp_qoriq driver
dt-binding: ptp_qoriq: support DPAA2 PTP compatible
arm64: dts: fsl: add ptp timer node for dpaa2 platforms
dpaa2-ptp: add interrupt support
MAINTAINERS: maintain DPAA2 PTP driver in QorIQ PTP entry

 .../devicetree/bindings/ptp/ptp-qoriq.txt          |   3 +-
 MAINTAINERS                                        |   9 +-
 arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi     |   8 +
 arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi     |   8 +
 arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi     |   8 +
 drivers/net/ethernet/freescale/dpaa2/Kconfig       |   3 +-
 drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.c   | 242 +++++++++++----------
 drivers/net/ethernet/freescale/dpaa2/dprtc-cmd.h   |  48 +++-
 drivers/net/ethernet/freescale/dpaa2/dprtc.c       | 191 ++++++++++++----
 drivers/net/ethernet/freescale/dpaa2/dprtc.h       |  62 ++++--
 drivers/ptp/Kconfig                                |   2 +-
 11 files changed, 386 insertions(+), 198 deletions(-)
Signature · 1 line
2.7.4