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

2015-11-18 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 v3 12/16] defconfig: dra72_evm: enable spi driver model

2015-11-18 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 v3 11/16] drivers: mtd: spi: sf_probe: add compatible for Macronix spi flash

2015-11-18 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 ffbce59..add6738 100644 --- a/drive

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

2015-11-18 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 v3 07/16] dts: dra7: add spi alias for qspi

2015-11-18 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 v3 10/16] drivers: mtd: spi: sf_probe: add compatible for spansion spi flash

2015-11-18 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 bc05d30..ffbce59 100644 --- a/drive

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

2015-11-18 Thread Mugunthan V N
Prepare driver for DM conversion. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- drivers/spi/ti_qspi.c | 276 +++--- 1 file changed, 151 insertions(+), 125 deletions(-) diff --git a/drivers/spi/ti_qspi.c b/drivers/spi/ti_qspi.c index 4

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

2015-11-18 Thread Mugunthan V N
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 (16): drivers: spi: ti_qspi: do not hard code chip select f

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

2015-11-18 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 v3 05/16] spi: Add support for dual and quad mode

2015-11-18 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> Reviewed-by: Simon Glass <s...@chromium.org&

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

2015-11-18 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 v3 01/16] drivers: spi: ti_qspi: do not hard code chip select for memory map configuration

2015-11-18 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 v3 13/16] defconfig: dra74_evm: enable spi driver model

2015-11-18 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 v3 14/16] am43xx_evm: qspi: do not define DM_SPI and DM_SPI_FLASH for spl

2015-11-18 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/am43xx_evm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/am43xx_evm.h b/include/c

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

2015-11-18 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 v3 16/16] defconfig: am437x_sk_evm: enable spi driver model

2015-11-18 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

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

2015-11-17 Thread Mugunthan V N
On Monday 16 November 2015 07:43 AM, Tom Rini wrote: > On Sat, Nov 14, 2015 at 01:01:45PM +0530, Mugunthan V N wrote: >> On Thursday 12 November 2015 06:17 PM, Tom Rini wrote: >>> On Thu, Nov 12, 2015 at 02:33:48PM +0530, Mugunthan V N wrote: >>>> On Sunday 08 No

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

2015-11-17 Thread Mugunthan V N
On Tuesday 17 November 2015 02:38 AM, Simon Glass wrote: > Hi, > > On 12 November 2015 at 05:48, Tom Rini <tr...@konsulko.com> wrote: >> On Thu, Nov 12, 2015 at 02:42:41PM +0530, Mugunthan V N wrote: >>> On Friday 06 November 2015 05:37 PM, Simon Glass wrote: >

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

2015-11-16 Thread Mugunthan V N
On Friday 06 November 2015 05:37 PM, Simon Glass wrote: > Hi Mugunthan, > > On 4 November 2015 at 01:16, Mugunthan V N <mugunthan...@ti.com> wrote: >> Prepare driver for DM conversion. >> >> Signed-off-by: Mugunthan V N <mugunthan...@ti.com>

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

2015-11-16 Thread Mugunthan V N
On Tuesday 17 November 2015 11:51 AM, Jagan Teki wrote: > On 4 November 2015 at 13:46, Mugunthan V N <mugunthan...@ti.com> wrote: >> Prepare driver for DM conversion. >> >> Signed-off-by: Mugunthan V N <mugunthan...@ti.com> >&

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

2015-11-16 Thread Mugunthan V N
On Friday 06 November 2015 05:37 PM, Simon Glass wrote: > +Stephen > > Hi, > > On 4 November 2015 at 01:16, Mugunthan V N <mugunthan...@ti.com> wrote: >> Add new api to get device address based on index. >> >> Signed-off-by: Mugunthan V N <mugunthan..

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

2015-11-13 Thread Mugunthan V N
On Thursday 12 November 2015 06:17 PM, Tom Rini wrote: > On Thu, Nov 12, 2015 at 02:33:48PM +0530, Mugunthan V N wrote: >> On Sunday 08 November 2015 07:01 PM, Tom Rini wrote: >>> On Wed, Nov 04, 2015 at 01:46:17PM +0530, Mugunthan V N wrote: >>> >>>>

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

2015-11-12 Thread Mugunthan V N
On Sunday 08 November 2015 07:02 PM, Tom Rini wrote: > On Wed, Nov 04, 2015 at 01:46:23PM +0530, Mugunthan V N wrote: >> Add qspi memory map address to device tree. >> >> Signed-off-by: Mugunthan V N <mugunthan...@ti.com> >> Reviewed-by: Simon Glass <s...@c

Re: [U-Boot] [PATCH] dm: core: Kconfig: set OF_TRANSLATE default value to n

2015-11-12 Thread Mugunthan V N
On Friday 06 November 2015 09:11 PM, Stephen Warren wrote: > On 11/06/2015 05:19 AM, Stefan Roese wrote: >> +Stephan Warren & Thomas Chou >> >> On 06.11.2015 13:08, Simon Glass wrote: >>> +Stefan >>> >>> Hi Mugunthan, >>> >>>

Re: [U-Boot] [PATCH 2/2] ARM: am43xx: Enable QUAD read and EDMA support for ti_qspi

2015-11-12 Thread Mugunthan V N
On Tuesday 10 November 2015 11:52 AM, Vignesh R wrote: > Enable TI_EDMA3 and QUAD read support for ti_qspi on am43xx, this > increases read performance to 4 MB/s. > > Signed-off-by: Vignesh R <vigne...@ti.com> > --- Reviewed-by: Mugunthan V N <mugunthan...@ti.com

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

2015-11-12 Thread Mugunthan V N
On Friday 06 November 2015 05:37 PM, Simon Glass wrote: > Hi Mugunthan, > > On 4 November 2015 at 01:16, Mugunthan V N <mugunthan...@ti.com> wrote: >> Add compatible for spansion 32MiB spi flash s25fl256s1. >> >> Signed-off-by: Mugunthan V N <mugunthan..

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

2015-11-12 Thread Mugunthan V N
On Friday 06 November 2015 05:37 PM, Simon Glass wrote: > Hi Mugunthan, > > On 4 November 2015 at 01:16, Mugunthan V N <mugunthan...@ti.com> wrote: >> > Since spl doesn't support DM currently, do not define DM_SPI and >> > DM_SPI_FLASH for spl build. > Si

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

2015-11-12 Thread Mugunthan V N
On Friday 06 November 2015 05:37 PM, Simon Glass wrote: > Hi Mugunthan, > > On 4 November 2015 at 01:16, Mugunthan V N <mugunthan...@ti.com> wrote: >> > Since spl doesn't support DM currently, do not define DM_SPI and >> > DM_SPI_FLASH for spl build. > D

Re: [U-Boot] [PATCH 1/2] spi: ti_qspi: Add dummy readl for bus sync

2015-11-12 Thread Mugunthan V N
lash present on am437x-sk and am437x-idk evms. > > Signed-off-by: Vignesh R <vigne...@ti.com> > --- Reviewed-by: Mugunthan V N <mugunthan...@ti.com> 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 v2 09/16] arm: dts: dra7: add qspi register maps for memory map and control module

2015-11-12 Thread Mugunthan V N
On Sunday 08 November 2015 07:01 PM, Tom Rini wrote: > On Wed, Nov 04, 2015 at 01:46:17PM +0530, Mugunthan V N wrote: > >> Add qspi memory map and control module register maps to device tree. >> >> Signed-off-by: Mugunthan V N <mugunthan...@ti.com> >> Reviewe

[U-Boot] [PATCH] dm: core: Kconfig: set OF_TRANSLATE default value to n

2015-11-04 Thread Mugunthan V N
t;n" and enable OF_TRANSLATE only on required platform. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- Tested this patch on TI DRA72 platform. --- drivers/core/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/core/Kconfig b/drivers/core/Kcon

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

2015-11-04 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 c000c53..9cfa9b6 100644 --- a/drive

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

2015-11-04 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 9cfa9b6..b16a392 100644 --- a/drive

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

2015-11-04 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> Reviewed-by: Simon Glass <s...@chr

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

2015-11-04 Thread Mugunthan V N
Since 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/configs/dra7xx

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

2015-11-04 Thread Mugunthan V N
enable mmc 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> --- configs/dra74_evm_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/dra74_evm_defconf

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

2015-11-04 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> --- configs/dra72_evm_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/dra72_evm_defconf

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

2015-11-04 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/dra7

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

2015-11-04 Thread Mugunthan V N
adopt ti_qspi driver to device driver model Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- drivers/spi/ti_qspi.c | 172 ++ 1 file changed, 172 insertions(+) diff --git a/drivers/spi/ti_qspi.c b/drivers/spi/ti_qspi.c index 003df80..f

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

2015-11-04 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> --- drivers/spi/ti_qspi.c | 118 +- 1 file changed, 59 insertions(+), 59 deletions(-) diff

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

2015-11-04 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> --- drivers/spi/ti_qspi

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

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

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

2015-11-04 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 v2 04/16] dm: core: Add a new api to get indexed device address

2015-11-04 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 | 16 include/dm/device.h | 10 ++ 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/drivers/core/device.c b/driver

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

2015-11-04 Thread Mugunthan V N
shed 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 conversion dm: core:

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

2015-11-04 Thread Mugunthan V N
enable mmc 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> --- configs/am437x_sk_evm_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/am437x_sk_evm

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

2015-11-04 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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/am4372.dtsi b/arch/arm/dts

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

2015-11-04 Thread Mugunthan V N
Since 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/am43xx_evm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/am43xx_evm.h b/include/configs/am43xx_evm.h

Re: [U-Boot] dm-spi: Convert to driver model

2015-11-01 Thread Mugunthan V N
On Saturday 31 October 2015 02:17 AM, Jagan Teki wrote: > > ti_qspi.c I had already converted this driver and posted [1] Last week. Will be submitting a v2 shortly. [1]: http://lists.denx.de/pipermail/u-boot/2015-October/231800.html Regards Mugunth

Re: [U-Boot] [PATCH 02/13] dm: core: Add a new api to get indexed device address

2015-10-31 Thread Mugunthan V N
On Thursday 29 October 2015 10:47 PM, Simon Glass wrote: > Hi Mugunthan, > > On 27 October 2015 at 05:12, Mugunthan V N <mugunthan...@ti.com> wrote: >> Add new api to get device address based on index. >> >> Signed-off-by: Mugunthan V N <mugunthan...@ti.com>

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

2015-10-31 Thread Mugunthan V N
On Thursday 29 October 2015 10:47 PM, Simon Glass wrote: > Hi Mugunthan, > > On 27 October 2015 at 05:13, Mugunthan V N <mugunthan...@ti.com> wrote: >> > Since spl doesn't support DM currently, do not define DM_SPI and >> > DM_SPI_FLASH for spl build. > SPL doe

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

2015-10-31 Thread Mugunthan V N
On Thursday 29 October 2015 10:48 PM, Simon Glass wrote: > On 27 October 2015 at 05:13, Mugunthan V N <mugunthan...@ti.com> wrote: >> > add spi alias for qspi so that spi probes the device and driver >> > successfully. >> > >> > Sign

Re: [U-Boot] [PATCH 04/13] drivers: spi: spi-uclass: fix spi slave device register

2015-10-31 Thread Mugunthan V N
the correct driver. > */ > > This code is used when there is no device attached. It should not > happen that you have a device tree node which is ignored when the SPI > bus is bound. spi_post_bind() should pick up these node and create > drivers for them. Hmmmm, will dro

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

2015-10-31 Thread Mugunthan V N
message. Why not > just drop this? The driver should not be scanning the device tree - it > should be able to look at the number of child devices instead. > Hmmm, will fix in v2 Regards Mugunthan V N ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH 09/13] defconfig: dra72_evm: enable spi driver model

2015-10-27 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> --- configs/dra72_evm_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/dra72_evm_defconfig b/configs/dra72_evm_defconfig index cce3255..d88b2b7

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

2015-10-27 Thread Mugunthan V N
adopt ti_qspi driver to device driver model Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- drivers/spi/ti_qspi.c | 126 ++ 1 file changed, 126 insertions(+) diff --git a/drivers/spi/ti_qspi.c b/drivers/spi/ti_qspi.c index 4893472..4

[U-Boot] [PATCH 11/13] am43xx_evm: qspi: do not define DM_SPI and DM_SPI_FLASH for spl

2015-10-27 Thread Mugunthan V N
Since 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/am43xx_evm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/am43xx_evm.h b/include/configs/am43xx_evm.h

[U-Boot] [PATCH 12/13] arm: dts: am4372: add qspi register maps for memory map

2015-10-27 Thread Mugunthan V N
Add qspi memory map address to device tree. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- arch/arm/dts/am4372.dtsi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/am4372.dtsi b/arch/arm/dts/am4372.dtsi index ade28c7..1b30d53 100644 --- a/arch/a

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

2015-10-27 Thread Mugunthan V N
enable mmc driver model for dra74_evm as ti_qspi 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 a57cd7f..b7c541b

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

2015-10-27 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> --- arch/arm/dts/dra7.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/dra7.dtsi b/arch/arm/dts/dra7.dtsi index 7357b0e..b72c1fa

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

2015-10-27 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> --- arch/arm/dts/dra7.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/dts/dra7.dtsi b/arch/arm/dts/dra7.dtsi index 8f1e25b..7357b0e

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

2015-10-27 Thread Mugunthan V N
enable mmc driver model for am437x_sk_evm as ti_qspi supports driver model Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- configs/am437x_sk_evm_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/am437x_sk_evm_defconfig b/configs/am437x_sk_evm_defconfig index 0

[U-Boot] [PATCH 03/13] spi: Add support for dual and quad mode

2015-10-27 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 01/13] drivers: spi: ti_qspi: prepare driver for DM conversion

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

[U-Boot] [PATCH 04/13] drivers: spi: spi-uclass: fix spi slave device register

2015-10-27 Thread Mugunthan V N
red with of_offset and its fdt is parsed properly. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- drivers/spi/spi-uclass.c | 38 -- 1 file changed, 32 insertions(+), 6 deletions(-) diff --git a/drivers/spi/spi-uclass.c b/drivers/spi/spi-uclass.c inde

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

2015-10-27 Thread Mugunthan V N
Since 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/configs/dra7xx

[U-Boot] [PATCH 02/13] dm: core: Add a new api to get indexed device address

2015-10-27 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 | 20 include/dm/device.h | 9 + 2 files changed, 29 insertions(+) diff --git a/drivers/core/device.c b/drivers/core/device.c

[U-Boot] [PATCH 00/13] device model bringup of ti-qspi on dra72, dra74 and am437x-sk evm

2015-10-27 Thread Mugunthan V N
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] [1]: http://pastebin.ubuntu.com/12978685/ [2]: git://git.ti.com/~mugunthanvnm/ti-u-boot/mugunth-ti-u-boot.git dm-qspi Mugunthan V N

[U-Boot] [PATCH] spi: sf: add support for throughput mesurement of sf read/write

2015-10-27 Thread Mugunthan V N
This patch adds time measurement and throughput calculation for sf read/write commands. The output of sf read changes from ---8<--- SF: 4096 bytes @ 0x0 Read: OK --->8--- to ---8<--- SF: 4096 bytes @ 0x0 Read: OK in 6 ms (666 KiB/s) --->8--- Signed-off-by: Mugunthan V N <mugu

[U-Boot] [PATCH] ARM: AM335x: mux: change mmc0 cd pinmux from mmc0_sdcd to gpio

2015-10-13 Thread Mugunthan V N
Currently omap_hsmmc driver doesn't use sdcd pin to detect whether the card is present or not. Instead the same pin is used as GPIO to detect card presence. So change the pin mux mode from mmc0_sdcd to gpio0_6. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- board/ti/am335x/mux

[U-Boot] [PATCH] drivers: gpio: omap: add support for parsing additional gpio parameters

2015-10-13 Thread Mugunthan V N
.xlate ops to omap_gpio. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- drivers/gpio/omap_gpio.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/gpio/omap_gpio.c b/drivers/gpio/omap_gpio.c index cd960dc..93d18e4 100644 --- a/drivers/gpio/omap_gpio.c +++ b/driver

[U-Boot] [PATCH 2/2] am437x: Add am57xx_evm_defconfig using CONFIG_DM

2015-09-29 Thread Mugunthan V N
Import various DT files for am57xx-beagle-x15 from Linux Kernel v4.2 Add config file for this board, enable DM, DM_GPIO, DM_SERIAL and DM_MMC. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- arch/arm/dts/Makefile | 1 + arch/arm/dts/am57xx-beagle-x15.dts

[U-Boot] [PATCH 0/2] device model bringup of am57xx platform on am57xx-evm

2015-09-29 Thread Mugunthan V N
]: http://pastebin.ubuntu.com/12610054/ [2]: git://git.ti.com/~mugunthanvnm/ti-u-boot/mugunth-ti-u-boot.git am57xx-dm [3]: https://www.mail-archive.com/u-boot@lists.denx.de/msg186964.html [4]: http://patchwork.ozlabs.org/patch/519024/ [5]: http://patchwork.ozlabs.org/patch/521035/ Mugunthan V N (2

[U-Boot] [PATCH 1/2] ti_omap5_common: mmc: do not define DM_MMC for spl

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

[U-Boot] [PATCH v2 5/5] defconfig: am335x: gp_evm: enable mmc driver model

2015-09-28 Thread Mugunthan V N
enable mmc driver model for am335x gp_evm as omap_hsmmc supports driver model Signed-off-by: Mugunthan V N <mugunthan...@ti.com> Reviewed-by: Tom Rini <tr...@konsulko.com> --- configs/am335x_gp_evm_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am335x_gp_evm

[U-Boot] [PATCH v2 4/5] defconfig: am335x: bbb: enable mmc driver model

2015-09-28 Thread Mugunthan V N
enable mmc driver model for am335x bbb as omap_hsmmc supports driver model Signed-off-by: Mugunthan V N <mugunthan...@ti.com> Reviewed-by: Tom Rini <tr...@konsulko.com> --- configs/am335x_boneblack_vboot_defconfig | 1 + 1 file changed, 1 insertion(+) diff --g

[U-Boot] [PATCH v2 3/5] drivers: mmc: omap_hsmmc: convert driver to adopt device driver model

2015-09-28 Thread Mugunthan V N
adopt omap_hsmmc driver to device driver model Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- drivers/mmc/omap_hsmmc.c | 117 ++- 1 file changed, 116 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_h

[U-Boot] [PATCH v2 2/5] am335x_evm: mmc: do not define DM_MMC for spl

2015-09-28 Thread Mugunthan V N
Since spl doesn't support DM currently, do not define DM_MMC for spl build. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> Reviewed-by: Tom Rini <tr...@konsulko.com> --- include/configs/am335x_evm.h | 8 1 file changed, 8 insertions(+) diff --git a/include/configs/am

[U-Boot] [PATCH v2 1/5] omap_hsmmc: update struct hsmmc to accomodate base address from DT

2015-09-28 Thread Mugunthan V N
Existing driver gets the actual omap hammc base address + 0x100 bytes as the first 0x100 bytes is not used by the driver. But with DM conversion the base address from DT is different, to accommodate the offset adding res0[0x100] to struct hsmmc. Signed-off-by: Mugunthan V N <mugunthan...@ti.

[U-Boot] [PATCH v2 0/5] device model bringup of hsmmc on am335x bone black and gp evm

2015-09-28 Thread Mugunthan V N
from initial version: * Added additional compatibles as per Tom's comment * Fixed $subject for enabling DM_MMC patch Mugunthan V N (5): omap_hsmmc: update struct hsmmc to accomodate base address from DT am335x_evm: mmc: do not define DM_MMC for spl drivers: mmc: omap_hsmmc: convert driver

Re: [U-Boot] [PATCH 3/6] am43xx_evm.h: : switch to CONFIG_OMAP_SERIAL for non-SPL DM_SERIAL

2015-09-28 Thread Mugunthan V N
On Monday 28 September 2015 04:25 PM, Lokesh Vutla wrote: > > On Monday 28 September 2015 04:17 PM, Mugunthan V N wrote: >> > Tested on am437x gp evm and am437x sk evm >> > >> > Signed-off-by: Mugunthan V N <mugunthan...@ti.com> >> > --- >> &

[U-Boot] [PATCH 6/6] am437x: Add am437x_sk_evm_defconfig using CONFIG_DM

2015-09-28 Thread Mugunthan V N
Import various DT files for am437x-sk-evm from Linux Kernel v4.2 Add config file for this board, enable DM, DM_GPIO, DM_SERIAL and DM_MMC. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- arch/arm/dts/Makefile | 2 +- arch/arm/dts/am437x-sk-evm.dts

[U-Boot] [PATCH 4/6] am43xx_evm: mmc: do not define DM_MMC for spl

2015-09-28 Thread Mugunthan V N
Since spl doesn't support DM currently, do not define DM_MMC for spl build. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- include/configs/am43xx_evm.h | 8 1 file changed, 8 insertions(+) diff --git a/include/configs/am43xx_evm.h b/include/configs/am43xx_evm.h index 0

[U-Boot] [PATCH 2/6] drivers: serial: serial_omap: add comaptibles for all ti platforms

2015-09-28 Thread Mugunthan V N
Adding compatibles for am335x, am437x and dra7 platforms. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- drivers/serial/serial_omap.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/serial/serial_omap.c b/drivers/serial/serial_omap.c index 9709444..891cd7b

[U-Boot] [PATCH 5/6] am437x: Add am437x_gp_evm_defconfig using CONFIG_DM

2015-09-28 Thread Mugunthan V N
Import various DT files for am4372, an43xx pinctrl and am437x-gp-evm from Linux Kernel v4.2 Add config file for this board, enable DM, DM_GPIO, DM_SERIAL and DM_MMC. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- arch/arm/dts/Makefile| 1 + arch/arm/dts/am437

[U-Boot] [PATCH 3/6] am43xx_evm.h: : switch to CONFIG_OMAP_SERIAL for non-SPL DM_SERIAL

2015-09-28 Thread Mugunthan V N
Tested on am437x gp evm and am437x sk evm Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- include/configs/am43xx_evm.h | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/configs/am43xx_evm.h b/include/configs/am43xx_evm.h index d868442..03713e3

[U-Boot] [PATCH 1/6] drivers: serial: serial_omap: populate default clock frequency when not found in dt

2015-09-28 Thread Mugunthan V N
In some platforms like am437x, serial node is not populated with clock-frequency node. So in that case have a default clock-clock frequency. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- drivers/serial/serial_omap.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff

[U-Boot] [PATCH 0/6] device model bringup of am437x platform on gp-evm and sk-evm

2015-09-28 Thread Mugunthan V N
://git.ti.com/~mugunthanvnm/ti-u-boot/mugunth-ti-u-boot.git am437x-dm [3]: https://www.mail-archive.com/u-boot@lists.denx.de/msg186964.html Mugunthan V N (6): drivers: serial: serial_omap: populate default clock frequency when not found in dt drivers: serial: serial_omap: add comaptibles for all ti

Re: [U-Boot] [PATCH 3/5] drivers: mmc: omap_hsmmc: convert driver to adopt device driver model

2015-09-22 Thread Mugunthan V N
On Tuesday 22 September 2015 07:20 PM, Tom Rini wrote: > On Tue, Sep 15, 2015 at 07:41:48PM +0530, Mugunthan V N wrote: > >> adopt omap_hsmmc driver to device driver model >> >> Signed-off-by: Mugunthan V N <mugunthan...@ti.com> > [snip] >> +static

[U-Boot] [PATCH] dra7xx: Add dra74_evm_defconfig using CONFIG_DM

2015-09-22 Thread Mugunthan V N
Import various DT files for dra7-evm from Linux Kernel v4.2 Add config file for this board, enable DM and DM_GPIO Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- Tested the patch on dra7-evm logs [1] and pushed a branch [2] [1]: http://pastebin.ubuntu.com/12520984/ [2]: git://git.

Re: [U-Boot] [PATCH v2 0/6] device model bringup of cpsw on am335x bone black

2015-09-21 Thread Mugunthan V N
On Monday 07 September 2015 02:22 PM, Mugunthan V N wrote: > This patch seires enables cpsw to adopt driver model. This has > been tested on AM335x beagle bone black and GP EVM (logs [1]). > Also pushed a branch for testing [2] > > This patch depends on [3] for getting cpsw addres

Re: [U-Boot] [PATCH 0/5] device model bringup of hsmmc on am335x bone black and gp evm

2015-09-21 Thread Mugunthan V N
On Tuesday 15 September 2015 07:41 PM, Mugunthan V N wrote: > This patch seires enables omap_hsmmc to adopt driver model. This > has been tested on AM335x beagle bone black and GP EVM (logs [1]). > Also pushed a branch for testing [2] > > [1]: http://pastebin.ubuntu.com/12417

Re: [U-Boot] [PATCH] fdt: add new fdt address parsing functions

2015-09-15 Thread Mugunthan V N
On Friday 11 September 2015 04:24 PM, Mugunthan V N wrote: > On Wednesday 09 September 2015 11:38 PM, Simon Glass wrote: >> Hi, >> >> On Monday, 7 September 2015, Mugunthan V N <mugunthan...@ti.com> wrote: >>> >>> On Friday 07 August 2015 03:01 AM, St

Re: [U-Boot] [PATCH] net: phy: on phy device create do not initialize link to 1

2015-09-15 Thread Mugunthan V N
On Friday 04 September 2015 09:01 PM, Joe Hershberger wrote: > On Thu, Sep 3, 2015 at 5:20 AM, Mugunthan V N <mugunthan...@ti.com> wrote: >> Currently when phy device is created the link variable is >> initialized to 1 which denoted phy link is already up. On a power >&

[U-Boot] [PATCH 0/5] device model bringup of hsmmc on am335x bone black and gp evm

2015-09-15 Thread Mugunthan V N
be added after fixing the omap gpio driver. Mugunthan V N (5): omap_hsmmc: update struct hsmmc to accomodate base address from DT am335x_evm: mmc: do not define DM_MMC for spl drivers: mmc: omap_hsmmc: convert driver to adopt device driver model defconfig: am335x: bbb: enable ethernet

[U-Boot] [PATCH 1/5] omap_hsmmc: update struct hsmmc to accomodate base address from DT

2015-09-15 Thread Mugunthan V N
Existing driver gets the actual omap hammc base address + 0x100 bytes as the first 0x100 bytes is not used by the driver. But with DM conversion the base address from DT is different, to accommodate the offset adding res0[0x100] to struct hsmmc. Signed-off-by: Mugunthan V N <mugunthan...@ti.

[U-Boot] [PATCH 3/5] drivers: mmc: omap_hsmmc: convert driver to adopt device driver model

2015-09-15 Thread Mugunthan V N
adopt omap_hsmmc driver to device driver model Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- drivers/mmc/omap_hsmmc.c | 115 ++- 1 file changed, 114 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_h

[U-Boot] [PATCH 2/5] am335x_evm: mmc: do not define DM_MMC for spl

2015-09-15 Thread Mugunthan V N
Since spl doesn't support DM currently, do not define DM_MMC for spl build. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- include/configs/am335x_evm.h | 8 1 file changed, 8 insertions(+) diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h index 5

[U-Boot] [PATCH 4/5] defconfig: am335x: bbb: enable ethernet driver model

2015-09-15 Thread Mugunthan V N
enable mmc driver model for am335x bbb as omap_hsmmc supports driver model Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- configs/am335x_boneblack_vboot_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am335x_boneblack_vboot_defconfig b/c

[U-Boot] [PATCH 5/5] defconfig: am335x: gp_evm: enable ethernet driver model

2015-09-15 Thread Mugunthan V N
enable mmc driver model for am335x gp_evm as omap_hsmmc supports driver model Signed-off-by: Mugunthan V N <mugunthan...@ti.com> --- configs/am335x_gp_evm_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am335x_gp_evm_defconfig b/configs/am335x_gp_evm_defconfig index c

<    1   2   3   4   5   6   7   >