RE: [PATCH 0/3] xilinx: Swith platforms to DM_ETH_PHY

2022-05-10 Thread Ashok Reddy Soma
Acked-for-series: Ashok Reddy Soma Thanks, Ashok > -Original Message- > From: U-Boot On Behalf Of Michal Simek > Sent: Tuesday, May 10, 2022 4:56 PM > To: u-boot@lists.denx.de; git > Cc: Joe Hershberger ; Ramon Fried > > Subject: [PATCH 0/3] xilinx: Swith pl

[PATCH] phy: zynqmp: Increase timeout value to 10ms

2022-05-10 Thread Ashok Reddy Soma
Observing psgtr pll timeouts with some usb hubs and devices behind it. Increase timeout to 10ms to take care of it. Signed-off-by: Ashok Reddy Soma --- drivers/phy/phy-zynqmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/phy-zynqmp.c b/drivers/phy/phy

[PATCH 2/5] arm64: versal: Add versal specific cadence ospi driver

2022-05-12 Thread Ashok Reddy Soma
_read() is defined in cadence_ospi_versal driver add a weak function defination in cadence_qspi driver. Signed-off-by: T Karthik Reddy Signed-off-by: Ashok Reddy Soma --- MAINTAINERS | 1 + configs/xilinx_versal_virt_defconfig | 2 + drivers/spi/Kconfig

[PATCH 4/5] spi: cadence_qspi: Enable apb linear mode for apb read & write operations

2022-05-12 Thread Ashok Reddy Soma
. Signed-off-by: T Karthik Reddy Signed-off-by: Ashok Reddy Soma --- arch/arm/mach-versal/include/mach/hardware.h | 4 drivers/spi/cadence_ospi_versal.c| 24 drivers/spi/cadence_qspi.c | 7 ++ drivers/spi/cadence_qspi.h

[PATCH 0/5] Add support for versal specific cadence ospi driver

2022-05-12 Thread Ashok Reddy Soma
This patch series does the following: * Move macros from cadence driver to cadence header file * Add new versal specific cadence ospi driver * Reset qspi flash in when driver probed * Enable/Disable apb linear mode based on dma usage * Fix cadence qspi flash speed programming T Karthik Reddy

[PATCH 1/5] spi: cadence-qspi: move cadence qspi macros to header file

2022-05-12 Thread Ashok Reddy Soma
From: T Karthik Reddy Move all the cadence macros from cadence_qspi_apb.c to cadence_qspi.h file. Signed-off-by: T Karthik Reddy Signed-off-by: Ashok Reddy Soma --- drivers/spi/cadence_qspi.h | 182 + drivers/spi/cadence_qspi_apb.c | 151

[PATCH 5/5] spi: cadence-qspi: Fix programming ospi flash speed

2022-05-12 Thread Ashok Reddy Soma
From: T Karthik Reddy When the requested flash speed is 0, the baudrate division for the requested speed causing drop in the performance. So set the ospi flash to operate at max frequency when requested speed is zero. Signed-off-by: T Karthik Reddy Signed-off-by: Ashok Reddy Soma

[PATCH 3/5] spi: cadence-qspi: reset qspi flash for versal platform

2022-05-12 Thread Ashok Reddy Soma
Signed-off-by: Ashok Reddy Soma --- arch/arm/mach-versal/include/mach/hardware.h | 11 +++ drivers/spi/cadence_ospi_versal.c| 85 drivers/spi/cadence_qspi.c | 15 drivers/spi/cadence_qspi.h | 1 + include/zynqmp_firmware.h

[PATCH] mtd: spi-nor-ids: Add support for flashes tested by xilinx

2022-05-24 Thread Ashok Reddy Soma
: mx25u51245f mx66u1g45g mx66l2g45g MICRON: mt35xl512aba mt35xu01g SPANSION: s70fs01gs_256k SST: sst26wf016b WINBOND: w25q16dw w25q16jv w25q512jv w25q32bv w25h02jv Signed-off-by: Ashok Reddy Soma --- drivers/mtd

[PATCH v4 0/7] Arasan sdhci driver updates

2021-08-02 Thread Ashok Reddy Soma
r why 1ms delay is needed between DLL assert and release - Remove mmc->dev->seq_ and use priv->deviceid instead - Changed return error from -EIO to -ETIMEDOUT in arasan_sdhci_probe() in card detect state stable workaround Ashok Reddy Soma (5): mmc: zynq_sdhci: Return errors from aras

[PATCH v4 3/7] zynqmp_firmware: Add zynqmp firmware related enums

2021-08-02 Thread Ashok Reddy Soma
From: T Karthik Reddy Add enums for pm node id's, pm ioctl id's, tapdelay types, dll reset types Signed-off-by: T Karthik Reddy Signed-off-by: Ashok Reddy Soma --- Changes in v4: - Rebase to latest u-boot-microblaze custodian 'next' branch - Initialized all enum pm_io

[PATCH v4 1/7] mmc: zynq_sdhci: Return errors from arasan_sdhci_set_tapdelay

2021-08-02 Thread Ashok Reddy Soma
Change return type of arasan_sdhci_set_tapdelay() to int, to facilitate returning errors. Get return values from input and output set clock phase functions inside arasan_sdhci_set_tapdelay() and return those errors. Signed-off-by: T Karthik Reddy Signed-off-by: Ashok Reddy Soma Reviewed-by

[PATCH v4 4/7] mmc: zynq_sdhci: Add xilinx_pm_request() method to set tapdelays

2021-08-02 Thread Ashok Reddy Soma
DLL resets in regular flow(EL2). Host driver should explicitly request DLL reset before ITAP (assert DLL) and after OTAP (release DLL) to avoid issues in some cases. Also handle error return where possible. Signed-off-by: T Karthik Reddy Signed-off-by: Ashok Reddy Soma --- (no changes since v3

[PATCH v4 2/7] mmc: sdhci: Change prototype of set_delay to return errors

2021-08-02 Thread Ashok Reddy Soma
set_delay() has return type as void. If there are any errors while setting tapdelay's it won't be able to return them. Change the prototype of set_delay() in sdhci_ops structure and return the errors from wherever it is called. Signed-off-by: Ashok Reddy Soma Reviewed-by: Jae

[PATCH v4 6/7] mmc: zynq_sdhci: Wait till sd card detect state is stable

2021-08-02 Thread Ashok Reddy Soma
nqmp platform should behave the same as Versal, but we did not encounter this issue as of now. So we are fixing it for Versal only. Signed-off-by: T Karthik Reddy Signed-off-by: Ashok Reddy Soma --- (no changes since v2) Changes in v2: - Changed return error from -EIO to -ETIMEDOU

[PATCH v4 5/7] mmc: zynq_sdhci: Move setting tapdelay code to driver

2021-08-02 Thread Ashok Reddy Soma
Move tapdelay function calls to zynq_sdhci.c and make them static inline. zynqmp_tap_delay.h has function prototypes for the functions defined in tap_delays.c, which will not be needed anymore. Remove tap_delays.c and zynqmp_tap_delay.h files. Signed-off-by: Ashok Reddy Soma --- (no changes

[PATCH v4 7/7] mmc: zynq_sdhci: Use set_control_reg from sdhci.c

2021-08-02 Thread Ashok Reddy Soma
Since set_control_reg is available in sdhci.c, use it and remove arasan_sdhci_set_control_reg(). Signed-off-by: Ashok Reddy Soma Reviewed-by: Jaehoon Chung --- (no changes since v1) drivers/mmc/zynq_sdhci.c | 21 + 1 file changed, 1 insertion(+), 20 deletions(-) diff

RE: [PATCH v4 6/7] mmc: zynq_sdhci: Wait till sd card detect state is stable

2021-08-02 Thread Ashok Reddy Soma
HI Jaehoon, > -Original Message- > From: Jaehoon Chung > Sent: Tuesday, August 3, 2021 3:45 AM > To: Ashok Reddy Soma ; u-boot@lists.denx.de > Cc: peng@nxp.com; faiz_ab...@ti.com; s...@chromium.org; > mich...@walle.cc; git ; mon...@monstr.eu; > somaashokre...

[PATCH v5 4/7] mmc: zynq_sdhci: Add xilinx_pm_request() method to set tapdelays

2021-08-02 Thread Ashok Reddy Soma
DLL resets in regular flow(EL2). Host driver should explicitly request DLL reset before ITAP (assert DLL) and after OTAP (release DLL) to avoid issues in some cases. Also handle error return where possible. Signed-off-by: T Karthik Reddy Signed-off-by: Ashok Reddy Soma --- (no changes since v3

[PATCH v5 1/7] mmc: zynq_sdhci: Return errors from arasan_sdhci_set_tapdelay

2021-08-02 Thread Ashok Reddy Soma
Change return type of arasan_sdhci_set_tapdelay() to int, to facilitate returning errors. Get return values from input and output set clock phase functions inside arasan_sdhci_set_tapdelay() and return those errors. Signed-off-by: T Karthik Reddy Signed-off-by: Ashok Reddy Soma Reviewed-by

[PATCH v5 7/7] mmc: zynq_sdhci: Use set_control_reg from sdhci.c

2021-08-02 Thread Ashok Reddy Soma
Since set_control_reg is available in sdhci.c, use it and remove arasan_sdhci_set_control_reg(). Signed-off-by: Ashok Reddy Soma Reviewed-by: Jaehoon Chung --- (no changes since v1) drivers/mmc/zynq_sdhci.c | 21 + 1 file changed, 1 insertion(+), 20 deletions(-) diff

[PATCH v5 3/7] zynqmp_firmware: Add zynqmp firmware related enums

2021-08-02 Thread Ashok Reddy Soma
From: T Karthik Reddy Add enums for pm node id's, pm ioctl id's, tapdelay types, dll reset types Signed-off-by: T Karthik Reddy Signed-off-by: Ashok Reddy Soma --- (no changes since v4) Changes in v4: - Rebase to latest u-boot-microblaze custodian 'next' branch -

[PATCH v5 2/7] mmc: sdhci: Change prototype of set_delay to return errors

2021-08-02 Thread Ashok Reddy Soma
set_delay() has return type as void. If there are any errors while setting tapdelay's it won't be able to return them. Change the prototype of set_delay() in sdhci_ops structure and return the errors from wherever it is called. Signed-off-by: Ashok Reddy Soma Reviewed-by: Jae

[PATCH v5 6/7] mmc: zynq_sdhci: Wait till sd card detect state is stable

2021-08-02 Thread Ashok Reddy Soma
nqmp platform should behave the same as Versal, but we did not encounter this issue as of now. So we are fixing it for Versal only. Signed-off-by: T Karthik Reddy Signed-off-by: Ashok Reddy Soma Reviewed-by: Jaehoon Chung --- Changes in v5: - Added WORKAROUND in comment and elaborated the com

[PATCH v5 0/7] Arasan sdhci driver updates

2021-08-02 Thread Ashok Reddy Soma
parately - Added a debug print in case of error from set_delay() - Added comment for why 1ms delay is needed between DLL assert and release - Remove mmc->dev->seq_ and use priv->deviceid instead - Changed return error from -EIO to -ETIMEDOUT in arasan_sdhci_probe() in card detect st

[PATCH v5 5/7] mmc: zynq_sdhci: Move setting tapdelay code to driver

2021-08-02 Thread Ashok Reddy Soma
Move tapdelay function calls to zynq_sdhci.c and make them static inline. zynqmp_tap_delay.h has function prototypes for the functions defined in tap_delays.c, which will not be needed anymore. Remove tap_delays.c and zynqmp_tap_delay.h files. Signed-off-by: Ashok Reddy Soma --- (no changes

[PATCH 0/2] Xilinx AXI qspi driver enhancements

2022-07-15 Thread Ashok Reddy Soma
In this patch series below support is added - Added mem_ops structure to support exec_op function - Added support_ops function to check controller bus width capabilities. T Karthik Reddy (2): spi: xilinx_spi: Add support for spi memory operations spi: xilinx_spi: Add support ops to axi q

[PATCH 2/2] spi: xilinx_spi: Add support ops to axi qspi driver

2022-07-15 Thread Ashok Reddy Soma
igned-off-by: Ashok Reddy Soma --- drivers/spi/xilinx_spi.c | 46 +++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/drivers/spi/xilinx_spi.c b/drivers/spi/xilinx_spi.c index 09d4b01631..4e9115dafe 100644 --- a/drivers/spi/xilinx_spi.c +++ b/dr

[PATCH 1/2] spi: xilinx_spi: Add support for spi memory operations

2022-07-15 Thread Ashok Reddy Soma
operations. Simplified existing startup_block implementation. Signed-off-by: T Karthik Reddy Signed-off-by: Ashok Reddy Soma --- drivers/spi/xilinx_spi.c | 194 +++ 1 file changed, 116 insertions(+), 78 deletions(-) diff --git a/drivers/spi/xilinx_spi.c b

[PATCH 1/3] reset: zynqmp: Add reset driver support for versal

2022-07-20 Thread Ashok Reddy Soma
sent from respective driver through struct reset_ctl. Signed-off-by: T Karthik Reddy Signed-off-by: Ashok Reddy Soma --- drivers/reset/Kconfig| 6 +++--- drivers/reset/reset-zynqmp.c | 10 +++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/drivers/reset/Kconfig b/dri

[PATCH 0/3] Add reset driver support for ZynqMP and Versal

2022-07-20 Thread Ashok Reddy Soma
This patch series does following things - Add reset driver support for Versal platform - Enable reset driver support for ZynqMP and Versal platforms Ashok Reddy Soma (1): arm64: zynqmp: Enable reset driver Michal Simek (1): arm64: versal: Enable reset driver for versal T Karthik Reddy (1

[PATCH 2/3] arm64: versal: Enable reset driver for versal

2022-07-20 Thread Ashok Reddy Soma
From: Michal Simek Add CONFIG_DM_RESET and CONFIG_RESET_ZYNQMP configs in versal default configuration to enable support for reset driver for versal platform. Signed-off-by: Michal Simek Signed-off-by: T Karthik Reddy Signed-off-by: Ashok Reddy Soma --- configs/xilinx_versal_virt_defconfig

[PATCH 3/3] arm64: zynqmp: Enable reset driver

2022-07-20 Thread Ashok Reddy Soma
Enable reset driver for ZynqMP platforms. This will enable us to reset the IP's using generic reset_assert and reset_deassert calls. Signed-off-by: T Karthik Reddy Signed-off-by: Ashok Reddy Soma --- configs/xilinx_zynqmp_virt_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --

[PATCH] spi: cadence_ospi_versal: Reset ospi controller using reset driver api's

2022-07-20 Thread Ashok Reddy Soma
d-off-by: Ashok Reddy Soma --- arch/arm/mach-versal/include/mach/hardware.h | 1 + drivers/spi/cadence_ospi_versal.c| 29 drivers/spi/cadence_qspi.h | 1 + 3 files changed, 31 insertions(+) diff --git a/arch/arm/mach-versal/include/mach/hardw

[PATCH v2 0/5] Enable power domain driver in ZynqMP and Versal

2022-07-22 Thread Ashok Reddy Soma
onfig loading instead of calling zynqmp_pmufw_load_config_object() Ashok Reddy Soma (5): firmware: zynqmp: Change prototype of zynqmp_pmufw_load_config_object() firmware: zynqmp: Load config overlay for core0 to pmufw arm64: zynqmp: Enable power domain driver mailbox: zynqmp: Move s

[PATCH v2 1/5] firmware: zynqmp: Change prototype of zynqmp_pmufw_load_config_object()

2022-07-22 Thread Ashok Reddy Soma
zynqmp_pmufw_load_config_object() has some error cases and it is better to return those errors. Change prototype of this function to return errors. Signed-off-by: Ashok Reddy Soma --- (no changes since v1) drivers/firmware/firmware-zynqmp.c | 8 +--- include/zynqmp_firmware.h | 2

[PATCH v2 2/5] firmware: zynqmp: Load config overlay for core0 to pmufw

2022-07-22 Thread Ashok Reddy Soma
Try loading pmufw config overlay for core0, if it doesn't return any error it means pmufw is accepting nodes for other IP's. Otherwise dont try to load config object for any other IP, just return from zynqmp_pmufw_node function. Signed-off-by: Ashok Reddy Soma --- Changes in v2: - M

[PATCH v2 3/5] arm64: zynqmp: Enable power domain driver

2022-07-22 Thread Ashok Reddy Soma
Enable power domain driver to configure pmufw config object and request node for all the IP's that are enabled in DT. Signed-off-by: Ashok Reddy Soma --- (no changes since v1) configs/xilinx_zynqmp_virt_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/co

[PATCH v2 4/5] mailbox: zynqmp: Move struct zynqmp_ipi_msg from sys_proto.h

2022-07-22 Thread Ashok Reddy Soma
Mailbox driver might be need for Versal and other future platforms. To remove the dependency, move struct zynqmp_ipi_msg to zynqmp_firmware.h so that mailbox driver compiles for other platforms easily. Signed-off-by: Ashok Reddy Soma --- (no changes since v1) arch/arm/mach-zynqmp/include/mach

[PATCH v2 5/5] arm64: versal: Enable power domain driver and its dependencies

2022-07-22 Thread Ashok Reddy Soma
ff-by: Ashok Reddy Soma --- (no changes since v1) configs/xilinx_versal_virt_defconfig | 4 drivers/mailbox/Kconfig | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/configs/xilinx_versal_virt_defconfig b/configs/xilinx_versal_virt_defconfig index 04199

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

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

2023-01-19 Thread Ashok Reddy Soma
tosh Sagar 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/boa

[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

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

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

[PATCH] clk: versal: Enable only GATE type clocks

2021-09-27 Thread Ashok Reddy Soma
From: T Karthik Reddy Clocks should be enabled or disabled only if they are of GATE type clocks. If they are not of GATE type clocks, don't touch them. Signed-off-by: T Karthik Reddy Signed-off-by: Ashok Reddy Soma --- drivers/clk/clk_versal.c | 5 - 1 file changed, 4 insertions(

[PATCH 0/2] Add basic window watchdog mode support

2021-09-27 Thread Ashok Reddy Soma
it by loading mininum possible count in wdt window so that it expires immediately. Ashok Reddy Soma (2): watchdog: versal: Add support for basic window watchdog watchdog: versal: Add support for expire now drivers/watchdog/xilinx_wwdt.c | 100 + 1 file

[PATCH 1/2] watchdog: versal: Add support for basic window watchdog

2021-09-27 Thread Ashok Reddy Soma
watchdog. Timeout value for xlnx_wwdt_start will come in milli seconds from wdt framework. Make changes to load count value accordingly. Add checks before loading the timer for min and max possible values. Fix authour email id of Ashok Reddy Soma to long email id. Signed-off-by: Ashok Reddy Soma

[PATCH 2/2] watchdog: versal: Add support for expire now

2021-09-27 Thread Ashok Reddy Soma
Wdt expire command makes the wdt to count least possible ticks(1) and expires immediately. Add expire_now option to the xlnx_wwdt_ops and implement it by calling xlnx_wwdt_start() with minimum possible count(1). Signed-off-by: Ashok Reddy Soma --- drivers/watchdog/xilinx_wwdt.c | 6 ++ 1

[PATCH] spi: zynqmp_gqspi: Fix write issue at low frequencies

2021-10-19 Thread Ashok Reddy Soma
zynqmp_qspi_fill_tx_fifo(). Signed-off-by: Ashok Reddy Soma --- drivers/spi/zynqmp_gqspi.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/spi/zynqmp_gqspi.c b/drivers/spi/zynqmp_gqspi.c index 2db4ae20f1..c772bae3cc 100644 --- a/drivers/spi

RE: [RFC PATCH] spi: spi-nor: Add dual flash support in spi-nor framework

2019-12-03 Thread Ashok Reddy Soma
HI Jagan, Vignesh, Any comments please. Thanks, Ashok > -Original Message- > From: Michal Simek > Sent: Tuesday, November 26, 2019 12:40 PM > To: Ashok Reddy Soma ; u-boot@lists.denx.de; > ja...@amarulasolutions.com; vigne...@ti.com > Cc: Michal Simek > Subject

RE: [RFC PATCH] spi: spi-nor: Add dual flash support in spi-nor framework

2019-12-04 Thread Ashok Reddy Soma
Wednesday, December 4, 2019 3:36 PM > To: Ashok Reddy Soma ; u-boot@lists.denx.de; > ja...@amarulasolutions.com > Cc: Michal Simek > Subject: Re: [RFC PATCH] spi: spi-nor: Add dual flash support in spi-nor > framework > > Hi, > > On 26/11/19 12:39 pm, Michal Simek wrote: >

RE: [PATCH v2 5/8] mmc: zynq_sdhci: Set tapdelays based on clk phase delays

2020-10-26 Thread Ashok Reddy Soma
Hi Jaehoon, > -Original Message- > From: Jaehoon Chung > Sent: Monday, October 26, 2020 3:19 PM > To: Michal Simek ; u-boot@lists.denx.de; git > > Cc: Ashok Reddy Soma ; Peng Fan > > Subject: Re: [PATCH v2 5/8] mmc: zynq_sdhci: Set tapdelays based on clk phase

[PATCH 2/4] spi: zynq_qspi: Read only one byte at a time from txbuf

2022-01-30 Thread Ashok Reddy Soma
-off-by: Michal Simek Signed-off-by: Ashok Reddy Soma --- drivers/spi/zynq_qspi.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/spi/zynq_qspi.c b/drivers/spi/zynq_qspi.c index 34d39d66fb..aa060d7940 100644 --- a/drivers/spi/zynq_qspi.c +++ b/drivers/spi

[PATCH 0/4] Zynq qspi updates

2022-01-30 Thread Ashok Reddy Soma
This patch series does below updates to zynq qspi driver. 1. Fix typecast to rxbuf in zynq_qspi_read_data() 2. Fix data abort issue incase of un-aligned writes 3. Add a check for baudrate and if not in limits set to default 4. Add zynq_qspi_exec_op() to avoid spi_mem_exec_op() from spi-mem frame

[PATCH 1/4] spi: zynq_qspi: Typecast rxbuf properly

2022-01-30 Thread Ashok Reddy Soma
From: Siva Durga Prasad Paladugu This patch typecasts and accesses rx buf properly as an unaligned rxbuf, typecasting with u16 and accessing it causes data abort exception and this patch fixes it. Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek Signed-off-by: Ashok Reddy

[PATCH 3/4] spi: zynq_qspi: Add a check for baudrate and set default if not in limits

2022-01-30 Thread Ashok Reddy Soma
From: Siva Durga Prasad Paladugu Add a check afer baudrate calculation to see if the resultant value falls within the range, else set it to default baudrate value. Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Ashok Reddy Soma --- drivers/spi/zynq_qspi.c | 6 ++ 1 file

[PATCH 4/4] spi: zynq_qspi: Add SPI memory operations to zynq qspi

2022-01-30 Thread Ashok Reddy Soma
From: T Karthik Reddy Spi memory operation interface is added to zynq qspi driver to provide an high-level interface to execute qspi controller specific memory operations by avoiding spi_mem_exec_op() from spi-mem framework. Signed-off-by: T Karthik Reddy Signed-off-by: Ashok Reddy Soma

[RFC PATCH] mtd: spi-nor-core: Set dummy buswidth equal to data buswidth

2022-02-18 Thread Ashok Reddy Soma
est on your board and give feedback. 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 a70fbda4bb..6849da9113 100644 --- a/drivers/mtd/spi/s

[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 arch/arm/mach-versal/include/mac

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

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

2023-06-09 Thread Ashok Reddy Soma
evious prototype 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(+

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

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

[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

[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

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

2023-06-09 Thread Ashok Reddy Soma
Signed-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

[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 6/6] xilinx: zynq: Add the missing function prototypes

2023-06-09 Thread Ashok Reddy Soma
ed-off-by: Algapally 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/

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

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

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

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

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

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

2023-06-14 Thread Ashok Reddy Soma
ed-off-by: Algapally 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.

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

2023-06-14 Thread Ashok Reddy Soma
Signed-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

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

2023-06-14 Thread Ashok Reddy Soma
source ${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/x

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

<    1   2   3