[PATCH] ufs: amd-versal2: Configure RMMI and M-PHY registers for HS mode

2025-07-23 Thread Venkatesh Yadav Abbarapu
he LS PMC. Signed-off-by: Venkatesh Yadav Abbarapu --- drivers/ufs/ufs-amd-versal2.c | 112 ++ drivers/ufs/ufs.c | 15 + drivers/ufs/ufs.h | 3 + drivers/ufs/ufshcd-dwc.h | 3 + 4 files changed, 133 insertions(+) diff --

[PATCH] net: xilinx: Fix kernel-doc for axi_mrmac function parameters

2025-07-16 Thread Venkatesh Yadav Abbarapu
'axi_mrmac_recv' drivers/net/xilinx_axi_mrmac.c:411: warning: Function parameter or member 'length' not described in 'axi_mrmac_free_pkt' Signed-off-by: Venkatesh Yadav Abbarapu --- drivers/net/xilinx_axi_mrmac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletion

[PATCH] gpio: zynq: Fix the documentation warning in zynq_gpio_get_bank_pin

2025-07-16 Thread Venkatesh Yadav Abbarapu
iption for the 'dev' parameter to satisfy the documentation requirements and improve code clarity for this function. Signed-off-by: Venkatesh Yadav Abbarapu --- drivers/gpio/zynq_gpio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpio/zynq_gpio.c b/drivers/gpio/zynq_gpio

[PATCH v2] arm64: versal2: Remove the ZynqMP Firmware from mini ospi

2025-07-07 Thread Venkatesh Yadav Abbarapu
Remove the config ZYNQMP_FIRMWARE and also update the initial stack address. Signed-off-by: Venkatesh Yadav Abbarapu --- Changes in v2: - Remove the config FIRMWARE as well. --- configs/amd_versal2_mini_ospi_defconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configs

[PATCH] xilinx: zynqmp: disable CONFIG_SPI_FLASH_BAR

2025-07-06 Thread Venkatesh Yadav Abbarapu
CONFIG_SPI_FLASH_BAR is disabled, the device will use a 4-byte addressing mode. Signed-off-by: Prasad Kummari Signed-off-by: Venkatesh Yadav Abbarapu --- configs/xilinx_zynqmp_virt_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/configs/xilinx_zynqmp_virt_defconfig b/configs

[PATCH] config: amd: Enable the SPI_STACKED_PARALLEL config option

2025-07-06 Thread Venkatesh Yadav Abbarapu
Enable the SPI_STACKED_PARALLEL config option for AMD versal2 platform, as this is required for parallel and stacked memories. Signed-off-by: Venkatesh Yadav Abbarapu --- configs/amd_versal2_virt_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/amd_versal2_virt_defconfig b

[PATCH] arm64: versal2: Remove the ZynqMP Firmware from mini ospi

2025-07-06 Thread Venkatesh Yadav Abbarapu
Remove the config ZYNQMP_FIRMWARE and also update the initial stack address. Signed-off-by: Venkatesh Yadav Abbarapu --- configs/amd_versal2_mini_ospi_defconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configs/amd_versal2_mini_ospi_defconfig b/configs

[PATCH 2/2] arm64: versal2: Do not define do_reset() if sysreset is enabled

2025-07-06 Thread Venkatesh Yadav Abbarapu
If sysreset is enabled reset_cpu is defined in sysreset uclass that's why it can't be in platform/board code. Signed-off-by: Venkatesh Yadav Abbarapu --- board/amd/versal2/board.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/amd/versal2/board.c b/board/amd/versal2/boa

[PATCH 1/2] arm64: versal2: Enable reset and poweroff via sysreset framework

2025-07-06 Thread Venkatesh Yadav Abbarapu
reset and poweroff are called via hooks in psci driver which is going around sysreset framework that's why enable sysreset drivers and do reset and poweroff via this framework. Signed-off-by: Venkatesh Yadav Abbarapu --- configs/amd_versal2_virt_defconfig | 3 +++ 1 file changed, 3 inser

[PATCH 0/2] versal2: Enable reset and poweroff

2025-07-06 Thread Venkatesh Yadav Abbarapu
Enable reset and poweroff via sysreset framework. Venkatesh Yadav Abbarapu (2): arm64: versal2: Enable reset and poweroff via sysreset framework arm64: versal2: Do not define do_reset() if sysreset is enabled board/amd/versal2/board.c | 2 ++ configs/amd_versal2_virt_defconfig | 3

[PATCH] config: versal2: Update timer clock to 100Mhz

2025-07-04 Thread Venkatesh Yadav Abbarapu
U-Boot timer clock is not updated when it is migrated from emulator to silicon. Update CONFIG_COUNTER_FREQUENCY to 100Mhz. Signed-off-by: Venkatesh Yadav Abbarapu --- configs/amd_versal2_virt_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs

[PATCH] common: memtop: Update the MEM_RGN_COUNT macro to 64

2025-07-04 Thread Venkatesh Yadav Abbarapu
Crashes are occurring due to the number of reserved memory regions exceeding the current maximum limit of 16. It is recommended to increase the supported number of memory regions to 64, as newer platforms may utilize more reserved regions. Signed-off-by: Venkatesh Yadav Abbarapu --- common

[PATCH v2] spi: cadence_qspi: Fix odd byte write issue in STIG mode

2025-07-03 Thread Venkatesh Yadav Abbarapu
umkar Signed-off-by: Venkatesh Yadav Abbarapu --- Changes in v2: -Modified the logic from using modulus and changed to use "logical and" operator to check the odd bytes. --- drivers/spi/cadence_qspi_apb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/spi/cadence_qs

[PATCH] spi: cadence_qspi: Set tshsl_ns to at least one sclk_ns

2025-07-02 Thread Venkatesh Yadav Abbarapu
period. That is why tshsl_ns delay should be at least one sclk_ns value. If it is less than sclk_ns, set it equal to sclk_ns. Signed-off-by: Ashok Reddy Soma Signed-off-by: Venkatesh Yadav Abbarapu --- drivers/spi/cadence_qspi_apb.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers

[PATCH] cadence_qspi: fix odd byte read issue in STIG mode

2025-07-01 Thread Venkatesh Yadav Abbarapu
Signed-off-by: Venkatesh Yadav Abbarapu --- drivers/spi/cadence_ospi_versal.c | 12 +++- drivers/spi/cadence_qspi.h| 4 +++- drivers/spi/cadence_qspi_apb.c| 6 +++--- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/drivers/spi/cadence_ospi_versal.c b/drivers/spi

[PATCH] spi: cadence_qspi: Fix odd byte write issue in STIG mode

2025-07-01 Thread Venkatesh Yadav Abbarapu
umkar Signed-off-by: Venkatesh Yadav Abbarapu --- drivers/spi/cadence_qspi_apb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/spi/cadence_qspi_apb.c b/drivers/spi/cadence_qspi_apb.c index b579699d2eb..c38bb523806 100644 --- a/drivers/spi/cadence_qspi_apb.c +++ b/drivers/spi/cade

[PATCH] mmc: zynq_sdhci: Add emmc hardware reset

2025-06-30 Thread Venkatesh Yadav Abbarapu
Add support for emmc hardware reset for the emmc card, trigger this hardware reset at the end of arasan_sdhci_probe() function. Signed-off-by: Venkatesh Yadav Abbarapu --- drivers/mmc/zynq_sdhci.c | 25 - 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a

[PATCH v2] mmc: zynq_sdhci: Reset the host controller

2025-06-25 Thread Venkatesh Yadav Abbarapu
Reset the host controller at the early stage of probe so that the configuration will be done properly for reboot cases. Signed-off-by: Venkatesh Yadav Abbarapu --- Changes in v2: - Reset is optional, so don't return if reset property is not found from the device tree. --- driver

[PATCH] mmc: zynq_sdhci: Reset the host controller

2025-06-24 Thread Venkatesh Yadav Abbarapu
Reset the host controller at the early stage of probe so that the configuration will be done properly for reboot cases. Signed-off-by: Venkatesh Yadav Abbarapu --- drivers/mmc/zynq_sdhci.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/mmc/zynq_sdhci.c b

[PATCH v2] i2c: mux: Fix the crash when the i2c-arbitrator node is present

2025-06-23 Thread Venkatesh Yadav Abbarapu
y exists then read the "reg" and update the channel. https://www.kernel.org/doc/Documentation/devicetree/bindings/i2c/i2c-arb.txt Signed-off-by: Venkatesh Yadav Abbarapu --- Changes in v2: - Return immediately if "reg" property is missing for arbitrator case. --- drivers/i2c/

[PATCH] i2c: mux: Fix the crash when the i2c-arbitrator node is present

2025-05-27 Thread Venkatesh Yadav Abbarapu
y exists then read the "reg" and update the channel. https://www.kernel.org/doc/Documentation/devicetree/bindings/i2c/i2c-arb.txt Signed-off-by: Venkatesh Yadav Abbarapu --- drivers/i2c/muxes/i2c-mux-uclass.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git

[PATCH] pci: zynqmp: Fix the pcireg base

2025-05-16 Thread Venkatesh Yadav Abbarapu
The pcireg base is not assigned to any address, reading the pcireg base with PS_LINKUP_OFFSET which is incorrect and giving random values. So update the pcireg base from devicetree so that we can read the valid PCIE link status and PHY ready status. Signed-off-by: Venkatesh Yadav Abbarapu

[PATCH] spi: cadence_qspi: Disable the DAC mode in indirect read

2025-04-29 Thread Venkatesh Yadav Abbarapu
Hang has been observed on QEMU, as it starts with indac read and fills sram, but after dma is triggered, it tries dac read instead (based on priority) which gets blocked. Disable the DAC mode in indirect DMA read and enable back for writes as DAC mode is used. Signed-off-by: Venkatesh Yadav

[PATCH] amd: versal2: Add support for saving env based on bootmode

2025-04-11 Thread Venkatesh Yadav Abbarapu
Enable saving variables to MMC(FAT) and SPI based on primary bootmode. If bootmode is JTAG, dont save env anywhere(NOWHERE). Enable ENV_FAT_DEVICE_AND_PART="0:auto" for Versal Gen2 platform. Signed-off-by: Venkatesh Yadav Abbarapu --- board/amd/versal2/board.c

[PATCH] arm64: versal2: Update the number of DRAM banks to 36

2025-04-10 Thread Venkatesh Yadav Abbarapu
CONFIG_NR_DRAM_BANKS to 36. Signed-off-by: Venkatesh Yadav Abbarapu --- configs/amd_versal2_virt_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/amd_versal2_virt_defconfig b/configs/amd_versal2_virt_defconfig index 9911caa0e46..59a817a2a85 100644 --- a/configs

[PATCH] mtd: spi-nor: Add NO_CHIP_ERASE flag for mt35xu01g/2g

2025-03-27 Thread Venkatesh Yadav Abbarapu
Since the opcode SPINOR_OP_CHIP_ERASE (0xc7) is not supported for the mt35xu01g/2g flashes, the NO_CHIP_ERASE flag has been added to enable sector erase functionality instead. Signed-off-by: Venkatesh Yadav Abbarapu --- drivers/mtd/spi/spi-nor-ids.c | 9 ++--- 1 file changed, 6 insertions

[PATCH v2] spi: cadence_ospi: Add device reset via OSPI controller

2025-03-10 Thread Venkatesh Yadav Abbarapu
Add support for flash device reset via OSPI controller instead of using GPIO, as OSPI IP has device reset feature on Versal Gen2 platform. Also add compatible string for Versal Gen2 platform. Signed-off-by: Venkatesh Yadav Abbarapu --- Changes in v2: - Fixed the compilation issue for

[RFC PATCH] UFS: Remove the timeout while send command

2025-02-26 Thread Venkatesh Yadav Abbarapu
ff-by: Venkatesh Yadav Abbarapu --- drivers/ufs/ufs.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/ufs/ufs.c b/drivers/ufs/ufs.c index f7d8c40c448..c3acbd709e7 100644 --- a/drivers/ufs/ufs.c +++ b/drivers/ufs/ufs.c @@ -858,7 +858,6 @@ static int ufshcd_comp_devman_upiu(struct ufs_hba

[PATCH v2] amd: versal2: Add the UFS boot mode support

2025-02-24 Thread Venkatesh Yadav Abbarapu
Add the UFS boot mode support and update the boot_targets with ufs mode. If the UFS device is not accessible from APU and running this is detected as a warning, as the device is not accessible. Signed-off-by: Venkatesh Yadav Abbarapu --- Changes in v2: - Use uclass_get_device() with index 0, as

[PATCH] amd: versal2: Add the UFS boot mode support

2025-02-23 Thread Venkatesh Yadav Abbarapu
Add the UFS boot mode support and update the boot_targets with ufs mode. If the UFS device is not accessible from APU and running this is detected as a warning, as the device is not accessible. Signed-off-by: Venkatesh Yadav Abbarapu --- arch/arm/mach-versal2/include/mach/hardware.h | 1

[UBOOT PATCH] spi: spi-uclass: Fix reduced read speed when parallel config is enabled

2025-02-21 Thread Venkatesh Yadav Abbarapu
on has been added to check the return value of reg. If it is nonzero, the function prints an error message and returns. Otherwise, it proceeds to read the spi-max-frequency property from the device tree. Signed-off-by: Prasad Kummari Signed-off-by: Venkatesh Yadav Abbarapu --- drivers/spi/spi-uc

[UBOOT PATCH] xilinx: versal: Add firmware access to CRP Boot mode register

2025-02-21 Thread Venkatesh Yadav Abbarapu
Kummari Signed-off-by: Venkatesh Yadav Abbarapu --- board/xilinx/versal-net/board.c| 7 ++- board/xilinx/versal/board.c| 7 ++- drivers/firmware/firmware-zynqmp.c | 23 +++ include/zynqmp_firmware.h | 4 4 files changed, 39 insertions(+), 2

[PATCH] spi: cadence_ospi: Add device reset via OSPI controller

2025-02-20 Thread Venkatesh Yadav Abbarapu
Add support for flash device reset via OSPI controller instead of using GPIO, as OSPI IP has device reset feature on Versal Gen2 platform. Also add compatible string for Versal Gen2 platform. Signed-off-by: Venkatesh Yadav Abbarapu --- drivers/spi/cadence_ospi_versal.c | 19

[PATCH] amd: versal2: Enable reset and power domain drivers

2025-02-06 Thread Venkatesh Yadav Abbarapu
Enable power domain driver to request node for all the IP's that are enabled in DT. Add CONFIG_RESET_ZYNQMP config in versal2 default configuration to enable support for reset driver for versal2 platform. Signed-off-by: Venkatesh Yadav Abbarapu --- configs/amd_versal2_virt_defconfig | 2

[PATCH] clk: versal: Update the reference clocks as per bindings

2025-02-06 Thread Venkatesh Yadav Abbarapu
As per the bindings the reference clocks naming has changed from "pl_alt_ref_clk" to "pl_alt_ref" and "ref_clk" to "ref". Update the same in the clock driver. Also add the fallback option for older DT bindings. Signed-off-by: Venkatesh Yadav Abba

[PATCH] spi: cadence_qspi: Add missing prototype for cadence_qspi_flash_reset

2025-01-22 Thread Venkatesh Yadav Abbarapu
Add missing prototype to fix the sparse warning, warning: no previous prototype for 'cadence_qspi_flash_reset' [-Wmissing-prototypes]. Fixes: 6d234a79e9 ("cadence_qspi: Refactor the flash reset functionality") Signed-off-by: Venkatesh Yadav Abbarapu --- drivers/spi/cadence_q

[PATCH] arm64: versal2: Enable the OPTEE command

2025-01-16 Thread Venkatesh Yadav Abbarapu
Enable the command OPTEE which runs the basic 'hello world ta'. Signed-off-by: Venkatesh Yadav Abbarapu --- configs/amd_versal2_virt_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/amd_versal2_virt_defconfig b/configs/amd_versal2_virt_defconfig index b

[PATCH] xilinx: Enable support for Infineon Octal flashes

2025-01-15 Thread Venkatesh Yadav Abbarapu
Added support for Infineon Octal flash components on the Versal and Versal Net platforms. Signed-off-by: Tejas Bhumkar Signed-off-by: Venkatesh Yadav Abbarapu --- configs/xilinx_versal_net_virt_defconfig | 1 + configs/xilinx_versal_virt_defconfig | 1 + 2 files changed, 2 insertions

[PATCH v2] board: xilinx: Add missing prototype for set_dfu_alt_info

2025-01-06 Thread Venkatesh Yadav Abbarapu
Add missing prototype to fix the sparse warning, warning: no previous prototype for 'set_dfu_alt_info' [-Wmissing-prototypes]. Signed-off-by: Venkatesh Yadav Abbarapu --- Changes in v2: - Include dfu.h and remove the set_dfu_alt_info declaration from board.h. --- board/xilinx/versal/b

[PATCH v2] config: xilinx: Enable the SPI_STACKED_PARALLEL config option

2025-01-02 Thread Venkatesh Yadav Abbarapu
Enable the SPI_STACKED_PARALLEL config option for all AMD/xilinx platforms, as this is required for parallel and stacked memories. Signed-off-by: Venkatesh Yadav Abbarapu --- Changes in v2: - Updated the SPI_STACKED_PARALLEL config for zynq. --- configs/amd_versal2_mini_qspi_defconfig | 1

[PATCH] board: xilinx: Add missing prototype for set_dfu_alt_info

2025-01-01 Thread Venkatesh Yadav Abbarapu
Add missing prototype to fix the sparse warning, warning: no previous prototype for 'set_dfu_alt_info' [-Wmissing-prototypes]. Signed-off-by: Venkatesh Yadav Abbarapu --- board/xilinx/common/board.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/xilinx/common/board.h b/bo

[PATCH v6] mtd: spi-nor: Fix the spi_nor_read() when config SPI_STACKED_PARALLEL is enabled

2024-12-29 Thread Venkatesh Yadav Abbarapu
: 5d40b3d384 ("mtd: spi-nor: Add parallel and stacked memories support") Signed-off-by: Venkatesh Yadav Abbarapu --- Changes in v2: - Update the nor read for parallel configuration and for other case keep the code as is. - Fixed the commit description. - Tested the changes with s25fl128s f

[PATCH v5] mtd: spi-nor: Fix the spi_nor_read() when config SPI_STACKED_PARALLEL is enabled

2024-12-26 Thread Venkatesh Yadav Abbarapu
the size when the configuration is stacked. Fixes: 5d40b3d384 ("mtd: spi-nor: Add parallel and stacked memories support") Signed-off-by: Venkatesh Yadav Abbarapu --- Changes in v2: - Update the nor read for parallel configuration and for other case keep the code as is. - Fixed

[PATCH v4] mtd: spi-nor: Fix the spi_nor_read() when config SPI_STACKED_PARALLEL is enabled

2024-12-24 Thread Venkatesh Yadav Abbarapu
the size when the configuration is stacked. Fixes: 5d40b3d384 ("mtd: spi-nor: Add parallel and stacked memories support") Signed-off-by: Venkatesh Yadav Abbarapu --- Changes in v2: - Update the nor read for parallel configuration and for other case keep the code as is. - Fixed

[PATCH v3] mtd: spi-nor: Fix the spi_nor_read() when config SPI_STACKED_PARALLEL is enabled

2024-12-20 Thread Venkatesh Yadav Abbarapu
banks only when the address width is 3byte. Also update the size when the configuration is stacked. Fixes: 5d40b3d384 ("mtd: spi-nor: Add parallel and stacked memories support") Signed-off-by: Venkatesh Yadav Abbarapu Tested-by: Jonathan Humphreys --- Changes in v2: - Update the no

[PATCH] config: xilinx: Enable the SPI_STACKED_PARALLEL config option

2024-12-20 Thread Venkatesh Yadav Abbarapu
Enable the SPI_STACKED_PARALLEL config option for all AMD/xilinx platforms, as this is required for parallel and stacked memories. Signed-off-by: Venkatesh Yadav Abbarapu --- configs/amd_versal2_mini_qspi_defconfig | 1 + configs/xilinx_versal_mini_qspi_defconfig | 1 + configs

[PATCH v2] common: memtop: Fix the return type for find_ram_top

2024-12-19 Thread Venkatesh Yadav Abbarapu
As the return type is "int" for find_ram_top() function and returning the "base" which is of phys_addr_t is breaking when the "base" address is 64-bit. So fix this by updating the return type as phys_addr_t. Signed-off-by: Venkatesh Yadav Abbarapu Reviewed-by: M

[PATCH] common: memtop: Fix the return type for find_ram_top

2024-12-19 Thread Venkatesh Yadav Abbarapu
As the return type is "int" for find_ram_top() function and returning the "base" which is of phys_addr_t is breaking when the "base" address is 64-bit. So fix this by updating the return type as phys_addr_t. Signed-off-by: Venkatesh Yadav Abbarapu --- common/memt

[PATCH v6 2/2] doc: man-page for optee commands

2024-12-18 Thread Venkatesh Yadav Abbarapu
Provide a man-page for the optee command. Signed-off-by: Venkatesh Yadav Abbarapu Reviewed-by: Heinrich Schuchardt Reviewed-by: Jerome Forissier --- doc/usage/cmd/optee.rst | 70 + doc/usage/index.rst | 1 + 2 files changed, 71 insertions

[PATCH v6 1/2] cmd: Add support for optee commands

2024-12-18 Thread Venkatesh Yadav Abbarapu
mented. optee hello ; value to increment via OP-TEE HELLO WORLD TA. To enable the OP-TEE side HELLO WORLD example please refer https://optee.readthedocs.io/en/latest/building/gits/optee_examples/optee_examples.html Signed-off-by: Venkatesh Yadav Abbarapu Reviewed-by: Jerome Forissier --- cmd/Kconfig

[PATCH v6 0/2] cmd: Add support for optee commands.

2024-12-18 Thread Venkatesh Yadav Abbarapu
he hello_world_ta_open_session() and included in the hello_world_ta() itself. Changes in v5: - Updated the printf statements. - Fixed the description for doc usage. Changes in v6: - Updated the command help. - Fixed the typo in the optee doc. Venkatesh Yadav Abbarapu (2): cmd: Add support for opte

[PATCH v5 1/2] cmd: Add support for optee commands

2024-12-17 Thread Venkatesh Yadav Abbarapu
mented. optee hello ; value to increment via OP-TEE HELLO WORLD TA. To enable the OP-TEE side HELLO WORLD example please refer https://optee.readthedocs.io/en/latest/building/gits/optee_examples/optee_examples.html Signed-off-by: Venkatesh Yadav Abbarapu --- cmd/Kconfig | 6 + cmd/Make

[PATCH v5 2/2] doc: man-page for optee commands

2024-12-17 Thread Venkatesh Yadav Abbarapu
Provide a man-page for the optee command. Signed-off-by: Venkatesh Yadav Abbarapu Reviewed-by: Heinrich Schuchardt --- doc/usage/cmd/optee.rst | 70 + doc/usage/index.rst | 1 + 2 files changed, 71 insertions(+) create mode 100644 doc/usage/cmd

[PATCH v5 0/2] cmd: Add support for optee commands.

2024-12-17 Thread Venkatesh Yadav Abbarapu
he hello_world_ta_open_session() and included in the hello_world_ta() itself. Changes in v5: - Updated the printf statements. - Fixed the description for doc usage. Venkatesh Yadav Abbarapu (2): cmd: Add support for optee commands doc: man-page for optee commands cmd/Kconfig | 6

[PATCH v4 2/2] doc: man-page for optee commands

2024-12-16 Thread Venkatesh Yadav Abbarapu
Provide a man-page for the optee command. Signed-off-by: Venkatesh Yadav Abbarapu --- doc/usage/cmd/optee.rst | 66 + doc/usage/index.rst | 1 + 2 files changed, 67 insertions(+) create mode 100644 doc/usage/cmd/optee.rst diff --git a/doc/usage/cmd

[PATCH v4 1/2] cmd: Add support for optee commands

2024-12-16 Thread Venkatesh Yadav Abbarapu
mented. optee hello ; value to increment via OP-TEE HELLO WORLD TA. To enable the OP-TEE side HELLO WORLD example please refer https://optee.readthedocs.io/en/latest/building/gits/optee_examples/optee_examples.html Signed-off-by: Venkatesh Yadav Abbarapu --- cmd/Kconfig | 6 cmd/Make

[PATCH v4 0/2] cmd: Add support for optee commands.

2024-12-16 Thread Venkatesh Yadav Abbarapu
he hello_world_ta_open_session() and included in the hello_world_ta() itself. Venkatesh Yadav Abbarapu (2): cmd: Add support for optee commands doc: man-page for optee commands cmd/Kconfig | 6 cmd/Makefile| 1 + cmd/optee.c | 77 ++

[PATCH v3 2/2] doc: man-page for optee commands

2024-12-16 Thread Venkatesh Yadav Abbarapu
Provide a man-page for the optee command. Signed-off-by: Venkatesh Yadav Abbarapu --- doc/usage/cmd/optee.rst | 66 + doc/usage/index.rst | 1 + 2 files changed, 67 insertions(+) create mode 100644 doc/usage/cmd/optee.rst diff --git a/doc/usage/cmd

[PATCH v3 0/2] cmd: Add support for optee commands.

2024-12-16 Thread Venkatesh Yadav Abbarapu
and "optee" and subdommand "hello". - Update the man-page in doc/usage/cmd/optee.rst Changes in v3: - Rename the config from OPTEE_HELLO_WORLD_TA to CMD_OPTEE. - Rename the file from optee_hello_world_ta.c to optee.c - Add the hextoul from dectoul. Venkatesh Yadav Abbarapu (2)

[PATCH v3 1/2] cmd: Add support for optee commands

2024-12-16 Thread Venkatesh Yadav Abbarapu
mented. optee hello ; value to increment via OP-TEE HELLO WORLD TA. To enable the OP-TEE side HELLO WORLD example please refer https://optee.readthedocs.io/en/latest/building/gits/optee_examples/optee_examples.html Signed-off-by: Venkatesh Yadav Abbarapu --- cmd/Kconfig | 6 cmd/Make

[PATCH v2 2/2] doc: man-page for optee commands

2024-12-13 Thread Venkatesh Yadav Abbarapu
Provide a man-page for the optee command. Signed-off-by: Venkatesh Yadav Abbarapu --- doc/usage/cmd/optee.rst | 75 + doc/usage/index.rst | 1 + 2 files changed, 76 insertions(+) create mode 100644 doc/usage/cmd/optee.rst diff --git a/doc/usage/cmd

[PATCH v2 1/2] cmd: Add support for optee hello world ta command

2024-12-13 Thread Venkatesh Yadav Abbarapu
LD example please refer https://optee.readthedocs.io/en/latest/building/gits/optee_examples/optee_examples.html Signed-off-by: Venkatesh Yadav Abbarapu --- cmd/Kconfig| 8 +++ cmd/Makefile | 1 + cmd/optee_hello_world_ta.c | 104

[PATCH v2 0/2] cmd: Add support for optee hello world ta command

2024-12-13 Thread Venkatesh Yadav Abbarapu
quot;optee" and subdommand "hello". - Update the man-page in doc/usage/cmd/optee.rst Venkatesh Yadav Abbarapu (2): cmd: Add support for optee hello world ta command doc: man-page for optee commands cmd/Kconfig| 8 +++ cmd/Makefile | 1 + cm

[PATCH] cmd: Add support for optee hello world ta command

2024-12-12 Thread Venkatesh Yadav Abbarapu
ELLO WORLD example please refer https://optee.readthedocs.io/en/latest/building/gits/optee_examples/optee_examples.html Signed-off-by: Venkatesh Yadav Abbarapu --- cmd/Kconfig| 8 cmd/Makefile | 1 + cmd/optee_hello_world

[PATCH v2] mtd: spi-nor: Fix the spi_nor_read() when config SPI_STACKED_PARALLEL is enabled

2024-12-11 Thread Venkatesh Yadav Abbarapu
banks only when the address width is 3byte. Also update the size when the configuration is stacked. Fixes: 5d40b3d384 ("mtd: spi-nor: Add parallel and stacked memories support") Signed-off-by: Venkatesh Yadav Abbarapu --- Changes in v2: - Update the nor read for parallel configuration and

[PATCH v3 2/2] mtd: spi-nor: Enable mt35xu512aba_fixups for all mt35xx flashes

2024-12-09 Thread Venkatesh Yadav Abbarapu
Enable mt35xu512aba_fixups for all mt35 series flashes. Signed-off-by: Ashok Reddy Soma Signed-off-by: Venkatesh Yadav Abbarapu --- drivers/mtd/spi/spi-nor-core.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/spi/spi-nor-core.c b/drivers/mtd/spi/spi-nor

[PATCH v3 1/2] mtd: spi-nor-ids: Enable DTR for micron flashes

2024-12-09 Thread Venkatesh Yadav Abbarapu
Add SPI_NOR_OCTAL_DTR_READ flags to micron flashes mt35xu01g and mt35xu02g. Also move them under CONFIG_SPI_FLASH_MT35XU config, so that in driver mt35xu512aba_fixups will be applied. Signed-off-by: Ashok Reddy Soma Signed-off-by: Venkatesh Yadav Abbarapu --- drivers/mtd/spi/spi-nor-ids.c | 6

[PATCH v3 0/2] Enable mt35xu512aba_fixups for all mt35xx flashes

2024-12-09 Thread Venkatesh Yadav Abbarapu
Add SPI_NOR_OCTAL_DTR_READ flags to micron flashes mt35xu01g and mt35xu02g. Changes in v3: - Seperated into two patches, one for nor-ids and other for mt35 fixups. Venkatesh Yadav Abbarapu (2): mtd: spi-nor-ids: Enable DTR for micron flashes mtd: spi-nor: Enable mt35xu512aba_fixups for all

[PATCH v2] mtd: spi-nor: Enable mt35xu512aba_fixups for all mt35xx flashes

2024-12-04 Thread Venkatesh Yadav Abbarapu
Add SPI_NOR_OCTAL_DTR_READ flags to micron flashes mt35xu01g and mt35xu02g. Also move them under CONFIG_SPI_FLASH_MT35XU config, so that in driver mt35xu512aba_fixups will be applied. Signed-off-by: Venkatesh Yadav Abbarapu --- Changes in v2: - Add the OCTAL_DTR_READ flags for mt35xu01g and

[PATCH v3] usb: onboard-hub: Update the bind function based on peer-hub property

2024-12-03 Thread Venkatesh Yadav Abbarapu
As the "peer-hub" property is optional, don't error out just skip the bind function. Fixes: 57e30b09fc ("usb: onboard-hub: Bail out if peer hub is already probed") Signed-off-by: Venkatesh Yadav Abbarapu --- Changes in v2: - Removed the peer_hub variable and used the re

[PATCH v2] usb: onboard-hub: Update the bind function based on peer-hub property

2024-12-03 Thread Venkatesh Yadav Abbarapu
As the "peer-hub" property is optional, don't error out just skip the bind function. Signed-off-by: Venkatesh Yadav Abbarapu --- Changes in v2: - Removed the peer_hub variable and used the return value. --- common/usb_onboard_hub.c | 6 +- 1 file changed, 5 insertions

[PATCH] usb: onboard-hub: Update the bind function based on "peer_hub" property

2024-12-02 Thread Venkatesh Yadav Abbarapu
lready probed") Signed-off-by: Venkatesh Yadav Abbarapu --- common/usb_onboard_hub.c | 8 1 file changed, 8 insertions(+) diff --git a/common/usb_onboard_hub.c b/common/usb_onboard_hub.c index 6f28036e09..0a8fac38ee 100644 --- a/common/usb_onboard_hub.c +++ b/common/usb_onboa

[PATCH v2] arm64: zynqmp: Update the usb5744 hub node as per binding

2024-11-29 Thread Venkatesh Yadav Abbarapu
Updating the usb5744 hub node as per the latest upstream DT binding https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ tree/Documentation/devicetree/bindings/usb/microchip,usb5744.yaml?h=v6.8.8 Signed-off-by: Venkatesh Yadav Abbarapu Acked-by: Michal Simek --- Changes in v2

[PATCH v2] mtd: spi-nor: Enable mt35xu512aba_fixups for all mt35xx flashes

2024-11-29 Thread Venkatesh Yadav Abbarapu
id table. Signed-off-by: Ashok Reddy Soma Signed-off-by: Venkatesh Yadav Abbarapu --- Changes in v2: - Removed the SPI_XFER_SET_DDR flag. --- drivers/mtd/spi/spi-nor-core.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/spi/spi-nor-core.c b/drivers/mtd/spi/

[PATCH] configs: versal2: Enable OPTEE support

2024-11-26 Thread Venkatesh Yadav Abbarapu
Add OPTEE support for versal2 platform. Signed-off-by: Venkatesh Yadav Abbarapu --- configs/amd_versal2_virt_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/amd_versal2_virt_defconfig b/configs/amd_versal2_virt_defconfig index 08e607700c..b4aebf3e9f 100644 --- a

[PATCH] configs: zynqmp_kria: Enable the USB onboard hub

2024-11-25 Thread Venkatesh Yadav Abbarapu
USB host support on ZYNQMP KRIA SOM needs onboard USB hub driver for handling reset GPIO and for i2c initialization sequence. Signed-off-by: Venkatesh Yadav Abbarapu Acked-by: Michal Simek --- NOTE: The usb hub patches are merged. https://lore.kernel.org/u-boot/20241125041202.980-2

[PATCH] arm64: zynqmp: Update the usb5744 hub node as per binding

2024-11-25 Thread Venkatesh Yadav Abbarapu
Updating the usb5744 hub node as per the latest upstream DT binding https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ tree/Documentation/devicetree/bindings/usb/microchip,usb5744.yaml?h=v6.8.8 Signed-off-by: Venkatesh Yadav Abbarapu Acked-by: Michal Simek --- arch/arm/dts

[PATCH v14 2/5] usb: onboard-hub: Fix the return values of regulator APIs

2024-11-24 Thread Venkatesh Yadav Abbarapu
Don't error out if there is no vdd regulator supply, as these are optional properties. Signed-off-by: Venkatesh Yadav Abbarapu Reviewed-by: Marek Vasut --- common/usb_onboard_hub.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/common/usb_onboard_hu

[PATCH v14 1/5] usb: onboard-hub: Add reset-gpio support

2024-11-24 Thread Venkatesh Yadav Abbarapu
: Venkatesh Yadav Abbarapu Reviewed-by: Marek Vasut --- common/usb_onboard_hub.c | 51 +--- 1 file changed, 48 insertions(+), 3 deletions(-) diff --git a/common/usb_onboard_hub.c b/common/usb_onboard_hub.c index 68a04ac041..e4d1f12cb4 100644 --- a/common

[PATCH v14 0/5] Add the USB5744 hub driver as per new DT binding

2024-11-24 Thread Venkatesh Yadav Abbarapu
pdated the reset_us to 1. Changes in v12: - Updated the power on delay for usb2514_hub. - Updated the usb2514_hub_data in the patch 1/7. Changes in v13: - Updated the reset and power on delay as per the USB5744 specification. Changes in v14: - Remove the 6/7 patches from this series. Venka

[PATCH v14 5/5] usb: onboard-hub: Bail out if peer hub is already probed

2024-11-24 Thread Venkatesh Yadav Abbarapu
The .bind function is implemented to bind the correct "half" of the hub that the driver wants to bind, and returning -ENODEV for the other "half". Signed-off-by: Venkatesh Yadav Abbarapu Reviewed-by: Marek Vasut --- common/usb_onboard_hub.c | 21 +

[PATCH v14 4/5] usb: onboard-hub: Add i2c initialization for usb5744 hub

2024-11-24 Thread Venkatesh Yadav Abbarapu
the USB attach command is issued. The byte sequence is as follows: Slave addr: 0x2d 00 00 05 00 01 41 1D 08 Slave addr: 0x2d 99 37 00 Slave addr: 0x2d AA 56 00 Signed-off-by: Venkatesh Yadav Abbarapu Reviewed-by: Marek Vasut --- common/usb_onbo

[PATCH v14 3/5] usb: onboard-hub: add support for Microchip USB5744

2024-11-24 Thread Venkatesh Yadav Abbarapu
Add support for the Microchip USB5744 USB3.0 and USB2.0 Hub. The usb5744 driver trigger hub reset signal after soft reset. The usb5744 hub need to reset after the phy initialization, which toggles the gpio. Signed-off-by: Venkatesh Yadav Abbarapu Reviewed-by: Marek Vasut --- common

[PATCH] mtd: spi-nor: Enable mt35xu512aba_fixups for all mt35xx flashes

2024-11-22 Thread Venkatesh Yadav Abbarapu
id table. Additionally, a new flag, "SPI_XFER_SET_DDR", has been introduced to instruct the OSPI controller driver to switch to DDR mode. Signed-off-by: Ashok Reddy Soma Signed-off-by: Venkatesh Yadav Abbarapu --- drivers/mtd/spi/spi-nor-core.c | 8 +++- include/spi.h

[PATCH] mtd: spi-nor: Add support for Macronix flash part

2024-11-22 Thread Venkatesh Yadav Abbarapu
Added support for Macronix OSPI flash parts MX25UM51345G and MX66UM2G45G, with initial testing conducted on the Tenzing-se1 board using STR mode for basic erase, write, and readback operations. Signed-off-by: Tejas Bhumkar Signed-off-by: Venkatesh Yadav Abbarapu Reviewed-by: Dragan Simic

[PATCH] mtd: spi-nor-ids: Add support for W25Q02NW

2024-11-22 Thread Venkatesh Yadav Abbarapu
Add support for Winbond 256MB flash W25Q02NW which supports 4byte opcodes and also dual and quad read. Signed-off-by: Algapally Santosh Sagar Signed-off-by: Venkatesh Yadav Abbarapu --- drivers/mtd/spi/spi-nor-ids.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/mtd/spi/spi

[PATCH] mtd: spi-nor: Send write disable cmd after every write enable

2024-11-18 Thread Venkatesh Yadav Abbarapu
driver, add it to clear write enable latch. Signed-off-by: Ashok Reddy Soma Signed-off-by: Venkatesh Yadav Abbarapu --- drivers/mtd/spi/spi-nor-core.c | 23 --- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/spi/spi-nor-core.c b/drivers/mtd/spi/spi-nor

[PATCH v13 6/7] configs: zynqmp_kria: Enable the USB onboard hub

2024-11-18 Thread Venkatesh Yadav Abbarapu
USB host support on ZYNQMP KRIA SOM needs onboard USB hub driver for handling reset GPIO and for i2c initialization sequence. Signed-off-by: Venkatesh Yadav Abbarapu Acked-by: Michal Simek --- configs/xilinx_zynqmp_kria_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs

[PATCH v13 4/7] usb: onboard-hub: Add i2c initialization for usb5744 hub

2024-11-18 Thread Venkatesh Yadav Abbarapu
the USB attach command is issued. The byte sequence is as follows: Slave addr: 0x2d 00 00 05 00 01 41 1D 08 Slave addr: 0x2d 99 37 00 Slave addr: 0x2d AA 56 00 Signed-off-by: Venkatesh Yadav Abbarapu Reviewed-by: Marek Vasut --- common/usb_onbo

[PATCH v13 7/7] arm64: zynqmp: Update the usb5744 hub node as per binding

2024-11-18 Thread Venkatesh Yadav Abbarapu
Updating the usb5744 hub node as per the latest upstream DT binding https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ tree/Documentation/devicetree/bindings/usb/microchip,usb5744.yaml?h=v6.8.8 Signed-off-by: Venkatesh Yadav Abbarapu Acked-by: Michal Simek --- arch/arm/dts

[PATCH v13 1/7] usb: onboard-hub: Add reset-gpio support

2024-11-18 Thread Venkatesh Yadav Abbarapu
: Venkatesh Yadav Abbarapu Reviewed-by: Marek Vasut --- common/usb_onboard_hub.c | 51 +--- 1 file changed, 48 insertions(+), 3 deletions(-) diff --git a/common/usb_onboard_hub.c b/common/usb_onboard_hub.c index 68a04ac041..e4d1f12cb4 100644 --- a/common

[PATCH v13 5/7] usb: onboard-hub: Bail out if peer hub is already probed

2024-11-18 Thread Venkatesh Yadav Abbarapu
The .bind function is implemented to bind the correct "half" of the hub that the driver wants to bind, and returning -ENODEV for the other "half". Signed-off-by: Venkatesh Yadav Abbarapu Reviewed-by: Marek Vasut --- common/usb_onboard_hub.c | 21 +

[PATCH v13 2/7] usb: onboard-hub: Fix the return values of regulator APIs

2024-11-18 Thread Venkatesh Yadav Abbarapu
Don't error out if there is no vdd regulator supply, as these are optional properties. Signed-off-by: Venkatesh Yadav Abbarapu Reviewed-by: Marek Vasut --- common/usb_onboard_hub.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/common/usb_onboard_hu

[PATCH v13 0/7] Add the USB5744 hub driver as per new DT binding

2024-11-18 Thread Venkatesh Yadav Abbarapu
pdated the reset_us to 1. Changes in v12: - Updated the power on delay for usb2514_hub. - Updated the usb2514_hub_data in the patch 1/7. Changes in v13: - Updated the reset and power on delay as per the USB5744 specification. Venkatesh Yadav Abbarapu (7): usb: onboard-hub: Add reset-gpio sup

[PATCH v13 3/7] usb: onboard-hub: add support for Microchip USB5744

2024-11-18 Thread Venkatesh Yadav Abbarapu
Add support for the Microchip USB5744 USB3.0 and USB2.0 Hub. The usb5744 driver trigger hub reset signal after soft reset. The usb5744 hub need to reset after the phy initialization, which toggles the gpio. Signed-off-by: Venkatesh Yadav Abbarapu Reviewed-by: Marek Vasut --- common

[PATCH] mtd: spi-nor: Fix the read issue when addr_width is 4byte

2024-11-18 Thread Venkatesh Yadav Abbarapu
ories support") Signed-off-by: Venkatesh Yadav Abbarapu --- drivers/mtd/spi/spi-nor-core.c | 24 +++- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/drivers/mtd/spi/spi-nor-core.c b/drivers/mtd/spi/spi-nor-core.c index ec841fb13b..c37a9bce74 100644 --- a/drive

[PATCH] mtd: spi-nor: Address the Macronix flash probe failure

2024-11-14 Thread Venkatesh Yadav Abbarapu
, then update the command type to SPI_NOR_EXT_INVERT. Signed-off-by: Tejas Bhumkar Signed-off-by: Venkatesh Yadav Abbarapu --- drivers/mtd/spi/spi-nor-core.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/mtd/spi/spi-nor-core.c b/drivers/mtd/spi/spi-nor-core.c index

[PATCH] spi: cadence_qspi: Fix OSPI boot issue

2024-11-13 Thread Venkatesh Yadav Abbarapu
es stored during SPI calibration. Instead, they are now read during the spi_nor_read_id call in the NOR framework. Signed-off-by: Tejas Bhumkar Signed-off-by: Venkatesh Yadav Abbarapu --- drivers/spi/cadence_qspi.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/spi/cadence_

[PATCH] cadence_qspi: Update the delays for flash reset

2024-11-13 Thread Venkatesh Yadav Abbarapu
Updating the delays for flash reset in the mini u-boot case. These experimental delay values by looking at different flash device vendors datasheets. Signed-off-by: Venkatesh Yadav Abbarapu --- drivers/spi/cadence_ospi_versal.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff

[PATCH] arm64: versal: Enable defconfig for Micron octal flashes

2024-11-13 Thread Venkatesh Yadav Abbarapu
The Micron MT35 series octal flashes can be activated through the configuration option CONFIG_SPI_FLASH_MT35XU. To ensure their detection, enable this option in the default defconfig for octal flashes. Signed-off-by: Tejas Bhumkar Signed-off-by: Venkatesh Yadav Abbarapu --- configs

  1   2   3   4   5   >