public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 0/6] xilinx: Update xilinx configurations
@ 2022-08-05  9:19 Michal Simek
  2022-08-05  9:19 ` [PATCH 1/6] xilinx: versal: Enable i2c mux uclass with pca954x driver Michal Simek
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Michal Simek @ 2022-08-05  9:19 UTC (permalink / raw)
  To: u-boot, git; +Cc: Jaehoon Chung

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(-)

-- 
2.36.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH 1/6] xilinx: versal: Enable i2c mux uclass with pca954x driver
  2022-08-05  9:19 [PATCH 0/6] xilinx: Update xilinx configurations Michal Simek
@ 2022-08-05  9:19 ` Michal Simek
  2022-08-05  9:19 ` [PATCH 2/6] xilinx: zynqmp: Disable various configs for mini U-Boot Michal Simek
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Michal Simek @ 2022-08-05  9:19 UTC (permalink / raw)
  To: u-boot, git

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

Signed-off-by: Michal Simek <michal.simek@amd.com>
---

 configs/xilinx_versal_virt_defconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/configs/xilinx_versal_virt_defconfig b/configs/xilinx_versal_virt_defconfig
index 7b5853143ef7..8ce60009ecfe 100644
--- a/configs/xilinx_versal_virt_defconfig
+++ b/configs/xilinx_versal_virt_defconfig
@@ -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
-- 
2.36.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 2/6] xilinx: zynqmp: Disable various configs for mini U-Boot
  2022-08-05  9:19 [PATCH 0/6] xilinx: Update xilinx configurations Michal Simek
  2022-08-05  9:19 ` [PATCH 1/6] xilinx: versal: Enable i2c mux uclass with pca954x driver Michal Simek
@ 2022-08-05  9:19 ` Michal Simek
  2022-08-05  9:19 ` [PATCH 3/6] xilinx: zynqmp: Disable LMB for mini u-boot Michal Simek
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Michal Simek @ 2022-08-05  9:19 UTC (permalink / raw)
  To: u-boot, git; +Cc: Ashok Reddy Soma

From: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>

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.

Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@amd.com>
---

 configs/xilinx_zynqmp_mini_qspi_defconfig | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/configs/xilinx_zynqmp_mini_qspi_defconfig b/configs/xilinx_zynqmp_mini_qspi_defconfig
index e6d43083475f..d0cc0360d274 100644
--- a/configs/xilinx_zynqmp_mini_qspi_defconfig
+++ b/configs/xilinx_zynqmp_mini_qspi_defconfig
@@ -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
-- 
2.36.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 3/6] xilinx: zynqmp: Disable LMB for mini u-boot
  2022-08-05  9:19 [PATCH 0/6] xilinx: Update xilinx configurations Michal Simek
  2022-08-05  9:19 ` [PATCH 1/6] xilinx: versal: Enable i2c mux uclass with pca954x driver Michal Simek
  2022-08-05  9:19 ` [PATCH 2/6] xilinx: zynqmp: Disable various configs for mini U-Boot Michal Simek
@ 2022-08-05  9:19 ` Michal Simek
  2022-08-05  9:19 ` [PATCH 4/6] firmware: zynqmp: Skip loading config object for Versal Michal Simek
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Michal Simek @ 2022-08-05  9:19 UTC (permalink / raw)
  To: u-boot, git; +Cc: Ashok Reddy Soma

From: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>

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

Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@amd.com>
---

 configs/xilinx_zynqmp_mini_nand_defconfig        | 1 +
 configs/xilinx_zynqmp_mini_nand_single_defconfig | 1 +
 2 files changed, 2 insertions(+)

diff --git a/configs/xilinx_zynqmp_mini_nand_defconfig b/configs/xilinx_zynqmp_mini_nand_defconfig
index a2405f24ef77..e6054fe17748 100644
--- a/configs/xilinx_zynqmp_mini_nand_defconfig
+++ b/configs/xilinx_zynqmp_mini_nand_defconfig
@@ -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
diff --git a/configs/xilinx_zynqmp_mini_nand_single_defconfig b/configs/xilinx_zynqmp_mini_nand_single_defconfig
index e6ebc12ed7d2..aa35b48c72d5 100644
--- a/configs/xilinx_zynqmp_mini_nand_single_defconfig
+++ b/configs/xilinx_zynqmp_mini_nand_single_defconfig
@@ -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
-- 
2.36.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 4/6] firmware: zynqmp: Skip loading config object for Versal
  2022-08-05  9:19 [PATCH 0/6] xilinx: Update xilinx configurations Michal Simek
                   ` (2 preceding siblings ...)
  2022-08-05  9:19 ` [PATCH 3/6] xilinx: zynqmp: Disable LMB for mini u-boot Michal Simek
@ 2022-08-05  9:19 ` Michal Simek
  2022-08-05  9:19 ` [PATCH 5/6] xilinx: versal: Enable power domain driver Michal Simek
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Michal Simek @ 2022-08-05  9:19 UTC (permalink / raw)
  To: u-boot, git; +Cc: Ashok Reddy Soma, Jaehoon Chung

From: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>

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

Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@amd.com>
---

 drivers/power/domain/zynqmp-power-domain.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/power/domain/zynqmp-power-domain.c b/drivers/power/domain/zynqmp-power-domain.c
index 6943658be429..adbbb5fdd93f 100644
--- a/drivers/power/domain/zynqmp-power-domain.c
+++ b/drivers/power/domain/zynqmp-power-domain.c
@@ -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)
-- 
2.36.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 5/6] xilinx: versal: Enable power domain driver
  2022-08-05  9:19 [PATCH 0/6] xilinx: Update xilinx configurations Michal Simek
                   ` (3 preceding siblings ...)
  2022-08-05  9:19 ` [PATCH 4/6] firmware: zynqmp: Skip loading config object for Versal Michal Simek
@ 2022-08-05  9:19 ` Michal Simek
  2022-08-05  9:19 ` [PATCH 6/6] xilinx: versal: Define CONFIG_CQSPI_REF_CLK Michal Simek
  2022-08-23  8:12 ` [PATCH 0/6] xilinx: Update xilinx configurations Michal Simek
  6 siblings, 0 replies; 8+ messages in thread
From: Michal Simek @ 2022-08-05  9:19 UTC (permalink / raw)
  To: u-boot, git; +Cc: Ashok Reddy Soma

From: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>

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

Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@amd.com>
---

 configs/xilinx_versal_virt_defconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/configs/xilinx_versal_virt_defconfig b/configs/xilinx_versal_virt_defconfig
index 8ce60009ecfe..9be8d60ccc10 100644
--- a/configs/xilinx_versal_virt_defconfig
+++ b/configs/xilinx_versal_virt_defconfig
@@ -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
-- 
2.36.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 6/6] xilinx: versal: Define CONFIG_CQSPI_REF_CLK
  2022-08-05  9:19 [PATCH 0/6] xilinx: Update xilinx configurations Michal Simek
                   ` (4 preceding siblings ...)
  2022-08-05  9:19 ` [PATCH 5/6] xilinx: versal: Enable power domain driver Michal Simek
@ 2022-08-05  9:19 ` Michal Simek
  2022-08-23  8:12 ` [PATCH 0/6] xilinx: Update xilinx configurations Michal Simek
  6 siblings, 0 replies; 8+ messages in thread
From: Michal Simek @ 2022-08-05  9:19 UTC (permalink / raw)
  To: u-boot, git; +Cc: Ashok Reddy Soma

From: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>

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.

Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@amd.com>
---

 configs/xilinx_versal_virt_defconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/configs/xilinx_versal_virt_defconfig b/configs/xilinx_versal_virt_defconfig
index 9be8d60ccc10..a86053a18323 100644
--- a/configs/xilinx_versal_virt_defconfig
+++ b/configs/xilinx_versal_virt_defconfig
@@ -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
-- 
2.36.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH 0/6] xilinx: Update xilinx configurations
  2022-08-05  9:19 [PATCH 0/6] xilinx: Update xilinx configurations Michal Simek
                   ` (5 preceding siblings ...)
  2022-08-05  9:19 ` [PATCH 6/6] xilinx: versal: Define CONFIG_CQSPI_REF_CLK Michal Simek
@ 2022-08-23  8:12 ` Michal Simek
  6 siblings, 0 replies; 8+ messages in thread
From: Michal Simek @ 2022-08-23  8:12 UTC (permalink / raw)
  To: u-boot, git; +Cc: Jaehoon Chung



On 8/5/22 11:19, Michal Simek wrote:
> 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(-)
> 

applied.
M

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-08-23  8:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-05  9:19 [PATCH 0/6] xilinx: Update xilinx configurations Michal Simek
2022-08-05  9:19 ` [PATCH 1/6] xilinx: versal: Enable i2c mux uclass with pca954x driver Michal Simek
2022-08-05  9:19 ` [PATCH 2/6] xilinx: zynqmp: Disable various configs for mini U-Boot Michal Simek
2022-08-05  9:19 ` [PATCH 3/6] xilinx: zynqmp: Disable LMB for mini u-boot Michal Simek
2022-08-05  9:19 ` [PATCH 4/6] firmware: zynqmp: Skip loading config object for Versal Michal Simek
2022-08-05  9:19 ` [PATCH 5/6] xilinx: versal: Enable power domain driver Michal Simek
2022-08-05  9:19 ` [PATCH 6/6] xilinx: versal: Define CONFIG_CQSPI_REF_CLK Michal Simek
2022-08-23  8:12 ` [PATCH 0/6] xilinx: Update xilinx configurations Michal Simek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox