[U-Boot] [PATCH 6/8] defconfig: k2e_evm_defconfig: enable net driver model

2016-01-20 Thread Mugunthan V N
enable net driver model for k2e evm as keystone_net supports driver model Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- configs/k2e_evm_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/k2e_evm_defconfig b/configs/k2e_evm_defconfig index 9fb9dac..5616be9

[U-Boot] [PATCH 1/6] arm: omap: sata: move enable sata clocks to enable_basic_clocks()

2016-01-18 Thread Mugunthan V N
All the clocks which has to be enabled has to be done in enable_basic_clocks(), so moving enable sata clock to common clocks enable function. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- arch/arm/cpu/armv7/omap-common/sata.c | 23 --- arch/arm/cpu/armv7

[U-Boot] [PATCH 0/6] driver model bring-up of sata device on dra72 and dra74 evm

2016-01-18 Thread Mugunthan V N
/~mugunthanvnm/ti-u-boot/mugunth-ti-u-boot.git dm-sata Mugunthan V N (6): arm: omap: sata: move enable sata clocks to enable_basic_clocks() dm: implement a SATA uclass arm: omap-common: sata: prepare driver for DM conversion drivers: block: dwc_ahci: Implement a driver for Synopsys DWC sata

[U-Boot] [PATCH 4/6] drivers: block: dwc_ahci: Implement a driver for Synopsys DWC sata device

2016-01-18 Thread Mugunthan V N
Implement a sata driver for Synopsys DWC sata device based on U-boot driver model. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- arch/arm/cpu/armv7/omap-common/sata.c | 2 + drivers/block/Kconfig | 7 drivers/block/Makefile| 1 + drivers

[U-Boot] [PATCH 6/6] defconfig: dra72_evm: enable sata driver model

2016-01-18 Thread Mugunthan V N
Enable sata driver model for dra72_evm as dwc_ahci supports driver model Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- configs/dra72_evm_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/dra72_evm_defconfig b/configs/dra72_evm_defconfig index b57ecca..b

[U-Boot] [PATCH 3/6] arm: omap-common: sata: prepare driver for DM conversion

2016-01-18 Thread Mugunthan V N
Prepare sata driver for DM conversion by abstracting sata phy init to seperate function. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- arch/arm/cpu/armv7/omap-common/sata.c | 13 + include/sata.h| 2 ++ 2 files changed, 11 insertions(+), 4 del

[U-Boot] [PATCH 5/6] defconfig: dra74_evm: enable sata driver model

2016-01-18 Thread Mugunthan V N
Enable sata driver model for dra74_evm as dwc_ahci supports driver model Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- configs/dra74_evm_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/dra74_evm_defconfig b/configs/dra74_evm_defconfig index 6e5a705..1

[U-Boot] [PATCH 2/6] dm: implement a SATA uclass

2016-01-18 Thread Mugunthan V N
Implement a SATA uclass that can represent a SATA controller. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- drivers/block/Kconfig | 10 +++ drivers/block/Makefile | 2 ++ drivers/block/sata-uclass.c | 69 + include/dm/

Re: [U-Boot] [PATCH 2/6] dm: implement a SATA uclass

2016-01-18 Thread Mugunthan V N
On Monday 18 January 2016 02:53 PM, Bin Meng wrote: > +Simon > > On Mon, Jan 18, 2016 at 4:47 PM, Mugunthan V N <mugunthan...@ti.com> wrote: >> Implement a SATA uclass that can represent a SATA controller. >> >> Signed-off-by: Mugunthan V N <mugunthan...@ti.c

Re: [U-Boot] [PATCH v4 02/19] dm: timer: uclass: add timer init in uclass driver to add timer device

2016-01-16 Thread Mugunthan V N
On Saturday 16 January 2016 09:33 PM, Mugunthan V N wrote: > Adding timer init function in timer-uclass driver to create and > initialize the timer device on platforms where u-boot,dm-pre-reloc > is not used. Since there will be multiple timer devices in the > system, adding a tic

Re: [U-Boot] [PATCH v4 02/19] dm: timer: uclass: add timer init in uclass driver to add timer device

2016-01-16 Thread Mugunthan V N
On Saturday 16 January 2016 10:11 PM, Simon Glass wrote: > Hi Mugunthan, > > On 16 January 2016 at 09:08, Mugunthan V N <mugunthan...@ti.com> wrote: >> On Saturday 16 January 2016 09:33 PM, Mugunthan V N wrote: >>> Adding timer init function in timer-uclass drive

[U-Boot] [PATCH v4 02/19] dm: timer: uclass: add timer init in uclass driver to add timer device

2016-01-16 Thread Mugunthan V N
-boot. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- doc/device-tree-bindings/chosen.txt | 43 drivers/timer/timer-uclass.c| 44 + include/timer.h | 9 lib/

[U-Boot] [PATCH] drivers: uclass: timer: rename timer_init() to dm_timer_init()

2016-01-16 Thread Mugunthan V N
(). Also remove reinitializing of ret in timer_init(). Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- Tested this patch on dra74x evm. and pushed a branch [2]. [1] - http://pastebin.ubuntu.com/14524076/ [2] - git://git.ti.com/~mugunthanvnm/ti-u-boot/mugunth-ti-u-boot.git dm-tim

Re: [U-Boot] [PATCH v2 1/6] dm: implement a DMA uclass

2016-01-05 Thread Mugunthan V N
On Wednesday 06 January 2016 05:54 AM, Simon Glass wrote: > Hi Mugunthan, > > On 23 December 2015 at 09:42, Mugunthan V N <mugunthan...@ti.com> wrote: >> Implement a DMA uclass so that the devices like ethernet, spi, >> mmc etc can offload the data transfers from/

[U-Boot] [PATCH RFC 4/4] defconfig: am437x_sk_evm: enable usb driver model

2016-01-04 Thread Mugunthan V N
enable spi driver model for am437x_sk_evm as usb xhci-omap supports driver model Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- configs/am437x_sk_evm_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/am437x_sk_evm_defconfig b/configs/am437x_sk_evm_defconfig

[U-Boot] [PATCH RFC 0/4] driver model bringup of xhci-omap on am437x sk evm

2016-01-04 Thread Mugunthan V N
OxBFF87E5E board_init_r(struct global_data *, unsigned long)() at board_r.c:976 OxBFF63EB8 OxBFF6194C (no symbols are defined for OxBFF6194C) [1]: git://git.ti.com/~mugunthanvnm/ti-u-boot/mugunth-ti-u-boot.git dm-usb-rfc [2]: http://pastebin.ubuntu.com/14398751/ Mugunthan V N (4): configs: am43xx

[U-Boot] [PATCH RFC 2/4] drivers: usb: xhci-omap: convert driver to adopt driver model

2016-01-04 Thread Mugunthan V N
Adopt usb xhci-omap to driver model Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- drivers/usb/host/xhci-omap.c | 77 1 file changed, 77 insertions(+) diff --git a/drivers/usb/host/xhci-omap.c b/drivers/usb/host/xhci-omap.c index f

[U-Boot] [PATCH RFC 1/4] configs: am43xx: enabled USB support for U-boot

2016-01-04 Thread Mugunthan V N
Currently USB is enabled only when boot from USB host mode. Enable USB for U-boot so that Kernel/U-boot binaries can be loaded from USB for update or booting. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- include/configs/am43xx_evm.h | 3 ++- 1 file changed, 2 insertions(+), 1 de

[U-Boot] [PATCH RFC 3/4] arm: dts: am4372: add xhci-omap compatible to host node

2016-01-04 Thread Mugunthan V N
since dwc3 node can support both host and device mode, but U-boot driver for host and device are separate driver, adding host compatible for host usb node. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- arch/arm/dts/am4372.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [U-Boot] [PATCH v2 0/8] sf: Add flash_ids inside Core

2015-12-30 Thread Mugunthan V N
s/mtd/spi/sf_internal.h | 5 +- > drivers/mtd/spi/spi_flash.c | 446 > +++--- > include/linux/err.h | 5 + > 4 files changed, 383 insertions(+), 77 deletions(-) > Tested this series on AM437x SK and DRA74 EVM. Tes

Re: [U-Boot] [PATCH v2 8/8] sf: Fix few naming convension for read modes

2015-12-30 Thread Mugunthan V N
gt; to flash. $sub and commit: s/convension/convention Regards Mugunthan V N ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH re-send v6 05/17] spi: Add support for dual and quad mode

2015-12-29 Thread Mugunthan V N
On Monday 28 December 2015 08:19 PM, Jagan Teki wrote: > On 23 December 2015 at 20:39, Mugunthan V N <mugunthan...@ti.com> wrote: >> spi bus can support dual and quad wire data transfers for tx and >> rx. So defining dual and quad modes for both tx and rx. Also add >>

Re: [U-Boot] [PATCH v7] spi: Add support for dual and quad mode

2015-12-29 Thread Mugunthan V N
On Monday 28 December 2015 11:08 PM, Jagan Teki wrote: > From: Mugunthan V N <mugunthan...@ti.com> > > spi bus can support dual and quad wire data transfers for tx and > rx. So defining dual and quad modes for both tx and rx. Also add > support to parse bus width used for sp

[U-Boot] [PATCH v3 02/19] dm: timer: uclass: add timer init to add timer device

2015-12-25 Thread Mugunthan V N
-by: Mugunthan V N <mugunthan...@ti.com> --- Submitting 02/19 only for v3 as there is no change on other patches and to reduce traffic. This patch is verified on AM437x SK and DRA74 EVM logs [1] and pushed a branch for testing [1] - http://pastebin.ubuntu.com/14205433/ [2] - git://git.

Re: [U-Boot] [PATCH v3 02/19] dm: timer: uclass: add timer init to add timer device

2015-12-25 Thread Mugunthan V N
On Friday 25 December 2015 05:43 PM, Bin Meng wrote: > Hi Mugunthan, > > On Fri, Dec 25, 2015 at 6:41 PM, Mugunthan V N <mugunthan...@ti.com> wrote: >> Adding timer_init function to create and initialize the timer >> device on platforms where u-boot,dm-p

Re: [U-Boot] [PATCH v2 02/19] dm: timer: uclass: add timer init to add timer device

2015-12-24 Thread Mugunthan V N
if (ret) > return ret; > if (!dev) > return -ENODEV; > gd->timer = dev; > } else { > > } > Oops!, will fix it in next version. Regards Mugunthan V N ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH v2 11/19] arm: dts: am335x-boneblack: add tick-timer to chosen node

2015-12-24 Thread Mugunthan V N
Specify which timer to be used as tick-timer in chosen node. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- arch/arm/dts/am335x-boneblack.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/am335x-boneblack.dts b/arch/arm/dts/am335x-boneblack.dts index 679248a..2

[U-Boot] [PATCH v2 14/19] defconfig: am335x_gp_evm: enable timer driver model

2015-12-24 Thread Mugunthan V N
Enable timer driver model for am335x_gp_evm as omap-timer supports driver model. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- configs/am335x_gp_evm_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/am335x_gp_evm_defconfig b/configs/am335x_gp_evm_defconfig

[U-Boot] [PATCH v2 13/19] arm: dts: am335x-evm: add tick-timer to chosen node

2015-12-24 Thread Mugunthan V N
Specify timer2 to be used as tick-timer in chosen node. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- arch/arm/dts/am335x-evm.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/am335x-evm.dts b/arch/arm/dts/am335x-evm.dts index e1c5d4f..c0bc2af 100644 --- a/ar

[U-Boot] [PATCH v2 15/19] ti_omap5_common: timer: do not define CONFIG_TIMER for spl

2015-12-24 Thread Mugunthan V N
Since OMAP's spl doesn't support DM currently, do not define CONFIG_TIMER for spl build. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- include/configs/ti_omap5_common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/ti_omap5_common.h b/include/c

[U-Boot] [PATCH v2 10/19] am335x_evm: timer: do not define CONFIG_TIMER for spl

2015-12-24 Thread Mugunthan V N
Since OMAP's spl doesn't support DM currently, do not define CONFIG_TIMER for spl build. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- include/configs/am335x_evm.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h

[U-Boot] [PATCH v2 12/19] defconfig: am335x_boneblack_vboot: enable timer driver model

2015-12-24 Thread Mugunthan V N
Enable timer driver model for am335x_boneblack_vboot as omap-timer supports driver model. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- configs/am335x_boneblack_vboot_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/am335x_boneblack_vboot_defconfig b/c

[U-Boot] [PATCH v2 09/19] defconfig: am437x_gp_evm: enable timer driver model

2015-12-24 Thread Mugunthan V N
Enable timer driver model for am437x_gp_evm as omap-timer supports driver model. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- configs/am437x_gp_evm_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/am437x_gp_evm_defconfig b/configs/am437x_gp_evm_defconfig

[U-Boot] [PATCH v2 00/19] driver model bring-up of omap timer on dra72, dra74, am335x and am437x-sk evm

2015-12-24 Thread Mugunthan V N
ged omap_timer_get_count dedfinition as per latest code base. Mugunthan V N (19): arm: omap-common: do not build timer when CONFIG_TIMER defined dm: timer: uclass: add timer init to add timer device dm: timer: uclass: Add flag to control sequence numbering drivers: timer: omap_timer: add timer dri

[U-Boot] [PATCH v2 01/19] arm: omap-common: do not build timer when CONFIG_TIMER defined

2015-12-24 Thread Mugunthan V N
To prepare timer driver to DM/DT conversion do not build the exiting timer driver when CONFIG_TIMER is defined. But since omap's SPL doesn't support DM yet so built timer driver only for SPL build when CONFIG_TIMER is defined. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- arch/a

[U-Boot] [PATCH v2 02/19] dm: timer: uclass: add timer init to add timer device

2015-12-24 Thread Mugunthan V N
-by: Mugunthan V N <mugunthan...@ti.com> --- doc/device-tree-bindings/chosen.txt | 43 + drivers/timer/timer-uclass.c| 42 lib/time.c | 13 ++- 3 files changed, 87 insertions(

[U-Boot] [PATCH v2 03/19] dm: timer: uclass: Add flag to control sequence numbering

2015-12-24 Thread Mugunthan V N
Like SPI and I2C, timer devices also have multiple chip instances. This patch adds the flag 'DM_UC_FLAG_SEQ_ALIAS' in timer_uclass driver to control device sequence numbering. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> Reviewed-by: Simon Glass <s...@chromium.org> Reviewed-

[U-Boot] [PATCH v2 05/19] am43xx_evm: timer: do not define CONFIG_TIMER for spl

2015-12-24 Thread Mugunthan V N
Since OMAP's spl doesn't support DM currently, do not define CONFIG_TIMER for spl build. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- include/configs/am43xx_evm.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/am43xx_evm.h b/include/configs/am43xx_evm.h

[U-Boot] [PATCH v2 08/19] arm: dts: am437x-gp-evm: add tick-timer to chosen node

2015-12-24 Thread Mugunthan V N
Specify which timer to be used as tick-timer in chosen node. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- arch/arm/dts/am437x-gp-evm.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/am437x-gp-evm.dts b/arch/arm/dts/am437x-gp-evm.dts index b5f0b4e..8e23b96

[U-Boot] [PATCH v2 07/19] defconfig: am437x_sk_evm: enable timer driver model

2015-12-24 Thread Mugunthan V N
Enable timer driver model for am437x_sk_evm as omap-timer supports driver model. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- configs/am437x_sk_evm_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/am437x_sk_evm_defconfig b/configs/am437x_sk_evm_defconfig

[U-Boot] [PATCH v2 06/19] arm: dts: am437x-sk-evm: add tick-timer to chosen node

2015-12-24 Thread Mugunthan V N
Specify which timer to be used as tick-timer in chosen node. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- arch/arm/dts/am437x-sk-evm.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/am437x-sk-evm.dts b/arch/arm/dts/am437x-sk-evm.dts index 3f9d808..85d3381

[U-Boot] [PATCH v2 04/19] drivers: timer: omap_timer: add timer driver for omap devices based on dm

2015-12-24 Thread Mugunthan V N
Adding a timer driver for omap devices based on driver model and device tree. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- drivers/timer/Kconfig | 6 +++ drivers/timer/Makefile | 1 + drivers/timer/omap-timer.c | 108 + 3

[U-Boot] [PATCH v2 19/19] defconfig: dra74_evm: enable timer driver model

2015-12-24 Thread Mugunthan V N
Enable timer driver model for dra74_evm_defconfig as omap-timer supports driver model. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- configs/dra74_evm_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/dra74_evm_defconfig b/configs/dra74_evm_defconfig index 3

[U-Boot] [PATCH v2 18/19] arm: dts: dra7-evm: add tick-timer to chosen node

2015-12-24 Thread Mugunthan V N
Specify timer2 to be used as tick-timer in chosen node. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- arch/arm/dts/dra7-evm.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/dra7-evm.dts b/arch/arm/dts/dra7-evm.dts index e4daa99..2568aad 100644 --- a/arch/arm/dt

[U-Boot] [PATCH v2 16/19] arm: dts: dra72-evm: add tick-timer to chosen node

2015-12-24 Thread Mugunthan V N
Specify timer2 to be used as tick-timer in chosen node. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- arch/arm/dts/dra72-evm.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/dra72-evm.dts b/arch/arm/dts/dra72-evm.dts index efb544c..6e3bbfd 100644 --- a/arch/a

[U-Boot] [PATCH v2 17/19] defconfig: dra72_evm: enable timer driver model

2015-12-24 Thread Mugunthan V N
Enable timer driver model for dra72_evm_defconfig as omap-timer supports driver model. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- configs/dra72_evm_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/dra72_evm_defconfig b/configs/dra72_evm_defconfig index 3

[U-Boot] [PATCH v5 00/16] device model bring-up of ti-qspi on dra72, dra74 and am437x-sk evm

2015-12-23 Thread Mugunthan V N
r spi flashed found in DRA7xx and AM437x SK Mugunthan V N (16): drivers: spi: ti_qspi: do not hard code chip select for memory map configuration drivers: spi:ti_qspi: change ti_qspi_slave to ti_qspi_priv for driver model conversion drivers: spi: ti_qspi: prepare driver for DM convers

[U-Boot] [PATCH v5 01/16] drivers: spi: ti_qspi: do not hard code chip select for memory map configuration

2015-12-23 Thread Mugunthan V N
To enable memory map in dra7xx, specific chip select must be written to control module register. But this hard coded to chip select 1, fixing it by writing the specific chip select value to control module register. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> Reviewed-by: Simon Gl

[U-Boot] [PATCH v5 04/16] dm: core: Add a new api to get indexed device address

2015-12-23 Thread Mugunthan V N
Add new api to get device address based on index. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- drivers/core/device.c | 31 +++ include/dm/device.h | 11 +++ 2 files changed, 38 insertions(+), 4 deletions(-) diff --git a/drivers/core/devi

[U-Boot] [PATCH v5 05/16] spi: Add support for dual and quad mode

2015-12-23 Thread Mugunthan V N
spi bus can support dual and quad wire data transfers for tx and rx. So defining dual and quad modes for both tx and rx. Also add support to parse bus width used for spi tx and rx transfers. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- drivers/spi/spi-uclass.

[U-Boot] [PATCH v5 06/16] dra7xx_evm: qspi: do not define DM_SPI and DM_SPI_FLASH for spl

2015-12-23 Thread Mugunthan V N
Since OMAP's spl doesn't support DM currently, do not define DM_SPI and DM_SPI_FLASH for spl build. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- include/configs/dra7xx_evm.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/configs/dra7xx_evm.h b/include/c

[U-Boot] [PATCH v5 07/16] dts: dra7: add spi alias for qspi

2015-12-23 Thread Mugunthan V N
add spi alias for qspi so that spi probes the device and driver successfully. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> Reviewed-by: Simon Glass <s...@chromium.org> --- arch/arm/dts/dra7.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/dra7.dtsi b/arch/

[U-Boot] [PATCH v5 10/16] drivers: mtd: spi: sf_probe: add compatible for spansion spi flash

2015-12-23 Thread Mugunthan V N
Add compatible for spansion 32MiB spi flash s25fl256s1. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- drivers/mtd/spi/sf_probe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/spi/sf_probe.c b/drivers/mtd/spi/sf_probe.c index daa1d5b..c691b6c 100644 --- a/drive

[U-Boot] [PATCH v5 08/16] drivers: spi: ti_qspi: convert driver to adopt device driver model

2015-12-23 Thread Mugunthan V N
adopt ti_qspi driver to device driver model Signed-off-by: Mugunthan V N <mugunthan...@ti.com> Reviewed-by: Simon Glass <s...@chromium.org> Reviewed-by: Tom Rini <tr...@konsulko.com> --- drivers/spi/ti_qspi.c | 187 ++ 1

[U-Boot] [PATCH v5 12/16] defconfig: dra72_evm: enable spi driver model

2015-12-23 Thread Mugunthan V N
enable mmc driver model for dra72_evm as ti_qspi supports driver model Signed-off-by: Mugunthan V N <mugunthan...@ti.com> Reviewed-by: Simon Glass <s...@chromium.org> Reviewed-by: Tom Rini <tr...@konsulko.com> --- configs/dra72_evm_defconfig | 2 ++ 1 file changed, 2 inserti

[U-Boot] [PATCH v5 09/16] arm: dts: dra7: add qspi register maps for memory map and control module

2015-12-23 Thread Mugunthan V N
Add qspi memory map and control module register maps to device tree. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> Reviewed-by: Simon Glass <s...@chromium.org> --- arch/arm/dts/dra7.dtsi | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/dra7

[U-Boot] [PATCH v5 11/16] drivers: mtd: spi: sf_probe: add compatible for Macronix spi flash

2015-12-23 Thread Mugunthan V N
Add compatible for Macronix 64MiB spi flash mx66l51235l. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- drivers/mtd/spi/sf_probe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/spi/sf_probe.c b/drivers/mtd/spi/sf_probe.c index c691b6c..5c61b38 100644 --- a/drive

[U-Boot] [PATCH v5 02/16] drivers: spi:ti_qspi: change ti_qspi_slave to ti_qspi_priv for driver model conversion

2015-12-23 Thread Mugunthan V N
Changing the ti_qspi_priv structure and its instance names from to priv for driver mode conversion. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> Reviewed-by: Simon Glass <s...@chromium.org> Reviewed-by: Tom Rini <tr...@konsulko.com> Reviewed-by: Jagan Teki <jt...@opene

[U-Boot] [PATCH v5 03/16] drivers: spi: ti_qspi: prepare driver for DM conversion

2015-12-23 Thread Mugunthan V N
Prepare driver for DM conversion. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- drivers/spi/ti_qspi.c | 279 +++--- 1 file changed, 153 insertions(+), 126 deletions(-) diff --git a/drivers/spi/ti_qspi.c b/drivers/spi/ti_qspi.c index a

[U-Boot] [PATCH v5 13/16] defconfig: dra74_evm: enable spi driver model

2015-12-23 Thread Mugunthan V N
enable spi driver model for dra74_evm as ti_qspi supports driver model Signed-off-by: Mugunthan V N <mugunthan...@ti.com> Reviewed-by: Simon Glass <s...@chromium.org> Reviewed-by: Tom Rini <tr...@konsulko.com> --- configs/dra74_evm_defconfig | 2 ++ 1 file changed, 2 inserti

[U-Boot] [PATCH v5 16/16] defconfig: am437x_sk_evm: enable spi driver model

2015-12-23 Thread Mugunthan V N
enable spi driver model for am437x_sk_evm as ti_qspi supports driver model Signed-off-by: Mugunthan V N <mugunthan...@ti.com> Reviewed-by: Simon Glass <s...@chromium.org> Reviewed-by: Tom Rini <tr...@konsulko.com> --- configs/am437x_sk_evm_defconfig | 3 +++ 1 file changed, 3 i

[U-Boot] [PATCH v5 14/16] am43xx_evm: qspi: do not define DM_SPI and DM_SPI_FLASH for spl

2015-12-23 Thread Mugunthan V N
Since OMAP's spl doesn't support DM currently, do not define DM_SPI and DM_SPI_FLASH for spl build. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> Reviewed-by: Tom Rini <tr...@konsulko.com> --- include/configs/am43xx_evm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inc

[U-Boot] [PATCH v5 15/16] arm: dts: am4372: add qspi register maps for memory map

2015-12-23 Thread Mugunthan V N
Add qspi memory map address to device tree. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> Reviewed-by: Simon Glass <s...@chromium.org> --- arch/arm/dts/am4372.dtsi | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/am4372.dtsi b/arch/arm/dts

Re: [U-Boot] [PATCH 0/8] spi: Cleanup set

2015-12-23 Thread Mugunthan V N
| 2 +- > include/spi.h | 65 > +++-- > 4 files changed, 31 insertions(+), 40 deletions(-) > Tested the series on AM437x SK and DRA74 EVM. Tested-by: Mugunthan V N <mugunthan...@ti.com> Regards Mugunthan V N ___ U-Boot

Re: [U-Boot] [PATCH v5 10/16] drivers: mtd: spi: sf_probe: add compatible for spansion spi flash

2015-12-23 Thread Mugunthan V N
On Wednesday 23 December 2015 05:02 PM, Jagan Teki wrote: > On 23 December 2015 at 16:29, Mugunthan V N <mugunthan...@ti.com> wrote: >> On Wednesday 23 December 2015 04:21 PM, Jagan Teki wrote: >>> On 23 December 2015 at 15:29, Mugunthan V N <mugunthan...@ti.com&

[U-Boot] [PATCH v6 01/16] drivers: spi:ti_qspi: change ti_qspi_slave to ti_qspi_priv for driver model conversion

2015-12-23 Thread Mugunthan V N
Changing the ti_qspi_priv structure and its instance names from to priv for driver mode conversion. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> Reviewed-by: Simon Glass <s...@chromium.org> Reviewed-by: Tom Rini <tr...@konsulko.com> Reviewed-by: Jagan Teki <jt...@opene

[U-Boot] [PATCH v6 09/16] arm: dts: am437x-gp-evm: add spi-flash comaptible for flash

2015-12-23 Thread Mugunthan V N
In U-Boot most flashes uses "spi-flash" as compatible to bind the device to flash driver, so adding "spi-flash" compatible to m25p80 node. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- arch/arm/dts/am437x-sk-evm.dts | 2 +- 1 file changed, 1 insertion(+),

[U-Boot] [PATCH v6 07/16] drivers: spi: ti_qspi: convert driver to adopt device driver model

2015-12-23 Thread Mugunthan V N
adopt ti_qspi driver to device driver model Signed-off-by: Mugunthan V N <mugunthan...@ti.com> Reviewed-by: Simon Glass <s...@chromium.org> Reviewed-by: Tom Rini <tr...@konsulko.com> --- drivers/spi/ti_qspi.c | 187 ++ 1

[U-Boot] [PATCH v6 08/16] arm: dts: dra7: add qspi register maps for memory map and control module

2015-12-23 Thread Mugunthan V N
Add qspi memory map and control module register maps to device tree. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> Reviewed-by: Simon Glass <s...@chromium.org> --- arch/arm/dts/dra7.dtsi | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/dra7

[U-Boot] [PATCH v6 10/16] arm: dts: dra7-evm: add spi-flash comaptible for flash

2015-12-23 Thread Mugunthan V N
In U-Boot most flashes uses "spi-flash" as compatible to bind the device to flash driver, so adding "spi-flash" compatible to m25p80 node. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- arch/arm/dts/dra7-evm.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[U-Boot] [PATCH v6 11/16] arm: dts: dra72-evm: add spi-flash comaptible for flash

2015-12-23 Thread Mugunthan V N
In U-Boot most flashes uses "spi-flash" as compatible to bind the device to flash driver, so adding "spi-flash" compatible to m25p80 node. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- arch/arm/dts/dra72-evm.dts | 2 +- 1 file changed, 1 insertion(+), 1 dele

[U-Boot] [PATCH v6 05/16] dra7xx_evm: qspi: do not define DM_SPI and DM_SPI_FLASH for spl

2015-12-23 Thread Mugunthan V N
Since OMAP's spl doesn't support DM currently, do not define DM_SPI and DM_SPI_FLASH for spl build. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- include/configs/dra7xx_evm.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/configs/dra7xx_evm.h b/include/c

[U-Boot] [PATCH re-send v6 15/17] am43xx_evm: qspi: do not define DM_SPI and DM_SPI_FLASH for spl

2015-12-23 Thread Mugunthan V N
Since OMAP's spl doesn't support DM currently, do not define DM_SPI and DM_SPI_FLASH for spl build. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> Reviewed-by: Tom Rini <tr...@konsulko.com> --- include/configs/am43xx_evm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inc

[U-Boot] [PATCH re-send v6 14/17] defconfig: dra74_evm: enable spi driver model

2015-12-23 Thread Mugunthan V N
enable spi driver model for dra74_evm as ti_qspi supports driver model Signed-off-by: Mugunthan V N <mugunthan...@ti.com> Reviewed-by: Simon Glass <s...@chromium.org> Reviewed-by: Tom Rini <tr...@konsulko.com> --- configs/dra74_evm_defconfig | 2 ++ 1 file changed, 2 inserti

[U-Boot] [PATCH re-send v6 11/17] arm: dts: dra7-evm: add spi-flash comaptible for flash

2015-12-23 Thread Mugunthan V N
In U-Boot most flashes uses "spi-flash" as compatible to bind the device to flash driver, so adding "spi-flash" compatible to m25p80 node. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- arch/arm/dts/dra7-evm.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[U-Boot] [PATCH v6 00/16] device model bring-up of ti-qspi on dra72, dra74 and am437x-sk evm

2015-12-23 Thread Mugunthan V N
Fixed the cosmetic reviews from Simon * Modified the dev_get_addr_index to adopt OF_TRANSULATE as well and also removed code duplicate. * Added compatibles for spi flashed found in DRA7xx and AM437x SK Mugunthan V N (16): drivers: spi:ti_qspi: change ti_qspi_slave to ti_qspi_priv for driver

Re: [U-Boot] [PATCH v6 00/16] device model bring-up of ti-qspi on dra72, dra74 and am437x-sk evm

2015-12-23 Thread Mugunthan V N
On Wednesday 23 December 2015 08:32 PM, Mugunthan V N wrote: > This patch series enables ti_qspi to adopt driver model. This has > been tested on dra72, dra74 and am437x-sk evms (logs [1]). > Also pushed a branch for testing [2] > > This patch series is based on u-boot-spi

[U-Boot] [PATCH v6 14/16] am43xx_evm: qspi: do not define DM_SPI and DM_SPI_FLASH for spl

2015-12-23 Thread Mugunthan V N
Since OMAP's spl doesn't support DM currently, do not define DM_SPI and DM_SPI_FLASH for spl build. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> Reviewed-by: Tom Rini <tr...@konsulko.com> --- include/configs/am43xx_evm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inc

[U-Boot] [PATCH v6 13/16] defconfig: dra74_evm: enable spi driver model

2015-12-23 Thread Mugunthan V N
enable spi driver model for dra74_evm as ti_qspi supports driver model Signed-off-by: Mugunthan V N <mugunthan...@ti.com> Reviewed-by: Simon Glass <s...@chromium.org> Reviewed-by: Tom Rini <tr...@konsulko.com> --- configs/dra74_evm_defconfig | 2 ++ 1 file changed, 2 inserti

[U-Boot] [PATCH v6 12/16] defconfig: dra72_evm: enable spi driver model

2015-12-23 Thread Mugunthan V N
enable mmc driver model for dra72_evm as ti_qspi supports driver model Signed-off-by: Mugunthan V N <mugunthan...@ti.com> Reviewed-by: Simon Glass <s...@chromium.org> Reviewed-by: Tom Rini <tr...@konsulko.com> --- configs/dra72_evm_defconfig | 2 ++ 1 file changed, 2 inserti

[U-Boot] [PATCH re-send v6 17/17] defconfig: am437x_sk_evm: enable spi driver model

2015-12-23 Thread Mugunthan V N
enable spi driver model for am437x_sk_evm as ti_qspi supports driver model Signed-off-by: Mugunthan V N <mugunthan...@ti.com> Reviewed-by: Simon Glass <s...@chromium.org> Reviewed-by: Tom Rini <tr...@konsulko.com> --- configs/am437x_sk_evm_defconfig | 3 +++ 1 file changed, 3 i

[U-Boot] [PATCH re-send v6 16/17] arm: dts: am4372: add qspi register maps for memory map

2015-12-23 Thread Mugunthan V N
Add qspi memory map address to device tree. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> Reviewed-by: Simon Glass <s...@chromium.org> --- arch/arm/dts/am4372.dtsi | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/am4372.dtsi b/arch/arm/dts

[U-Boot] [PATCH v6 16/16] defconfig: am437x_sk_evm: enable spi driver model

2015-12-23 Thread Mugunthan V N
enable spi driver model for am437x_sk_evm as ti_qspi supports driver model Signed-off-by: Mugunthan V N <mugunthan...@ti.com> Reviewed-by: Simon Glass <s...@chromium.org> Reviewed-by: Tom Rini <tr...@konsulko.com> --- configs/am437x_sk_evm_defconfig | 3 +++ 1 file changed, 3 i

[U-Boot] [PATCH v6 15/16] arm: dts: am4372: add qspi register maps for memory map

2015-12-23 Thread Mugunthan V N
Add qspi memory map address to device tree. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> Reviewed-by: Simon Glass <s...@chromium.org> --- arch/arm/dts/am4372.dtsi | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/am4372.dtsi b/arch/arm/dts

[U-Boot] [PATCH v6 04/16] spi: Add support for dual and quad mode

2015-12-23 Thread Mugunthan V N
spi bus can support dual and quad wire data transfers for tx and rx. So defining dual and quad modes for both tx and rx. Also add support to parse bus width used for spi tx and rx transfers. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- drivers/spi/spi-uclass.

[U-Boot] [PATCH v6 02/16] drivers: spi: ti_qspi: prepare driver for DM conversion

2015-12-23 Thread Mugunthan V N
Prepare driver for DM conversion. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- drivers/spi/ti_qspi.c | 279 +++--- 1 file changed, 153 insertions(+), 126 deletions(-) diff --git a/drivers/spi/ti_qspi.c b/drivers/spi/ti_qspi.c index a

[U-Boot] [PATCH re-send v6 09/17] arm: dts: dra7: add qspi register maps for memory map and control module

2015-12-23 Thread Mugunthan V N
Add qspi memory map and control module register maps to device tree. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> Reviewed-by: Simon Glass <s...@chromium.org> --- arch/arm/dts/dra7.dtsi | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/dra7

[U-Boot] [PATCH v6 03/16] dm: core: Add a new api to get indexed device address

2015-12-23 Thread Mugunthan V N
Add new api to get device address based on index. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- drivers/core/device.c | 31 +++ include/dm/device.h | 11 +++ 2 files changed, 38 insertions(+), 4 deletions(-) diff --git a/drivers/core/devi

[U-Boot] [PATCH re-send v6 10/17] arm: dts: am437x-gp-evm: add spi-flash comaptible for flash

2015-12-23 Thread Mugunthan V N
In U-Boot most flashes uses "spi-flash" as compatible to bind the device to flash driver, so adding "spi-flash" compatible to m25p80 node. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- arch/arm/dts/am437x-sk-evm.dts | 2 +- 1 file changed, 1 insertion(+),

[U-Boot] [PATCH re-send v6 12/17] arm: dts: dra72-evm: add spi-flash comaptible for flash

2015-12-23 Thread Mugunthan V N
In U-Boot most flashes uses "spi-flash" as compatible to bind the device to flash driver, so adding "spi-flash" compatible to m25p80 node. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- arch/arm/dts/dra72-evm.dts | 2 +- 1 file changed, 1 insertion(+), 1 dele

[U-Boot] [PATCH v6 06/16] dts: dra7: add spi alias for qspi

2015-12-23 Thread Mugunthan V N
add spi alias for qspi so that spi probes the device and driver successfully. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> Reviewed-by: Simon Glass <s...@chromium.org> --- arch/arm/dts/dra7.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/dra7.dtsi b/arch/

[U-Boot] [PATCH re-send v6 13/17] defconfig: dra72_evm: enable spi driver model

2015-12-23 Thread Mugunthan V N
enable mmc driver model for dra72_evm as ti_qspi supports driver model Signed-off-by: Mugunthan V N <mugunthan...@ti.com> Reviewed-by: Simon Glass <s...@chromium.org> Reviewed-by: Tom Rini <tr...@konsulko.com> --- configs/dra72_evm_defconfig | 2 ++ 1 file changed, 2 inserti

[U-Boot] [PATCH re-send v6 03/17] drivers: spi: ti_qspi: prepare driver for DM conversion

2015-12-23 Thread Mugunthan V N
Prepare driver for DM conversion. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- drivers/spi/ti_qspi.c | 279 +++--- 1 file changed, 153 insertions(+), 126 deletions(-) diff --git a/drivers/spi/ti_qspi.c b/drivers/spi/ti_qspi.c index a

[U-Boot] [PATCH re-send v6 05/17] spi: Add support for dual and quad mode

2015-12-23 Thread Mugunthan V N
spi bus can support dual and quad wire data transfers for tx and rx. So defining dual and quad modes for both tx and rx. Also add support to parse bus width used for spi tx and rx transfers. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- drivers/spi/spi-uclass.

[U-Boot] [PATCH re-send v6 04/17] dm: core: Add a new api to get indexed device address

2015-12-23 Thread Mugunthan V N
Add new api to get device address based on index. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- drivers/core/device.c | 31 +++ include/dm/device.h | 11 +++ 2 files changed, 38 insertions(+), 4 deletions(-) diff --git a/drivers/core/devi

[U-Boot] [PATCH re-send v6 07/17] dts: dra7: add spi alias for qspi

2015-12-23 Thread Mugunthan V N
add spi alias for qspi so that spi probes the device and driver successfully. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> Reviewed-by: Simon Glass <s...@chromium.org> --- arch/arm/dts/dra7.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/dra7.dtsi b/arch/

[U-Boot] [PATCH re-send v6 08/17] drivers: spi: ti_qspi: convert driver to adopt device driver model

2015-12-23 Thread Mugunthan V N
adopt ti_qspi driver to device driver model Signed-off-by: Mugunthan V N <mugunthan...@ti.com> Reviewed-by: Simon Glass <s...@chromium.org> Reviewed-by: Tom Rini <tr...@konsulko.com> --- drivers/spi/ti_qspi.c | 187 ++ 1

[U-Boot] [PATCH re-send v6 06/17] dra7xx_evm: qspi: do not define DM_SPI and DM_SPI_FLASH for spl

2015-12-23 Thread Mugunthan V N
Since OMAP's spl doesn't support DM currently, do not define DM_SPI and DM_SPI_FLASH for spl build. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- include/configs/dra7xx_evm.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/configs/dra7xx_evm.h b/include/c

[U-Boot] [PATCH re-send v6 00/17] device model bring-up of ti-qspi on dra72, dra74 and am437x-sk evm

2015-12-23 Thread Mugunthan V N
r DM conversion" for easier review * added memory map mode to the driver * Fixed the cosmetic reviews from Simon * Modified the dev_get_addr_index to adopt OF_TRANSULATE as well and also removed code duplicate. * Added compatibles for spi flashed found in DRA7xx and AM437x SK Mugunthan V N (

[U-Boot] [PATCH re-send v6 02/17] drivers: spi:ti_qspi: change ti_qspi_slave to ti_qspi_priv for driver model conversion

2015-12-23 Thread Mugunthan V N
Changing the ti_qspi_priv structure and its instance names from to priv for driver mode conversion. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> Reviewed-by: Simon Glass <s...@chromium.org> Reviewed-by: Tom Rini <tr...@konsulko.com> Reviewed-by: Jagan Teki <jt...@opene

<    2   3   4   5   6   7   8   9   10   11   >