1. 23 Apr, 2020 19 commits
  2. 22 Apr, 2020 17 commits
  3. 21 Apr, 2020 4 commits
    • David S. Miller's avatar
      Merge branch 'Support-programmable-pins-for-Ocelot-PTP-driver' · 44dd5efc
      David S. Miller authored
      Yangbo Lu says:
      
      ====================
      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 ocelot_ptp.c driver, and to implement 4
      programmable pins with only PTP_PF_PEROUT function for now.
      The PTP_PF_EXTTS function will be supported in the future, and it should
      be implemented separately for Felix and Ocelot, because of different
      hardware interrupt implementation in them.
      
      Changes for v2:
      	- Put PTP driver under drivers/net/ethernet/mscc/.
      	- Dropped MAINTAINERS patch. Kept original maintaining.
      	- Initialized PTP separately in ocelot/felix platforms.
      	- Supported PPS case in programmable pin.
      	- Supported disabling pin function since deadlock is fixed by Richard.
      	- Returned -EBUSY if not finding pin available.
      Changes for v3:
      	- Re-sent.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      44dd5efc
    • Yangbo Lu's avatar
      net: dsa: felix: enable PTP programmable pin · 5287be40
      Yangbo Lu authored
      Enable PTP programmable pin.
      Signed-off-by: default avatarYangbo Lu <yangbo.lu@nxp.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      5287be40
    • Yangbo Lu's avatar
      net: mscc: ocelot: enable PTP programmable pin · aabb2bb0
      Yangbo Lu authored
      Enable PTP programmable pin.
      Signed-off-by: default avatarYangbo Lu <yangbo.lu@nxp.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      aabb2bb0
    • Yangbo Lu's avatar
      net: mscc: ocelot: support 4 PTP programmable pins · cc2d87bb
      Yangbo Lu authored
      Support 4 PTP programmable pins with only PTP_PF_PEROUT function
      for now. The PTP_PF_EXTTS function will be supported in the
      future, and it should be implemented separately for Felix and
      Ocelot, because of different hardware interrupt implementation
      in them.
      
      Since the hardware is not able to support absolute start time,
      the periodic clock request only allows start time 0 0. But nsec
      could be accepted for PPS case for phase adjustment.
      Signed-off-by: default avatarYangbo Lu <yangbo.lu@nxp.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      cc2d87bb