Skip to contentSkip to conversation

net: ethernet: ti: Introduce am654 gigabit eth switch subsystem driver

PATCH Superseded Keerthy 2 participants 11 messages Apr 30, 2019 – Jun 7, 2019

Subsystems (2)

v4 of 6 Superseded Latest is v6 →

lore
Share & tools
lore

Keerthy

author
#0 lore raw

v4 cover net: ethernet: ti: Introduce am654 gigabit eth switch subsystem driver

Add new driver for the TI AM65x SoC Gigabit Ethernet Switch subsystem (CPSW NUSS). It has two ports and provides Ethernet packet communication for the device and can be configured as an Ethernet switch. CPSW NUSS features: the Reduced Gigabit Media Independent Interface (RGMII), Reduced Media Independent Interface (RMII), and the Management Data Input/Output (MDIO) interface for physical layer device (PHY) management. The TI AM65x SoC has integrated two-port Gigabit Ethernet Switch subsystem into device MCU domain named MCU_CPSW0. One Ethernet port (port 1) with selectable RGMII and RMII interfaces and an internal Communications Port Programming Interface (CPPI) port (Host port 0).

Host Port 0 CPPI Packet Streaming Interface interface supports 8 TX channels and on RX channels operating by TI am654 NAVSS Unified DMA Peripheral Root Complex (UDMA-P) controller.

Tested for tftp and booting to kernel on am654-evm.

Grygorii Strashko (4):
net: ethernet: ti: Introduce am654 gigabit eth switch subsystem driver
arm64: dts: k3-am654-base-board: add mcu cpsw nuss pinmux and phy defs
configs: am65x_evm_a53: enable networking
arm64: dts: ti: k3-am65: add mcu cpsw node

Keerthy (1):
driver: net: ti: cpsw-mdio: use phys_addr_t for mdio_base addr

Changes in v4:

* Patch1 caused dra7 config build warnings corrected them.

Testing:

1) Build tested am3/4 and dra7.
2) Booted to kernel using cpsw tftp.

 arch/arm/dts/k3-am65.dtsi                    |   2 +
 arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 170 ++++
 configs/am65x_evm_a53_defconfig              |   7 +
 drivers/net/ti/Kconfig                       |   8 +
 drivers/net/ti/Makefile                      |   1 +
 drivers/net/ti/am65-cpsw-nuss.c              | 794 +++++++++++++++++++
 drivers/net/ti/cpsw_mdio.c                   |   4 +-
 drivers/net/ti/cpsw_mdio.h                   |   2 +-
 8 files changed, 985 insertions(+), 3 deletions(-)
 create mode 100644 drivers/net/ti/am65-cpsw-nuss.c
Signature · 1 line
2.17.1
author
#1 lore raw

PATCH v4 1/5 driver: net: ti: cpsw-mdio: use phys_addr_t for mdio_base addr

Use phys_addr_t for mdio_base address to avoid build warnings on arm64 and dra7. Cast it to uintprt_t before assigning to regs.

---

Changes in v4:

* Fixed the compiler warning.

 drivers/net/ti/cpsw_mdio.c | 4 ++--
 drivers/net/ti/cpsw_mdio.h | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/net/ti/cpsw_mdio.c +2 -2
index 70f547e6d7..6e8f652011 100644
@@ -125,7 +125,7 @@ u32 cpsw_mdio_get_alive(struct mii_dev *bus)
 	return val & GENMASK(15, 0);
 }
 
-struct mii_dev *cpsw_mdio_init(const char *name, u32 mdio_base,
+struct mii_dev *cpsw_mdio_init(const char *name, phys_addr_t mdio_base,
 			       u32 bus_freq, int fck_freq)
 {
 	struct cpsw_mdio *cpsw_mdio;
@@ -144,7 +144,7 @@ struct mii_dev *cpsw_mdio_init(const char *name, u32 mdio_base,
 		return NULL;
 	}
 
-	cpsw_mdio->regs = (struct cpsw_mdio_regs *)mdio_base;
+	cpsw_mdio->regs = (struct cpsw_mdio_regs *)(uintptr_t)mdio_base;
 
 	if (!bus_freq || !fck_freq)
 		cpsw_mdio->div = CPSW_MDIO_DIV_DEF;
drivers/net/ti/cpsw_mdio.h +1 -1
index 4a76d4e5c5..dbf4a2dcac 100644
@@ -10,7 +10,7 @@
 
 struct cpsw_mdio;
 
-struct mii_dev *cpsw_mdio_init(const char *name, u32 mdio_base,
+struct mii_dev *cpsw_mdio_init(const char *name, phys_addr_t mdio_base,
 			       u32 bus_freq, int fck_freq);
 void cpsw_mdio_free(struct mii_dev *bus);
 u32 cpsw_mdio_get_alive(struct mii_dev *bus);
Signature · 1 line
2.17.1
author
#2 lore raw

PATCH v4 2/5 net: ethernet: ti: Introduce am654 gigabit eth switch subsystem driver

In reply to Keerthy

From: Grygorii Strashko <[email protected]>

Add new driver for the TI AM65x SoC Gigabit Ethernet Switch subsystem (CPSW NUSS). It has two ports and provides Ethernet packet communication for the device and can be configured as an Ethernet switch. CPSW NUSS features: the Reduced Gigabit Media Independent Interface (RGMII), Reduced Media Independent Interface (RMII), and the Management Data Input/Output (MDIO) interface for physical layer device (PHY) management. The TI AM65x SoC has integrated two-port Gigabit Ethernet Switch subsystem into device MCU domain named MCU_CPSW0. One Ethernet port (port 1) with selectable RGMII and RMII interfaces and an internal Communications Port Programming Interface (CPPI) port (Host port 0).

Host Port 0 CPPI Packet Streaming Interface interface supports 8 TX channels and on RX channels operating by TI am654 NAVSS Unified DMA Peripheral Root Complex (UDMA-P) controller.

---
 drivers/net/ti/Kconfig          |   8 +
 drivers/net/ti/Makefile         |   1 +
 drivers/net/ti/am65-cpsw-nuss.c | 794 ++++++++++++++++++++++++++++++++
 3 files changed, 803 insertions(+)
 create mode 100644 drivers/net/ti/am65-cpsw-nuss.c
drivers/net/ti/Kconfig +8 -0
index 82bc9f5d03..ecf642de10 100644
@@ -18,3 +18,11 @@ config DRIVER_TI_KEYSTONE_NET
 	bool "TI Keystone 2 Ethernet"
 	help
 	   This driver supports the TI Keystone 2 Ethernet subsystem
+
+config TI_AM65_CPSW_NUSS
+	bool "TI K3 AM65x MCU CPSW Nuss Ethernet controller driver"
+	depends on ARCH_K3
+	select PHYLIB
+	help
+	  This driver supports TI K3 MCU CPSW Nuss Ethernet controller
+	  in Texas Instruments K3 AM65x SoCs.
drivers/net/ti/Makefile +1 -0
index ee3e4eb5d6..8d3808bb4b 100644
@@ -5,3 +5,4 @@
 obj-$(CONFIG_DRIVER_TI_CPSW) += cpsw.o cpsw-common.o cpsw_mdio.o
 obj-$(CONFIG_DRIVER_TI_EMAC) += davinci_emac.o
 obj-$(CONFIG_DRIVER_TI_KEYSTONE_NET) += keystone_net.o cpsw_mdio.o
+obj-$(CONFIG_TI_AM65_CPSW_NUSS) += am65-cpsw-nuss.o cpsw_mdio.o
drivers/net/ti/am65-cpsw-nuss.c new file +794 -0

794 lines not on this page · raw message

Signature · 1 line
2.17.1
author
#3 lore raw

PATCH v4 3/5 arm64: dts: ti: k3-am65: add mcu cpsw node

In reply to Keerthy

From: Grygorii Strashko <[email protected]>

Add mcu cpsw and its components along with scm_conf node to have ethernet functional.

---
 arch/arm/dts/k3-am65.dtsi                    |   2 +
 arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 111 +++++++++++++++++++
 2 files changed, 113 insertions(+)
arch/arm/dts/k3-am65.dtsi +2 -0
index 3d4bf369d0..9d1ed49753 100644
@@ -64,6 +64,7 @@
 			 /* MCUSS Range */
 			 <0x00 0x28380000 0x00 0x28380000 0x00 0x03880000>,
 			 <0x00 0x40200000 0x00 0x40200000 0x00 0x00900100>,
+			 <0x00 0x40f00000 0x00 0x40f00000 0x00 0x00020000>,
 			 <0x00 0x42040000 0x00 0x42040000 0x00 0x03ac2400>,
 			 <0x00 0x45100000 0x00 0x45100000 0x00 0x00c24000>,
 			 <0x00 0x46000000 0x00 0x46000000 0x00 0x00200000>,
@@ -75,6 +76,7 @@
 			#size-cells = <2>;
 			ranges = <0x00 0x28380000 0x00 0x28380000 0x00 0x03880000>, /* MCU NAVSS*/
 				 <0x00 0x40200000 0x00 0x40200000 0x00 0x00900100>, /* First peripheral window */
+				 <0x00 0x40f00000 0x00 0x40f00000 0x00 0x00020000>, /* CTRL_MMR0 */
 				 <0x00 0x42040000 0x00 0x42040000 0x00 0x03ac2400>, /* WKUP */
 				 <0x00 0x45100000 0x00 0x45100000 0x00 0x00c24000>, /* MMRs, remaining NAVSS */
 				 <0x00 0x46000000 0x00 0x46000000 0x00 0x00200000>, /* CPSW */
arch/arm/dts/k3-am654-base-board-u-boot.dtsi +111 -0

123 lines not on this page · raw message

Signature · 1 line
2.17.1
author
#4 lore raw

PATCH v4 4/5 arm64: dts: k3-am654-base-board: add mcu cpsw nuss pinmux and phy defs

In reply to Keerthy

From: Grygorii Strashko <[email protected]>

Add mcu cpsw nuss pinmux and phy defs required by cpsw.

---
 arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 59 ++++++++++++++++++++
 1 file changed, 59 insertions(+)
arch/arm/dts/k3-am654-base-board-u-boot.dtsi +59 -0
index f1ab234fe0..3d99d811b8 100644
@@ -5,6 +5,7 @@
 
 #include <dt-bindings/pinctrl/k3-am65.h>
 #include <dt-bindings/dma/k3-udma.h>
+#include <dt-bindings/net/ti-dp83867.h>
 
 / {
 	chosen {
@@ -300,6 +301,32 @@
 	u-boot,dm-spl;
 };
 
+&wkup_pmx0 {
+	mcu_cpsw_pins_default: mcu_cpsw_pins_default {
+		pinctrl-single,pins = <
+			AM65X_WKUP_IOPAD(0x0058, PIN_OUTPUT | MUX_MODE0) /* (N4) MCU_RGMII1_TX_CTL */
+			AM65X_WKUP_IOPAD(0x005c, PIN_INPUT | MUX_MODE0) /* (N5) MCU_RGMII1_RX_CTL */
+			AM65X_WKUP_IOPAD(0x0060, PIN_OUTPUT | MUX_MODE0) /* (M2) MCU_RGMII1_TD3 */
+			AM65X_WKUP_IOPAD(0x0064, PIN_OUTPUT | MUX_MODE0) /* (M3) MCU_RGMII1_TD2 */
+			AM65X_WKUP_IOPAD(0x0068, PIN_OUTPUT | MUX_MODE0) /* (M4) MCU_RGMII1_TD1 */
+			AM65X_WKUP_IOPAD(0x006c, PIN_OUTPUT | MUX_MODE0) /* (M5) MCU_RGMII1_TD0 */
+			AM65X_WKUP_IOPAD(0x0078, PIN_INPUT | MUX_MODE0) /* (L2) MCU_RGMII1_RD3 */
+			AM65X_WKUP_IOPAD(0x007c, PIN_INPUT | MUX_MODE0) /* (L5) MCU_RGMII1_RD2 */
+			AM65X_WKUP_IOPAD(0x0080, PIN_INPUT | MUX_MODE0) /* (M6) MCU_RGMII1_RD1 */
+			AM65X_WKUP_IOPAD(0x0084, PIN_INPUT | MUX_MODE0) /* (L6) MCU_RGMII1_RD0 */
+			AM65X_WKUP_IOPAD(0x0070, PIN_INPUT | MUX_MODE0) /* (N1) MCU_RGMII1_TXC */
+			AM65X_WKUP_IOPAD(0x0074, PIN_INPUT | MUX_MODE0) /* (M1) MCU_RGMII1_RXC */
+		>;
+	};
+
+	mcu_mdio_pins_default: mcu_mdio1_pins_default {
+		pinctrl-single,pins = <
+			AM65X_WKUP_IOPAD(0x008c, PIN_OUTPUT | MUX_MODE0) /* (L1) MCU_MDIO0_MDC */
+			AM65X_WKUP_IOPAD(0x0088, PIN_INPUT | MUX_MODE0) /* (L4) MCU_MDIO0_MDIO */
+		>;
+	};
+};
+
 &main_uart0 {
 	u-boot,dm-spl;
 	pinctrl-names = "default";
@@ -323,3 +350,35 @@
 	pinctrl-0 = <&main_mmc1_pins_default>;
 	sdhci-caps-mask = <0x7 0x0>;
 };
+
+&mcu_cpsw {
+	pinctrl-names = "default";
+	pinctrl-0 = <&mcu_cpsw_pins_default &mcu_mdio_pins_default>;
+};
+
+&davinci_mdio {
+	phy0: ethernet-phy at 0 {
+		reg = <0>;
+		/* TODO: phy reset: TCA9555RTWR(i2c:0x21)[p04].GPIO_MCU_RGMII_RSTN */
+		ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
+		ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
+		ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
+	};
+};
+
+&cpsw_port1 {
+	phy-mode = "rgmii-id";
+	phy-handle = <&phy0>;
+};
+
+&mcu_cpsw {
+	reg = <0x0 0x46000000 0x0 0x200000>,
+	      <0x0 0x40f00200 0x0 0x2>;
+	reg-names = "cpsw_nuss", "mac_efuse";
+
+	cpsw-phy-sel at 40f04040 {
+		compatible = "ti,am654-cpsw-phy-sel";
+		reg= <0x0 0x40f04040 0x0 0x4>;
+		reg-names = "gmii-sel";
+	};
+};
Signature · 1 line
2.17.1
author
#5 lore raw

PATCH v4 5/5 configs: am65x_evm_a53: enable networking

In reply to Keerthy

From: Grygorii Strashko <[email protected]>

Enable TI K3 AM65x CPSW NUSS driver.

---
 configs/am65x_evm_a53_defconfig | 7 +++++++
 1 file changed, 7 insertions(+)
configs/am65x_evm_a53_defconfig +7 -0
index 101fae1456..95d487a402 100644
@@ -44,6 +44,7 @@ CONFIG_SPL_MULTI_DTB_FIT_NO_COMPRESSION=y
 CONFIG_ENV_IS_IN_FAT=y
 CONFIG_ENV_FAT_INTERFACE="mmc"
 CONFIG_ENV_FAT_DEVICE_AND_PART="1:1"
+CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_DM=y
 CONFIG_SPL_DM=y
 CONFIG_SPL_DM_SEQ_ALIAS=y
@@ -58,6 +59,11 @@ CONFIG_K3_SEC_PROXY=y
 CONFIG_DM_MMC=y
 CONFIG_MMC_SDHCI=y
 CONFIG_MMC_SDHCI_K3_ARASAN=y
+CONFIG_PHY_TI=y
+CONFIG_PHY_FIXED=y
+CONFIG_DM_ETH=y
+CONFIG_TI_AM65_CPSW_NUSS=y
+CONFIG_PHY=y
 CONFIG_PINCTRL=y
 # CONFIG_PINCTRL_GENERIC is not set
 CONFIG_SPL_PINCTRL=y
@@ -73,3 +79,4 @@ CONFIG_DM_SERIAL=y
 CONFIG_SOC_TI=y
 CONFIG_SYSRESET=y
 CONFIG_SYSRESET_TI_SCI=y
+CONFIG_HEXDUMP=y
Signature · 1 line
2.17.1
author
#6 lore raw

v4 cover net: ethernet: ti: Introduce am654 gigabit eth switch subsystem driver

In reply to Keerthy
Quoted 11 lines · Keerthy

Add new driver for the TI AM65x SoC Gigabit Ethernet Switch subsystem (CPSW NUSS). It has two ports and provides Ethernet packet communication for the device and can be configured as an Ethernet switch. CPSW NUSS features: the Reduced Gigabit Media Independent Interface (RGMII), Reduced Media Independent Interface (RMII), and the Management Data Input/Output (MDIO) interface for physical layer device (PHY) management. The TI AM65x SoC has integrated two-port Gigabit Ethernet Switch subsystem into device MCU domain named MCU_CPSW0. One Ethernet port (port 1) with selectable RGMII and RMII interfaces and an internal Communications Port Programming Interface (CPPI) port (Host port 0).

Quoted 5 lines

Host Port 0 CPPI Packet Streaming Interface interface supports 8 TX channels and on RX channels operating by TI am654 NAVSS Unified DMA Peripheral Root Complex (UDMA-P) controller.

Tested for tftp and booting to kernel on am654-evm.

https://patchwork.ozlabs.org/patch/1090618/

Needs to be applied before trying the cpsw.

Quoted 29 lines

Grygorii Strashko (4):
net: ethernet: ti: Introduce am654 gigabit eth switch subsystem driver
arm64: dts: k3-am654-base-board: add mcu cpsw nuss pinmux and phy defs
configs: am65x_evm_a53: enable networking
arm64: dts: ti: k3-am65: add mcu cpsw node

Keerthy (1):
driver: net: ti: cpsw-mdio: use phys_addr_t for mdio_base addr

Changes in v4:

* Patch1 caused dra7 config build warnings corrected them.

Testing:

1) Build tested am3/4 and dra7.
2) Booted to kernel using cpsw tftp.

  arch/arm/dts/k3-am65.dtsi                    |   2 +
  arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 170 ++++
  configs/am65x_evm_a53_defconfig              |   7 +
  drivers/net/ti/Kconfig                       |   8 +
  drivers/net/ti/Makefile                      |   1 +
  drivers/net/ti/am65-cpsw-nuss.c              | 794 +++++++++++++++++++
  drivers/net/ti/cpsw_mdio.c                   |   4 +-
  drivers/net/ti/cpsw_mdio.h                   |   2 +-
  8 files changed, 985 insertions(+), 3 deletions(-)

create mode 100644 drivers/net/ti/am65-cpsw-nuss.c

author
#7 lore raw

v4 cover net: ethernet: ti: Introduce am654 gigabit eth switch subsystem driver

Quoted 22 lines · Keerthy
Quoted 19 lines · Keerthy

Add new driver for the TI AM65x SoC Gigabit Ethernet Switch subsystem (CPSW
NUSS). It has two ports and provides Ethernet packet communication for the
device and can be configured as an Ethernet switch. CPSW NUSS
features: the
Reduced Gigabit Media Independent Interface (RGMII), Reduced Media Independent Interface (RMII), and the Management Data Input/Output (MDIO) interface for physical layer device (PHY) management. The TI AM65x SoC has
integrated two-port Gigabit Ethernet Switch subsystem into device MCU domain named MCU_CPSW0. One Ethernet port (port 1) with selectable RGMII and RMII interfaces and an internal Communications Port Programming Interface (CPPI) port (Host port 0).

Host Port 0 CPPI Packet Streaming Interface interface supports 8 TX channels and on RX channels operating by TI am654 NAVSS Unified DMA Peripheral Root Complex (UDMA-P) controller.

Quoted 5 lines
Quoted 1 line

Tested for tftp and booting to kernel on am654-evm.

https://patchwork.ozlabs.org/patch/1090618/

Needs to be applied before trying the cpsw.

Tom,

Thanks for pulling this series and as pointed above please pull the patch [1] which will avoid udma accessing RT registers before channel config is done.

Regards,
Keerthy

[1] https://patchwork.ozlabs.org/patch/1090618/

Quoted 34 lines
Quoted 27 lines

Grygorii Strashko (4):
   net: ethernet: ti: Introduce am654 gigabit eth switch subsystem driver
   arm64: dts: k3-am654-base-board: add mcu cpsw nuss pinmux and phy defs
   configs: am65x_evm_a53: enable networking
   arm64: dts: ti: k3-am65: add mcu cpsw node

Keerthy (1):
   driver: net: ti: cpsw-mdio: use phys_addr_t for mdio_base addr

Changes in v4:

   * Patch1 caused dra7 config build warnings corrected them.

Testing:

   1) Build tested am3/4 and dra7.
   2) Booted to kernel using cpsw tftp. arch/arm/dts/k3-am65.dtsi                    |   2 + arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 170 ++++ configs/am65x_evm_a53_defconfig              |   7 + drivers/net/ti/Kconfig                       |   8 + drivers/net/ti/Makefile                      |   1 + drivers/net/ti/am65-cpsw-nuss.c              | 794 +++++++++++++++++++ drivers/net/ti/cpsw_mdio.c                   |   4 +- drivers/net/ti/cpsw_mdio.h                   |   2 +-

Quoted 3 lines
  8 files changed, 985 insertions(+), 3 deletions(-)

  create mode 100644 drivers/net/ti/am65-cpsw-nuss.c

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot

author
#8 lore raw

v4 cover net: ethernet: ti: Introduce am654 gigabit eth switch subsystem driver

Quoted 30 lines · Keerthy
Quoted 27 lines · Keerthy
Quoted 16 lines · Keerthy

Add new driver for the TI AM65x SoC Gigabit Ethernet Switch subsystem (CPSW
NUSS). It has two ports and provides Ethernet packet communication for the
device and can be configured as an Ethernet switch. CPSW NUSS
features: the
Reduced Gigabit Media Independent Interface (RGMII), Reduced Media Independent Interface (RMII), and the Management Data Input/Output (MDIO)
interface for physical layer device (PHY) management. The TI AM65x SoC has
integrated two-port Gigabit Ethernet Switch subsystem into device MCU domain named MCU_CPSW0. One Ethernet port (port 1) with selectable RGMII and RMII interfaces and an internal Communications Port Programming Interface (CPPI) port (Host port 0).

Quoted 5 lines

Host Port 0 CPPI Packet Streaming Interface interface supports 8 TX channels and on RX channels operating by TI am654 NAVSS Unified DMA Peripheral Root Complex (UDMA-P) controller.

Tested for tftp and booting to kernel on am654-evm.

https://patchwork.ozlabs.org/patch/1090618/

Quoted 7 lines
Quoted 1 line

Needs to be applied before trying the cpsw.

Tom,

Thanks for pulling this series and as pointed above please pull the patch [1] which will avoid udma accessing RT registers before channel config is done.

Tom,

I do not see this series in latest u-boot. Was this dropped for some reason?

- Keerthy

Quoted 46 lines

Regards,
Keerthy

[1] https://patchwork.ozlabs.org/patch/1090618/

Quoted 32 lines
Quoted 29 lines

Grygorii Strashko (4):
   net: ethernet: ti: Introduce am654 gigabit eth switch subsystem driver
   arm64: dts: k3-am654-base-board: add mcu cpsw nuss pinmux and phy defs
   configs: am65x_evm_a53: enable networking
   arm64: dts: ti: k3-am65: add mcu cpsw node

Keerthy (1):
   driver: net: ti: cpsw-mdio: use phys_addr_t for mdio_base addr

Changes in v4:

   * Patch1 caused dra7 config build warnings corrected them.

Testing:

   1) Build tested am3/4 and dra7.
   2) Booted to kernel using cpsw tftp. arch/arm/dts/k3-am65.dtsi                    |   2 + arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 170 ++++ configs/am65x_evm_a53_defconfig              |   7 + drivers/net/ti/Kconfig                       |   8 + drivers/net/ti/Makefile                      |   1 + drivers/net/ti/am65-cpsw-nuss.c              | 794 +++++++++++++++++++ drivers/net/ti/cpsw_mdio.c                   |   4 +- drivers/net/ti/cpsw_mdio.h                   |   2 +-

Quoted 3 lines
  8 files changed, 985 insertions(+), 3 deletions(-)

  create mode 100644 drivers/net/ti/am65-cpsw-nuss.c

Quoted 4 lines

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot

#9 lore raw

v4 cover net: ethernet: ti: Introduce am654 gigabit eth switch subsystem driver

Quoted 37 lines · Keerthy
Quoted 34 lines · Keerthy
Quoted 23 lines · Keerthy
Quoted 20 lines · Keerthy

Add new driver for the TI AM65x SoC Gigabit Ethernet Switch subsystem (CPSW
NUSS). It has two ports and provides Ethernet packet communication for the
device and can be configured as an Ethernet switch. CPSW NUSS
features: the
Reduced Gigabit Media Independent Interface (RGMII), Reduced Media Independent Interface (RMII), and the Management Data Input/Output (MDIO)
interface for physical layer device (PHY) management. The TI AM65x SoC has
integrated two-port Gigabit Ethernet Switch subsystem into device MCU domain named MCU_CPSW0. One Ethernet port (port 1) with selectable RGMII and RMII interfaces and an internal Communications Port Programming Interface (CPPI) port (Host port 0).

Host Port 0 CPPI Packet Streaming Interface interface supports 8 TX channels and on RX channels operating by TI am654 NAVSS Unified DMA Peripheral Root Complex (UDMA-P) controller.

Quoted 5 lines
Quoted 1 line

Tested for tftp and booting to kernel on am654-evm.

https://patchwork.ozlabs.org/patch/1090618/

Needs to be applied before trying the cpsw.

Tom,

Quoted 7 lines
Quoted 3 lines

Thanks for pulling this series and as pointed above please pull the patch
[1] which will avoid udma accessing RT registers before channel config is done.

Tom,

I do not see this series in latest u-boot. Was this dropped for some reason?

Just came in late in the cycle, I'll pick it up next release, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190606/7b0cf532/attachment.sig>
author
#10 lore raw

v4 cover net: ethernet: ti: Introduce am654 gigabit eth switch subsystem driver

Quoted 42 lines · Tom Rini
Quoted 41 lines · Keerthy
Quoted 37 lines · Keerthy
Quoted 23 lines · Keerthy
Quoted 20 lines · Keerthy

Add new driver for the TI AM65x SoC Gigabit Ethernet Switch subsystem (CPSW
NUSS). It has two ports and provides Ethernet packet communication for the
device and can be configured as an Ethernet switch. CPSW NUSS
features: the
Reduced Gigabit Media Independent Interface (RGMII), Reduced Media Independent Interface (RMII), and the Management Data Input/Output (MDIO)
interface for physical layer device (PHY) management. The TI AM65x SoC has
integrated two-port Gigabit Ethernet Switch subsystem into device MCU domain named MCU_CPSW0. One Ethernet port (port 1) with selectable RGMII and RMII interfaces and an internal Communications Port Programming Interface (CPPI) port (Host port 0).

Host Port 0 CPPI Packet Streaming Interface interface supports 8 TX channels and on RX channels operating by TI am654 NAVSS Unified DMA Peripheral Root Complex (UDMA-P) controller.

Quoted 5 lines
Quoted 1 line

Tested for tftp and booting to kernel on am654-evm.

https://patchwork.ozlabs.org/patch/1090618/

Needs to be applied before trying the cpsw.

Tom,

Thanks for pulling this series and as pointed above please pull the patch
[1] which will avoid udma accessing RT registers before channel config is done.

Quoted 5 lines
Quoted 3 lines

Tom,

I do not see this series in latest u-boot. Was this dropped for some reason?

Just came in late in the cycle, I'll pick it up next release, thanks!

Please pick v5.

Regards,
Keerthy

Quoted 1 line