Re: [PATCH v2 1/2] common: spl: spl_spi: add support for dynamic override of sf bus

2022-05-12 Thread Vaishnav Achath
Hi Heiko, On 11/05/22 13:54, Heiko Schocher wrote: Hello Achath, On 11.05.22 08:03, Vaishnav Achath wrote: Currently the SPI flash to load from is defined through the compile time config CONFIG_SF_DEFAULT_BUS and CONFIG_SF_DEFAULT_CS, this prevents the loading of binaries from different SPI

[PATCH] mtd: spi-nor-core: Implement spi_nor_read_sfdp_dma_unsafe() for sfdp parse

2022-06-03 Thread Vaishnav Achath
(drivers/mtd/spi-nor/sfdp.c). Signed-off-by: Vaishnav Achath --- drivers/mtd/spi/spi-nor-core.c | 34 -- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/spi/spi-nor-core.c b/drivers/mtd/spi/spi-nor-core.c index 3b7c817c02..90d05da1d8 100644

[PATCH v3 2/2] arm: k3: j721e: add dynamic sf bus override support for j721e

2022-06-03 Thread Vaishnav Achath
implement overrides for spl_spi_boot_bus() and spl_spi_boot_cs() lookup functions according to bootmode selection, so as to support both QSPI and OSPI boot using the same build. Signed-off-by: Vaishnav Achath Reviewed-by: Pratyush Yadav --- V2->V3 : removed unnecessary spl_spi_boot

[PATCH v3 1/2] common: spl: spl_spi: add support for dynamic override of sf bus

2022-06-03 Thread Vaishnav Achath
due to this limitation. This commit adds lookup functions spl_spi_boot_bus() and spl_spi_boot_cs for identifying the flash device based on the selected boot device, when not overridden the lookup functions are weakly defined in common/spl/spl_spi.c. Signed-off-by: Vaishnav Achath Reviewed

[PATCH v3 0/2] Add support for dynamic overriding of default SF bus

2022-06-03 Thread Vaishnav Achath
erride for J721E, suggested by Pratyush Yadav Vaishnav Achath (2): common: spl: spl_spi: add support for dynamic override of sf bus arm: k3: j721e: add dynamic sf bus override support for j721e arch/arm/mach-k3/j721e_init.c | 11 +++ arch/arm/mach-k3/sysfw-loader.c | 4 ++-- comm

[PATCH v2 0/2] Add support for dynamic overriding of default SF bus

2022-05-11 Thread Vaishnav Achath
device thus allowing platforms to override the SF_BUS and SF_CS to load from the desired flash. Changes tested on J721E for OSPI and QSPI boot. V1->V2: * drop unnecessary Kconfig option for SF bus override, suggested by Heiko Schocher. Vaishnav Achath (2): common: spl: spl_spi: add supp

[PATCH v2 2/2] arm: k3: j721e: add dynamic sf bus override support for j721e

2022-05-11 Thread Vaishnav Achath
implement overrides for spl_spi_boot_bus() and spl_spi_boot_cs() lookup functions according to bootmode selection, so as to support both QSPI and OSPI boot using the same build. Signed-off-by: Vaishnav Achath --- arch/arm/mach-k3/j721e_init.c | 17 + arch/arm/mach-k3/sysfw

[PATCH v2 1/2] common: spl: spl_spi: add support for dynamic override of sf bus

2022-05-11 Thread Vaishnav Achath
due to this limitation. This commit adds lookup functions spl_spi_boot_bus() and spl_spi_boot_cs for identifying the flash device based on the selected boot device, when not overridden the lookup functions are weakly defined in common/spl/spl_spi.c. Signed-off-by: Vaishnav Achath --- common/spl

Re: [EXTERNAL] Re: [PATCH 1/2] common: spl: spl_spi: add support for dynamic detection of sf bus

2022-05-11 Thread Vaishnav Achath
Hi Heiko, On 09/05/22 12:49, Heiko Schocher wrote: Hello Achat, On 09.05.22 08:43, Vaishnav Achath wrote: Currently the SPI flash to load from is defined through the compile time config CONFIG_SF_DEFAULT_BUS and CONFIG_SF_DEFAULT_CS, this prevents the loading of binaries from different SPI

[PATCH 6/9] arm: k3: sysfw-loader: add hyperflash support

2022-05-09 Thread Vaishnav Achath
add support for loading system firmware from hyperflash. Signed-off-by: Vaishnav Achath --- arch/arm/mach-k3/sysfw-loader.c | 28 1 file changed, 28 insertions(+) diff --git a/arch/arm/mach-k3/sysfw-loader.c b/arch/arm/mach-k3/sysfw-loader.c index 5e48c36ccd

[PATCH 4/9] arm: dts: k3-j721e-common-proc-board-u-boot: enable HyperFlash in SPL

2022-05-09 Thread Vaishnav Achath
add u-boot,dm-spl pre-relocation property to enable hbmc in SPL. Signed-off-by: Vaishnav Achath --- .../k3-j721e-common-proc-board-u-boot.dtsi| 24 +++ 1 file changed, 24 insertions(+) diff --git a/arch/arm/dts/k3-j721e-common-proc-board-u-boot.dtsi b/arch/arm/dts/k3-j721e

[PATCH 5/9] arm: dts: k3-j721e-common-proc-board: enable hyperflash mux sel GPIO

2022-05-09 Thread Vaishnav Achath
Add wkup_gpio pinmux setting which will be used for performing the DT fixup for hbmc node according to mux selection state, on J721E EVM, hypermux sel is tied to ·WKUP_GPIO0_8. Signed-off-by: Vaishnav Achath --- arch/arm/dts/k3-j721e-common-proc-board.dts | 11 +++ 1 file changed, 11

[PATCH 8/9] ti: j721e: enable hyperflash spl fixup for j721e

2022-05-09 Thread Vaishnav Achath
GPIO when checking hypermux selection state: * J7200 - hypermux sel connected to WKUP_GPIO0_6 * J721E - hypermux·sel·connected·to·WKUP_GPIO0_8 Signed-off-by: Vaishnav Achath --- board/ti/j721e/evm.c | 57 +--- 1 file changed, 54 insertions(+), 3 deletions

[PATCH 9/9] configs: j721e_evm_defconfig: Add HBMC related configs

2022-05-09 Thread Vaishnav Achath
Enable HBMC and HyperFlash in R5SPL, A72 SPL and A72 U-Boot Signed-off-by: Vaishnav Achath --- configs/j721e_evm_a72_defconfig | 5 + configs/j721e_evm_r5_defconfig | 14 ++ 2 files changed, 19 insertions(+) diff --git a/configs/j721e_evm_a72_defconfig b/configs

[PATCH 7/9] configs: j721e_evm.h: define CONFIG_SYS_FLASH_BASE

2022-05-09 Thread Vaishnav Achath
Define CONFIG_SYS_FLASH_BASE to indicate start address of Flash memory Signed-off-by: Vaishnav Achath --- include/configs/j721e_evm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/j721e_evm.h b/include/configs/j721e_evm.h index 2590ee6b01..91dc52b9fd 100644 --- a/include

[PATCH 0/9] j721e: Add HyperFlash boot support

2022-05-09 Thread Vaishnav Achath
selection state similar to as done for J7200. Changes were tested on J721E SR1.1 for Hyperflash and OSPI boot. Thanks and Regards, Vaishnav Vaishnav Achath (9): arm: dts: k3-j721e-mcu-wakeup: Add HyperBus Controller node arm: dts: k3-j721e-som-p0: Add HyperFlash node arm: dts: k3-j721e-r5

[PATCH 1/9] arm: dts: k3-j721e-mcu-wakeup: Add HyperBus Controller node

2022-05-09 Thread Vaishnav Achath
Add DT node for HyperBus Memory Controller and hbmc-mux in the FSS. hbmc-am654 driver uses syscon_get_regmap() call which fails with current compatible setting. Signed-off-by: Vaishnav Achath --- arch/arm/dts/k3-j721e-mcu-wakeup.dtsi | 20 +++- 1 file changed, 19 insertions

[PATCH 2/9] arm: dts: k3-j721e-som-p0: Add HyperFlash node

2022-05-09 Thread Vaishnav Achath
J721e SoM as a 64MB HyperFlash on board. Add pinmux and DT node for the same. Signed-off-by: Vaishnav Achath --- arch/arm/dts/k3-j721e-som-p0.dtsi | 32 +++ 1 file changed, 32 insertions(+) diff --git a/arch/arm/dts/k3-j721e-som-p0.dtsi b/arch/arm/dts/k3-j721e-som

[PATCH 3/9] arm: dts: k3-j721e-r5-common-proc-board: Add HyperFlash node

2022-05-09 Thread Vaishnav Achath
J721e SoM as a 64MB HyperFlash on board. Add pinmux and DT node for the same. Signed-off-by: Vaishnav Achath --- .../arm/dts/k3-j721e-r5-common-proc-board.dts | 45 +++ 1 file changed, 45 insertions(+) diff --git a/arch/arm/dts/k3-j721e-r5-common-proc-board.dts b/arch/arm/dts

[PATCH] spl: spl_spi: add spi_nor_remove() to soft reset flash

2022-05-09 Thread Vaishnav Achath
: mt35xu512aba (65536 Kbytes) Signed-off-by: Vaishnav Achath --- common/spl/spl_spi.c | 5 + 1 file changed, 5 insertions(+) diff --git a/common/spl/spl_spi.c b/common/spl/spl_spi.c index cf3f7ef4c0..113a85bec9 100644 --- a/common/spl/spl_spi.c +++ b/common/spl/spl_spi.c @@ -162,6 +162,11 @@ static

[PATCH 1/2] common: spl: spl_spi: add support for dynamic detection of sf bus

2022-05-09 Thread Vaishnav Achath
due to this limitation. This commit adds lookup functions spl_spi_boot_bus() and spl_spi_boot_cs for identifying the flash device based on the selected boot devic, when not overridden the lookup functions are weakly defined in common/spl/spl_spi.c. Signed-off-by: Vaishnav Achath --- common/spl

[PATCH 2/2] arm: k3: j721e: enable dynamic sf bus detect support for j721e

2022-05-09 Thread Vaishnav Achath
implement overrides for spl_spi_boot_bus() and spl_spi_boot_cs() lookup functions according to bootmode selection, so as to support both QSPI and OSPI boot using the same build. Also enable the CONFIG_SPL_DYNAMIC_SF_BUS_DETECT for j721e R5 and A72. Signed-off-by: Vaishnav Achath --- arch/arm

[PATCH 0/2] Add support for dynamic overriding of default SF bus

2022-05-09 Thread Vaishnav Achath
device thus allowing platforms to override the SF_BUS and SF_CS to load from the desired flash. Changes tested on J721E for OSPI and QSPI boot. Vaishnav Achath (2): common: spl: spl_spi: add support for dynamic detection of sf bus arm: k3: j721e: enable dynamic sf bus detect support for j721e

Re: [PATCH V3 2/2] spi: cadence_qspi: use STIG mode for small reads

2022-11-28 Thread Vaishnav Achath
AC mode forces to read minimum 4 bytes > + * which is unsupported on some flash devices during register > + * reads, prefer STIG mode for such small reads. > + */ > + if (!op->addr.nbytes || > + op->data.nbytes < CQSPI_STIG_D

[PATCH 2/2] board: ti: j721e: Disable hyperflash fixup for J721E SK

2023-03-30 Thread Vaishnav Achath
;) Signed-off-by: Vaishnav Achath --- board/ti/j721e/evm.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/board/ti/j721e/evm.c b/board/ti/j721e/evm.c index d4e672a7ac..353422937e 100644 --- a/board/ti/j721e/evm.c +++ b/board/ti/j721e/evm.c @@ -111,6 +111,9 @@ static void __ma

[PATCH 1/2] arm: dts: k3-j721e-mcu-wakeup: Disable hyperbus controller node

2023-03-30 Thread Vaishnav Achath
platforms which does not explicitly disable the hbmc node in board dts, thus disable hyperbus node by default. Fixes: 297daac43afb ("arm: dts: k3-j721e-mcu-wakeup: Add HyperBus Controller node") Signed-off-by: Vaishnav Achath --- Since this node is not present in corresponding upstr

[PATCH 0/2] arm: dts: J721E Hyperbus Fixes

2023-03-30 Thread Vaishnav Achath
will be sent separately, but hyperbus and OSPI controller being active was also one of the issues causing boot failure. Changes were tested on J721E EVM and J721E SK for basic boot and hyperflash functionality(EVM). Vaishnav Achath (2): arm: dts: k3-j721e-mcu-wakeup: Disable hyperbus controller