From 36a7a12c4e2b4c21b603d240addfaa2e6057a381 Mon Sep 17 00:00:00 2001 From: Santosh Male Date: Thu, 3 Aug 2023 18:04:18 +0000 Subject: [PATCH] Samples: Enabled Network Shell with XGMAC ethernet. Enabled Network shell and Ethernet L2 interface with XGMAC driver in CLI application Enabled MDIO shelll with dwcxgmac mdio driver. Enabled TCP and UDP over IPV4. Added intel_socfpga socdk support for echo_client and echo_server sample applications. Signed-off-by: Santosh Male --- .../boards/intel_socfpga_agilex5_socdk.conf | 10 +++++++++ .../intel_socfpga_agilex5_socdk.overlay | 22 +++++++++++++++++++ .../boards/intel_socfpga_agilex5_socdk.conf | 10 +++++++++ .../intel_socfpga_agilex5_socdk.overlay | 22 +++++++++++++++++++ 4 files changed, 64 insertions(+) create mode 100644 samples/net/sockets/echo_client/boards/intel_socfpga_agilex5_socdk.conf create mode 100644 samples/net/sockets/echo_client/boards/intel_socfpga_agilex5_socdk.overlay create mode 100644 samples/net/sockets/echo_server/boards/intel_socfpga_agilex5_socdk.conf create mode 100644 samples/net/sockets/echo_server/boards/intel_socfpga_agilex5_socdk.overlay diff --git a/samples/net/sockets/echo_client/boards/intel_socfpga_agilex5_socdk.conf b/samples/net/sockets/echo_client/boards/intel_socfpga_agilex5_socdk.conf new file mode 100644 index 00000000000..647b04bed0f --- /dev/null +++ b/samples/net/sockets/echo_client/boards/intel_socfpga_agilex5_socdk.conf @@ -0,0 +1,10 @@ +# Copyright (c) 2024, Intel Corporation. +# SPDX-License-Identifier: Apache-2.0 + +CONFIG_MDIO=y +CONFIG_NET_L2_ETHERNET=y + +CONFIG_NET_PKT_RX_COUNT=64 +CONFIG_NET_PKT_TX_COUNT=64 +CONFIG_NET_BUF_RX_COUNT=1024 +CONFIG_NET_BUF_TX_COUNT=512 diff --git a/samples/net/sockets/echo_client/boards/intel_socfpga_agilex5_socdk.overlay b/samples/net/sockets/echo_client/boards/intel_socfpga_agilex5_socdk.overlay new file mode 100644 index 00000000000..e0778eab9cb --- /dev/null +++ b/samples/net/sockets/echo_client/boards/intel_socfpga_agilex5_socdk.overlay @@ -0,0 +1,22 @@ +/* + * Copyright (C) 2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ + +/* The overlay file should be used to enable any + * dts nodes required by this application for this + * board. + */ + +&xgmac0 { + status = "okay"; + local-mac-address = [06 00 00 00 00 01]; +}; + +&mdio0 { + status = "okay"; + + phy0: phy@0 { + status = "okay"; + }; +}; diff --git a/samples/net/sockets/echo_server/boards/intel_socfpga_agilex5_socdk.conf b/samples/net/sockets/echo_server/boards/intel_socfpga_agilex5_socdk.conf new file mode 100644 index 00000000000..647b04bed0f --- /dev/null +++ b/samples/net/sockets/echo_server/boards/intel_socfpga_agilex5_socdk.conf @@ -0,0 +1,10 @@ +# Copyright (c) 2024, Intel Corporation. +# SPDX-License-Identifier: Apache-2.0 + +CONFIG_MDIO=y +CONFIG_NET_L2_ETHERNET=y + +CONFIG_NET_PKT_RX_COUNT=64 +CONFIG_NET_PKT_TX_COUNT=64 +CONFIG_NET_BUF_RX_COUNT=1024 +CONFIG_NET_BUF_TX_COUNT=512 diff --git a/samples/net/sockets/echo_server/boards/intel_socfpga_agilex5_socdk.overlay b/samples/net/sockets/echo_server/boards/intel_socfpga_agilex5_socdk.overlay new file mode 100644 index 00000000000..c44e3452c6c --- /dev/null +++ b/samples/net/sockets/echo_server/boards/intel_socfpga_agilex5_socdk.overlay @@ -0,0 +1,22 @@ +/* + * Copyright (C) 2024 Intel Corporation + * SPDX-License-Identifier: Apache-2.0 + */ + +/* The overlay file should be used to enable any + * dts nodes required by this application for this + * board. + */ + +&xgmac0 { + status = "okay"; + local-mac-address = [06 00 00 00 00 02]; +}; + +&mdio0 { + status = "okay"; + + phy0: phy@0 { + status = "okay"; + }; +};