[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 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_p

[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

[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 s

[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 functio

[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-n

[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 hardc

[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 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 --gi

[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 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 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 xili

[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-n

[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 wit

[PATCH] env: Fix default environment saving issue

2023-07-03 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] zynqmp: config: Add proper dependency for CONFIG_DFU_MMC

2023-07-07 Thread Ashok Reddy Soma
ment "$@" Makefile:1760: recipe for 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 f

[PATCH v2] dfu: Add proper dependency for CONFIG_DFU_MMC

2023-07-07 Thread Ashok Reddy Soma
ment "$@" Makefile:1760: recipe for 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 su

[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 2/2] zynqmp: config: Add proper dependencies for USB

2023-07-09 Thread Ashok Reddy Soma
ed jobs Add CONFIG_USB_STORAGE as dependency for USB related macro's such as BOOT_TARGET_DEVICES_USB() and DFU_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

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

2023-07-09 Thread Ashok Reddy Soma
cipe for target 'u-boot' failed make: *** [u-boot] 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/Kconf

[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] 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: 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(+)

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

2022-09-30 Thread Ashok Reddy Soma
Add configuration file for mini u-boot configuration which runs on a smaller footprint from on chip memory(OCM). This configuration has required CONFIG's enabled to support octal spi flash and uses DCC terminal for console output. Signed-off-by: Ashok Reddy Soma --- co

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

2022-09-30 Thread Ashok Reddy Soma
Add configuration file for mini u-boot configuration which runs on a smaller footprint from on chip memory(OCM). This configuration has required CONFIG's enabled to support qspi flash and uses DCC terminal for console output. Signed-off-by: Ashok Reddy Soma --- MAINTA

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

2022-09-30 Thread Ashok Reddy Soma
Add new configuration files for quad and octal spi flash mini u-boot. With these configs's mini u-boot will run from on chip memory(OCM) and uses DCC terminal for console output. Ashok Reddy Soma (2): arm64: versal: Add qspi flash mini u-boot configuration arm64: versal: Add octal spi

[PATCH 0/3] Read mmc "power-domains" id from DT and use for firmware calls

2022-09-30 Thread Ashok Reddy Soma
ce_id" from all dts files Ashok Reddy Soma (3): mmc: zynq_sdhci: Change node_id prototype to u32 mmc: zynq_sdhci: Read power-domains id from DT and use arm64: dts: Remove unused property device_id arch/arm/dts/versal-mini-emmc0.dts | 1 - arch/arm/dts/versal-mini-emmc1.dts | 1 - arch

[PATCH 1/3] mmc: zynq_sdhci: Change node_id prototype to u32

2022-09-30 Thread Ashok Reddy Soma
In Versal platform power domain node_id is bigger than u8, hence change prototype to u32 to accommodate. Change u8 to u32 in the function prototypes that use node_id and remove casting to u32 from xilinx_pm_request() call parameters. Signed-off-by: Ashok Reddy Soma --- drivers/mmc/zynq_sdhci.c

[PATCH 2/3] mmc: zynq_sdhci: Read power-domains id from DT and use

2022-09-30 Thread Ashok Reddy Soma
t. Replace static node_id with this priv->node_id across the driver. Since "device_id" is not used anywhere else simply remove it. Signed-off-by: Ashok Reddy Soma --- drivers/mmc/zynq_sdhci.c | 39 --- 1 file changed, 20 insertions(+)

[PATCH 3/3] arm64: dts: Remove unused property device_id

2022-09-30 Thread Ashok Reddy Soma
Device tree property "xlnx,device_id" is not used anymore, remove it. Signed-off-by: Ashok Reddy Soma --- arch/arm/dts/versal-mini-emmc0.dts | 1 - arch/arm/dts/versal-mini-emmc1.dts | 1 - arch/arm/dts/zynqmp-mini-emmc0.dts | 1 - arch/arm/dts/zynqmp-mini-emmc1.dts | 1 - ar

[UBOOT PATCH v2] firmware: zynqmp: Skip loading config object for Versal

2022-08-24 Thread Ashok Reddy Soma
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 --- Changes in v2: - Call zynqmp_pmufw_node only for ZynqMP platform. CR-1136452 branch: master-next-test Signed-off-by: Ashok Reddy

[PATCH 0/3] cadence_qspi driver updates

2022-08-24 Thread Ashok Reddy Soma
() before STIG read. Ashok Reddy Soma (3): spi: cadence-qspi: Correct flash reset function name spi: cadence_qspi: Call read_setup for STIG_READ spi: cadence-qspi: Use priv instead of plat across the driver drivers/spi/cadence_ospi_versal.c | 56 drivers/spi/cadence_qspi.c

[PATCH 1/3] spi: cadence-qspi: Correct flash reset function name

2022-08-24 Thread Ashok Reddy Soma
with the same name this issue was not caught. Fix the issue by renaming cadence_spi_versal_flash_reset as cadence_qspi_versal_flash_reset(). Signed-off-by: Ashok Reddy Soma --- drivers/spi/cadence_ospi_versal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/spi

[PATCH 2/3] spi: cadence_qspi: Call read_setup for STIG_READ

2022-08-24 Thread Ashok Reddy Soma
In cadence_spi_read_id we are using STIG mode to read flash id's. Call cadence_qspi_apb_command_read_setup() to setup cmd, addr and data bus width properly before cadence_qspi_apb_command_read(). Signed-off-by: Ashok Reddy Soma --- drivers/spi/cadence_qspi.c | 7 ++- 1 file chang

[PATCH 3/3] spi: cadence-qspi: Use priv instead of plat across the driver

2022-08-24 Thread Ashok Reddy Soma
Reddy Soma --- drivers/spi/cadence_ospi_versal.c | 52 +++ drivers/spi/cadence_qspi.c| 101 +++-- drivers/spi/cadence_qspi.h| 56 +--- drivers/spi/cadence_qspi_apb.c| 231 +++--- 4 files changed, 236 insertions(+), 204 deletions(-) diff

[PATCH] firmware: zynqmp: Skip loading config object for Versal

2022-08-24 Thread Ashok Reddy Soma
SET_CONFIGURATION is not yet implemented for Versal platforms. Skip loading config object for Versal until support is added and load it only for ZYNQMP platforms. Signed-off-by: Ashok Reddy Soma --- drivers/power/domain/zynqmp-power-domain.c | 5 - 1 file changed, 4 insertions(+), 1

[PATCH 0/6] zynqmp_gqspi driver updates

2022-08-25 Thread Ashok Reddy Soma
In this patch series - Add tapdelays for Versal - Add support for IO mode - Fix issue of reading more than 32bits length in DMA - Minor code alignment - Enable zynqmp_gqspi driver for Versal platforms Ashok Reddy Soma (5): spi: zynqmp_gqspi: Add tap delays for Versal spi: zynqmp_gqspi

[PATCH 1/6] spi: zynqmp_gqspi: Add tap delays for Versal

2022-08-25 Thread Ashok Reddy Soma
Add tap delays for Versal platform and re-align the tapdelays code. Signed-off-by: Ashok Reddy Soma --- drivers/spi/zynqmp_gqspi.c | 60 -- 1 file changed, 38 insertions(+), 22 deletions(-) diff --git a/drivers/spi/zynqmp_gqspi.c b/drivers/spi

[PATCH 2/6] arm64: versal: Define zynqmp_mmio_write() for versal

2022-08-25 Thread Ashok Reddy Soma
3: warning: implicit declaration of function 'zynqmp_mmio_write' [-Wimplicit-function-declaration] 378 | zynqmp_mmio_write(IOU_TAPDLY_BYPASS_OFST, Signed-off-by: Michal Simek Signed-off-by: Ashok Reddy Soma --- arch/arm/mach-versal/include/mach/sys_proto.h | 8 1 file c

[PATCH 4/6] spi: zynqmp_gqspi: Fix issue of reading more than 32bits length

2022-08-25 Thread Ashok Reddy Soma
DMA functionality if the requested size is greater than or equal to 512MB to read 256MB chunks. Signed-off-by: Ashok Reddy Soma --- drivers/spi/zynqmp_gqspi.c | 62 -- 1 file changed, 39 insertions(+), 23 deletions(-) diff --git a/drivers/spi/zynqmp_gqspi.c b/drivers/

[PATCH 5/6] spi: zynqmp_qspi: Code alignment

2022-08-25 Thread Ashok Reddy Soma
Few lines are extented to next line though they can fit in 80 character limit, align them to single line. No functional change. Signed-off-by: Ashok Reddy Soma --- drivers/spi/zynqmp_gqspi.c | 18 ++ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/drivers/spi

[PATCH 3/6] spi: zynqmp_gqspi: Add support for IO mode

2022-08-25 Thread Ashok Reddy Soma
Add support for io-mode transfers. This is necessary for UBIFS to work properly with spi-nor devices. The driver will work in IO mode when "has-io-mode" is passed from device tree instead of DMA. Signed-off-by: Ashok Reddy Soma --- drivers/spi/zynqmp_gq

[PATCH 6/6] arm64: versal: Enable zynqmp_gqspi driver

2022-08-25 Thread Ashok Reddy Soma
Versal supports gqspi ip, so enable zynqmp_gqspi driver for Versal platforms. Signed-off-by: Ashok Reddy Soma --- configs/xilinx_versal_virt_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/xilinx_versal_virt_defconfig b/configs/xilinx_versal_virt_defconfig index

[PATCH] usb: Add delay for control messages to reach usb stick

2022-08-25 Thread Ashok Reddy Soma
We are seeing timing issues with transcend usb sticks. These devices seems to require more time than regular devices for the control messages to reach device. Add 1ms delay before sending control message to fix trancend device detection issue. Signed-off-by: Ashok Reddy Soma --- common/usb.c

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

2023-04-12 Thread Ashok Reddy Soma
or nand commands also. Example: ZynqMP> 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-m

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

2023-04-12 Thread Ashok Reddy Soma
ame thing applies for nand commands also. 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 10000 0 ERROR: Invalid size 0 ZynqMP> Signed-off-by: Ashok Reddy Soma -

[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 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 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 0/2] Update mailmap ids

2023-04-23 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 1/2] .mailmap: Sort the mailmap ids in dictionary order

2023-04-23 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 2/2] .mailmap: Map all Xilinx users mail ids to AMD

2023-04-23 Thread Ashok Reddy Soma
: 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 v2 0/2] Update mailmap ids

2023-04-25 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 v2 1/2] .mailmap: Sort the mailmap ids in dictionary order

2023-04-25 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 2/2] .mailmap: Map all Xilinx users mail ids to AMD

2023-04-25 Thread Ashok Reddy Soma
: 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] 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 v3] cmd: sf/nand: Print and return failure when 0 length is passed

2023-05-16 Thread Ashok Reddy Soma
ame thing applies for nand commands also. 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 10000 0 ERROR: Invalid size 0 ZynqMP> Signed-off-by: Ashok Reddy Soma ---

[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] board: xilinx: Add missing prototypes

2023-05-22 Thread Ashok Reddy Soma
evious prototype 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(+)

[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): f

[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 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 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/dri

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

2023-08-10 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

[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 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

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

2023-08-17 Thread Ashok Reddy Soma
tion 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 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 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 5/7] spi: spi-uclass: Read chipselect and restrict capabilities

2023-08-17 Thread Ashok Reddy Soma
g it. Signed-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 file

[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 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] mtd: nand: Mark reserved blocks

2023-01-05 Thread Ashok Reddy Soma
bbt 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

[PATCH v2] mtd: nand: Mark reserved blocks

2023-01-05 Thread Ashok Reddy Soma
bt reserved) 0x1ff40(bbt reserved) 0x1ff80(bbt reserved) 0x1ffc0(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 descripti

[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 va

[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 ++

[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 ---

[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

[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

[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

[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

[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

[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/sdhc

[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

RE: [PATCH 2/2] arm64: zynqmp: Enable seps and related video configs

2021-01-11 Thread Ashok Reddy Soma
Acked-by: Ashok Reddy Soma > -Original Message- > From: Michal Simek On Behalf Of Michal Simek > Sent: Thursday, January 7, 2021 6:56 PM > To: u-boot@lists.denx.de; git ; Simon Glass > > Subject: [PATCH 2/2] arm64: zynqmp: Enable seps and related video configs >

[PATCH 0/7] zynqmp_gqspi driver updates

2021-01-18 Thread Ashok Reddy Soma
>100Mhz for Versal This is resend for the people in CC, as i had trouble with my email server earlier. Ashok Reddy Soma (3): spi: zynqmp_gqspi: Add support for IO mode spi: zynqmp_gqspi: Fix write issues in single mode spi: zynqmp_gqspi: Add tap delays for Versal qspi Siva Durga Pra

[PATCH 2/7] spi: zynqmp_gqspi: DMA transfers should be word aligned

2021-01-18 Thread Ashok Reddy Soma
-off-by: Ashok Reddy Soma --- drivers/spi/zynqmp_gqspi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/spi/zynqmp_gqspi.c b/drivers/spi/zynqmp_gqspi.c index 3e0dbb2c7b..81c5e2b22f 100644 --- a/drivers/spi/zynqmp_gqspi.c +++ b/drivers/spi/zynqmp_gqspi.c @@ -530,10

[PATCH 3/7] spi: zynqmp_gqspi: Add support for IO mode

2021-01-18 Thread Ashok Reddy Soma
Add support for device tree "has-io-mode" flag. The driver will be in IO mode when "has-io-mode" is passed from device tree instead of DMA. Signed-off-by: Ashok Reddy Soma --- drivers/spi/zynqmp_gqspi.c | 140 - 1 file changed, 1

[PATCH 1/7] spi: zynqmp_gqspi: do not round immediate_data field

2021-01-18 Thread Ashok Reddy Soma
which is data_xfer. According to Zynq Ultrascale TRM only DMA transfers should be word aligned. So there is no reason to round up the immediate_data field. Signed-off-by: Wojciech Tatarski Signed-off-by: Tomasz Gorochowik Tested-by: Siva Durga Prasad Paladugu Signed-off-by: Ashok Reddy Soma

[PATCH 4/7] spi: zynqmp_gqspi: Fix tap delay values

2021-01-18 Thread Ashok Reddy Soma
ladugu Signed-off-by: Ashok Reddy Soma --- drivers/spi/zynqmp_gqspi.c | 27 +++ 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/drivers/spi/zynqmp_gqspi.c b/drivers/spi/zynqmp_gqspi.c index ae7b70aa57..136c20f09e 100644 --- a/drivers/spi/zynqmp_gqspi.c +++ b/d

[PATCH 5/7] spi: zynqmp_gqspi: Fix write issues in single mode

2021-01-18 Thread Ashok Reddy Soma
Add dummy write to genfifo register in chipselect. Enable manual start in zynqmp_qspi_fill_gen_fifo(). Also enable GQSPI_IXR_GFNFULL_MASK and check for it instead of GQSPI_IXR_GFEMTY_MASK. Signed-off-by: Ashok Reddy Soma --- drivers/spi/zynqmp_gqspi.c | 16 +++- 1 file changed

[PATCH 6/7] spi: zynqmp_gqspi: Add tap delays for Versal qspi

2021-01-18 Thread Ashok Reddy Soma
This patch adds tap delays for qspi in Versal platform. Use IS_ENABLED() to address for ZynqMP and Versal and re-align the tapdelays code. Signed-off-by: Ashok Reddy Soma --- drivers/spi/zynqmp_gqspi.c | 54 ++ 1 file changed, 37 insertions(+), 17 deletions

[PATCH 7/7] spi: zynqmp_gqspi: Update tapdelay value

2021-01-18 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

RE: [PATCH] net: gem: Fix setting PCS auto-negotiation statee

2021-03-17 Thread Ashok Reddy Soma
Reviewed-by: Ashok Reddy Soma > -Original Message- > From: Michal Simek > Sent: Monday, March 15, 2021 2:38 PM > To: Robert Hancock ; Michal Simek > ; T Karthik Reddy ; Ashok Reddy > Soma > Cc: joe.hershber...@ni.com; rfried@gmail.com; u-boot@lists.denx.de

[PATCH] spi: zynqmp_gqspi: Fix write issue

2021-05-25 Thread Ashok Reddy Soma
Enable manual start in zynqmp_qspi_fill_gen_fifo(). Also enable GQSPI_IXR_GFNFULL_MASK and check for it instead of GQSPI_IXR_GFEMTY_MASK. Add dummy write to genfifo register in chipselect. Signed-off-by: Ashok Reddy Soma --- drivers/spi/zynqmp_gqspi.c | 18 +- 1 file changed

[PATCH 0/2] Add support for 10G/25G to AXI emac driver

2021-06-23 Thread Ashok Reddy Soma
- Cleanup of_to_plat() to access platform data only in it - Copy plat data to priv data in probe function - Add support for 10G/25G to the AXI emac driver - Keep all phy related activity in the driver for 1G only Ashok Reddy Soma (2): net: xilinx: axi_emac: Cleanup of of_to_plat() net

[PATCH 1/2] net: xilinx: axi_emac: Cleanup of of_to_plat()

2021-06-23 Thread Ashok Reddy Soma
There are lot of accesses to priv data in of_to_plat(), which is incorrect. Create a platform data structure and use it in of_to_plat(), then copy all platform data to priv data in probe. Signed-off-by: Ashok Reddy Soma --- drivers/net/xilinx_axi_emac.c | 47

[PATCH 2/2] net: xilinx: axi_emac: Add support for 10G/25G AXI ethernet

2021-06-23 Thread Ashok Reddy Soma
Add support for 10G/25G (XXV) high speed ethernet. This Makes use of the exiting AXI DMA, similar to 1G. Signed-off-by: Alessandro Temil Signed-off-by: Ashok Reddy Soma --- drivers/net/xilinx_axi_emac.c | 162 +- 1 file changed, 118 insertions(+), 44 deletions

[PATCH 1/3] net: ethtool: Add ethernet speed macros for higher speeds

2021-06-23 Thread Ashok Reddy Soma
Add speed macro's for higher ethernet speeds to be used in u-boot networking drivers. Added Macros for speeds 14G, 20G, 25G, 40G, 50G, 56G, 100G and 200G inline with linux. Signed-off-by: Ashok Reddy Soma --- include/linux/ethtool.h | 8 1 file changed, 8 insertions(+) diff --

[PATCH 3/3] xilinx: versal: Enable Xilinx AXI MRMAC

2021-06-23 Thread Ashok Reddy Soma
Enable Xilinx AXI MRMAC for Versal platforms. Signed-off-by: Ashok Reddy Soma --- configs/xilinx_versal_virt_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/xilinx_versal_virt_defconfig b/configs/xilinx_versal_virt_defconfig index f4e9a80728..75feae318e 100644 --- a

  1   2   3   >