[PATCH 2/3] dma: ti: k3-udma: Update driver to use static endpoint Data

2020-06-21 Thread Vignesh Raghavendra
Update driver to use static PSIL endpoint Data instead of DT. This will allow DT bindings to be in sync with kernel's DT. Signed-off-by: Vignesh Raghavendra --- drivers/dma/ti/Kconfig | 1 + drivers/dma/ti/k3-udma.c | 145 +++ 2 files changed

Re: [PATCH 0/2] omap4: panda: convert to device model

2020-06-15 Thread Vignesh Raghavendra
On 15/06/20 11:49 am, Tero Kristo wrote: > On 14/06/2020 16:49, Lokesh Vutla wrote: >> Hi Tero, >> >> On 02/06/20 4:49 pm, Tero Kristo wrote: >>> Hi, >>> >>> As there is looming death to OMAP4 Panda board u-boot support, I decided >>> to take a shot and convert it to device model myself. With th

Re: [PATCH] arm: mach-k3: j721e_init: Add support for backup boot modes

2020-05-22 Thread Vignesh Raghavendra
On 16/05/20 9:05 pm, Faiz Abbas wrote: > From: Andreas Dannenberg > > When the boot of J721E devices using the primary bootmode (configured > via device pins) fails a boot using the configured backup bootmode is > attempted. To take advantage of the backup boot mode feature go ahead > and add

[PATCH] phy: Fix possible NULL pointer deference

2020-05-20 Thread Vignesh Raghavendra
It is possible that users of generic_phy_*() APIs may pass a valid struct phy pointer but phy->dev can be NULL, leading to NULL pointer deference in phy_dev_ops(). So call generic_phy_valid() to verify that phy and phy->dev are both valid. Signed-off-by: Vignesh Raghavendra --- drivers/p

Re: [GIT PULL] TI changes for v2020.07-rc2

2020-05-11 Thread Vignesh Raghavendra
On 11/05/20 11:53 pm, Tom Rini wrote: > On Mon, May 11, 2020 at 06:12:59PM +0530, Lokesh Vutla wrote: > >> Hi Tom, >> Please find the pull request for v2020.07-rc2 containing TI specific >> changes. >> >> Travis-CI build: >> https://travis-ci.org/github/lokeshvutla/u-boot/builds/68550239

Re: [PATCH v2 2/4] regmap: Allow providing read/write callbacks through struct regmap_config

2020-05-07 Thread Vignesh Raghavendra
On 06/05/20 8:17 pm, Simon Glass wrote: > Hi Pratyush, > > On Tue, 5 May 2020 at 13:47, Pratyush Yadav wrote: >> >> Hi Simon, >> >> I would be taking up this series and address the comments. >> >> On 10/12/19 03:18PM, Simon Glass wrote: >>> Hi Jean-Jacques, >>> >>> On Tue, 5 Nov 2019 at 04:47,

Re: [PATCH v3 00/17] mtd: spi-nor-core: add xSPI Octal DTR support

2020-05-05 Thread Vignesh Raghavendra
; - Use op->data.nbytes as a measure of whether the data phase exists or >> not. This fixes data buswidth not being updadted for SR and FSR reads >> because they keep data buffer as NULL when calling spi_nor_setup_op(). >> - Add support for Micron mt35xu512aba to run in Octal DTR mode. > > Any comments on the series? If not, please pull it in. > Reviewed-by: Vignesh Raghavendra

Re: [PATCH 0/3] spi: Support SPI I/O protocol lines

2020-04-21 Thread Vignesh Raghavendra
Hi Jagan, On 20/04/20 5:39 pm, Jagan Teki wrote: > Some of the SPI controllers have a special set of format > registers that defines how the transfer initiated to the > FIFO by means of I/O protocol lines. > > Each mode of transfer from slave would be required to configure > the I/O protocol li

Re: [PATCH 1/2] arm: dts: k3-am654: Increase OSPI default frequency to 50MHz

2020-04-07 Thread Vignesh Raghavendra
On 07/04/20 1:02 pm, Lokesh Vutla wrote: > > > On 02/04/20 6:59 PM, Vignesh Raghavendra wrote: >> In 1 bit mode OSPI can work at upto 50MHz, this provides before write >> performance. Therefore increase frequency from 40MHz to 50MHz >> >> Signed-off-by: Vi

[PATCH 2/2] arm: dts: k3-j721e: Increase OSPI default frequency to 50MHz

2020-04-02 Thread Vignesh Raghavendra
In 1 bit mode OSPI can work at upto 50MHz, this provides before write performance. Therefore increase frequency from 40MHz to 50MHz Signed-off-by: Vignesh Raghavendra --- arch/arm/dts/k3-j721e-r5-common-proc-board.dts | 2 +- arch/arm/dts/k3-j721e-som-p0.dtsi | 2 +- 2 files

[PATCH 1/2] arm: dts: k3-am654: Increase OSPI default frequency to 50MHz

2020-04-02 Thread Vignesh Raghavendra
In 1 bit mode OSPI can work at upto 50MHz, this provides before write performance. Therefore increase frequency from 40MHz to 50MHz Signed-off-by: Vignesh Raghavendra --- arch/arm/dts/k3-am654-base-board.dts| 2 +- arch/arm/dts/k3-am654-r5-base-board.dts | 2 +- 2 files changed, 2

Re: [PATCH v4 8/8] board: presidio-asic: Add SPI NAND and NOR support

2020-04-01 Thread Vignesh Raghavendra
On 31/03/20 5:21 am, Alex Nemirovsky wrote: > Add SPI NAND and NOR support for Cortina Access > Presidio Engineering Board > > Signed-off-by: Alex Nemirovsky > CC: Jagan Teki > CC: Vignesh R > --- > > Changes in v4: None > Changes in v3: None > Changes in v2: None > > arch/arm/dts/ca-pres

Re: [PATCH v2 1/2] spi: call WATCHDOG_RESET() in spi_nor_wait_till_ready_with_timeout()

2020-03-26 Thread Vignesh Raghavendra
On 24/03/20 8:11 pm, Wolfgang Denk wrote: > Dear Vignesh, > > In message <05694b0e-50a1-de5d-25d8-0444a2cae...@ti.com> you wrote: >> >> Aim of spi-nor-tiny.c is to have a tiny stack that can be used in >> SPL/TPL or on resource constraint boards to only support _reading_ from >> the flash. So t

Re: [PATCH v2 1/2] spi: call WATCHDOG_RESET() in spi_nor_wait_till_ready_with_timeout()

2020-03-24 Thread Vignesh Raghavendra
Dear Wolfgang, On 20/03/20 4:48 pm, Wolfgang Denk wrote: > Dear Vignesh, > > In message <20200320101448.10714-1-rasmus.villem...@prevas.dk> Rasmus > Villemoes wrote: >> I have a board for which doing "sf erase 0x10 0x8" >> consistently causes the external watchdog circuit to reset the >>

Re: [PATCH] mtd: spi-nor-core: call WATCHDOG_RESET() in spi_nor_ready()

2020-03-20 Thread Vignesh Raghavendra
On 19/03/20 7:20 pm, Rasmus Villemoes wrote: > On 19/03/2020 14.23, Vignesh Raghavendra wrote: >> > >>> For the read side, it seems that just replacing the UINT_MAX in the two >>> copies of spi_nor_read_data with some smaller constant should suffice. >>>

Re: [PATCH] mtd: spi-nor-core: call WATCHDOG_RESET() in spi_nor_ready()

2020-03-19 Thread Vignesh Raghavendra
On 19/03/20 6:14 pm, Rasmus Villemoes wrote: >> Hmm, Watchdog seems to be set to trigger after ~2s of inactivity. Isn't >> that too small? WATCHDOG_RESET() resets only once per second, so 2 >> second timeout is too close IMO. >> >> Typical watchdog timeouts are usually in tens of seconds > Nope,

Re: [PATCH] mtd: spi-nor-core: call WATCHDOG_RESET() in spi_nor_ready()

2020-03-19 Thread Vignesh Raghavendra
On 19/03/20 5:09 pm, Rasmus Villemoes wrote: > On 19/03/2020 12.25, Vignesh Raghavendra wrote: >> Hi, [...] >>> @@ -399,6 +400,7 @@ static int spi_nor_ready(struct spi_nor *nor) >>> { >>> int sr, fsr; >>> >>> + WATCHDOG_RESET(); &g

Re: [PATCH] mtd: spi-nor-core: call WATCHDOG_RESET() in spi_nor_ready()

2020-03-19 Thread Vignesh Raghavendra
Hi, On 17/03/20 1:48 am, Rasmus Villemoes wrote: > I have a board for which doing "sf erase 0x10 0x8" > consistently causes the external watchdog circuit to reset the > board. Make sure to pet the watchdog during slow operations such as > erasing or writing large areas of a spi nor flash.

Re: [PATCH] MAINTAINERS: update entry for ARM TI

2020-03-16 Thread Vignesh Raghavendra
On 16/03/20 12:19 pm, Lokesh Vutla wrote: > Add all TI specific drivers, include, arch files under ARM TI entry. > Driver files are added only if there is no entry for the specific > subsystem in MAINTAINERS file. > > Signed-off-by: Lokesh Vutla > --- > MAINTAINERS | 24 ++

Re: [PATCH] spi: use is_power_of_2 instead of hweight32 in spi_nor_write()

2020-03-16 Thread Vignesh Raghavendra
96 (-96) > Function old new delta > spi_nor_write388 292 -96 > > Signed-off-by: Rasmus Villemoes Acked-by: Vignesh Raghavendra > --- > drivers/mtd/spi/spi-nor-core.c | 5 + > 1 file changed, 1 insertion(+), 4 de

Re: [PATCH 09/15] mtd: spi-nor-core: Introduce flash-specific fixup hooks

2020-03-11 Thread Vignesh Raghavendra
On 26/02/20 6:25 pm, Pratyush Yadav wrote: > diff --git a/drivers/mtd/spi/spi-nor-core.c b/drivers/mtd/spi/spi-nor-core.c > index 1ed4f0907b..94e99eb99f 100644 > --- a/drivers/mtd/spi/spi-nor-core.c > +++ b/drivers/mtd/spi/spi-nor-core.c > @@ -148,6 +148,32 @@ struct sfdp_header { > struct sfdp

Re: [PATCH 1/3] arm: dts: k3-j721e-common-proc-board-u-boot: Enable ospi1/qspi

2020-03-03 Thread Vignesh Raghavendra
Hi, On 3/3/2020 4:04 PM, Keerthy wrote: > Enable the ospi1/qspi module while at it move the corresponding > pins to common u-boot.dtsi file. > > Signed-off-by: Keerthy > --- > .../k3-j721e-common-proc-board-u-boot.dtsi| 23 +++ > arch/arm/dts/k3-j721e-common-proc-board.dts

Re: [PATCH] spi: cadence-qspi: Move ref clock calculation to probe

2020-02-25 Thread Vignesh Raghavendra
herefore clk get rate() would return a wrong value > in ofdata_to_platdata() when compared with probe. Hence it needs to be > moved to probe. > > Tested on u-boot-ti/next. > Acked-by: Vignesh Raghavendra Regards Vignesh > Signed-off-by: Pratyush

Re: [PATCH] am335x: evm: defconfig: disable spl tiny printf

2020-02-17 Thread Vignesh Raghavendra
On 17/02/20 9:16 am, Lokesh Vutla wrote: > > > On 13/02/20 7:04 PM, moseschristoph...@gmail.com wrote: >> From: Moses Christopher Bollavarapu >> >> - As tiny printf lib is further optimized, the ability to deal with >> ethaddr is lost. Hence, in order to handle usb-eth boot from SPL >>

[PATCH] arm: dts: k3-am654-base-board: Enable I2C nodes

2020-02-16 Thread Vignesh Raghavendra
Add DT nodes for main domain I2Cs and its slave devices Signed-off-by: Vignesh Raghavendra --- arch/arm/dts/k3-am654-base-board.dts | 48 1 file changed, 48 insertions(+) diff --git a/arch/arm/dts/k3-am654-base-board.dts b/arch/arm/dts/k3-am654-base-board.dts

Re: [Patch v2 1/3] mtd: spi-nor-ids: Enable SPI_NOR_OCTAL_READ flag for mt35xu*

2020-02-16 Thread Vignesh Raghavendra
AD flag for these flashes. > > Signed-off-by: Kuldeep Singh Reviewed-by: Vignesh Raghavendra > --- > v2: Reword commit message > > drivers/mtd/spi/spi-nor-ids.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/mtd/spi/spi-nor-ids.c b/dr

Re: [PATCH] usb: dwc3: Check that the request is valid in dwc3_gadget_giveback()

2020-02-16 Thread Vignesh Raghavendra
On 15/02/20 12:03 am, Marek Vasut wrote: > On 2/14/20 1:23 PM, Vignesh Raghavendra wrote: >> From: Jean-Jacques Hiblot >> >> This fixes potential issues reported by klokworks: >> Pointer 'req' returned from call to function 'next_request'

[PATCH] usb: dwc3: Check that the request is valid in dwc3_gadget_giveback()

2020-02-14 Thread Vignesh Raghavendra
From: Jean-Jacques Hiblot This fixes potential issues reported by klokworks: Pointer 'req' returned from call to function 'next_request' at line 531 and 538 may be NULL and will be dereferenced in dwc3_gadget_giveback() Signed-off-by: Jean-Jacques Hiblot Signed-off-by:

[PATCH] misc: k3_avs: Fix possible NULL pointer deference

2020-02-14 Thread Vignesh Raghavendra
Its possible that k3_avs_priv is NULL because the driver may not have been probed yet. Therefore check if pointer is valid before dereferencing it. Signed-off-by: Vignesh Raghavendra --- drivers/misc/k3_avs.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/misc/k3_avs.c b

Re: [U-Boot] [PATCH v2 03/10] tiny-printf: Reorder code to support %p

2020-02-03 Thread Vignesh Raghavendra
Faiz, On 31/01/20 11:44 pm, Simon Glass wrote: > Hi Vignesh, > > On Thu, 30 Jan 2020 at 22:12, Vignesh Raghavendra wrote: >> >> Hi Simon, >> >> On 31/01/20 7:57 am, Simon Glass wrote: >>> Hi Faiz, >>> >>> On Thu, 30 Jan 2020 at 08:22,

[PATCH v2 12/12] configs: j721e_hs_evm: Enable OSPI related configs

2020-02-03 Thread Vignesh Raghavendra
Enable OSPI related configs for J721e HS variant. Signed-off-by: Vignesh Raghavendra --- configs/j721e_hs_evm_a72_defconfig | 8 +++- configs/j721e_hs_evm_r5_defconfig | 7 +++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/configs/j721e_hs_evm_a72_defconfig b/configs

[PATCH v2 11/12] configs: ama65x_hs_evm: Enable OSPI related configs

2020-02-03 Thread Vignesh Raghavendra
Enable OSPI related defconfigs for AM65x HS variant. Signed-off-by: Vignesh Raghavendra --- configs/am65x_hs_evm_a53_defconfig | 26 ++ configs/am65x_hs_evm_r5_defconfig | 19 +++ 2 files changed, 45 insertions(+) diff --git a/configs

[PATCH v2 09/12] configs: am65x_evm_defconfig: Enable OSPI configs

2020-02-03 Thread Vignesh Raghavendra
Enable OSPI related defconfigs. Also enable SPL_DMA so that DMA is used during OSPI boot Signed-off-by: Vignesh Raghavendra --- configs/am65x_evm_a53_defconfig | 25 + configs/am65x_evm_r5_defconfig | 17 + 2 files changed, 42 insertions(+) diff --git a

[PATCH v2 07/12] configs: j721e_evm: Setup mtdparts for OSPI

2020-02-03 Thread Vignesh Raghavendra
Set up mtdparts cmdline argument to be passed to kernel Signed-off-by: Vignesh Raghavendra --- include/configs/j721e_evm.h | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/include/configs/j721e_evm.h b/include/configs/j721e_evm.h index 4371c471e5a9

[PATCH v2 08/12] configs: j721e_evm_defconfig: Enable OSPI configs

2020-02-03 Thread Vignesh Raghavendra
Enable OSPI related defconfigs. Also enable SPL_DMA so that DMA is used during OSPI boot Signed-off-by: Vignesh Raghavendra --- configs/j721e_evm_a72_defconfig | 9 - configs/j721e_evm_r5_defconfig | 7 +++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/configs

[PATCH v2 10/12] board: ti: Update AM65x and J721e READMEs for OSPI boot

2020-02-03 Thread Vignesh Raghavendra
Update AM65x and J721e README files with instructions for flashing OSPI images. Signed-off-by: Vignesh Raghavendra --- board/ti/am65x/README | 55 +++ board/ti/j721e/README | 47 2 files changed, 102 insertions

[PATCH v2 05/12] ARM: dts: k3-j721e: Add OSPI DT nodes

2020-02-03 Thread Vignesh Raghavendra
Add OSPI DT nodes to enable OSPI at U-Boot prompt and also to support OSPI boot. Signed-off-by: Vignesh Raghavendra --- .../k3-j721e-common-proc-board-u-boot.dtsi| 16 arch/arm/dts/k3-j721e-common-proc-board.dts | 33 arch/arm/dts/k3-j721e-mcu-wakeup.dtsi

[PATCH v2 06/12] configs: am65x_evm: Setup mtdparts for OSPI

2020-02-03 Thread Vignesh Raghavendra
Set up mtdparts cmdline argument to be passed to kernel Signed-off-by: Vignesh Raghavendra --- include/configs/am65x_evm.h | 21 - 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/include/configs/am65x_evm.h b/include/configs/am65x_evm.h index 7d7f86a0598a

[PATCH v2 00/12] TI: AM654/J721e: Add support to boot from OSPI

2020-02-03 Thread Vignesh Raghavendra
ading SYSFW Vignesh Raghavendra (11): drivers: Descend to drivers/soc unconditionally ARM: mach-k3: arm64-mmu: map 64bit FSS MMIO space in A53 MMU ARM: dts: k3-am65: Add OSPI DT nodes ARM: dts: k3-j721e: Add OSPI DT nodes configs: am65x_evm: Setup mtdparts for OSPI configs: j721e_evm:

[PATCH v2 04/12] ARM: dts: k3-am65: Add OSPI DT nodes

2020-02-03 Thread Vignesh Raghavendra
Add OSPI DT nodes to enable OSPI at U-Boot prompt and also to support OSPI boot. Signed-off-by: Vignesh Raghavendra --- arch/arm/dts/k3-am65-mcu.dtsi| 38 +++ arch/arm/dts/k3-am65.dtsi| 13 ++- arch/arm/dts/k3-am654-base-board-u-boot.dtsi

[PATCH v2 02/12] ARM: mach-k3: arm64-mmu: map 64bit FSS MMIO space in A53 MMU

2020-02-03 Thread Vignesh Raghavendra
Populate address mapping entries in A53 MMU for 4 GB of MMIO space reserved for providing MMIO access to multiple flash devices through OSPI/HBMC IPs within FSS. Signed-off-by: Vignesh Raghavendra --- arch/arm/mach-k3/arm64-mmu.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch

[PATCH v2 03/12] ARM: mach-k3: sysfw-loader: Use SPI memmapped addr when loading SYSFW

2020-02-03 Thread Vignesh Raghavendra
From: Lokesh Vutla Since ROM configures OSPI controller to be in memory mapped mode in OSPI boot, R5 SPL can directly pass the memory mapped pointer to ROM. With this ROM can directly pull the SYSFW image from OSPI. Signed-off-by: Lokesh Vutla Signed-off-by: Vignesh Raghavendra --- arch/arm

[PATCH v2 01/12] drivers: Descend to drivers/soc unconditionally

2020-02-03 Thread Vignesh Raghavendra
: Vignesh Raghavendra Reviewed-by: Tom Rini --- drivers/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/Makefile b/drivers/Makefile index 23501fd74388..420875042896 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -107,7 +107,6 @@ obj-y += reset/ obj-y

Re: [U-Boot] [PATCH v2 03/10] tiny-printf: Reorder code to support %p

2020-01-30 Thread Vignesh Raghavendra
Hi Simon, On 31/01/20 7:57 am, Simon Glass wrote: > Hi Faiz, > > On Thu, 30 Jan 2020 at 08:22, Faiz Abbas wrote: >> >> Hi Simon, >> >> On 22/10/19 4:56 am, Simon Glass wrote: >>> With a bit of code reordering we can support %p using the existing code >>> for ulong. >>> >>> Move the %p code up an

Re: [PATCH 0/9] TI: AM654/J721e: Add support to boot from OSPI

2020-01-29 Thread Vignesh Raghavendra
Hi Andreas, On 29/01/20 10:01 pm, Andreas Dannenberg wrote: > Hi Vignesh, > > On Wed, Jan 29, 2020 at 05:48:46PM +0530, Vignesh Raghavendra wrote: >> This series adds support to boot from OSPI on TI's AM654 and J721e SoCs. >> These EVMs have Micron MT35x flash and wo

[PATCH 8/9] configs: j721e_evm_defconfig: Enable OSPI configs

2020-01-29 Thread Vignesh Raghavendra
Enable OSPI related defconfigs. Also enable SPL_DMA so that DMA is used during OSPI boot Signed-off-by: Vignesh Raghavendra --- configs/j721e_evm_a72_defconfig | 9 - configs/j721e_evm_r5_defconfig | 7 +++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/configs

[PATCH 9/9] configs: am65x_evm_defconfig: Enable OSPI configs

2020-01-29 Thread Vignesh Raghavendra
Enable OSPI related defconfigs. Also enable SPL_DMA so that DMA is used during OSPI boot Signed-off-by: Vignesh Raghavendra --- configs/am65x_evm_a53_defconfig | 25 + configs/am65x_evm_r5_defconfig | 17 + 2 files changed, 42 insertions(+) diff --git a

[PATCH 7/9] configs: j721e_evm: Setup mtdparts for OSPI

2020-01-29 Thread Vignesh Raghavendra
Set up mtdparts cmdline argument to be passed to kernel Signed-off-by: Vignesh Raghavendra --- include/configs/j721e_evm.h | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/include/configs/j721e_evm.h b/include/configs/j721e_evm.h index 4371c471e5a9

[PATCH 6/9] configs: am65x_evm: Setup mtdparts for OSPI

2020-01-29 Thread Vignesh Raghavendra
Set up mtdparts cmdline argument to be passed to kernel Signed-off-by: Vignesh Raghavendra --- include/configs/am65x_evm.h | 21 - 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/include/configs/am65x_evm.h b/include/configs/am65x_evm.h index 7d7f86a0598a

[PATCH 5/9] ARM: dts: k3-j721e: Add OSPI DT nodes

2020-01-29 Thread Vignesh Raghavendra
Add OSPI DT nodes to enable OSPI at U-Boot prompt and also to support OSPI boot. Signed-off-by: Vignesh Raghavendra --- .../k3-j721e-common-proc-board-u-boot.dtsi| 16 arch/arm/dts/k3-j721e-common-proc-board.dts | 33 arch/arm/dts/k3-j721e-mcu-wakeup.dtsi

[PATCH 4/9] ARM: dts: k3-am65: Add OSPI DT nodes

2020-01-29 Thread Vignesh Raghavendra
Add OSPI DT nodes to enable OSPI at U-Boot prompt and also to support OSPI boot. Signed-off-by: Vignesh Raghavendra --- arch/arm/dts/k3-am65-mcu.dtsi| 38 +++ arch/arm/dts/k3-am65.dtsi| 13 ++- arch/arm/dts/k3-am654-base-board-u-boot.dtsi

[PATCH 3/9] ARM: mach-k3: sysfw-loader: Use SPI memmapped addr when loading SYSFW

2020-01-29 Thread Vignesh Raghavendra
From: Lokesh Vutla Since ROM configures OSPI controller to be in memory mapped mode in OSPI boot, R5 SPL can directly pass the memory mapped pointer to ROM. With this ROM can directly pull the SYSFW image from OSPI. Signed-off-by: Lokesh Vutla Signed-off-by: Vignesh Raghavendra --- arch/arm

[PATCH 2/9] ARM: mach-k3: arm64-mmu: map 64bit FSS MMIO space in A53 MMU

2020-01-29 Thread Vignesh Raghavendra
Populate address mapping entries in A53 MMU for 4 GB of MMIO space reserved for providing MMIO access to multiple flash devices through OSPI/HBMC IPs within FSS. Signed-off-by: Vignesh Raghavendra --- arch/arm/mach-k3/arm64-mmu.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch

[PATCH 1/9] drivers: Descend to drivers/soc unconditionally

2020-01-29 Thread Vignesh Raghavendra
: Vignesh Raghavendra --- drivers/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/Makefile b/drivers/Makefile index 23501fd74388..420875042896 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -107,7 +107,6 @@ obj-y += reset/ obj-y += input/ # SOC specific

[PATCH 0/9] TI: AM654/J721e: Add support to boot from OSPI

2020-01-29 Thread Vignesh Raghavendra
This series adds support to boot from OSPI on TI's AM654 and J721e SoCs. These EVMs have Micron MT35x flash and works in 1-1-8 mode. Lokesh Vutla (1): ARM: mach-k3: sysfw-loader: Use SPI memmapped addr when loading SYSFW Vignesh Raghavendra (8): drivers: Descend to driver

[PATCH 3/4] arm: dts: k3-j721e-common-proc-board: Enable I2C expander for SPL

2020-01-27 Thread Vignesh Raghavendra
IO expanders are required to power cycle SD card. So enable the same Signed-off-by: Vignesh Raghavendra --- .../k3-j721e-common-proc-board-u-boot.dtsi| 12 + .../arm/dts/k3-j721e-r5-common-proc-board.dts | 27 +++ 2 files changed, 39 insertions(+) diff --git a/arch

[PATCH 1/4] arm: dts: k3-j721e: Add I2C nodes

2020-01-27 Thread Vignesh Raghavendra
J721e SoC has 2 I2C instances in MCU domain and 7 I2C instances in main domain. Add DT nodes for the same Signed-off-by: Vignesh Raghavendra --- arch/arm/dts/k3-j721e-main.dtsi | 77 +++ arch/arm/dts/k3-j721e-mcu-wakeup.dtsi | 22 arch/arm/dts/k3

[PATCH 2/4] arm: dts: k3-j721e-common-proc-board: Add I2C GPIO expander

2020-01-27 Thread Vignesh Raghavendra
Add I2C GPIO expander required to power cycle MMC/SD Signed-off-by: Vignesh Raghavendra --- arch/arm/dts/k3-j721e-common-proc-board.dts | 27 + 1 file changed, 27 insertions(+) diff --git a/arch/arm/dts/k3-j721e-common-proc-board.dts b/arch/arm/dts/k3-j721e-common-proc

[PATCH 4/4] configs: j721e_evm_defconfig: Enable PCA953x IO expander

2020-01-27 Thread Vignesh Raghavendra
Enable PCA953x IO expander to control MMC/SD power lines. Signed-off-by: Vignesh Raghavendra --- configs/j721e_evm_a72_defconfig | 4 configs/j721e_evm_r5_defconfig | 1 + 2 files changed, 5 insertions(+) diff --git a/configs/j721e_evm_a72_defconfig b/configs/j721e_evm_a72_defconfig

[PATCH 0/4] J721e: Add I2C nodes

2020-01-27 Thread Vignesh Raghavendra
Add I2C and I2C IO expander nodes Vignesh Raghavendra (4): arm: dts: k3-j721e: Add I2C nodes arm: dts: k3-j721e-common-proc-board: Add I2C GPIO expander arm: dts: k3-j721e-common-proc-board: Enable I2C expander for SPL configs: j721e_evm_defconfig: Enable PCA953x IO expander .../k3

[PATCH] gpio: pca953x_gpio: Add support for 24 bit IO expander

2020-01-27 Thread Vignesh Raghavendra
J721e EVM has a TCA6424 IO expander that has 24 GPIOs. Add support for the same Signed-off-by: Vignesh Raghavendra --- drivers/gpio/pca953x_gpio.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/gpio/pca953x_gpio.c b/drivers/gpio/pca953x_gpio.c index

[PATCH 7/7] configs: j721e_evm_r5/a72_defconfig: Enable DFU related configs

2020-01-27 Thread Vignesh Raghavendra
Enable DFU, Fastboot and USB mass storage gadget related configs Signed-off-by: Vignesh Raghavendra --- configs/j721e_evm_a72_defconfig | 4 configs/j721e_evm_r5_defconfig | 3 +++ 2 files changed, 7 insertions(+) diff --git a/configs/j721e_evm_a72_defconfig b/configs

[PATCH 6/7] configs: j721e_evm_r5/a72_defconfig: Enable USB Gadget related configs

2020-01-27 Thread Vignesh Raghavendra
Enable USB Gadget for R5 SPL, A72 SPL and A72 U-Boot to support DFU boot Signed-off-by: Vignesh Raghavendra --- configs/j721e_evm_a72_defconfig | 2 ++ configs/j721e_evm_r5_defconfig | 12 2 files changed, 14 insertions(+) diff --git a/configs/j721e_evm_a72_defconfig b/configs

[PATCH 4/7] configs: j721e_evm: Add DFU related variables

2020-01-27 Thread Vignesh Raghavendra
Add configs to download varies stages of bootloader images to RAM during DFU boot. Signed-off-by: Vignesh Raghavendra --- include/configs/j721e_evm.h | 4 1 file changed, 4 insertions(+) diff --git a/include/configs/j721e_evm.h b/include/configs/j721e_evm.h index eaed520e6be0

[PATCH 1/7] arm: mach-k3: j721e: Rename BOOT_DEVICE_USB to BOOT_DEVICE_DFU

2020-01-27 Thread Vignesh Raghavendra
J721e does not support USB Host MSC boot, but only supports DFU boot. Since BOOT_DEVICE_USB is often used for host boot mode and BOOT_DEVICE_DFU is used for DFU boot, rename BOOT_DEVICE_USB macro to BOOT_DEVICE_DFU Signed-off-by: Vignesh Raghavendra --- arch/arm/mach-k3/include/mach/j721e_spl.h

[PATCH 3/7] arm: dts: k3-j721e-common-proc-board: Enable USB0 in peripheral mode

2020-01-27 Thread Vignesh Raghavendra
Enable USB0 in peripheral mode so that it be used for DFU Signed-off-by: Vignesh Raghavendra --- arch/arm/dts/k3-j721e-r5-common-proc-board.dts | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/dts/k3-j721e-r5-common-proc-board.dts b/arch/arm/dts/k3-j721e-r5

[PATCH 2/7] arm: mach-k3: sysfw-loader: Add support to download SYSFW via DFU

2020-01-27 Thread Vignesh Raghavendra
Add support to download SYSFW into internal RAM via DFU in DFU boot mode. Prepare a DFU config entity entry dynamically using buffer address allocated for SYSFW and start DFU gadget to get SYSFW. Signed-off-by: Vignesh Raghavendra --- arch/arm/mach-k3/sysfw-loader.c | 30

[PATCH 5/7] configs: j721e_evm_r5_defconfig: Increase early malloc size

2020-01-27 Thread Vignesh Raghavendra
Increase R5 SPL early malloc memory pool by ~7K to accommodate SPL USB DFU boot requirements Signed-off-by: Vignesh Raghavendra --- configs/j721e_evm_r5_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/j721e_evm_r5_defconfig b/configs/j721e_evm_r5_defconfig

[PATCH 0/7] J721e: Add support for DFU boot mode

2020-01-27 Thread Vignesh Raghavendra
This series adds support to boot via USB DFU mode. Vignesh Raghavendra (7): arm: mach-k3: j721e: Rename BOOT_DEVICE_USB to BOOT_DEVICE_DFU arm: mach-k3: sysfw-loader: Add support to download SYSFW via DFU arm: dts: k3-j721e-common-proc-board: Enable USB0 in peripheral mode configs

[PATCH] usb: cdns3: ep0: Invalidate cache before reading Setup Packet

2020-01-27 Thread Vignesh Raghavendra
Invalidate dcache line before accessing Setup Packet contents. Otherwise driver will see stale content on non coherent architecture. Signed-off-by: Vignesh Raghavendra --- drivers/usb/cdns3/ep0.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/usb/cdns3/ep0.c b/drivers/usb/cdns3

Re: [Patch v4 1/7] spi: Transform the FSL QuadSPI driver to use the SPI MEM API

2020-01-26 Thread Vignesh Raghavendra
h Kumar > Signed-off-by: Kuldeep Singh > Reviewed-by: Stefan Roese > Tested-by: Stefan Roese > --- Jagan, Changes looks fine to me, feel free to apply: Acked-by: Vignesh Raghavendra Regards Vignesh > Depends on https://patchwork.ozlabs.org/patch/1219462/ > Depends on https

Re: [U-Boot Patch v1 6/7] nor: add post bfpt fix handler for is25wp256 device

2020-01-26 Thread Vignesh Raghavendra
On 24/01/20 11:58 am, Sagar Kadam wrote: > Hello Vignesh, > >> -Original Message----- >> From: Vignesh Raghavendra >> Sent: Friday, January 24, 2020 10:24 AM >> To: Sagar Kadam ; u-boot@lists.denx.de >> Cc: Paul Walmsley ( Sifive) ; >> anup.p

Re: [PATCH v2 2/2] spi: cadence-qspi: Add direct mode support

2020-01-26 Thread Vignesh Raghavendra
Hi Jagan, On 26/01/20 10:13 pm, Jagan Teki wrote: > On Fri, Jan 17, 2020 at 9:23 PM Simon Goldschmidt > wrote: >> >> On Fri, Jan 17, 2020 at 2:20 PM Simon Goldschmidt >> wrote: >>> >>> On Fri, Jan 17, 2020 at 2:01 PM Vignesh Raghavendra wrote: [...

Re: [PATCH 0/3] spi-nor: Add octal mode support

2020-01-26 Thread Vignesh Raghavendra
On 26/01/20 10:12 pm, Jagan Teki wrote: > On Sun, Jan 26, 2020 at 7:21 PM Jagan Teki wrote: >> >> On Thu, Dec 5, 2019 at 3:45 PM Vignesh Raghavendra wrote: >>> >>> This series adds Octal mode support for Micron's mt35x flash. >>> Also adds Octa

[RESEND v2 0/2] spi: cadence-qspi: Move to spi-mem APIs

2020-01-26 Thread Vignesh Raghavendra
that provide memory mapped access to flash. This greatly increases the read throughput. Tested with mt25qu512 flash and s25fl512 flash Resend v2: Rebase onto the latest master (no functional change) Vignesh Raghavendra (2): spi: cadence_qspi: Move to spi-mem framework spi: cadence-qspi: Add

[RESEND v2 1/2] spi: cadence_qspi: Move to spi-mem framework

2020-01-26 Thread Vignesh Raghavendra
: Vignesh Raghavendra Tested-by: Simon Goldschmidt --- drivers/spi/cadence_qspi.c | 136 + drivers/spi/cadence_qspi.h | 9 +-- drivers/spi/cadence_qspi_apb.c | 124 -- 3 files changed, 91 insertions(+), 178 deletions(-) diff --git a

[RESEND v2 2/2] spi: cadence-qspi: Add direct mode support

2020-01-26 Thread Vignesh Raghavendra
in future. For better performance, driver uses DMA to copy data from flash in direct mode using dma_memcpy(). Signed-off-by: Vignesh Raghavendra Tested-by: Simon Goldschmidt --- drivers/spi/cadence_qspi.c | 40 - drivers/spi/cadence_qspi.h | 19 +- drivers

Re: [PATCH v2 0/4] dma-mapping: Add cache flush/invalidation to dma_{un}map_single

2020-01-23 Thread Vignesh Raghavendra
Hi Tom, On 16/01/20 2:23 pm, Vignesh Raghavendra wrote: > Drivers (especially frameworks ported from Linux such as USB) expect > dma_{un}map_single() APIs to take care of cache maintenance. But this is > not the case in U-Boot and few drivers take care of flushing caches > locally.

Re: [U-Boot Patch v1 7/7] fu540: spi-nor: modify the flash read and program opcodes

2020-01-23 Thread Vignesh Raghavendra
On 24/01/20 1:46 am, Sagar Shrikant Kadam wrote: > This patch adds a workaround to change the read/write opcodes > from QUAD to single bit mode. Idea here is to enable usage of > spi-flash on the board. > > TODO: > -Enable QUAD mode for spi-flash on HiFive Unleashed A00 board. > > Signed-off-b

Re: [U-Boot Patch v1 6/7] nor: add post bfpt fix handler for is25wp256 device

2020-01-23 Thread Vignesh Raghavendra
Hi, On 24/01/20 1:46 am, Sagar Shrikant Kadam wrote: > Update vendor id for ISSI flash, enable SFDP as ISSI flash > supports it and add support for spi_nor_fixups similar to > that done in linux. Flash vendor specific fixups can be > registered in spi_nor_ids, and will be called after BFPT > parsi

Re: [PATCH v2 0/2] spi: cadence-qspi: Move to spi-mem APIs

2020-01-19 Thread Vignesh Raghavendra
Hi Jagan, On 19/11/19 3:43 pm, Vignesh Raghavendra wrote: > First patch moves driver over to spi-mem framework and implement > spi_mem_ops. This is require to support more SPI Flash opcodes like SFDP > parsing etc. Series is in prepartion to add Octal mode for support for > the sa

Re: [PATCH v2 2/2] spi: cadence-qspi: Add direct mode support

2020-01-17 Thread Vignesh Raghavendra
On 17/01/20 6:21 pm, Simon Goldschmidt wrote: > On Tue, Nov 19, 2019 at 11:12 AM Vignesh Raghavendra wrote: >> >> Add support for Direct Access Controller mode of Cadence QSPI. This >> allows MMIO access to SPI NOR flash providing better read performance. >> Direc

Re: [U-Boot] [PATCH 1/4] asm: dma-mapping.h: Fix dma mapping functions

2020-01-16 Thread Vignesh Raghavendra
On 16/01/20 2:17 am, Tom Rini wrote: > On Fri, Nov 15, 2019 at 05:25:02PM +0530, Vignesh Raghavendra wrote: > >> Subsystems such as USB expect dma_map_single() and dma_unmap_single() to >> do dcache flush/invalidate operations as required. For example, see >> drivers/u

[PATCH v2 4/4] net: macb: Drop local cache flush

2020-01-16 Thread Vignesh Raghavendra
Now that arch specific dma mapping APIs take care of cache flush/invalidate, drop local cache flush operation. While at that fix dma_unmap_single() call to match new prototype Signed-off-by: Vignesh Raghavendra --- drivers/net/macb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions

[PATCH v2 2/4] mmc: tmio-common: Drop custom dma mapping functions

2020-01-16 Thread Vignesh Raghavendra
Drop local dma_map_single() and dma_unmap_single() and use arch specific common implementation Signed-off-by: Vignesh Raghavendra Acked-by: Masahiro Yamada --- drivers/mmc/tmio-common.c | 25 +++-- 1 file changed, 3 insertions(+), 22 deletions(-) diff --git a/drivers/mmc

[PATCH v2 3/4] mtd: denali: Drop custom dma mapping functions

2020-01-16 Thread Vignesh Raghavendra
Drop local dma_map_single() and dma_unmap_single() and use arch specific common implementation Signed-off-by: Vignesh Raghavendra Acked-by: Masahiro Yamada --- drivers/mtd/nand/raw/denali.c | 35 +++ 1 file changed, 3 insertions(+), 32 deletions(-) diff --git a

[PATCH v2 0/4] dma-mapping: Add cache flush/invalidation to dma_{un}map_single

2020-01-16 Thread Vignesh Raghavendra
file so that per driver implementation of these APIs can be avoided. travis-ci is green: https://travis-ci.org/r-vignesh/u-boot/builds/637784160 v2: Fix compilation failure on AM335x etc due to recent U-Boot changes Collect R-bys Vignesh Raghavendra (4): asm: dma-mapping.h: Fix dma mapping

[PATCH v2 1/4] asm: dma-mapping.h: Fix dma mapping functions

2020-01-16 Thread Vignesh Raghavendra
/denali.c etc..) Update arch specific dma_map_single() and dma_unmap_single() APIs to do cache flush/invalidate operations, so that drivers need not implement them locally. Signed-off-by: Vignesh Raghavendra Reviewed-by: Masahiro Yamada Reviewed-by: Rick Chen --- arch/arm/include/asm/dma-mapping.h

Re: [PATCH v2 0/2] spi: cadence-qspi: Move to spi-mem APIs

2020-01-14 Thread Vignesh Raghavendra
Hi, On 11/19/2019 3:43 PM, Vignesh Raghavendra wrote: > First patch moves driver over to spi-mem framework and implement > spi_mem_ops. This is require to support more SPI Flash opcodes like SFDP > parsing etc. Series is in prepartion to add Octal mode for support for > the same drive

Re: [PATCH] mtd: spi-nor: ids: Add GigaDevice gd25q128

2019-12-16 Thread Vignesh Raghavendra
On 14/11/19 5:31 am, Peter Robinson wrote: > Add gd25q128 128Mbit chip to spi-nor id table. > > Tested on Pinebook Pro > > Signed-off-by: Peter Robinson > --- Acked-by: Vignesh Raghavendra > drivers/mtd/spi/spi-nor-ids.c | 5 + > 1 file changed, 5 inserti

[PATCH] spi: ti_qspi: Add support for CS other than CS0

2019-12-11 Thread Vignesh Raghavendra
Make sure corresponding setup registers are updated depending on CS. This ensures that driver can support QSPI flashes on ChipSelects other than on CS0 Reported-by: Andreas Dannenberg Signed-off-by: Vignesh Raghavendra --- drivers/spi/ti_qspi.c | 21 + 1 file changed, 13

[PATCH v2 7/8] am65x_evm_a53_defconfig: Enable configs to support USB and DFU

2019-12-08 Thread Vignesh Raghavendra
Enable configs related to USB Host mode, Peripheral mode and DFU. Signed-off-by: Vignesh Raghavendra --- configs/am65x_evm_a53_defconfig | 19 +++ 1 file changed, 19 insertions(+) diff --git a/configs/am65x_evm_a53_defconfig b/configs/am65x_evm_a53_defconfig index cec99ee1e298

[PATCH v2 8/8] configs: am65x_evm: Enable USB keyboard as second stdin

2019-12-08 Thread Vignesh Raghavendra
Enable USB keyboard to be used as input device at U-Boot prompt. Both serial and USB keyboard will be active inputs simultaneously. Signed-off-by: Vignesh Raghavendra --- configs/am65x_evm_a53_defconfig | 3 +++ include/configs/am65x_evm.h | 1 + 2 files changed, 4 insertions(+) diff --git

[PATCH v2 2/8] phy: omap-usb2-phy: Fix warnings when built for ARM64

2019-12-08 Thread Vignesh Raghavendra
ase = (void *)base; ^ Fix this by using dev_read_addr_ptr() instead of dev_read_addr(). Signed-off-by: Vignesh Raghavendra Reviewed-by: Marek Vasut --- drivers/phy/omap-usb2-phy.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/phy/omap-usb2-phy.

[PATCH v2 6/8] configs: am65x_evm: Add DFU related env variables

2019-12-08 Thread Vignesh Raghavendra
Add env variables that set up dfu_alt_info for MMC/EMMC/OSPI. This is required to allow update of firmware on these media. Signed-off-by: Vignesh Raghavendra --- include/configs/am65x_evm.h | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/include/configs/am65x_evm.h

[PATCH v2 3/8] phy: omap-usb2-phy: Add support for AM654 USB2 PHY

2019-12-08 Thread Vignesh Raghavendra
AM654 SoC has USB2 PHY which is similar to existing USB2 PHYs on OMAP SoCs. Add support for the same. Signed-off-by: Vignesh Raghavendra Reviewed-by: Marek Vasut --- drivers/phy/omap-usb2-phy.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/phy/omap-usb2-phy.c b

[PATCH v2 4/8] arm: dts: k3-am65-main: add USB support

2019-12-08 Thread Vignesh Raghavendra
Add support for USB0 and USB1 instances on the AM6 SoC. Signed-off-by: Vignesh Raghavendra --- arch/arm/dts/k3-am65-main.dtsi | 78 ++ 1 file changed, 78 insertions(+) diff --git a/arch/arm/dts/k3-am65-main.dtsi b/arch/arm/dts/k3-am65-main.dtsi index

[PATCH v2 0/8] AM654: Add USB support

2019-12-08 Thread Vignesh Raghavendra
Vignesh Raghavendra (8): dwc3-generic: Add support for AM654 USB controller phy: omap-usb2-phy: Fix warnings when built for ARM64 phy: omap-usb2-phy: Add support for AM654 USB2 PHY arm: dts: k3-am65-main: add USB support arm: dts: k3-am654-base-board: enable USB1 configs: am65x_evm

[PATCH v2 1/8] dwc3-generic: Add support for AM654 USB controller

2019-12-08 Thread Vignesh Raghavendra
AM654 has DWC3 USB controller that is very similar to other TI SoCs. Add a new compatible to enable the same. Signed-off-by: Vignesh Raghavendra Reviewed-by: Marek Vasut --- drivers/usb/dwc3/dwc3-generic.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/dwc3/dwc3-generic.c b

[PATCH v2 5/8] arm: dts: k3-am654-base-board: enable USB1

2019-12-08 Thread Vignesh Raghavendra
Add pinmux for USB1 and enable it as a peripheral port in U-Boot specific dtsi since U-Boot does not support OTG. Disable USB0 as its not available on the baseboard. Signed-off-by: Vignesh Raghavendra --- arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 4 +++ arch/arm/dts/k3-am654-base

<    1   2   3   4   5   6   >