1. 19 8月, 2023 1 次提交
  2. 03 10月, 2022 3 次提交
    • S
      ipq40xx: qca8k: introduce proper PSGMII calibration · ad9ecd33
      Serhii Serhieiev 提交于
      Serhii and others have experienced PSGMII link degradation up to point
      that it actually does not pass packets at all or packets arrive as zeros.
      This usually happened after a couple of hot reboots.
      
      Serhii has managed to track it down to PSGMII calibration not being done
      properly and has fixed it, so all of the code is Serhii-s work.
      Signed-off-by: NSerhii Serhieiev <adron@mstnt.com>
      Signed-off-by: NRobert Marko <robert.marko@sartura.hr>
      ad9ecd33
    • R
      ipq40xx: add DSA switch driver · b1f21329
      Robert Marko 提交于
      Qualcomm IPQ40xx SoC-s have a variant of QCA8337N switch built-in.
      
      It shares most of the stuff with its external counterpart, however it is
      modified for the SoC.
      Namely, it doesn't have second CPU port (Port 6), so it has 6 ports
      instead of 7.
      It also has no built-in PHY-s but rather requires external PSGMII based
      companion PHY-s (QCA8072 and QCA8075) for which it first needs to carry
      out calibration before using them.
      PSGMII has a SoC built-in PHY that is used to connect to the PHY-s which
      unfortunately requires some magic values as the datasheet doesnt document
      the bits that are being set or the register at all.
      
      Since its built-in it is MMIO like other peripherals and doesn't have its
      own MDIO bus but depends on the SoC provided one.
      
      CPU connection is at Port 0 and it uses some kind of a internal connection
      and no traditional RGMII/SGMII.
      It also doesn't use in-band tagging like other qca8k switches so a shinfo
      based tagger is used.
      
      This is based on the current OpenWrt qca8k version that has been imported
      from generic target.
      Signed-off-by: NRobert Marko <robert.marko@sartura.hr>
      b1f21329
    • R
      ipq40xx: import qca8k from generic · 28b13bb1
      Robert Marko 提交于
      This is just importing the qca8k driver from the generic target.
      It will be used as the based for IPQ40xx version, this is just
      to be able to see the diff.
      Signed-off-by: NRobert Marko <robert.marko@sartura.hr>
      28b13bb1