Skip to contentSkip to conversation

xilinx: Update xilinx configurations

PATCH Applied Michal Simek 1 participant 8 messages Aug 5, 2022 – Aug 23, 2022 Arm/Zynq architecture

lore
Share & tools
lore

Michal Simek

author maintainer
#0 lore raw

cover xilinx: Update xilinx configurations

Hi,

I am sending various patches for updating defconfigs and also one patch for disabling calling zynqmp_pmufw_node() in Versal case.

Thanks,
Michal

Ashok Reddy Soma (5):
xilinx: zynqmp: Disable various configs for mini U-Boot
xilinx: zynqmp: Disable LMB for mini u-boot
firmware: zynqmp: Skip loading config object for Versal
xilinx: versal: Enable power domain driver
xilinx: versal: Define CONFIG_CQSPI_REF_CLK

Michal Simek (1):
xilinx: versal: Enable i2c mux uclass with pca954x driver

 configs/xilinx_versal_virt_defconfig             |  6 ++++++
 configs/xilinx_zynqmp_mini_nand_defconfig        |  1 +
 configs/xilinx_zynqmp_mini_nand_single_defconfig |  1 +
 configs/xilinx_zynqmp_mini_qspi_defconfig        | 14 ++++++++++++--
 drivers/power/domain/zynqmp-power-domain.c       |  5 ++++-
 5 files changed, 24 insertions(+), 3 deletions(-)
Signature · 1 line
2.36.1
author maintainer
#1 lore raw

PATCH 1/6 xilinx: versal: Enable i2c mux uclass with pca954x driver

Xilinx is using pca954x i2c muxes on a lot of boards that's why enable this driver by default.

---

 configs/xilinx_versal_virt_defconfig | 2 ++
 1 file changed, 2 insertions(+)
configs/xilinx_versal_virt_defconfig +2 -0
index 7b5853143ef7..8ce60009ecfe 100644
@@ -69,6 +69,8 @@ CONFIG_FPGA_XILINX=y
 CONFIG_FPGA_VERSALPL=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_CADENCE=y
+CONFIG_I2C_MUX=y
+CONFIG_I2C_MUX_PCA954x=y
 CONFIG_DM_MAILBOX=y
 CONFIG_ZYNQMP_IPI=y
 CONFIG_MISC=y
Signature · 1 line
2.36.1
author maintainer
#2 lore raw

PATCH 2/6 xilinx: zynqmp: Disable various configs for mini U-Boot

In reply to Michal Simek

From: Ashok Reddy Soma <[email protected]>

With 2022.01-rc3 upgrade, the size of the mini U-Boot increased and is not able to fit in OCM. Hence disable unnecessary configs and make room.

---

 configs/xilinx_zynqmp_mini_qspi_defconfig | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)
configs/xilinx_zynqmp_mini_qspi_defconfig +12 -2
index e6d43083475f..d0cc0360d274 100644
@@ -3,7 +3,7 @@ CONFIG_SYS_CONFIG_NAME="xilinx_zynqmp_mini_qspi"
 CONFIG_SYS_ICACHE_OFF=y
 CONFIG_ARCH_ZYNQMP=y
 CONFIG_SYS_TEXT_BASE=0xFFFC0000
-CONFIG_SYS_MALLOC_LEN=0x1a00
+CONFIG_SYS_MALLOC_LEN=0x1b00
 CONFIG_NR_DRAM_BANKS=1
 CONFIG_ENV_SIZE=0x80
 CONFIG_DEFAULT_DEVICE_TREE="zynqmp-mini-qspi"
@@ -19,7 +19,9 @@ CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0xfffe0000
 # CONFIG_EXPERT is not set
 CONFIG_REMAKE_ELF=y
 # CONFIG_LEGACY_IMAGE_FORMAT is not set
+# CONFIG_ARCH_FIXUP_FDT_MEMORY is not set
 # CONFIG_AUTOBOOT is not set
+CONFIG_LOGLEVEL=0
 # CONFIG_DISPLAY_CPUINFO is not set
 # CONFIG_BOARD_LATE_INIT is not set
 CONFIG_CLOCKS=y
@@ -62,6 +64,7 @@ CONFIG_SYS_PBSIZE=1049
 # CONFIG_CMD_SOURCE is not set
 # CONFIG_CMD_SETEXPR is not set
 # CONFIG_CMD_SLEEP is not set
+# CONFIG_CMD_MP is not set
 CONFIG_SPL_OF_CONTROL=y
 CONFIG_OF_EMBED=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
@@ -69,17 +72,24 @@ CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 # CONFIG_DM_WARN is not set
 # CONFIG_DM_DEVICE_REMOVE is not set
 CONFIG_SPL_DM_SEQ_ALIAS=y
+# CONFIG_FIRMWARE is not set
+# CONFIG_GPIO is not set
+# CONFIG_I2C is not set
+# CONFIG_INPUT is not set
 # CONFIG_MMC is not set
-CONFIG_SPI_FLASH_BAR=y
+# CONFIG_SPI_FLASH_SMART_HWCAPS is not set
+# CONFIG_SPI_FLASH_UNLOCK_ALL is not set
 CONFIG_SPI_FLASH_ISSI=y
 CONFIG_SPI_FLASH_MACRONIX=y
 CONFIG_SPI_FLASH_SPANSION=y
 CONFIG_SPI_FLASH_STMICRO=y
 CONFIG_SPI_FLASH_WINBOND=y
 # CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
+# CONFIG_POWER is not set
 CONFIG_ARM_DCC=y
 CONFIG_SPI=y
 CONFIG_ZYNQMP_GQSPI=y
+# CONFIG_FAT_WRITE is not set
 CONFIG_PANIC_HANG=y
 # CONFIG_GZIP is not set
 # CONFIG_LMB is not set
Signature · 1 line
2.36.1
author maintainer
#3 lore raw

PATCH 3/6 xilinx: zynqmp: Disable LMB for mini u-boot

In reply to Michal Simek

From: Ashok Reddy Soma <[email protected]>

LMB is not required for mini u-boot which runs out of on chip memory. Disable CONFIG_LMB from mini u-boot defconfig's.

---

 configs/xilinx_zynqmp_mini_nand_defconfig        | 1 +
 configs/xilinx_zynqmp_mini_nand_single_defconfig | 1 +
 2 files changed, 2 insertions(+)
configs/xilinx_zynqmp_mini_nand_defconfig +1 -0
index a2405f24ef77..e6054fe17748 100644
@@ -65,3 +65,4 @@ CONFIG_SYS_NAND_MAX_CHIPS=2
 CONFIG_ARM_DCC=y
 CONFIG_PANIC_HANG=y
 # CONFIG_GZIP is not set
+# CONFIG_LMB is not set
configs/xilinx_zynqmp_mini_nand_single_defconfig +1 -0
index e6ebc12ed7d2..aa35b48c72d5 100644
@@ -64,3 +64,4 @@ CONFIG_SYS_NAND_ONFI_DETECTION=y
 CONFIG_ARM_DCC=y
 CONFIG_PANIC_HANG=y
 # CONFIG_GZIP is not set
+# CONFIG_LMB is not set
Signature · 1 line
2.36.1
author maintainer
#4 lore raw

PATCH 4/6 firmware: zynqmp: Skip loading config object for Versal

In reply to Michal Simek

From: Ashok Reddy Soma <[email protected]>

SET_CONFIGURATION is not yet implemented for Versal platforms. Skip loading config object for Versal until support is added.

---

 drivers/power/domain/zynqmp-power-domain.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/power/domain/zynqmp-power-domain.c +4 -1
index 6943658be429..adbbb5fdd93f 100644
@@ -25,7 +25,10 @@ static int zynqmp_power_domain_request(struct power_domain *power_domain)
 {
 	dev_dbg(power_domain->dev, "Request for id: %ld\n", power_domain->id);
 
-	return zynqmp_pmufw_node(power_domain->id);
+	if (IS_ENABLED(CONFIG_ARCH_ZYNQMP))
+		return zynqmp_pmufw_node(power_domain->id);
+
+	return 0;
 }
 
 static int zynqmp_power_domain_free(struct power_domain *power_domain)
Signature · 1 line
2.36.1
author maintainer
#5 lore raw

PATCH 5/6 xilinx: versal: Enable power domain driver

In reply to Michal Simek

From: Ashok Reddy Soma <[email protected]>

Enable power domain driver to request node for all the IP's that are enabled in DT.

---

 configs/xilinx_versal_virt_defconfig | 2 ++
 1 file changed, 2 insertions(+)
configs/xilinx_versal_virt_defconfig +2 -0
index 8ce60009ecfe..9be8d60ccc10 100644
@@ -104,6 +104,8 @@ CONFIG_PHY_GIGE=y
 CONFIG_XILINX_AXIEMAC=y
 CONFIG_XILINX_AXIMRMAC=y
 CONFIG_ZYNQ_GEM=y
+CONFIG_POWER_DOMAIN=y
+CONFIG_ZYNQMP_POWER_DOMAIN=y
 CONFIG_DM_RESET=y
 CONFIG_RESET_ZYNQMP=y
 CONFIG_ARM_DCC=y
Signature · 1 line
2.36.1
author maintainer
#6 lore raw

PATCH 6/6 xilinx: versal: Define CONFIG_CQSPI_REF_CLK

In reply to Michal Simek

From: Ashok Reddy Soma <[email protected]>

With commit 55b3ba4c2ba4 ("spi: cadence_qspi: Migrate CONFIG_CQSPI_REF_CLK to Kconfig") CONFIG_CQSPI_REF_CLK is moved to Kconfig.

The static value via Kconfig is a fallback option in case of clock framework is not enabled or fails for some reason.

---

 configs/xilinx_versal_virt_defconfig | 2 ++
 1 file changed, 2 insertions(+)
configs/xilinx_versal_virt_defconfig +2 -0
index 9be8d60ccc10..a86053a18323 100644
@@ -115,6 +115,8 @@ CONFIG_SOC_XILINX_VERSAL=y
 CONFIG_SPI=y
 CONFIG_DM_SPI=y
 CONFIG_CADENCE_QSPI=y
+CONFIG_HAS_CQSPI_REF_CLK=y
+CONFIG_CQSPI_REF_CLK=200000000
 CONFIG_CADENCE_OSPI_VERSAL=y
 CONFIG_ZYNQ_SPI=y
 CONFIG_USB=y
Signature · 1 line
2.36.1
author maintainer Applied
#7 lore raw
In reply to Michal Simek
Quoted 19 lines · Michal Simek

Hi,

I am sending various patches for updating defconfigs and also one patch for disabling calling zynqmp_pmufw_node() in Versal case.

Thanks,
Michal

Ashok Reddy Soma (5):
xilinx: zynqmp: Disable various configs for mini U-Boot
xilinx: zynqmp: Disable LMB for mini u-boot
firmware: zynqmp: Skip loading config object for Versal
xilinx: versal: Enable power domain driver
xilinx: versal: Define CONFIG_CQSPI_REF_CLK

Michal Simek (1):
xilinx: versal: Enable i2c mux uclass with pca954x driver

Quoted 7 lines
  configs/xilinx_versal_virt_defconfig             |  6 ++++++
  configs/xilinx_zynqmp_mini_nand_defconfig        |  1 +
  configs/xilinx_zynqmp_mini_nand_single_defconfig |  1 +
  configs/xilinx_zynqmp_mini_qspi_defconfig        | 14 ++++++++++++--
  drivers/power/domain/zynqmp-power-domain.c       |  5 ++++-
  5 files changed, 24 insertions(+), 3 deletions(-)

applied.
M