[PATCH 7/7] spi: zynq_qspi: Add parallel memories support in QSPI driver

2023-08-17 Thread Ashok Reddy Soma
are exclueded by using zynqmp_qspi_update_stripe(). Also update copyright info for this file. Signed-off-by: Ashok Reddy Soma Signed-off-by: Venkatesh Yadav Abbarapu --- drivers/spi/zynq_qspi.c | 139 include/spi.h | 3 + 2 files changed

[PATCH 6/7] spi: zynqmp_gqspi: Add parallel memories support in GQSPI driver

2023-08-17 Thread Ashok Reddy Soma
commands are exclueded by using zynqmp_qspi_update_stripe(). Also update copyright info for this file. Signed-off-by: Ashok Reddy Soma Signed-off-by: Venkatesh Yadav Abbarapu --- drivers/spi/zynqmp_gqspi.c | 146 - include/spi.h | 12 +++ 2 files

[PATCH 5/7] spi: spi-uclass: Read chipselect and restrict capabilities

2023-08-17 Thread Ashok Reddy Soma
ned-off-by: Ashok Reddy Soma Signed-off-by: Venkatesh Yadav Abbarapu --- drivers/spi/spi-uclass.c | 21 - drivers/spi/xilinx_spi.c | 4 ++-- drivers/spi/zynq_qspi.c | 6 +++--- drivers/spi/zynq_spi.c | 6 +++--- include/spi.h| 2 +- 5 files changed,

[PATCH 3/7] mtd: spi-nor: Add parallel memories support for read_sr and read_fsr

2023-08-17 Thread Ashok Reddy Soma
Add support for parallel memories flash configuration in read status register and read flag status register functions. Signed-off-by: Ashok Reddy Soma Signed-off-by: Venkatesh Yadav Abbarapu --- drivers/mtd/spi/spi-nor-core.c | 50 -- 1 file changed, 36

[PATCH 4/7] mtd: spi-nor: Add parallel and stacked memories support in read_bar and write_bar

2023-08-17 Thread Ashok Reddy Soma
Add support for parallel memories and stacked memories configuration in read_bar and write_bar functions. Signed-off-by: Ashok Reddy Soma Signed-off-by: Venkatesh Yadav Abbarapu --- drivers/mtd/spi/spi-nor-core.c | 55 +- 1 file changed, 47 insertions(+), 8

[PATCH 2/7] mtd: spi-nor: Add parallel and stacked memories support

2023-08-17 Thread Ashok Reddy Soma
eration is performed at addr/2 flash offset, where addr is the address specified by the user. Similarly for read and erase operations it will read from both flashes, so size and offset are divided by 2 and send to flash. Signed-off-by: Ashok Reddy Soma Signed-off-by: Venkatesh Yadav Abbarapu --- drivers/

[PATCH 1/7] dm: core: support reading a single indexed u64 value

2023-08-17 Thread Ashok Reddy Soma
Add helper function to allow reading a single indexed u64 value from a device-tree property containing multiple u64 values, that is an array of u64's. Signed-off-by: Ashok Reddy Soma --- drivers/core/of_access.c | 22 ++ drivers/core/ofnode.c| 30

[PATCH 0/7] spi-nor: Add parallel and stacked memories support

2023-08-17 Thread Ashok Reddy Soma
writing both the flashes. For doubling the address space each operation is performed at addr/2 flash offset, where addr is the address specified by the user. Similarly for read and erase operations it will read from both flashes, so size and offset are divided by 2 and send to flash. Ashok Reddy

[PATCH] dm: core: support reading a single indexed u64 value

2023-08-11 Thread Ashok Reddy Soma
Add helper function to allow reading a single indexed u64 value from a device-tree property containing multiple u64 values, that is an array of u64's. Signed-off-by: Ashok Reddy Soma --- drivers/core/of_access.c | 22 ++ drivers/core/ofnode.c| 30

[PATCH 3/3] pinctrl: zynqmp: Add support for output-enable and bias-high-impedance

2023-08-10 Thread Ashok Reddy Soma
Add support to handle 'output-enable' and 'bias-high-impedance' configurations in pinctrl driver. Signed-off-by: Ashok Reddy Soma --- drivers/pinctrl/pinctrl-zynqmp.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/pinctrl/pinctrl-zynqmp.c b/drivers/pinctrl/pinctrl

[PATCH 1/3] firmware: zynqmp: Add support to check feature

2023-08-10 Thread Ashok Reddy Soma
Add firmware API to check if given feature is supported. Signed-off-by: Ashok Reddy Soma --- drivers/firmware/firmware-zynqmp.c | 13 + include/zynqmp_firmware.h | 3 +++ 2 files changed, 16 insertions(+) diff --git a/drivers/firmware/firmware-zynqmp.c b/drivers

[PATCH 2/3] pinctrl: zynqmp: Add version check for TRISTATE configuration

2023-08-10 Thread Ashok Reddy Soma
Reddy Soma --- drivers/pinctrl/pinctrl-zynqmp.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/pinctrl/pinctrl-zynqmp.c b/drivers/pinctrl/pinctrl-zynqmp.c index 02626a7561..e9857f5ed9 100644 --- a/drivers/pinctrl/pinctrl-zynqmp.c +++ b/drivers/pinctrl/pinctrl-zynqmp.c @@ -158,6

[PATCH 0/3] pinctrl: zynqmp: Add tri-state configuration support

2023-08-10 Thread Ashok Reddy Soma
Add support for pinctrl driver to handle 'output-enable' and 'bias-high-impedance' configurations. This support has been added in Xilinx ZynqMP Platform Management Firmware recently, hence add a version check to avoid backward compatibility issues. Ashok Reddy Soma (3): firmware: zynqmp: Add

[PATCH] clk: zynqmp: Add gem rx and tsu clocks to return register

2023-07-20 Thread Ashok Reddy Soma
Add gem_tsu and gem0_rx till gem3_rx to return proper register from zynqmp_clk_get_register. Otherwise firmware won't be able to set clock for these due to incorrect register address. Signed-off-by: Ashok Reddy Soma --- drivers/clk/clk_zynqmp.c | 5 + 1 file changed, 5 insertions(+) diff

[PATCH] clk: zynqmp: Add set_rate support for gem rx and tsu clks

2023-07-19 Thread Ashok Reddy Soma
gem0_rx till gem3_rx and gem_tsu are missing from set rate function. Add them, so that they can be set from pmu firmware via clock framework. Signed-off-by: Ashok Reddy Soma --- drivers/clk/clk_zynqmp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/clk_zynqmp.c b/drivers

[PATCH] clk: Dont return error when assigned-clocks is empty or missing

2023-07-11 Thread Ashok Reddy Soma
There is a chance that assigned-clock-rates is given and assigned-clocks could be empty. Dont return error in that case, because the probe of the corresponding driver will not be called at all if this fails. Better to continue to look for it and return 0. Signed-off-by: Ashok Reddy Soma

[PATCH 1/2] cmd: thordown: Add proper dependency for CMD_THOR_DOWNLOAD

2023-07-09 Thread Ashok Reddy Soma
Error 139 make: *** Deleting file 'u-boot' Add dependency of CMD_USB for CONFIG_CMD_THOR_DOWNLOAD to fix the errors. Signed-off-by: Ashok Reddy Soma --- cmd/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/Kconfig b/cmd/Kconfig index 02e54f1e50..b44df9d67a 100644 --- a/cmd/Kconfig

[PATCH 2/2] zynqmp: config: Add proper dependencies for USB

2023-07-09 Thread Ashok Reddy Soma
DEFAULT_POLL_TIMEOUT and CONFIG_THOR_RESET_OFF. Remove CONFIG_ZYNQMP_USB from Kconfig and also from defconfig since it is not used anywhere else. Signed-off-by: Ashok Reddy Soma --- arch/arm/mach-zynqmp/Kconfig | 3 --- configs/xilinx_zynqmp_virt_defconfig | 1 - include/configs/xilinx_zynqm

[PATCH 0/2] Fix dependencies of USB Kconfig options

2023-07-09 Thread Ashok Reddy Soma
When USB device driver CONFIG_USB and CONFIG_CMD_USB are disabled, some compilation issues are seen. Also CMD_THOR_DOWNLOAD should depend on CONFIG_CMD_USB. Add dependencies to resolve those issues and compile properly. Also remove unused config CONFIG_ZYNQMP_USB. Ashok Reddy Soma (2): cmd

[PATCH v2] dfu: Add proper dependency for CONFIG_DFU_MMC

2023-07-07 Thread Ashok Reddy Soma
target 'u-boot' failed make: *** [u-boot] Error 139 make: *** Deleting file 'u-boot' Add dependency of CONFIG_MMC for CONFIG_DFU_MMC config to fix the errors. Signed-off-by: Ashok Reddy Soma --- Changes in v2: - Changed patch subject prefix to dfu from zynqmp: config drivers/dfu/Kconfig | 1

[PATCH] zynqmp: config: Add proper dependency for CONFIG_DFU_MMC

2023-07-07 Thread Ashok Reddy Soma
target 'u-boot' failed make: *** [u-boot] Error 139 make: *** Deleting file 'u-boot' Add dependency of CONFIG_MMC for CONFIG_DFU_MMC config to fix the errors. Signed-off-by: Ashok Reddy Soma --- drivers/dfu/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dfu/Kconfig b/d

[PATCH] env: Fix default environment saving issue

2023-07-04 Thread Ashok Reddy Soma
both the environments are not present. Signed-off-by: Ashok Reddy Soma --- env/common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/env/common.c b/env/common.c index 8beb8e6aa4..0ecdb248a0 100644 --- a/env/common.c +++ b/env/common.c @@ -353,6 +353,7 @@ int env_check_redund(const char

[PATCH 3/3] xilinx: versal-net: Add mini eMMC 5.1 configuration

2023-06-14 Thread Ashok Reddy Soma
Add support for Versal NET mini eMMC 5.1 configuration. Add device tree and defconfig. Signed-off-by: Ashok Reddy Soma --- arch/arm/dts/Makefile | 1 + arch/arm/dts/versal-net-mini-emmc.dts | 64 +++ configs/xilinx_versal_net_mini_emmc_defconfig

[PATCH 2/3] xilinx: versal-net: Add mini ospi configuration

2023-06-14 Thread Ashok Reddy Soma
Add support for Versal NET mini Octal SPI flash configuration. This runs from onchip memory, so it has to be compact. Hence only Octal SPI related settings are enabled. Signed-off-by: Ashok Reddy Soma --- arch/arm/dts/Makefile | 1 + arch/arm/dts/versal-net-mini-ospi

[PATCH 1/3] xilinx: versal-net: Add mini qspi configuration

2023-06-14 Thread Ashok Reddy Soma
Add support for Versal NET mini Quad SPI flash configuration. This runs from onchip memory, so it has to be compact. Hence only Quad SPI related settings are enabled. Signed-off-by: Ashok Reddy Soma --- arch/arm/dts/Makefile | 1 + arch/arm/dts/versal-net-mini-qspi

[PATCH 0/3] Add Versal NET mini U-Boot configurations

2023-06-14 Thread Ashok Reddy Soma
In this patch series add support for Versal NET mini U-Boot configurations for qspi, ospi and emmc flashes. Ashok Reddy Soma (3): xilinx: versal-net: Add mini qspi configuration xilinx: versal-net: Add mini ospi configuration xilinx: versal-net: Add mini eMMC 5.1 configuration arch/arm

[PATCH] cadence_qspi: Enable flash reset for Versal NET platform

2023-06-14 Thread Ashok Reddy Soma
read_delay initialization for Versal NET also. Signed-off-by: Ashok Reddy Soma --- arch/arm/mach-versal-net/include/mach/hardware.h | 11 +++ drivers/spi/cadence_ospi_versal.c| 3 +-- drivers/spi/cadence_qspi.c | 13 + 3 files changed, 17

[PATCH] arm64: versal-net: spi: Update boot sequence dynamically

2023-06-14 Thread Ashok Reddy Soma
e ${scriptaddr}; echo XSPI: SCRIPT FAILED: continuing...; Signed-off-by: Ashok Reddy Soma --- board/xilinx/versal-net/board.c | 24 +--- include/configs/xilinx_versal_net.h | 19 --- 2 files changed, 33 insertions(+), 10 deletions(-) diff --git a/board/xilinx

[PATCH v2 4/6] mtd: nand: zynq_nand: Change datatype of status and ecc_status to int

2023-06-14 Thread Ashok Reddy Soma
off-by: Algapally Santosh Sagar Reviewed-by: Michael Trimarchi Signed-off-by: Ashok Reddy Soma --- (no changes since v1) drivers/mtd/nand/raw/zynq_nand.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/raw/zynq_nand.c b/drivers/mtd/nand/raw/zynq_nand.c in

[PATCH v2 6/6] xilinx: zynq: Add the missing function prototypes

2023-06-14 Thread Ashok Reddy Soma
Santosh Sagar Signed-off-by: Ashok Reddy Soma --- (no changes since v1) board/xilinx/zynq/board.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/xilinx/zynq/board.c b/board/xilinx/zynq/board.c index 9a59445b44..3b6581e304 100644 --- a/board/xilinx/zynq/board.c +++ b/board/xilinx

[PATCH v2 5/6] arm: zynq: Pass the missing argument type in function definition

2023-06-14 Thread Ashok Reddy Soma
From: Algapally Santosh Sagar Pass missing argument type in the function definition to fix the sparse warning, warning: old-style function definition [-Wold-style-definition] Signed-off-by: Algapally Santosh Sagar Signed-off-by: Ashok Reddy Soma --- Changes in v2: - Added argument void

[PATCH v2 3/6] spi: zynq_qspi: Add missing prototype for zynq_qspi_mem_exec_op

2023-06-14 Thread Ashok Reddy Soma
From: Algapally Santosh Sagar Add missing prototype to fix the sparse warning, warning: no previous prototype for 'zynq_qspi_mem_exec_op' [-Wmissing-prototypes]. Signed-off-by: Algapally Santosh Sagar Signed-off-by: Ashok Reddy Soma --- (no changes since v1) drivers/spi/zynq_qspi.c | 4

[PATCH v2 1/6] spi: xilinx_spi: Add missing prototype for xilinx_qspi_mem_exec_op

2023-06-14 Thread Ashok Reddy Soma
From: Algapally Santosh Sagar Add missing prototype to fix the below sparse warning warning: no previous prototype for 'xilinx_qspi_mem_exec_op' [-Wmissing-prototypes] Signed-off-by: Algapally Santosh Sagar Signed-off-by: Ashok Reddy Soma --- (no changes since v1) drivers/spi/xilinx_spi.c

[PATCH v2 2/6] xilinx: zynq: Add missing prototype for zynqmp_mmio_write

2023-06-14 Thread Ashok Reddy Soma
From: Algapally Santosh Sagar Add missing prototype to fix the sparse warning, warning: no previous prototype for 'zynqmp_mmio_write' [-Wmissing-prototypes]. Signed-off-by: Algapally Santosh Sagar Signed-off-by: Ashok Reddy Soma --- Changes in v2: - Move prototype declaration from

[PATCH v2 0/6] Fix sparse warnings in zynq platform

2023-06-14 Thread Ashok Reddy Soma
Fix below sparse warnings - Add missing prototype for zynqmp_mmio_write - Add missing prototype for zynq_qspi_mem_exec_op - Change datatype of status and ecc_status from u32 to int - Pass the missing argument type in function definition - Add the missing function prototypes - Add missing

[PATCH 6/6] xilinx: zynq: Add the missing function prototypes

2023-06-09 Thread Ashok Reddy Soma
Santosh Sagar Signed-off-by: Ashok Reddy Soma --- board/xilinx/zynq/board.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/xilinx/zynq/board.c b/board/xilinx/zynq/board.c index 9a59445b44..3b6581e304 100644 --- a/board/xilinx/zynq/board.c +++ b/board/xilinx/zynq/board.c @@ -5,6

[PATCH 5/6] arm: zynq: Pass the missing argument type in function definition

2023-06-09 Thread Ashok Reddy Soma
From: Algapally Santosh Sagar Pass missing argument type in the function definition to fix the sparse warning, warning: old-style function definition [-Wold-style-definition] Signed-off-by: Algapally Santosh Sagar Signed-off-by: Ashok Reddy Soma --- board/xilinx/zynq/zynq-zc706

[PATCH 4/6] mtd: nand: zynq_nand: Change datatype of status and ecc_status to int

2023-06-09 Thread Ashok Reddy Soma
off-by: Algapally Santosh Sagar Signed-off-by: Ashok Reddy Soma --- drivers/mtd/nand/raw/zynq_nand.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/raw/zynq_nand.c b/drivers/mtd/nand/raw/zynq_nand.c index 9e3ee7412d..545fdd7b69 100644 --- a/drivers/mtd/nand/

[PATCH 3/6] spi: zynq_qspi: Add missing prototype for zynq_qspi_mem_exec_op

2023-06-09 Thread Ashok Reddy Soma
From: Algapally Santosh Sagar Add missing prototype to fix the sparse warning, warning: no previous prototype for 'zynq_qspi_mem_exec_op' [-Wmissing-prototypes]. Signed-off-by: Algapally Santosh Sagar Signed-off-by: Ashok Reddy Soma --- drivers/spi/zynq_qspi.c | 4 ++-- 1 file changed, 2

[PATCH 2/6] xilinx: zynq: Add missing prototype for zynqmp_mmio_write

2023-06-09 Thread Ashok Reddy Soma
From: Algapally Santosh Sagar Add missing prototype to fix the sparse warning, warning: no previous prototype for 'zynqmp_mmio_write' [-Wmissing-prototypes]. Signed-off-by: Algapally Santosh Sagar Signed-off-by: Ashok Reddy Soma --- arch/arm/mach-zynq/include/mach/sys_proto.h | 1 + 1 file

[PATCH 1/6] spi: xilinx_spi: Add missing prototype for xilinx_qspi_mem_exec_op

2023-06-09 Thread Ashok Reddy Soma
From: Algapally Santosh Sagar Add missing prototype to fix the below sparse warning warning: no previous prototype for 'xilinx_qspi_mem_exec_op' [-Wmissing-prototypes] Signed-off-by: Algapally Santosh Sagar Signed-off-by: Ashok Reddy Soma --- drivers/spi/xilinx_spi.c | 4 ++-- 1 file

[PATCH 0/6] Fix sparse warnings in zynq platform

2023-06-09 Thread Ashok Reddy Soma
Fix below sparse warnings - Add missing prototype for zynqmp_mmio_write - Add missing prototype for zynq_qspi_mem_exec_op - Change datatype of status and ecc_status from u32 to int - Pass the missing argument type in function definition - Add the missing function prototypes - Add missing

[PATCH 2/2] arm64: versal: Add missing prototypes

2023-06-09 Thread Ashok Reddy Soma
for 'release_r5_reset' [-Wmissing-prototypes] 4.warning: no previous prototype for 'enable_clock_r5' [-Wmissing-prototypes] Signed-off-by: Algapally Santosh Sagar Signed-off-by: Ashok Reddy Soma --- arch/arm/mach-versal/mp.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm

[PATCH 1/2] arm64: versal: Add missing prototype for initialize_tcm

2023-06-09 Thread Ashok Reddy Soma
From: Algapally Santosh Sagar Add the missing prototype pointed by below sparse warning warning: no previous prototype for 'initialize_tcm' [-Wmissing-prototypes] Signed-off-by: Algapally Santosh Sagar Signed-off-by: Ashok Reddy Soma --- arch/arm/mach-versal/include/mach/sys_proto.h | 1

[PATCH 0/2] Fix sparse warnings

2023-06-09 Thread Ashok Reddy Soma
In this patch series, fix sparse warnings in below files - arch/arm/mach-versal/mp.c - arch/arm/mach-versal/include/mach/sys_proto.h Algapally Santosh Sagar (2): arm64: versal: Add missing prototype for initialize_tcm arm64: versal: Add missing prototypes

[PATCH] board: xilinx: Add missing prototypes

2023-05-22 Thread Ashok Reddy Soma
for 'board_name_decode' [-Wmissing-prototypes] 4. warning: no previous prototype for 'board_detection' [-Wmissing-prototypes] Signed-off-by: Algapally Santosh Sagar Signed-off-by: Ashok Reddy Soma --- board/xilinx/common/board.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/board/xilinx/common/board.h

[PATCH v2] arm64: versal-net: Detect and display bootmode

2023-05-16 Thread Ashok Reddy Soma
Read boodmode register using versal_net_get_bootmode() in board_late_init and prepare corresponding distro boot command sequence based on it. versal_net_get_bootmode() will be changed to use smc calls later, but for now directly reads the register. Signed-off-by: Ashok Reddy Soma --- Changes

[PATCH v3] cmd: sf/nand: Print and return failure when 0 length is passed

2023-05-16 Thread Ashok Reddy Soma
. Example: ZynqMP> sf erase 0 0 ERROR: Invalid size 0 ZynqMP> sf write 1 0 0 ERROR: Invalid size 0 ZynqMP> sf read 1 0 0 ERROR: Invalid size 0 ZynqMP> sf update 1000 1 0 ERROR: Invalid size 0 ZynqMP> Signed-off-by: Ashok Reddy Soma --- Changes in v3: - Change printf to deb

[PATCH] arm64: versal-net: Detect and display bootmode

2023-05-09 Thread Ashok Reddy Soma
Read boodmode register using versal_net_get_bootmode() in board_late_init and prepare corresponding distro boot command sequence based on it. versal_net_get_bootmode() will be changed to use smc calls later, but for now directly reads the register. Signed-off-by: Ashok Reddy Soma --- .../mach

[PATCH v2 2/2] .mailmap: Map all Xilinx users mail ids to AMD

2023-04-26 Thread Ashok Reddy Soma
-by: Ashok Reddy Soma --- Changes in v2: - Updated the missing mailids - Removed the space after mail id - Added closing brace for Vikhyat Goyal email id .mailmap | 55 --- 1 file changed, 52 insertions(+), 3 deletions(-) diff --git a/.mailmap b

[PATCH v2 1/2] .mailmap: Sort the mailmap ids in dictionary order

2023-04-26 Thread Ashok Reddy Soma
From: Algapally Santosh Sagar The mailmap ids are not arranged in the dictionary order. So, sort the mailmap ids in the dictionary order. Signed-off-by: Algapally Santosh Sagar Signed-off-by: Ashok Reddy Soma --- (no changes since v1) .mailmap | 28 ++-- 1 file

[PATCH v2 0/2] Update mailmap ids

2023-04-26 Thread Ashok Reddy Soma
In this patch series - Sort mailmap ids according to dictionary order - Update all Xilinx users mail ids to AMD Changes in v2: - Updated the missing mailids - Removed the space after mail id - Added closing brace for Vikhyat Goyal email id Algapally Santosh Sagar (2): .mailmap: Sort the

[PATCH 2/2] .mailmap: Map all Xilinx users mail ids to AMD

2023-04-24 Thread Ashok Reddy Soma
-by: Ashok Reddy Soma --- .mailmap | 54 +++--- 1 file changed, 51 insertions(+), 3 deletions(-) diff --git a/.mailmap b/.mailmap index 80076f7206..46a8619d78 100644 --- a/.mailmap +++ b/.mailmap @@ -17,27 +17,46 @@ Alexander Graf Allen Martin

[PATCH 1/2] .mailmap: Sort the mailmap ids in dictionary order

2023-04-24 Thread Ashok Reddy Soma
From: Algapally Santosh Sagar The mailmap ids are not arranged in the dictionary order. So, sort the mailmap ids in the dictionary order. Signed-off-by: Algapally Santosh Sagar Signed-off-by: Ashok Reddy Soma --- .mailmap | 28 ++-- 1 file changed, 14 insertions

[PATCH 0/2] Update mailmap ids

2023-04-24 Thread Ashok Reddy Soma
In this patch series - Sort mailmap ids according to dictionary order - Update all Xilinx users mail ids to AMD Algapally Santosh Sagar (2): .mailmap: Sort the mailmap ids in dictionary order .mailmap: Map all Xilinx users mail ids to AMD .mailmap | 80

[PATCH 2/2] arm64: versal: Enable ADIN ethernet phy

2023-04-20 Thread Ashok Reddy Soma
Versal VEK280 board has Analog Devices ethernet phy. So, enable CONFIG_PHY_ADIN config in Versal defconfig. Signed-off-by: Ashok Reddy Soma --- configs/xilinx_versal_virt_defconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configs/xilinx_versal_virt_defconfig b

[PATCH 1/2] arm64: zynqmp: Enable ADIN ethernet phy

2023-04-20 Thread Ashok Reddy Soma
Some of the Kria SOM and ZynqMP boards are using Analog Devices ethernet phy. So, enable CONFIG_PHY_ADIN for all ZynqMP platforms. Signed-off-by: Ashok Reddy Soma --- configs/xilinx_zynqmp_virt_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/xilinx_zynqmp_virt_defconfig

[PATCH 0/2] Enable ADIN phy for ZynqMP and Versal platforms

2023-04-20 Thread Ashok Reddy Soma
In this patch series enable support for Analog Devices ethernet phy for ZynqMP and Versal platforms. Ashok Reddy Soma (2): arm64: zynqmp: Enable ADIN ethernet phy arm64: versal: Enable ADIN ethernet phy configs/xilinx_versal_virt_defconfig | 3 ++- configs/xilinx_zynqmp_virt_defconfig | 1

[PATCH v2] cmd: sf/nand: Print and return failure when 0 length is passed

2023-04-12 Thread Ashok Reddy Soma
. Example: ZynqMP> sf erase 0 0 ERROR: Invalid size 0 ZynqMP> sf write 1 0 0 ERROR: Invalid size 0 ZynqMP> sf read 1 0 0 ERROR: Invalid size 0 ZynqMP> sf update 1000 1 0 ERROR: Invalid size 0 ZynqMP> Signed-off-by: Ashok Reddy Soma --- Changes in v2: - Changed print

[PATCH] cmd: sf/nand: Print and return failure when 0 length is passed

2023-04-12 Thread Ashok Reddy Soma
> sf erase 0 0 'size is 0' ZynqMP> sf write 1 0 0 'size is 0' ZynqMP> sf read 1 0 0 'size is 0' ZynqMP> sf update 1000 1 0 'size is 0' ZynqMP> Signed-off-by: Ashok Reddy Soma --- cmd/legacy-mtd-utils.c | 5 + cmd/sf.c | 5 + 2 files changed, 10 inse

[PATCH v3 2/2] spl: Add missing prototype for board_boot_order

2023-03-01 Thread Ashok Reddy Soma
From: Algapally Santosh Sagar Add missing prototype to fix the sparse warning, warning: no previous prototype for 'board_boot_order' [-Wmissing-prototypes]. Signed-off-by: Algapally Santosh Sagar Signed-off-by: Ashok Reddy Soma --- Changes in v3: - Replaced xilinx: zynqmp with just spl

[PATCH v3 1/2] xilinx: zynqmp: Add missing prototype for zynqmp_mmio_write

2023-03-01 Thread Ashok Reddy Soma
From: Algapally Santosh Sagar Add missing prototype to fix the sparse warning, warning: no previous prototype for 'zynqmp_mmio_write' [-Wmissing-prototypes]. Signed-off-by: Algapally Santosh Sagar Signed-off-by: Ashok Reddy Soma --- (no changes since v1) arch/arm/mach-versal-net/include

[PATCH v3 0/2] Fix sparse warnings

2023-03-01 Thread Ashok Reddy Soma
Run and fix sparse warnings in below files -arch/arm/mach-zynqmp/include/mach/sys_proto.h -common/spl/spl.c -arch/arm/mach-versal-net/include/mach/sys_proto.h -arch/arm/mach-versal/include/mach/sys_proto.h -drivers/mmc/zynq_sdhci.c -drivers/spi/zynqmp_gqspi.c Changes in v3: - Replaced

[PATCH 4/4] arm64: dts: zynqmp: Enable nand-on-flash-bbt in DT by default

2023-02-23 Thread Ashok Reddy Soma
By default enable nand-on-flash-bbt DT flag, so that driver always refers to the bad block table(bbt) present on the flash device. Signed-off-by: Ashok Reddy Soma --- arch/arm/dts/zynqmp-zc1751-xm016-dc2.dts | 2 ++ arch/arm/dts/zynqmp-zc1751-xm017-dc3.dts | 2 ++ 2 files changed, 4 insertions

[PATCH 3/4] arm64: dts: zynqmp: Fix nand dt node

2023-02-23 Thread Ashok Reddy Soma
DC3 nand node is not correct, it is showing all partitions under controller node directly. Create two sub nand nodes with partitions for each. Signed-off-by: Ashok Reddy Soma --- arch/arm/dts/zynqmp-zc1751-xm017-dc3.dts | 117 ++- 1 file changed, 70 insertions(+), 47

[PATCH 2/4] mtd: nand: arasan: Set ofnode value

2023-02-23 Thread Ashok Reddy Soma
Ofnode value is not set, so all the DT properties are not being read and due to this default values are being used. Find nand node and set chip->flash_node value. Signed-off-by: Ashok Reddy Soma --- drivers/mtd/nand/raw/arasan_nfc.c | 4 1 file changed, 4 insertions(+) diff --

[PATCH 1/4] mtd: nand: arasan: Remove hardcoded bbt option

2023-02-23 Thread Ashok Reddy Soma
Bad block table option is hardcoded to read from flash with NAND_BBT_USE_FLASH option. This decision should be done based on DT property. Remove this hardcoding, to be able to use DT property. Signed-off-by: Ashok Reddy Soma --- drivers/mtd/nand/raw/arasan_nfc.c | 1 - 1 file changed, 1

[PATCH 0/4] Fix arasan nand driver issues

2023-02-23 Thread Ashok Reddy Soma
In this patch series - Remove hardcoding of NAND_BBT_USE_FLASH in nand->bbt_options - Find and update nand ofnode. - Fix nand node in zynqmp-zc1751-xm017-dc3.dts file - Enable nand-on-flash-bbt flag in zynqmp DT's by default Ashok Reddy Soma (4): mtd: nand: arasan: Remove hardcoded

[PATCH v2 1/2] xilinx: zynqmp: Add missing prototype for zynqmp_mmio_write

2023-02-23 Thread Ashok Reddy Soma
From: Algapally Santosh Sagar Add missing prototype to fix the sparse warning, warning: no previous prototype for 'zynqmp_mmio_write' [-Wmissing-prototypes]. Signed-off-by: Algapally Santosh Sagar Signed-off-by: Ashok Reddy Soma --- (no changes since v1) arch/arm/mach-versal-net/include

[PATCH v2 0/2] Fix sparse warnings

2023-02-23 Thread Ashok Reddy Soma
Run and fix sparse warnings in below files -arch/arm/mach-zynqmp/include/mach/sys_proto.h -common/spl/spl.c -arch/arm/mach-versal-net/include/mach/sys_proto.h -arch/arm/mach-versal/include/mach/sys_proto.h -drivers/mmc/zynq_sdhci.c -drivers/spi/zynqmp_gqspi.c Changes in v2: - Moved

[PATCH v2 2/2] xilinx: zynqmp: Add missing prototype for board_boot_order

2023-02-23 Thread Ashok Reddy Soma
From: Algapally Santosh Sagar Add missing prototype to fix the sparse warning, warning: no previous prototype for 'board_boot_order' [-Wmissing-prototypes]. Signed-off-by: Algapally Santosh Sagar Signed-off-by: Ashok Reddy Soma --- Changes in v2: - Moved function prototype from sys_proto.h

[PATCH 2/2] xilinx: zynqmp: Add missing prototype for board_boot_order

2023-02-20 Thread Ashok Reddy Soma
From: Algapally Santosh Sagar Add missing prototype to fix the sparse warning, warning: no previous prototype for 'board_boot_order' [-Wmissing-prototypes]. Signed-off-by: Algapally Santosh Sagar Signed-off-by: Ashok Reddy Soma --- arch/arm/mach-zynqmp/include/mach/sys_proto.h | 1 + common

[PATCH 1/2] xilinx: zynqmp: Add missing prototype for zynqmp_mmio_write

2023-02-20 Thread Ashok Reddy Soma
From: Algapally Santosh Sagar Add missing prototype to fix the sparse warning, warning: no previous prototype for 'zynqmp_mmio_write' [-Wmissing-prototypes]. Signed-off-by: Algapally Santosh Sagar Signed-off-by: Ashok Reddy Soma --- arch/arm/mach-versal-net/include/mach/sys_proto.h | 7

[PATCH 0/2] Fix sparse warnings

2023-02-20 Thread Ashok Reddy Soma
Run and fix sparse warnings in below files -arch/arm/mach-zynqmp/include/mach/sys_proto.h -common/spl/spl.c -arch/arm/mach-versal-net/include/mach/sys_proto.h -arch/arm/mach-versal/include/mach/sys_proto.h -drivers/mmc/zynq_sdhci.c -drivers/spi/zynqmp_gqspi.c Algapally Santosh Sagar (2):

[PATCH] arm64: zynqmp: Add missing ZYNQMP_FIRMWARE dependencies

2023-02-01 Thread Ashok Reddy Soma
d and also sdhci and gem drivers didn't protect the code properly. So, add the missing ZYNQMP_FIRMWARE dependencies. Signed-off-by: Algapally Santosh Sagar Signed-off-by: Ashok Reddy Soma --- board/xilinx/zynqmp/Kconfig | 1 + drivers/clk/Kconfig | 4 ++-- drivers/fpga/Kconfig

[PATCH v2 4/4] drivers: mmc: Change datatype of tuning_loop_counter to int

2023-01-19 Thread Ashok Reddy Soma
-off-by: Algapally Santosh Sagar Signed-off-by: Ashok Reddy Soma --- Changes in v2: - Updated description drivers/mmc/zynq_sdhci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/zynq_sdhci.c b/drivers/mmc/zynq_sdhci.c index 7dcf6ad842..be4075c97a 100644

[PATCH v2 3/4] xilinx: versal: Add missing header

2023-01-19 Thread Ashok Reddy Soma
From: Algapally Santosh Sagar Add missing prototype to fix the sparse warning, warning: no previous prototype for 'do_go_exec' [-Wmissing-prototypes]. Signed-off-by: Algapally Santosh Sagar Signed-off-by: Ashok Reddy Soma --- Changes in v2: - Changed subject from missing prototype

[PATCH v2 2/4] gpio: zynqmp: Handle error from get_gpio_modepin

2023-01-19 Thread Ashok Reddy Soma
From: Algapally Santosh Sagar There is a unused variable ret, due to which we are getting sparse warning as below. warning: variable 'ret' set but not used [-Wunused-but-set-variable]. Return ret incase of error. Signed-off-by: Algapally Santosh Sagar Signed-off-by: Ashok Reddy Soma

[PATCH v2 1/4] xilinx: common: Include header file to fix warning

2023-01-19 Thread Ashok Reddy Soma
Signed-off-by: Ashok Reddy Soma --- Changes in v2: - Included header file instead of declaring prototype - Modified description to reflect the same board/xilinx/common/board.c | 1 + 1 file changed, 1 insertion(+) diff --git a/board/xilinx/common/board.c b/board/xilinx/common/board.c index

[PATCH v2 0/4] Fix sparse warnings

2023-01-19 Thread Ashok Reddy Soma
Run and fix sparse warnings in below files -drivers/mmc/zynq_sdhci.c -board/xilinx/common/board.h -drivers/gpio/zynqmp_gpio_modepin.c -board/xilinx/versal/board.c Changes in v2: - Included header file instead of declaring prototype - Modified description to reflect the same - Instead of

[4/4] mmc: zynq_sdhci: Add support and quirk for HS400

2023-01-10 Thread Ashok Reddy Soma
Add support for HS400 in mode2timing array. Add a quirk for Versal NET platform to indicate that HS400 is supported through bit63 of capability register. Signed-off-by: Ashok Reddy Soma --- drivers/mmc/zynq_sdhci.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/mmc

[3/4] mmc: sdhci: Enable HS400 support if available in caps

2023-01-10 Thread Ashok Reddy Soma
HS400 is indicated in bit63 of capability register in few IP's. Add a quirk to check this and add HS400 to host capabilities. Signed-off-by: Ashok Reddy Soma --- drivers/mmc/sdhci.c | 4 include/sdhci.h | 3 +++ 2 files changed, 7 insertions(+) diff --git a/drivers/mmc/sdhci.c b

[2/4] mmc: sdhci: Check and call config_dll callback functions

2023-01-10 Thread Ashok Reddy Soma
Check if the low level driver supports config_dll callback function and call it if it does. Call with dll disable before calling set_clock and with dll enable after it. Signed-off-by: Ashok Reddy Soma --- drivers/mmc/sdhci.c | 16 include/sdhci.h | 2 ++ 2 files changed

[1/4] mmc: zynq_sdhci: Add support for eMMC5.1 for Versal NET platform

2023-01-10 Thread Ashok Reddy Soma
-off-by: Ashok Reddy Soma --- drivers/mmc/zynq_sdhci.c | 287 ++- 1 file changed, 284 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/zynq_sdhci.c b/drivers/mmc/zynq_sdhci.c index 7dcf6ad842..8415da3373 100644 --- a/drivers/mmc/zynq_sdhci.c +++ b/drivers

[0/4] Add eMMC 5.1 support for Versal NET

2023-01-10 Thread Ashok Reddy Soma
Ashok Reddy Soma (4): mmc: zynq_sdhci: Add support for eMMC5.1 for Versal NET platform mmc: sdhci: Check and call config_dll callback functions mmc: sdhci: Enable HS400 support if available in caps mmc: zynq_sdhci: Add support and quirk for HS400 drivers/mmc/sdhci.c | 20 +++ drivers

[PATCH 4/4] drivers: mmc: Change datatype to fix a warning

2023-01-06 Thread Ashok Reddy Soma
From: Algapally Santosh Sagar tuning_loop_counter is of char type. Change to int to fix below warning. warning: comparison is always false due to limited range of data type. Signed-off-by: Algapally Santosh Sagar Signed-off-by: Ashok Reddy Soma --- drivers/mmc/zynq_sdhci.c | 2 +- 1 file

[PATCH 3/4] xilinx: versal: Add missing prototype

2023-01-06 Thread Ashok Reddy Soma
From: Algapally Santosh Sagar Add missing prototype to fix the sparse warning, warning: no previous prototype for 'do_go_exec' [-Wmissing-prototypes]. Signed-off-by: Algapally Santosh Sagar Signed-off-by: Ashok Reddy Soma --- board/xilinx/versal/board.c | 1 + 1 file changed, 1 insertion

[PATCH 2/4] gpio: zynqmp: Remove unused variable ret

2023-01-06 Thread Ashok Reddy Soma
From: Algapally Santosh Sagar There is a unused variable ret, due to which we are getting sparse warning as below. warning: variable 'ret' set but not used [-Wunused-but-set-variable]. Remove variable ret. Signed-off-by: Algapally Santosh Sagar Signed-off-by: Ashok Reddy Soma --- drivers

[PATCH 1/4] xilinx: common: Add missing prototype for board_get_usable_ram_top

2023-01-06 Thread Ashok Reddy Soma
From: Algapally Santosh Sagar Add missing prototype to fix the sparse warning, warning: no previous prototype for 'board_get_usable_ram_top' [-Wmissing-prototypes]. Signed-off-by: Algapally Santosh Sagar Signed-off-by: Ashok Reddy Soma --- board/xilinx/common/board.h | 4 1 file

[PATCH 0/4] Fix sparse warnings

2023-01-06 Thread Ashok Reddy Soma
Run and fix sparse warnings in below files -drivers/mmc/zynq_sdhci.c -board/xilinx/common/board.h -drivers/gpio/zynqmp_gpio_modepin.c -board/xilinx/versal/board.c Algapally Santosh Sagar (4): xilinx: common: Add missing prototype for board_get_usable_ram_top gpio: zynqmp: Remove unused

[PATCH v2] mtd: nand: Mark reserved blocks

2023-01-05 Thread Ashok Reddy Soma
served) 0x1ff40(bbt reserved) 0x1ff80(bbt reserved) 0x1ffc00000(bbt reserved) Signed-off-by: Ashok Reddy Soma Reviewed-by: Michael Trimarchi --- Changes in v2: - Changed "Reserved for bbt" to (bbt reserved) - Updated description and the log in the description

[PATCH] mtd: nand: Mark reserved blocks

2023-01-05 Thread Ashok Reddy Soma
0x11680 0x116c0 0x1ff00<--- Reserved for bbt 0x1ff40<--- Reserved for bbt 0x1ff80<--- Reserved for bbt 0x1ffc0<--- Reserved for bbt Signed-off-by: Ashok Reddy Soma --- cmd/nand.c | 9 ++--- drivers/mtd/nand/raw/nand_bbt.

[PATCH] spi: cadence-qspi: Remove condition for calling enable linear mode

2022-11-29 Thread Ashok Reddy Soma
cadence_qspi_apb_enable_linear_mode() has a weak function defined, so no need to gaurd this under if (CONFIG_IS_ENABLED(ARCH_VERSAL)). In cadence_qspi_apb_write_execute(), enable linear mode is called twice by mistake, remove extra one. Signed-off-by: Ashok Reddy Soma --- drivers/spi

[PATCH v2] spi: zynqmp_gqspi: Update tapdelay value

2022-11-23 Thread Ashok Reddy Soma
From: T Karthik Reddy The driver was using an incorrect value for GQSPI_LPBK_DLY_ADJ_DLY_1 tapdelay for Versal for frequencies above 100MHz. Change it from 2 to 1 based on the recommended value in IP spec. Signed-off-by: T Karthik Reddy Signed-off-by: Ashok Reddy Soma --- Changes in v2

[PATCH] spi: zynqmp_gqspi: Update tapdelay value

2022-11-22 Thread Ashok Reddy Soma
From: T Karthik Reddy Update GQSPI_LPBK_DLY_ADJ_DLY_1 tapdelay value for Versal for frequencies above 100MHz. Signed-off-by: T Karthik Reddy Signed-off-by: Ashok Reddy Soma --- drivers/spi/zynqmp_gqspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi

[PATCH] mtd: spi-nor-core: Invert logic to reflect sst26 flash unlocked

2022-11-21 Thread Ashok Reddy Soma
ck to work properly. Signed-off-by: Algapally Santosh Sagar Signed-off-by: Ashok Reddy Soma --- drivers/mtd/spi/spi-nor-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/spi/spi-nor-core.c b/drivers/mtd/spi/spi-nor-core.c index 78de3c5281..1ea8363

[PATCH 3/3] arm64: versal: Add octal spi flash mini u-boot configuration

2022-11-16 Thread Ashok Reddy Soma
. Signed-off-by: Ashok Reddy Soma --- Changes in v3: - Add dts files for octal flash mini u-boot. - Add below configs to fix compilation error. CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0xFFFE Changes in v2: - Run savedefconfig and updated mini config for ospi

[PATCH 2/3] spi: cadence-qspi: Fix compilation error in mini u-boot flash reset

2022-11-16 Thread Ashok Reddy Soma
When cadence_qspi_versal_flash_reset() function is called in mini u-boot where there is no firmware support, it is missing defines for macro's BOOT_MODE_POR_0 & BOOT_MODE_POR_1. Remove them and replace with already define macro's which have same values as these. Signed-off-by: Ashok Reddy

[PATCH 1/3] arm64: versal: Add qspi flash mini u-boot configuration

2022-11-16 Thread Ashok Reddy Soma
-by: Ashok Reddy Soma --- Changes in v3: - Added dts files for qspi mini configuration - Added CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0xfffe to fix compilation error. Changes in v2: - Removed configs/xilinx_* from MAINTAINERS as, it is already taken

[PATCH 0/3] Add quad & octal spi flash mini u-boot configuration files

2022-11-16 Thread Ashok Reddy Soma
configs/xilinx_* from MAINTAINERS as, it is already taken care. - Run savedefconfig and updated mini config to align with latest Kconfig layout - Run savedefconfig and updated mini config for ospi to align with latest Kconfig layout Ashok Reddy Soma (3): arm64: versal: Add qspi flash mini u

  1   2   3   >