Skip to contentSkip to conversation

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

PATCH In review Keerthy 5 participants 17 messages Jul 9, 2019 – Jul 15, 2019

Subsystems (2)
lore
Share & tools
lore

Keerthy

author
#0 lore raw

v6 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.

Changes in v6:

* Fixed comments from Joe on the driver patch.
* Added Joe's Ack to the remaining patches.
* Removed Hexdump config.

Changes in v5:
* Rebased to latest which meant adapting to pinmux macro change.

Changes in v4:

* Patch1 caused dra7 config build warnings corrected them.

Grygorii Strashko (3):
arm64: dts: ti: k3-am65: add mcu cpsw node
arm64: dts: k3-am654-base-board: add mcu cpsw nuss pinmux and phy defs
configs: am65x_evm_a53: enable networking

Keerthy (2):
driver: net: ti: cpsw-mdio: use phys_addr_t for mdio_base addr
net: ethernet: ti: Introduce am654 gigabit eth switch subsystem
driver

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

PATCH v6 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 v6:

* Added Joe's Ack.

 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
#2 lore raw

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

Quoted 33 lines · Keerthy

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 v6:

* Added Joe's Ack.

 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 +1 -1
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;

drivers/net/ti/cpsw_mdio.c struct mii_dev *cpsw_mdio_init(const char *name, u32 mdio_base, · line 148

Quoted 6 lines
drivers/net/ti/cpsw_mdio.c +1 -1
@@ -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;
 

I'm missing something... the (uintptr_t) cast - is that a narrowing cast?

Signature · 1 line
Alex Kiernan
author
#3 lore raw

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

Quoted 37 lines · Alex Kiernan
Quoted 36 lines · Keerthy

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 v6:

* Added Joe's Ack.

  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 +1 -1
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;
         }
 
Quoted 5 lines

drivers/net/ti/cpsw_mdio.c struct mii_dev *cpsw_mdio_init(const char *name, u32 mdio_base, · line 148

Quoted 3 lines
drivers/net/ti/cpsw_mdio.c +1 -1
-       cpsw_mdio->regs = (struct cpsw_mdio_regs *)mdio_base;
+       cpsw_mdio->regs = (struct cpsw_mdio_regs *)(uintptr_t)mdio_base;
 

I'm missing something... the (uintptr_t) cast - is that a narrowing cast?

Now the cpsw_mdio is used by both 32 bit and 64 bit SoCs. Hence uintptr_t cast helps obscure the type of a pointer.

Quoted 1 line
author
#5 lore raw

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

In reply to 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.

---

Changes in v6:

* Removed redundant #ifdef on DM_ETH
* Corrected a typo in dev_err.

 drivers/net/ti/Kconfig          |   8 +
 drivers/net/ti/Makefile         |   1 +
 drivers/net/ti/am65-cpsw-nuss.c | 792 ++++++++++++++++++++++++++++++++
 3 files changed, 801 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 +792 -0

792 lines not on this page · raw message

Signature · 1 line
2.17.1
#6 lore raw

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

Quoted 12 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 6 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.

author
#8 lore raw

PATCH v6 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.

---

Changes in v6:

* Added Joe's Ack.

 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
#10 lore raw

PATCH v6 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.

---

Changes in v6:

* Added Joe's Ack.

 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 18b611990f..844a5cd96a 100644
@@ -5,6 +5,7 @@
 
 #include <dt-bindings/pinctrl/k3.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, 0) /* (N4) MCU_RGMII1_TX_CTL */
+			AM65X_WKUP_IOPAD(0x005c, PIN_INPUT, 0) /* (N5) MCU_RGMII1_RX_CTL */
+			AM65X_WKUP_IOPAD(0x0060, PIN_OUTPUT, 0) /* (M2) MCU_RGMII1_TD3 */
+			AM65X_WKUP_IOPAD(0x0064, PIN_OUTPUT, 0) /* (M3) MCU_RGMII1_TD2 */
+			AM65X_WKUP_IOPAD(0x0068, PIN_OUTPUT, 0) /* (M4) MCU_RGMII1_TD1 */
+			AM65X_WKUP_IOPAD(0x006c, PIN_OUTPUT, 0) /* (M5) MCU_RGMII1_TD0 */
+			AM65X_WKUP_IOPAD(0x0078, PIN_INPUT, 0) /* (L2) MCU_RGMII1_RD3 */
+			AM65X_WKUP_IOPAD(0x007c, PIN_INPUT, 0) /* (L5) MCU_RGMII1_RD2 */
+			AM65X_WKUP_IOPAD(0x0080, PIN_INPUT, 0) /* (M6) MCU_RGMII1_RD1 */
+			AM65X_WKUP_IOPAD(0x0084, PIN_INPUT, 0) /* (L6) MCU_RGMII1_RD0 */
+			AM65X_WKUP_IOPAD(0x0070, PIN_INPUT, 0) /* (N1) MCU_RGMII1_TXC */
+			AM65X_WKUP_IOPAD(0x0074, PIN_INPUT, 0) /* (M1) MCU_RGMII1_RXC */
+		>;
+	};
+
+	mcu_mdio_pins_default: mcu_mdio1_pins_default {
+		pinctrl-single,pins = <
+			AM65X_WKUP_IOPAD(0x008c, PIN_OUTPUT, 0) /* (L1) MCU_MDIO0_MDC */
+			AM65X_WKUP_IOPAD(0x0088, PIN_INPUT, 0) /* (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
#12 lore raw

PATCH v6 5/5 configs: am65x_evm_a53: enable networking

In reply to Keerthy

From: Grygorii Strashko <[email protected]>

Enable TI K3 AM65x CPSW NUSS driver.

---

Changes in v6:

* Removed unused HEXDUMP config.
* Added Joe's Ack.

 configs/am65x_evm_a53_defconfig | 6 ++++++
 1 file changed, 6 insertions(+)
configs/am65x_evm_a53_defconfig +6 -0
index 41cf0100fa..b940af3f56 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
Signature · 1 line
2.17.1
#13 lore raw

PATCH v6 5/5 configs: am65x_evm_a53: enable networking

Quoted 23 lines · Keerthy

From: Grygorii Strashko <[email protected]>

Enable TI K3 AM65x CPSW NUSS driver.

---

Changes in v6:

* Removed unused HEXDUMP config.
* Added Joe's Ack.

 configs/am65x_evm_a53_defconfig | 6 ++++++
 1 file changed, 6 insertions(+)
configs/am65x_evm_a53_defconfig +0 -0
index 41cf0100fa..b940af3f56 100644

configs/am65x_evm_a53_defconfig CONFIG_SPL_MULTI_DTB_FIT_NO_COMPRESSION=y · line 47

Quoted 4 lines
configs/am65x_evm_a53_defconfig +1 -0
@@ -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

Do we really need this?

Thanks and regards,
Lokesh

Quoted 16 lines
configs/am65x_evm_a53_defconfig +5 -0
 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
author
#14 lore raw

PATCH v6 5/5 configs: am65x_evm_a53: enable networking

Quoted 21 lines · Lokesh Vutla
Quoted 18 lines · Keerthy

From: Grygorii Strashko <[email protected]>

Enable TI K3 AM65x CPSW NUSS driver.

---

Changes in v6:

* Removed unused HEXDUMP config.
* Added Joe's Ack.

  configs/am65x_evm_a53_defconfig | 6 ++++++
  1 file changed, 6 insertions(+)
Quoted 9 lines

configs/am65x_evm_a53_defconfig CONFIG_SPL_MULTI_DTB_FIT_NO_COMPRESSION=y · line 47

Quoted 9 lines
configs/am65x_evm_a53_defconfig +1 -0
index 41cf0100fa..b940af3f56 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

Fallback option in case efuse MAC ID read fails for some reason.

Quoted 23 lines

Do we really need this?

Thanks and regards,
Lokesh

Quoted 16 lines
configs/am65x_evm_a53_defconfig +5 -0
  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
#15 lore raw

PATCH v6 5/5 configs: am65x_evm_a53: enable networking

Quoted 24 lines · Keerthy
Quoted 21 lines · Lokesh Vutla
Quoted 18 lines · Keerthy

From: Grygorii Strashko <[email protected]>

Enable TI K3 AM65x CPSW NUSS driver.

---

Changes in v6:

   * Removed unused HEXDUMP config.
   * Added Joe's Ack.

  configs/am65x_evm_a53_defconfig | 6 ++++++

  1 file changed, 6 insertions(+)
Quoted 11 lines
Quoted 9 lines
Quoted 9 lines
configs/am65x_evm_a53_defconfig +0 -0
index 41cf0100fa..b940af3f56 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

Fallback option in case efuse MAC ID read fails for some reason.

Ahh I forgot that this is a fallback option.

Thanks and regards,
Lokesh

Quoted 24 lines
Quoted 24 lines

Do we really need this?

Thanks and regards,
Lokesh

Quoted 16 lines

  CONFIG_DM=y
  CONFIG_SPL_DM=y
  CONFIG_SPL_DM_SEQ_ALIAS=y

configs/am65x_evm_a53_defconfig +0 -0
@@ -58,6 +59,11 @@ CONFIG_K3_SEC_PROXY=y

  CONFIG_DM_MMC=y
  CONFIG_MMC_SDHCI=y
  CONFIG_MMC_SDHCI_K3_ARASAN=y

configs/am65x_evm_a53_defconfig +5 -0
+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