[U-Boot] [PATCH 1/4] usb: cdns3: Fix include file path

2019-11-18 Thread Vignesh Raghavendra
xhci.h has now been moved to include/usb/ folder. Therefore, update the path in the Cadence USB drivers. Signed-off-by: Vignesh Raghavendra --- drivers/usb/cdns3/core.c | 2 +- drivers/usb/cdns3/host.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/cdns3

[U-Boot] [PATCH 0/4] J721e: Add USB support

2019-11-18 Thread Vignesh Raghavendra
Add USB support for J721e SoC. First patch fixes a compile issue with Cadence USB driver. Rest of the patches add env, DT and configs related to USB. Vignesh Raghavendra (4): usb: cdns3: Fix include file path environment: ti: Add DFU environment variables k3_dfu.h arm: dts: k3-j721e: Add DT

[U-Boot] [PATCH 2/4] environment: ti: Add DFU environment variables k3_dfu.h

2019-11-18 Thread Vignesh Raghavendra
Setup env variables for updating firmwares on eMMC/OSPI/MMC via DFU Signed-off-by: Vignesh Raghavendra --- include/configs/j721e_evm.h | 10 +++ include/environment/ti/k3_dfu.h | 46 + 2 files changed, 56 insertions(+) create mode 100644 include

[U-Boot] [PATCH 4/4] configs: j721e_evm_a72_defconfig: Enable USB related configs

2019-11-18 Thread Vignesh Raghavendra
Enable USB host and device related configs. Signed-off-by: Vignesh Raghavendra --- configs/j721e_evm_a72_defconfig | 28 1 file changed, 28 insertions(+) diff --git a/configs/j721e_evm_a72_defconfig b/configs/j721e_evm_a72_defconfig index 748179e82317..0abbfc02e614

Re: [U-Boot] [PATCH v3] spi: cadence_qspi: support DM_CLK

2019-11-12 Thread Vignesh Raghavendra
On 12/11/19 4:57 PM, Simon Goldschmidt wrote: > On Tue, Nov 12, 2019 at 10:30 AM Tan, Ley Foon wrote: >> [...] But, unfortunately, such stub does not exists for clk_get_rate(). So on platforms w/o CONFIG_CLK set: arm-linux-gnueabihf-ld.bfd: drivers/spi/built-in.o: in

Re: [U-Boot] [PATCH v3] spi: cadence_qspi: support DM_CLK

2019-11-12 Thread Vignesh Raghavendra
On 12/11/19 2:44 PM, Simon Goldschmidt wrote: > On Tue, Nov 12, 2019 at 9:59 AM Tan, Ley Foon wrote: >> >> >> >>> -Original Message- >>> From: Simon Goldschmidt >>> Sent: Tuesday, November 12, 2019 5:43 AM >>> To: Jaga

[U-Boot] [PATCH 3/4] mtd: denali: Drop custom dma mapping functions

2019-11-15 Thread Vignesh Raghavendra
Drop local dma_map_single() and dma_unmap_single() and use arch specific common implementation Signed-off-by: Vignesh Raghavendra --- drivers/mtd/nand/raw/denali.c | 34 +++--- 1 file changed, 3 insertions(+), 31 deletions(-) diff --git a/drivers/mtd/nand/raw

[U-Boot] [PATCH 4/4] net: macb: Drop local cache flush

2019-11-15 Thread Vignesh Raghavendra
Now that arch specific dma mapping APIs take care of cache flush/invalidate, drop local cache flush operation. Signed-off-by: Vignesh Raghavendra --- drivers/net/macb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/macb.c b/drivers/net/macb.c index

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

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

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

2019-11-15 Thread Vignesh Raghavendra
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 --- arch/arm/include/asm/dma-mapping.h | 22 -- arch/nds32/include/asm/dma

[U-Boot] [PATCH 2/2] dma: Add stub of dma_memcpy and dma_get_device

2019-11-15 Thread Vignesh Raghavendra
Add stub for dma_memcpy() and dma_get_device when CONFIG_DMA is disabled. This avoids ifdefs in driver code using DMA APIs Signed-off-by: Vignesh Raghavendra --- include/dma.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/include/dma.h b/include/dma.h index d1c3d0df7d91

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

2019-11-15 Thread Vignesh Raghavendra
file so that per driver implementation of these APIs can be avoided. I don't have all the affected hardwares. Would greatly appreciate if these patches work fine on the affected platforms. Vignesh Raghavendra (4): asm: dma-mapping.h: Fix dma mapping functions mmc: tmio-common: Drop custom dma

[U-Boot] [PATCH 1/2] Kconfig: Rename CONFIG_SPL_DMA_SUPPORT to CONFIG_SPL_DMA

2019-11-15 Thread Vignesh Raghavendra
Rename CONFIG_SPL_DMA_SUPPORT to CONFIG_SPL_DMA. This allows to use macros such as CONFIG_IS_ENABLED() that allow conditional compilation of code for SPL and U-Boot. Signed-off-by: Vignesh Raghavendra --- common/spl/Kconfig | 2 +- configs/am57xx_evm_defconfig | 2

Re: [U-Boot] [PATCH 1/2] spi: cadence_qspi: Move to spi-mem framework

2019-11-06 Thread Vignesh Raghavendra
Hi Simon, On 07/11/19 1:25 AM, Simon Goldschmidt wrote: > Hi Vignesh, > > On Thu, Oct 17, 2019 at 2:31 PM Vignesh Raghavendra wrote: >> >> Hi Simon, >> >> On 17/10/19 4:50 PM, Simon Goldschmidt wrote: >>> On Mon, Oct 14, 2019 at 3:27 PM Vignesh Raghaven

Re: [U-Boot] [PATCH v2 2/4] dm: board: complete the initialization of the muxes in initr_dm()

2019-11-05 Thread Vignesh Raghavendra
Hi JJ, On 05/11/19 5:20 PM, Jean-Jacques Hiblot wrote: > This will probe the multiplexer devices that have a "u-boot,mux-autoprobe" > property. As a consequence they will be put in their idle state. > > Signed-off-by: Jean-Jacques Hiblot > > --- [...] > diff --git a/drivers/mux/mux-uclass.c

Re: [U-Boot] [PATCH 0/6] J721e: Add networking support

2019-11-21 Thread Vignesh Raghavendra
On 21-Nov-19 6:02 PM, Grygorii Strashko wrote: On 18/11/2019 12:59, Vignesh Raghavendra wrote: This patch enables networking support for TI's J721e SoC. Patch 1 adds a new interface to DMA uclass to get channel specific private/configuration data. Patch 2 to 4 use this interface to pass

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

2019-12-04 Thread Vignesh Raghavendra
Hi, On 26/11/19 12:39 pm, Michal Simek wrote: > On 19. 11. 19 15:20, Ashok Reddy Soma wrote: >> Add dual parallel and dual stacked support in spi-nor framework. >> Add dual flash support for nor-scan, read and write. >> How does the DT representation of these flashes look like? Is it in

[PATCH v3 02/10] dma: ti: k3-udma: Query DMA channels allocated from Resource Manager

2019-12-04 Thread Vignesh Raghavendra
On K3 SoCs, DMA channels are shared across multiple entities, therefore U-Boot DMA driver needs to query resource range from centralised resource management controller i.e SystemFirmware and use DMA channels allocated for A72 host. Add support for the same. Signed-off-by: Vignesh Raghavendra

[PATCH v3 3/6] net: ti: am65-cpsw-nuss: Rework RX flow ID handling

2019-12-04 Thread Vignesh Raghavendra
Get flow ID information for RX DMA channel using dma_get_cfg() interface instead of reading from DT. This is required in order to avoid DT update whenever there is change in the range of flow ID allocated to the host. Signed-off-by: Vignesh Raghavendra Acked-by: Joe Hershberger Reviewed

[PATCH v3 03/10] soc: ti: k3-navss-ringacc: Flush/invalidate caches on ring push/pop

2019-12-04 Thread Vignesh Raghavendra
Flush caches when pushing an element to ring and invalidate caches when popping an element from ring in Exposed Ring mode. Otherwise DMA transfers don't work properly in R5 SPL (with caches enabled) where the core is not in coherency domain. Signed-off-by: Vignesh Raghavendra Reviewed

[PATCH v3 4/6] net: ti: am65-cpsw-nuss: Add new compatible for J721e

2019-12-04 Thread Vignesh Raghavendra
Add new compatible to handle J721e SoC Signed-off-by: Vignesh Raghavendra Acked-by: Joe Hershberger Reviewed-by: Grygorii Strashko --- drivers/dma/ti/k3-udma.c| 2 +- drivers/net/ti/am65-cpsw-nuss.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/dma/ti/k3

[PATCH v3 0/6] J721e: Add networking support

2019-12-04 Thread Vignesh Raghavendra
and configs. Depends on [1] for ethernet to work [1] https://patchwork.ozlabs.org/project/uboot/list/?series=146508 v3: Add a debug print to print flow ID v2: Address comments from Grygorii. Collect Acks Vignesh Raghavendra (6): dma: Introduce dma_get_cfg() interface dma: ti: k3-udma: Implement

[PATCH v3 07/10] dma: ti: k3-udma: Switch to exposed ring mode

2019-12-04 Thread Vignesh Raghavendra
Exposed ring mode works well with 32 bit and 64 bit cores without need for Proxies for 32 bit cores. Therefore switch to exposed ring mode. Signed-off-by: Vignesh Raghavendra Reviewed-by: Grygorii Strashko --- drivers/dma/ti/k3-udma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH v3 6/6] configs: j721e_evm_a72_defconfig: Enable DMA and Ethernet

2019-12-04 Thread Vignesh Raghavendra
Enable configs related to DMA and Ethernet so as to support networking at U-Boot prompt Signed-off-by: Vignesh Raghavendra Acked-by: Joe Hershberger Reviewed-by: Grygorii Strashko --- configs/j721e_evm_a72_defconfig | 8 1 file changed, 8 insertions(+) diff --git a/configs

[PATCH v3 01/10] lib: Import few bitmap functions from Linux

2019-12-04 Thread Vignesh Raghavendra
Import few basic bitmap functions (bitmap_{weight,fill,set,clear,or}()) and their dependencies from Linux. These are required for upcoming DMA resource allocation support for TI's K3 SoCs. Signed-off-by: Vignesh Raghavendra Reviewed-by: Grygorii Strashko --- include/linux/bitmap.h | 133

[PATCH v3 10/10] dma: ti: k3-udma: Add new compatible to J721e

2019-12-04 Thread Vignesh Raghavendra
Add new compatible to handle UDMA support for J721e SoC Signed-off-by: Vignesh Raghavendra Reviewed-by: Grygorii Strashko --- drivers/dma/ti/k3-udma.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dma/ti/k3-udma.c b/drivers/dma/ti/k3-udma.c index 92c7af910406..cccffb600c4c 100644

[PATCH v3 5/6] arm: dts: k3-j721e-common-proc-board: Add DMA and CPSW related DT nodes

2019-12-04 Thread Vignesh Raghavendra
Add DT nodes related to DMA and CPSW to -u-boot.dtsi to get networking up on J721e EVM. Signed-off-by: Vignesh Raghavendra Acked-by: Joe Hershberger Reviewed-by: Grygorii Strashko --- .../k3-j721e-common-proc-board-u-boot.dtsi| 238 ++ 1 file changed, 238 insertions

[PATCH v3 05/10] dma: ti: k3-udma: Remove coherency check for cache ops

2019-12-04 Thread Vignesh Raghavendra
Remove redundant coherency checks before calling cache ops in UDMA driver. This is now handled in arch specific cache operation implementation based on Kconfig option Signed-off-by: Vignesh Raghavendra Reviewed-by: Grygorii Strashko --- drivers/dma/ti/k3-udma.c | 49

[PATCH v3 06/10] dma: ti: k3-udma: Fix debug prints during enabling MEM_TO_DEV transfers

2019-12-04 Thread Vignesh Raghavendra
Fix up the debug prints that were dumping state of TCHAN RT registers to use tchan for MEM_TO_DEV transfers. Signed-off-by: Vignesh Raghavendra Reviewed-by: Grygorii Strashko --- drivers/dma/ti/k3-udma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dma/ti/k3

[PATCH v3 04/10] soc: ti: k3-navss-ringacc: Get SYSFW reference from DT phandle

2019-12-04 Thread Vignesh Raghavendra
Instead of looking getting reference to SYSFW device using name which is not guaranteed to be constant, use phandle supplied in the DT node to get reference to SYSFW Signed-off-by: Vignesh Raghavendra Reviewed-by: Grygorii Strashko --- drivers/soc/ti/k3-navss-ringacc.c | 3 ++- 1 file changed

[PATCH v3 1/6] dma: Introduce dma_get_cfg() interface

2019-12-04 Thread Vignesh Raghavendra
. Clients can use unique configuration ID flags to get different configuration data from DMA driver. Signed-off-by: Vignesh Raghavendra Acked-by: Joe Hershberger Reviewed-by: Grygorii Strashko --- drivers/dma/dma-uclass.c | 12 include/dma-uclass.h | 11 +++ include/dma.h

[PATCH v3 09/10] dma: ti: k3-udma: Fix build warnings when building for 32 bit platforms

2019-12-04 Thread Vignesh Raghavendra
Cast pointers properly so as to avoid warnings when driver is built for 32 bit platforms Signed-off-by: Vignesh Raghavendra Reviewed-by: Grygorii Strashko --- drivers/dma/ti/k3-udma.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/dma/ti/k3-udma.c

[PATCH v3 00/10] dma: ti: k3-udma: Add support for J721e

2019-12-04 Thread Vignesh Raghavendra
v3: Address comments by Grygorii and add R-by Vignesh Raghavendra (10): lib: Import few bitmap functions from Linux dma: ti: k3-udma: Query DMA channels allocated from Resource Manager soc: ti: k3-navss-ringacc: Flush/invalidate caches on ring push/pop soc: ti: k3-navss-ringacc: Get

[PATCH v3 2/6] dma: ti: k3-udma: Implement dma_get_cfg() interface

2019-12-04 Thread Vignesh Raghavendra
MA channel. In order for basic ethernet to work, CPSW slave must be aware of the flow ID allocated for the RX channel by the DMA driver. This interface allows CPSW to query flow ID from DMA provider and configure it in CPSW HW. Signed-off-by: Vignesh Raghavendra Acked-by: Joe Hershberger Reviewed-by

[PATCH v3 08/10] dma: ti: k3-udma: Fix ring push operation for 32 bit cores

2019-12-04 Thread Vignesh Raghavendra
UDMA always expects 64 bit address pointer of the transfer descriptor in the Ring. But on 32 bit cores like R5, pointer is always 32 bit in size. Therefore copy over 32 bit pointer value to 64 bit variable before pushing it over to the ring, so that upper 32 bits are 0s. Signed-off-by: Vignesh

[PATCH v4 03/10] soc: ti: k3-navss-ringacc: Flush/invalidate caches on ring push/pop

2019-12-08 Thread Vignesh Raghavendra
Flush caches when pushing an element to ring and invalidate caches when popping an element from ring in Exposed Ring mode. Otherwise DMA transfers don't work properly in R5 SPL (with caches enabled) where the core is not in coherency domain. Signed-off-by: Vignesh Raghavendra Reviewed

[PATCH v4 00/10] dma: ti: k3-udma: Add support for J721e

2019-12-08 Thread Vignesh Raghavendra
v4: Rebase onto latest master and fix a compliation error due to recent changes in master. v3: Address comments by Grygorii and add R-by Vignesh Raghavendra (10): lib: Import few bitmap functions from Linux dma: ti: k3-udma: Query DMA channels allocated from Resource Manager soc: ti: k3

[PATCH v4 02/10] dma: ti: k3-udma: Query DMA channels allocated from Resource Manager

2019-12-08 Thread Vignesh Raghavendra
On K3 SoCs, DMA channels are shared across multiple entities, therefore U-Boot DMA driver needs to query resource range from centralised resource management controller i.e SystemFirmware and use DMA channels allocated for A72 host. Add support for the same. Signed-off-by: Vignesh Raghavendra

[PATCH v4 01/10] lib: Import few bitmap functions from Linux

2019-12-08 Thread Vignesh Raghavendra
Import few basic bitmap functions (bitmap_{weight,fill,set,clear,or}()) and their dependencies from Linux. These are required for upcoming DMA resource allocation support for TI's K3 SoCs. Signed-off-by: Vignesh Raghavendra Reviewed-by: Grygorii Strashko --- include/linux/bitmap.h | 133

[PATCH v4 05/10] dma: ti: k3-udma: Remove coherency check for cache ops

2019-12-08 Thread Vignesh Raghavendra
Remove redundant coherency checks before calling cache ops in UDMA driver. This is now handled in arch specific cache operation implementation based on Kconfig option Signed-off-by: Vignesh Raghavendra Reviewed-by: Grygorii Strashko --- drivers/dma/ti/k3-udma.c | 49

[PATCH v4 10/10] dma: ti: k3-udma: Add new compatible to J721e

2019-12-08 Thread Vignesh Raghavendra
Add new compatible to handle UDMA support for J721e SoC Signed-off-by: Vignesh Raghavendra Reviewed-by: Grygorii Strashko --- drivers/dma/ti/k3-udma.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dma/ti/k3-udma.c b/drivers/dma/ti/k3-udma.c index 92c7af910406..cccffb600c4c 100644

[PATCH v4 06/10] dma: ti: k3-udma: Fix debug prints during enabling MEM_TO_DEV transfers

2019-12-08 Thread Vignesh Raghavendra
Fix up the debug prints that were dumping state of TCHAN RT registers to use tchan for MEM_TO_DEV transfers. Signed-off-by: Vignesh Raghavendra Reviewed-by: Grygorii Strashko --- drivers/dma/ti/k3-udma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dma/ti/k3

[PATCH v4 09/10] dma: ti: k3-udma: Fix build warnings when building for 32 bit platforms

2019-12-08 Thread Vignesh Raghavendra
Cast pointers properly so as to avoid warnings when driver is built for 32 bit platforms Signed-off-by: Vignesh Raghavendra Reviewed-by: Grygorii Strashko --- drivers/dma/ti/k3-udma.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/dma/ti/k3-udma.c

[PATCH v4 07/10] dma: ti: k3-udma: Switch to exposed ring mode

2019-12-08 Thread Vignesh Raghavendra
Exposed ring mode works well with 32 bit and 64 bit cores without need for Proxies for 32 bit cores. Therefore switch to exposed ring mode. Signed-off-by: Vignesh Raghavendra Reviewed-by: Grygorii Strashko --- drivers/dma/ti/k3-udma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH v4 08/10] dma: ti: k3-udma: Fix ring push operation for 32 bit cores

2019-12-08 Thread Vignesh Raghavendra
UDMA always expects 64 bit address pointer of the transfer descriptor in the Ring. But on 32 bit cores like R5, pointer is always 32 bit in size. Therefore copy over 32 bit pointer value to 64 bit variable before pushing it over to the ring, so that upper 32 bits are 0s. Signed-off-by: Vignesh

[PATCH v4 04/10] soc: ti: k3-navss-ringacc: Get SYSFW reference from DT phandle

2019-12-08 Thread Vignesh Raghavendra
Instead of looking getting reference to SYSFW device using name which is not guaranteed to be constant, use phandle supplied in the DT node to get reference to SYSFW Signed-off-by: Vignesh Raghavendra Reviewed-by: Grygorii Strashko --- drivers/soc/ti/k3-navss-ringacc.c | 3 ++- 1 file changed

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

[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] usb: cdns3: ep0: Fix build warnings related to cache ops

2019-12-05 Thread Vignesh Raghavendra
Since, commit 62f9b6544728 ("common: Move older CPU functions to their own header") cache ops functions are declared in a separate header. Include the same to avoid build warnings. Signed-off-by: Vignesh Raghavendra --- drivers/usb/cdns3/ep0.c | 1 + 1 file changed, 1 insertion(+)

[PATCH 1/3] mtd: spi-nor-core: Add octal mode support

2019-12-05 Thread Vignesh Raghavendra
Add support for Octal flash devices. Octal flash devices use 8 IO lines for data transfer. Currently only 1-1-8 Octal Read mode is supported. Signed-off-by: Vignesh Raghavendra --- drivers/mtd/spi/sf_internal.h | 3 ++- drivers/mtd/spi/spi-nor-core.c | 20 +++- drivers/spi/spi

[PATCH 2/3] spi: cadence-qspi: Add support for Cadence Octal SPI controller

2019-12-05 Thread Vignesh Raghavendra
Cadence OSPI is similar to QSPI IP except that it supports Octal IO (8 IO lines) flashes. Add support for Cadence OSPI IP with existing driver using new compatible Signed-off-by: Vignesh Raghavendra --- drivers/spi/cadence_qspi.c | 1 + drivers/spi/cadence_qspi_apb.c | 8 ++-- 2 files

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

2019-12-05 Thread Vignesh Raghavendra
This series adds Octal mode support for Micron's mt35x flash. Also adds Octal mode support for Cadance OSPI/QSPI controller. Currently only 1-1-8 mode is supported. Vignesh Raghavendra (3): mtd: spi-nor-core: Add octal mode support spi: cadence-qspi: Add support for Cadence Octal SPI

[PATCH 3/3] spi: cadence-qspi: Add compatible for TI AM654

2019-12-05 Thread Vignesh Raghavendra
TI's AM654 SoC has a Cadence OSPI IP. Add a new compatible string for the same. Signed-off-by: Vignesh Raghavendra --- drivers/spi/cadence_qspi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/cadence_qspi.c b/drivers/spi/cadence_qspi.c index 6374d3976a4a..f8b69406d4b9 100644

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 inser

Re: [U-Boot] [PATCH v2 14/38] spi: Add support for memory-mapped flash

2019-10-18 Thread Vignesh Raghavendra
Hi Simon, On 16/10/19 10:10 PM, Simon Glass wrote: > Hi Vignesh, > > On Wed, 16 Oct 2019 at 04:28, Vignesh Raghavendra wrote: >> >> Hi Simon, >> >> On 12/10/19 10:03 AM, Bin Meng wrote: >>> Hi Simon, >>> >>> On Sat, Oct 12, 2019 at 11:

Re: [U-Boot] [PATCH v2 14/38] spi: Add support for memory-mapped flash

2019-10-18 Thread Vignesh Raghavendra
On 18/10/19 7:52 AM, Simon Glass wrote: > Hi, > > On Thu, 17 Oct 2019 at 08:28, Simon Glass wrote: >> >> Hi Vignesh, >> >> On Wed, 16 Oct 2019 at 04:28, Vignesh Raghavendra wrote: >>> >>> Hi Simon, >>> >>> On 12/10/19 10

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

2019-10-18 Thread Vignesh Raghavendra
Hi, On 18/10/19 2:34 PM, Simon Goldschmidt wrote: > On Thu, Oct 17, 2019 at 2:55 PM Simon Goldschmidt > wrote: >> >> On Thu, Oct 17, 2019 at 2:44 PM Vignesh Raghavendra wrote: >>> >>> Hi, >>> >>> On 17/10/19 5:09 PM, Simon Goldschmi

Re: [U-Boot] [PATCH v2 14/38] spi: Add support for memory-mapped flash

2019-10-16 Thread Vignesh Raghavendra
Hi Simon, On 12/10/19 10:03 AM, Bin Meng wrote: > Hi Simon, > > On Sat, Oct 12, 2019 at 11:08 AM Simon Glass wrote: >> >> Hi Bin, >> >> On Wed, 9 Oct 2019 at 07:55, Bin Meng wrote: >>> >>> Hi Simon, >>> >>> On Wed, Sep 25, 2019 at 10:12 PM Simon Glass wrote: On x86 platforms the SPI

Re: [U-Boot] [PATCH v2 0/6] J721e: Add HyperBus support

2019-10-15 Thread Vignesh Raghavendra
Hi Tom, On 10/10/19 11:22 AM, Vignesh Raghavendra wrote: > This series adds support for HyperBus Memory Controller of TI's J721e > and AM654 SoCs. > Stefan has provided Reviewed-bys for CFI related changes. Could you please pull in this series if there no further comments? Regard

Re: [U-Boot] Regression in fastboot on X15 due to CDCE913 enabling

2019-10-24 Thread Vignesh Raghavendra
Hi Sam, On 24-Oct-19 7:16 PM, Sam Protsenko wrote: > Putting Vignesh to "To:". > > Hi Vignesh, > > Please address Tero's comments below (I've marked with ^^^). Thanks. > > On Thu, Oct 24, 2019 at 3:54 PM Tero Kristo wrote: >> >> On 24/10/2019 13:32, Sam Protsenko wrote: >>> Hi Tero, >>> >>>

Re: [U-Boot] Regression in fastboot on X15 due to CDCE913 enabling

2019-10-24 Thread Vignesh Raghavendra
Hi Andrew, On 24/10/19 11:49 PM, Andrew F. Davis wrote: > On 10/24/19 11:25 AM, Vignesh Raghavendra wrote: >> Hi Sam, >> >> On 24-Oct-19 7:16 PM, Sam Protsenko wrote: >>> Putting Vignesh to "To:". >>> >>> Hi Vignesh, >>> >

Re: [U-Boot] [PATCH] usb: composite: add BOS descriptor support to composite framework

2019-10-24 Thread Vignesh Raghavendra
Hi Michal, On 14/10/19 6:22 PM, Michal Simek wrote: > From: T Karthik Reddy > > To add usb-3.0 support to peripheral device add BOS & SS capability > descriptors to gadget composite framework. > How was this patch tested? With what gadget function driver was this tested? I don't see *any*

[U-Boot] [PATCH 1/1] dwc3-generic: Don't fail probe if clk/reset entries are absent

2019-10-25 Thread Vignesh Raghavendra
x-idk: Configure the CDCE913 clock synthesizer") Reported-by: Sam Protsenko Signed-off-by: Vignesh Raghavendra --- drivers/usb/dwc3/dwc3-generic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/dwc3/dwc3-generic.c b/drivers/usb/dwc3/dwc3-generic.c index 40

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

2019-10-23 Thread Vignesh Raghavendra
On 18/10/19 6:12 PM, Simon Goldschmidt wrote: > On Fri, Oct 18, 2019 at 2:40 PM Vignesh Raghavendra wrote: >> >> Hi, >> >> On 18/10/19 2:34 PM, Simon Goldschmidt wrote: >>> On Thu, Oct 17, 2019 at 2:55 PM Simon Goldschmidt >>> wrote: >

Re: [U-Boot] [PATCH] cmd: sf: Mark it default if DM_SPI_FLASH enabled

2019-10-16 Thread Vignesh Raghavendra
H. > > This would prevent explicit adding of CONFIG_CMD_SF when > DM_SPI_FLASH being enabled. > > Cc: Tom Rini > Cc: Vignesh Raghavendra > Signed-off-by: Jagan Teki > --- Acked-by: Vignesh Raghavendra > cmd/Kconfig | 1 + > 1 file changed, 1 insertion(+) >

Re: [U-Boot] [PATCH v2] mtd: spi: Kconfig: Imply SPI_FLASH if DM_SPI_FLASH

2019-10-16 Thread Vignesh Raghavendra
DM_SPI_FLASH being used. > > Cc: Vignesh R > Signed-off-by: Jagan Teki > --- Acked-by: Vignesh Raghavendra > Changes for v2: > - use imply than select > > drivers/mtd/spi/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/mtd/spi/K

Re: [U-Boot] [PATCH 1/2] spi: cadence_qspi: Move to spi-mem framework

2019-10-17 Thread Vignesh Raghavendra
Hi Simon, On 17/10/19 4:50 PM, Simon Goldschmidt wrote: > On Mon, Oct 14, 2019 at 3:27 PM Vignesh Raghavendra wrote: >> >> Current Cadence QSPI driver has few limitations. It assumes all read >> operations to be in Quad mode and thus does not support SFDP parsing. >> A

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

2019-10-17 Thread Vignesh Raghavendra
Hi, On 17/10/19 5:09 PM, Simon Goldschmidt wrote: > On Mon, Oct 14, 2019 at 3:27 PM 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. >>

Re: [U-Boot] [PATCH v3 3/3] spi-nor: spi-nor-ids: Add USE_FSR flag for mt25q* and n25q* entry

2019-10-22 Thread Vignesh Raghavendra
Hi Jagan, On 23/10/19 12:00 AM, Jagan Teki wrote: > Hi Vignesh, > > On Fri, Oct 11, 2019 at 1:28 PM Vignesh Raghavendra wrote: >> >> n25q* and mt25q* (both 256Mb and 512Mb) flashes support Flag status >> register that indicates various errors that may be encoun

[U-Boot] [PATCH v3 2/6] mtd: Add TI HyperBus Memory Controller driver

2019-10-23 Thread Vignesh Raghavendra
-off-by: Vignesh Raghavendra --- v3: No change v2: No change drivers/mtd/Kconfig | 7 +++ drivers/mtd/Makefile | 1 + drivers/mtd/hbmc-am654.c | 105 +++ 3 files changed, 113 insertions(+) create mode 100644 drivers/mtd/hbmc-am654.c diff --git

[U-Boot] [PATCH v3 5/6] configs: j721e_evm.h: Define CONFIG_SYS_MAX_FLASH_BANKS_DETECT

2019-10-23 Thread Vignesh Raghavendra
Define CONFIG_SYS_MAX_FLASH_BANKS_DETECT so that number of flash banks are automatically detected by CFI flash driver Signed-off-by: Vignesh Raghavendra --- v3: No change include/configs/j721e_evm.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/configs/j721e_evm.h b/include

[U-Boot] [PATCH v3 0/6] J721e: Add HyperBus support

2019-10-23 Thread Vignesh Raghavendra
This series adds support for HyperBus Memory Controller of TI's J721e and AM654 SoCs. v3: Rebase onto latest master branch Vignesh Raghavendra (6): mtd: cfi_flash: Use CONFIG_SYS_MONITOR_BASE only when defined mtd: Add TI HyperBus Memory Controller driver arm: dts: k3-j721e-mcu-wakeup: Add

[U-Boot] [PATCH v3 3/6] arm: dts: k3-j721e-mcu-wakeup: Add HyperBus Controller node

2019-10-23 Thread Vignesh Raghavendra
-by: Vignesh Raghavendra --- v3: Rebase onto latest master Increase functional clock frequency to 250MHz v2: No change arch/arm/dts/k3-j721e-mcu-wakeup.dtsi | 26 ++ 1 file changed, 26 insertions(+) diff --git a/arch/arm/dts/k3-j721e-mcu-wakeup.dtsi b/arch/arm/dts/k3

[U-Boot] [PATCH v3 4/6] arm: dts: k3-j721e-som-p0: Add HyperFlash node

2019-10-23 Thread Vignesh Raghavendra
J721e SoM as a 64MB HyperFlash on board. Add pinmux and DT node for the same. Signed-off-by: Vignesh Raghavendra --- v3: No change arch/arm/dts/k3-j721e-som-p0.dtsi | 34 +++ 1 file changed, 34 insertions(+) diff --git a/arch/arm/dts/k3-j721e-som-p0.dtsi b/arch

[U-Boot] [PATCH v3 6/6] configs: j721e_evm_a72_defconfig: Add HBMC related configs

2019-10-23 Thread Vignesh Raghavendra
Enable HBMC and HyperFlash in A72 SPL and A72 U-Boot Signed-off-by: Vignesh Raghavendra --- v3: No change configs/j721e_evm_a72_defconfig | 12 1 file changed, 12 insertions(+) diff --git a/configs/j721e_evm_a72_defconfig b/configs/j721e_evm_a72_defconfig index 6729e03620c8

[U-Boot] [PATCH v3 1/6] mtd: cfi_flash: Use CONFIG_SYS_MONITOR_BASE only when defined

2019-10-23 Thread Vignesh Raghavendra
Make use of CONFIG_SYS_MONITOR_BASE only when available to avoid build error when CONFIG_SYS_MONITOR_BASE is not defined. Signed-off-by: Vignesh Raghavendra --- v3: No change v2: Make macro check consistent as pointed out by Stefan drivers/mtd/cfi_flash.c | 6 -- 1 file changed, 4

Re: [U-Boot] [PATCH v2 3/6] arm: dts: k3-j721e-mcu-wakeup: Add HyperBus Controller node

2019-10-23 Thread Vignesh Raghavendra
Hi Stefan, On 23/10/19 8:06 AM, Stefan Roese wrote: > Hi Vignesh, > > On 10.10.19 07:52, Vignesh Raghavendra wrote: [...] >> + >> +    hbmc: hyperbus@47034000 { >> +    compatible = "ti,j721e-hbmc", "ti,am654-hbmc";

Re: [U-Boot] [PATCH v3 075/108] x86: spi: Don't enable SPI_FLASH_BAR by default

2019-11-19 Thread Vignesh Raghavendra
Hi, On 19/11/19 7:03 PM, Bin Meng wrote: > +Vignesh > > On Mon, Oct 21, 2019 at 11:40 AM Simon Glass wrote: >> >> We don't normally need this on x86 unless the size of SPI flash devices is >> larger than 16MB. This can be enabled by particular SoCs as needed, since >> it adds to code size. >>

Re: [U-Boot] [PATCH 1/4] usb: cdns3: Fix include file path

2019-11-18 Thread Vignesh Raghavendra
Hi Marek, On 18/11/19 7:42 PM, Marek Vasut wrote: > On 11/18/19 2:46 PM, Vignesh Raghavendra wrote: >> xhci.h has now been moved to include/usb/ folder. Therefore, update the > > s/folder/directory/ ; I can update it while applying. Agree, Thanks! > >> path in

Re: [U-Boot] [PATCH 02/11] dma: ti: k3-udma: Query DMA channels allocated from Resource Manager

2019-11-18 Thread Vignesh Raghavendra
On 19/11/19 12:57 AM, Grygorii Strashko wrote: > > > On 14/11/2019 11:14, Vignesh Raghavendra wrote: >> On K3 SoCs, DMA channels are shared across multiple entities, therefore >> U-Boot DMA driver needs to query resource range from centralised >> resourc

Re: [U-Boot] [PATCH] arm: ti: dra7: move BOOTP_DNS2 and PHY_TI in defconfig

2019-11-20 Thread Vignesh Raghavendra
On 20/11/19 2:46 PM, Grygorii Strashko wrote: > > > On 20/11/2019 06:30, Lokesh Vutla wrote: >> >> >> On 20/11/19 12:14 AM, Grygorii Strashko wrote: >>> Move BOOTP_DNS2 and PHY_TI from dra7xx_evm.h to >>> dra7xx_evm_defconfig. >>> >>> Signed-off-by: Grygorii Strashko >>> --- >>>  

[U-Boot] [PATCH v2 1/2] spi: cadence_qspi: Move to spi-mem framework

2019-11-19 Thread Vignesh Raghavendra
-by: Vignesh Raghavendra --- v2: No change 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/drivers/spi

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

2019-11-19 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 --- v2: Add DMA support and update commit message drivers/spi/cadence_qspi.c | 40 - drivers/spi/cadence_qspi.h | 19

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

2019-11-19 Thread Vignesh Raghavendra
://patchwork.ozlabs.org/patch/1195556/ Vignesh Raghavendra (2): spi: cadence_qspi: Move to spi-mem framework spi: cadence-qspi: Add direct mode support drivers/spi/cadence_qspi.c | 148 +++--- drivers/spi/cadence_qspi.h | 24 +++-- drivers/spi/cadence_qspi_apb.c

[U-Boot] [PATCH v2 2/6] dma: ti: k3-udma: Implement dma_get_cfg() interface

2019-12-02 Thread Vignesh Raghavendra
MA channel. In order for basic ethernet to work, CPSW slave must be aware of the flow ID allocated for the RX channel by the DMA driver. This interface allows CPSW to query flow ID from DMA provider and configure it in CPSW HW. Signed-off-by: Vignesh Raghavendra Acked-by: Joe Hershberger --- drivers

[U-Boot] [PATCH v2 3/6] net: ti: am65-cpsw-nuss: Rework RX flow ID handling

2019-12-02 Thread Vignesh Raghavendra
Get flow ID information for RX DMA channel using dma_get_cfg() interface instead of reading from DT. This is required in order to avoid DT update whenever there is change in the range of flow ID allocated to the host. Signed-off-by: Vignesh Raghavendra Acked-by: Joe Hershberger --- drivers/net

[U-Boot] [PATCH v2 0/6] J721e: Add networking support

2019-12-02 Thread Vignesh Raghavendra
and configs. Depends on [1] for ethernet to work [1] http://patchwork.ozlabs.org/project/uboot/list/?series=145954 v2: Address comments from Grygorii. Collect Acks Vignesh Raghavendra (6): dma: Introduce dma_get_cfg() interface dma: ti: k3-udma: Implement dma_get_cfg() interface net: ti: am65

[U-Boot] [PATCH v2 5/6] arm: dts: k3-j721e-common-proc-board: Add DMA and CPSW related DT nodes

2019-12-02 Thread Vignesh Raghavendra
Add DT nodes related to DMA and CPSW to -u-boot.dtsi to get networking up on J721e EVM. Signed-off-by: Vignesh Raghavendra Acked-by: Joe Hershberger --- .../k3-j721e-common-proc-board-u-boot.dtsi| 239 ++ 1 file changed, 239 insertions(+) diff --git a/arch/arm/dts/k3-j721e

[U-Boot] [PATCH RESEND v2 00/10] dma: ti: k3-udma: Add support for J721e

2019-12-02 Thread Vignesh Raghavendra
Vignesh Raghavendra (10): lib: Import few bitmap functions from Linux dma: ti: k3-udma: Query DMA channels allocated from Resource Manager soc: ti: k3-navss-ringacc: Flush/invalidate caches on ring push/pop soc: ti: k3-navss-ringacc: Get SYSFW reference from DT phandle dma: ti: k3-udma

[U-Boot] [PATCH v2 4/6] net: ti: am65-cpsw-nuss: Add new compatible for J721e

2019-12-02 Thread Vignesh Raghavendra
Add new compatible to handle J721e SoC Signed-off-by: Vignesh Raghavendra Acked-by: Joe Hershberger --- drivers/dma/ti/k3-udma.c| 2 +- drivers/net/ti/am65-cpsw-nuss.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/dma/ti/k3-udma.c b/drivers/dma/ti/k3

[U-Boot] [PATCH v2 6/6] configs: j721e_evm_a72_defconfig: Enable DMA and Ethernet

2019-12-02 Thread Vignesh Raghavendra
Enable configs related to DMA and Ethernet so as to support networking at U-Boot prompt Signed-off-by: Vignesh Raghavendra Acked-by: Joe Hershberger --- configs/j721e_evm_a72_defconfig | 8 1 file changed, 8 insertions(+) diff --git a/configs/j721e_evm_a72_defconfig b/configs

[U-Boot] [PATCH v2 1/6] dma: Introduce dma_get_cfg() interface

2019-12-02 Thread Vignesh Raghavendra
. Clients can use unique configuration ID flags to get different configuration data from DMA driver. Signed-off-by: Vignesh Raghavendra Acked-by: Joe Hershberger --- drivers/dma/dma-uclass.c | 12 include/dma-uclass.h | 11 +++ include/dma.h| 11 +++ 3

<    1   2   3   4   5   6   >