1. 06 4月, 2021 5 次提交
  2. 30 3月, 2021 1 次提交
  3. 25 2月, 2021 1 次提交
  4. 23 2月, 2021 3 次提交
  5. 22 2月, 2021 2 次提交
  6. 17 2月, 2021 4 次提交
    • A
      drivers: net: Add Felix DSA switch driver · 71a2d1e7
      Alex Marginean 提交于
      This driver is used for the Ethernet switch integrated into LS1028A NXP.
      Felix on LS1028A has 4 front panel ports and two internal ports, I/O
      to/from the switch is done through an ENETC Ethernet interface.
      The 4 front panel ports are available as Ethernet interfaces and can be
      used with the typical network commands like tftp.
      Signed-off-by: NAlex Marginean <alexandru.marginean@nxp.com>
      Signed-off-by: NClaudiu Manoil <claudiu.manoil@nxp.com>
      Signed-off-by: NVladimir Oltean <vladimir.oltean@nxp.com>
      71a2d1e7
    • C
      net: Introduce DSA class for Ethernet switches · fc054d56
      Claudiu Manoil 提交于
      DSA stands for Distributed Switch Architecture and it covers switches that
      are connected to the CPU through an Ethernet link and generally use frame
      tags to pass information about the source/destination ports to/from CPU.
      Front panel ports are presented as regular ethernet devices in U-Boot and
      they are expected to support the typical networking commands.
      DSA switches may be cascaded, DSA class code does not currently support
      this.
      Signed-off-by: NAlex Marginean <alexandru.marginean@nxp.com>
      Signed-off-by: NClaudiu Manoil <claudiu.manoil@nxp.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      Signed-off-by: NVladimir Oltean <vladimir.oltean@nxp.com>
      fc054d56
    • V
      net: phy: introduce fixed_phy_create for DSA CPU ports · d0781c95
      Vladimir Oltean 提交于
      The DSA (Distributed Switch Architecture) implementation has made a
      design decision when it got introduced to the Linux kernel in 2008.
      That was to hide away from the user the CPU-facing Ethernet MAC, since
      it does not make sense to register it as a struct net_device (UCLASS_ETH
      udevice for U-Boot), because that would never be beneficial for a user:
      they would not be able to use it for traffic, since conceptually, a
      packet delivered to the CPU port should loop back into the system.
      
      Nonetheless, DSA has had numerous growing pains due to the lack of a
      struct net_device for the CPU port, but so far it has overcome them.
      It is unlikely at this stage of maturity that this aspect of it will
      change.
      
      We would like U-Boot to present the same information as Linux, to be at
      parity in terms of number of interfaces, so that ethNaddr environment
      variables could directly be associated between U-Boot and Linux.
      Therefore, we would implicitly like U-Boot to hide the CPU port from the
      user as well.
      
      But the paradox is that DSA still needs a struct phy_device to inform
      the driver of the parameters of the link that it should configure the
      CPU port to. The problem is that the phy_device is typically returned
      via a call to phy_connect, which needs an udevice to attach the PHY to,
      and to search its ofnode for the 'fixed-link' property. But we don't
      have an udevice to present for the CPU port.
      
      Since 99% of DSA setups are MAC-to-MAC connections between the switch
      and the host Ethernet controller, the struct phy_device is going to be a
      fixed PHY. This simplifies things quite a bit. In U-Boot, a fixed PHY
      does not need an MDIO bus, and does not need an attached dev either.
      Basically, the phy_connect call doesn't do any connection, it just
      creates the fixed PHY.
      
      The proposal of this patch is to introduce a new fixed_phy_create
      function which will take a single argument: the ofnode that holds this:
      
      	port@4 {
      		reg = <4>;
      		phy-mode = "internal";
      
      		fixed-link {
      			speed = <2500>;
      			full-duplex;
      		};
      	};
      
      and probe a fixed PHY driver using the information from this ofnode.
      DSA will probably be the only user of this function.
      Signed-off-by: NVladimir Oltean <vladimir.oltean@nxp.com>
      Reviewed-by: NClaudiu Manoil <claudiu.manoil@nxp.com>
      d0781c95
    • V
      net: phy: fixed: support speeds of 2500 and 10000 · 56a55883
      Vladimir Oltean 提交于
      Unlike the Linux fixed PHY driver, the one in U-Boot does not attempt to
      emulate the clause 22 register set of a gigabit copper PHY driver
      through the swphy framework. Therefore, the limitation of being unable
      to support speeds higher than gigabit in fixed-link does not apply to
      the U-Boot fixed PHY driver. This makes the fixed-link U-Boot
      implementation more similar to the one from phylink, which can work with
      any valid link speed.
      Signed-off-by: NVladimir Oltean <vladimir.oltean@nxp.com>
      Reviewed-by: NClaudiu Manoil <claudiu.manoil@nxp.com>
      56a55883
  7. 16 2月, 2021 1 次提交
  8. 15 2月, 2021 2 次提交
    • T
      sh: Remove sh7757lcr board · f0debb21
      Tom Rini 提交于
      This board has not been converted to CONFIG_DM by the deadline of v2020.01
      and is missing other conversions which depend on this as well.  Remove it.
      
      As this is the last SH4A board, remove that support as well.
      
      Cc: Marek Vasut <marek.vasut+renesas@gmail.com>
      Signed-off-by: NTom Rini <trini@konsulko.com>
      f0debb21
    • T
      sh: Remove r7780mp board · 215386e4
      Tom Rini 提交于
      This board has not been converted to CONFIG_DM by the deadline of v2020.01
      and is missing other conversions which depend on this as well.  Remove it.
      
      Patch-cc: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
      Patch-cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
      Signed-off-by: NTom Rini <trini@konsulko.com>
      215386e4
  9. 12 2月, 2021 1 次提交
  10. 08 2月, 2021 2 次提交
  11. 03 2月, 2021 2 次提交
    • B
      net: ftmac100: Cast priv->iobase with uintptr_t · 673625c4
      Bin Meng 提交于
      priv->iobase was declared as phys_addr_t which is now a 64-bit
      address. In a 32-bit build, this causes the following warning
      seen when building ftmac100.c:
      
        warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
      
      Cast priv->iobase with uintptr_t.
      Signed-off-by: NBin Meng <bin.meng@windriver.com>
      673625c4
    • S
      common: Drop asm/global_data.h from common header · 401d1c4f
      Simon Glass 提交于
      Move this out of the common header and include it only where needed.  In
      a number of cases this requires adding "struct udevice;" to avoid adding
      another large header or in other cases replacing / adding missing header
      files that had been pulled in, very indirectly.   Finally, we have a few
      cases where we did not need to include <asm/global_data.h> at all, so
      remove that include.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      Signed-off-by: NTom Rini <trini@konsulko.com>
      401d1c4f
  12. 01 2月, 2021 2 次提交
  13. 27 1月, 2021 6 次提交
  14. 26 1月, 2021 1 次提交
    • A
      net: sun8i-emac: Allow all RGMII PHY modes · 219a5d5a
      Andre Przywara 提交于
      So far all GBit users of the sun8i-emac driver were using the "rgmii"
      PHY mode, even though this turns out to be wrong. It just worked because
      the PHY driver doesn't do the proper setup (yet).
      In fact for most boards the "rgmii-id" or "rgmii-txid" PHY modes are the
      correct ones.
      
      To allow the DTs to describe the phy-mode correctly, and to stay
      compatible with Linux, at least allow those other RGMII modes in the
      driver.
      
      This avoids breakage if mainline DTs will be synced with U-Boot.
      Signed-off-by: NAndre Przywara <andre.przywara@arm.com>
      Acked-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
      219a5d5a
  15. 25 1月, 2021 1 次提交
    • W
      net: add ethernet driver for MediaTek MT7620 SoC · 17ade70b
      Weijie Gao 提交于
      This patch adds  ethernet driver for MediaTek MT7620 SoC.
      
      The MT7620 SoC has a built-in ethernet (Frame Engine) and a built-in
      7-port switch and two xMII interfaces (can be MII/RMII/RGMII).
      
      The port 0-3 of the switch connects to intergrited FE PHYs. Port 4 can be
      configured to connect to either the intergrited FE PHY, or the xMII.
      Port 5 always connects to the xMII. Port 6 is the CPU port.
      
      This driver supports MT7530 giga switch connects to port 5.
      Reviewed-by: NStefan Roese <sr@denx.de>
      Signed-off-by: NWeijie Gao <weijie.gao@mediatek.com>
      17ade70b
  16. 22 1月, 2021 5 次提交
  17. 19 1月, 2021 1 次提交