Skip to contentSkip to conversation

arm64: versal: Enable several features

PATCH New Michal Simek 2 participants 9 messages Oct 14, 2019 – Oct 24, 2019 Arm/Zynq architecture

lore
Share & tools
lore
#0 lore raw

cover arm64: versal: Enable several features

Hi,

time is coming up and more and more features are validated and enabled on this platform. This patches enable things which are already in mainline.

Thanks,
Michal

Michal Simek (2):
arm64: versal: Enable LIBFDT_OVERLAY
arm64: versal: Enable USB driver support

Siva Durga Prasad Paladugu (5):
arm64: versal: Enable CLK command
arm64: versal: Increase SYS_MALLOC_F_LEN
arm64: versal: Update boot delay to perform autoboot
arm64: versal: Enable bit stream loading support for versal platform.
arm64: versal: Enable UHS support

 configs/xilinx_versal_virt_defconfig | 33 ++++++++++++++++++++++++++--
 1 file changed, 31 insertions(+), 2 deletions(-)
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/7 arm64: versal: Enable LIBFDT_OVERLAY

Enable device tree overlay to build all dtbs for Versal with -@ flag to enable applying overlays.

---

 configs/xilinx_versal_virt_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/xilinx_versal_virt_defconfig +1 -0
index f5ce8a0a1e88..2c6c17481368 100644
@@ -70,4 +70,5 @@ CONFIG_PL01X_SERIAL=y
 CONFIG_SPI=y
 CONFIG_DM_SPI=y
 CONFIG_FAT_WRITE=y
+CONFIG_OF_LIBFDT_OVERLAY=y
 CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
Signature · 1 line
2.17.1
#2 lore raw

PATCH 2/7 arm64: versal: Enable USB driver support

In reply to Michal Simek

This patch adds usb host and device mode support for Xilinx Versal virtual platform. By default USB host functionality is enabled. To use in usb device mode, set dr_mode property in DT to peripheral.

---

 configs/xilinx_versal_virt_defconfig | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
configs/xilinx_versal_virt_defconfig +21 -0
index 2c6c17481368..348ea17cf109 100644
@@ -17,12 +17,14 @@ CONFIG_SYS_PROMPT="Versal> "
 CONFIG_CMD_BOOTMENU=y
 CONFIG_CMD_MEMTEST=y
 CONFIG_SYS_ALT_MEMTEST=y
+CONFIG_CMD_DFU=y
 CONFIG_CMD_DM=y
 # CONFIG_CMD_FLASH is not set
 CONFIG_CMD_GPIO=y
 CONFIG_CMD_I2C=y
 CONFIG_CMD_MMC=y
 CONFIG_CMD_SF=y
+CONFIG_CMD_USB=y
 CONFIG_CMD_DHCP=y
 CONFIG_CMD_TFTPPUT=y
 CONFIG_CMD_MII=y
@@ -44,9 +46,11 @@ CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_IP_DEFRAG=y
 CONFIG_TFTP_BLOCKSIZE=4096
 CONFIG_CLK_VERSAL=y
+CONFIG_DFU_RAM=y
 CONFIG_DM_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_CADENCE=y
+CONFIG_MISC=y
 CONFIG_MMC_SDHCI=y
 CONFIG_MMC_SDHCI_ZYNQ=y
 CONFIG_DM_SPI_FLASH=y
@@ -69,6 +73,23 @@ CONFIG_ZYNQ_GEM=y
 CONFIG_PL01X_SERIAL=y
 CONFIG_SPI=y
 CONFIG_DM_SPI=y
+CONFIG_USB=y
+CONFIG_DM_USB=y
+CONFIG_DM_USB_GADGET=y
+CONFIG_USB_XHCI_HCD=y
+CONFIG_USB_XHCI_DWC3=y
+CONFIG_USB_DWC3=y
+CONFIG_USB_DWC3_GADGET=y
+CONFIG_USB_DWC3_GENERIC=y
+CONFIG_USB_ULPI_VIEWPORT=y
+CONFIG_USB_ULPI=y
+CONFIG_USB_STORAGE=y
+CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_MANUFACTURER="Xilinx"
+CONFIG_USB_GADGET_VENDOR_NUM=0x03FD
+CONFIG_USB_GADGET_PRODUCT_NUM=0x0300
+CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_USB_FUNCTION_THOR=y
 CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT_OVERLAY=y
 CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
Signature · 1 line
2.17.1
#3 lore raw

PATCH 3/7 arm64: versal: Enable CLK command

In reply to Michal Simek

From: Siva Durga Prasad Paladugu <[email protected]>

Enables clock command for dumping clocks.

---

 configs/xilinx_versal_virt_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/xilinx_versal_virt_defconfig +1 -0
index 348ea17cf109..ebee6d61e6b9 100644
@@ -17,6 +17,7 @@ CONFIG_SYS_PROMPT="Versal> "
 CONFIG_CMD_BOOTMENU=y
 CONFIG_CMD_MEMTEST=y
 CONFIG_SYS_ALT_MEMTEST=y
+CONFIG_CMD_CLK=y
 CONFIG_CMD_DFU=y
 CONFIG_CMD_DM=y
 # CONFIG_CMD_FLASH is not set
Signature · 1 line
2.17.1
#4 lore raw

PATCH 4/7 arm64: versal: Increase SYS_MALLOC_F_LEN

In reply to Michal Simek

From: Siva Durga Prasad Paladugu <[email protected]>

This patch increases SYS_MALLOC_F_LEN as the versal clock driver needs to be probed before relocation itself inorder to get required clocks before relocation.

---

 configs/xilinx_versal_virt_defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configs/xilinx_versal_virt_defconfig +1 -1
index ebee6d61e6b9..5300a27f6d41 100644
@@ -1,7 +1,7 @@
 CONFIG_ARM=y
 CONFIG_ARCH_VERSAL=y
 CONFIG_SYS_TEXT_BASE=0x8000000
-CONFIG_SYS_MALLOC_F_LEN=0x8000
+CONFIG_SYS_MALLOC_F_LEN=0x100000
 CONFIG_COUNTER_FREQUENCY=62500000
 CONFIG_ENV_VARS_UBOOT_CONFIG=y
 CONFIG_FIT=y
Signature · 1 line
2.17.1
#5 lore raw

PATCH 5/7 arm64: versal: Update boot delay to perform autoboot

In reply to Michal Simek

From: Siva Durga Prasad Paladugu <[email protected]>

Update boot delay to 5 for performing autoboot.

---

 configs/xilinx_versal_virt_defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configs/xilinx_versal_virt_defconfig +1 -1
index 5300a27f6d41..548024006869 100644
@@ -7,7 +7,7 @@ CONFIG_ENV_VARS_UBOOT_CONFIG=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 # CONFIG_ARCH_FIXUP_FDT_MEMORY is not set
-CONFIG_BOOTDELAY=-1
+CONFIG_BOOTDELAY=5
 CONFIG_SUPPORT_RAW_INITRD=y
 # CONFIG_BOARD_LATE_INIT is not set
 # CONFIG_DISPLAY_CPUINFO is not set
Signature · 1 line
2.17.1
#6 lore raw

PATCH 6/7 arm64: versal: Enable bit stream loading support for versal platform.

In reply to Michal Simek

From: Siva Durga Prasad Paladugu <[email protected]>

This patch enables bitstream loading support for Versal platform.

---

 configs/xilinx_versal_virt_defconfig | 2 ++
 1 file changed, 2 insertions(+)
configs/xilinx_versal_virt_defconfig +2 -0
index 548024006869..940f1539b6f8 100644
@@ -48,6 +48,8 @@ CONFIG_IP_DEFRAG=y
 CONFIG_TFTP_BLOCKSIZE=4096
 CONFIG_CLK_VERSAL=y
 CONFIG_DFU_RAM=y
+CONFIG_FPGA_XILINX=y
+CONFIG_FPGA_VERSALPL=y
 CONFIG_DM_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_CADENCE=y
Signature · 1 line
2.17.1
#7 lore raw

PATCH 7/7 arm64: versal: Enable UHS support

In reply to Michal Simek

From: Siva Durga Prasad Paladugu <[email protected]>

This patch enables UHS support for Versal platforms.

---

 configs/xilinx_versal_virt_defconfig | 4 ++++
 1 file changed, 4 insertions(+)
configs/xilinx_versal_virt_defconfig +4 -0
index 940f1539b6f8..1717039dc0d1 100644
@@ -54,8 +54,12 @@ CONFIG_DM_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_CADENCE=y
 CONFIG_MISC=y
+CONFIG_MMC_IO_VOLTAGE=y
+CONFIG_MMC_UHS_SUPPORT=y
+CONFIG_MMC_HS400_SUPPORT=y
 CONFIG_MMC_SDHCI=y
 CONFIG_MMC_SDHCI_ZYNQ=y
+CONFIG_ZYNQ_SDHCI_MIN_FREQ=100000
 CONFIG_DM_SPI_FLASH=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_MACRONIX=y
Signature · 1 line
2.17.1
#8 lore raw

cover arm64: versal: Enable several features

In reply to Michal Simek

po 14. 10. 2019 v 13:04 odesílatel Michal Simek
<[email protected]> napsal:

Quoted 21 lines

Hi,

time is coming up and more and more features are validated and enabled on this platform. This patches enable things which are already in mainline.

Thanks,
Michal

Michal Simek (2):
arm64: versal: Enable LIBFDT_OVERLAY
arm64: versal: Enable USB driver support

Siva Durga Prasad Paladugu (5):
arm64: versal: Enable CLK command
arm64: versal: Increase SYS_MALLOC_F_LEN
arm64: versal: Update boot delay to perform autoboot
arm64: versal: Enable bit stream loading support for versal platform.
arm64: versal: Enable UHS support

Quoted 6 lines
 configs/xilinx_versal_virt_defconfig | 33 ++++++++++++++++++++++++++--
 1 file changed, 31 insertions(+), 2 deletions(-)

--
2.17.1

Applied all.
M

Signature · 5 lines
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs