Re: [PATCH 11/17] spi/qspi: set mmap flag to true.

2013-11-26 Thread Sourav Poddar
On Tuesday 26 November 2013 06:40 PM, Mark Brown wrote: On Tue, Nov 26, 2013 at 01:05:07PM +0530, Sourav Poddar wrote: Set mmap flag to true to indicate that the qspi controller supports memory mapped operations. Please combine some of these patches - adding the mmap support

Re: [PATCH 04/17] spi/qspi: parse control module register.

2013-11-26 Thread Sourav Poddar
On Tuesday 26 November 2013 06:49 PM, Mark Brown wrote: On Tue, Nov 26, 2013 at 06:30:15PM +0530, Sourav Poddar wrote: I mean to say, do I need to document qspi_base, qspi_ctrlmod register names also which I have used in omy dts files. Yes, you need to document what the valid names

[PATCH 3/5] pinctrl: am43xx: dt-bindings: add MUX_MODE8

2013-11-26 Thread Sourav Poddar
From: Darren Etheridge detheri...@ti.com AM43xx devices have an extra MUX_MODE for certain pins. Updating dt include to have MUX_MODE8 which maps to 0x8. Signed-off-by: Darren Etheridge detheri...@ti.com Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- include/dt-bindings/pinctrl/am43xx.h

[PATCH 1/5] arm: dts: am4372: Add pwm-cells property for ecap device.

2013-11-26 Thread Sourav Poddar
Add pwm-cells node for all ecap, ehrpwm in am43x dtsi files. Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- arch/arm/boot/dts/am4372.dtsi |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/am4372.dtsi b/arch/arm/boot/dts/am4372.dtsi index

[PATCH 0/5] Add more device nodes for am43x-epos-evm

2013-11-26 Thread Sourav Poddar
on 3.13-rc1. So, tested pwm part with this temporary patch[2]. [2]: http://www.spinics.net/lists/arm-kernel/msg288215.html Darren Etheridge (1): pinctrl: am43xx: dt-bindings: add MUX_MODE8 Sourav Poddar (4): arm: dts: am4372: Add pwm-cellsproperty for ecap device. arm: dts: am43x-epos-evm

[PATCH 2/5] ARM: dts: am43x-epos-evm: Add pwm backlight support.

2013-11-26 Thread Sourav Poddar
From: Sourav Poddar Date: Sat, 5 Oct 2013 05:19:46 +0530 sourav.pod...@ti.com Add pwm backlight support for am43x epos evm. Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- arch/arm/boot/dts/am43x-epos-evm.dts | 24 1 files changed, 24 insertions(+), 0 deletions

[PATCH 0/3] Add more device nodes for am43x gp evm.

2013-11-26 Thread Sourav Poddar
-evm. There is a some bug while using regulators through backlight driver on 3.13-rc1. So, tested pwm part with this patch[3]. [3]: http://www.spinics.net/lists/arm-kernel/msg288215.html Sourav Poddar (3): arm: dts: am437x-gp-evm: Enable gpio. ARM: dts: am43x-gp-evm: Add matrix gpio keys

[PATCH 4/5] arm: dts: am43x-epos-evm: Add I2C2 data.

2013-11-26 Thread Sourav Poddar
Add I2C2 dts data. Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- arch/arm/boot/dts/am43x-epos-evm.dts | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/am43x-epos-evm.dts b/arch/arm/boot/dts/am43x-epos-evm.dts index 5521999..7a504d1

[PATCH 5/5] arm: dts: am43x-epos-evm: Add SPI data.

2013-11-26 Thread Sourav Poddar
Add SPI dts data. Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- arch/arm/boot/dts/am43x-epos-evm.dts | 30 ++ 1 files changed, 30 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/am43x-epos-evm.dts b/arch/arm/boot/dts/am43x-epos-evm.dts index

[PATCH 3/3] arm: dts: am43x-gp-evm: Add matrix gpio keys.

2013-11-26 Thread Sourav Poddar
Add gpio keys node for am43x gp evm. Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- arch/arm/boot/dts/am437x-gp-evm.dts | 21 + 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/am437x-gp-evm.dts b/arch/arm/boot/dts/am437x-gp-evm.dts

[PATCH 1/3] arm: dts: am437x-gp-evm: Add pwm backlight support.

2013-11-26 Thread Sourav Poddar
Add pwm backlight support for gp evm. Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- arch/arm/boot/dts/am437x-gp-evm.dts | 24 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/am437x-gp-evm.dts b/arch/arm/boot/dts/am437x-gp

[PATCH 2/3] arm: dts: am437x-gp-evm: Enable gpio.

2013-11-26 Thread Sourav Poddar
Enable gpio3, gpio4, it will be used by gpio matrix keys. Also, can be used by othe peripherals. Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- arch/arm/boot/dts/am437x-gp-evm.dts |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/am437x-gp

[PATCH 07/17] spi/qspi: configure set up register for memory map..

2013-11-25 Thread Sourav Poddar
These add api to configure set up registers which will be used for memory mapped operations. These was provided as a pointer in the earlier patch and can be used by the slave devices to configure the master controller as an when required according to the usecases. Signed-off-by: Sourav Poddar

[PATCH 05/17] spi/qspi: parse memory map register.

2013-11-25 Thread Sourav Poddar
Parse memory map register from device tree. Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- drivers/spi/spi-ti-qspi.c | 14 +- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/drivers/spi/spi-ti-qspi.c b/drivers/spi/spi-ti-qspi.c index 776e93d..39aefd7 100644

[PATCH 02/17] spi/spi.h: Add configure from slave support.

2013-11-25 Thread Sourav Poddar
to configure its set up register for memory mapped operations. There was another discussion on some LUT registers for some other qspi controller in mailing list, these feature can also be used for that case also. Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- include/linux/spi/spi.h |4

[PATCH 00/17] Add memory mapped support for ti qspi, m25p80 serial flash.

2013-11-25 Thread Sourav Poddar
the whole flash. -write to the flash -read back the flash - compare the data Sourav Poddar (17): spi/spi.h: Add get_buf/put_buf support in spi master.. spi/spi.h: Add configure from slave support. spi/qspi: parse register by name. spi/qspi: parse control module register. spi/qspi: parse memory

[PATCH 04/17] spi/qspi: parse control module register.

2013-11-25 Thread Sourav Poddar
for conditional execution of control module part. Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- drivers/spi/spi-ti-qspi.c | 17 - 1 files changed, 16 insertions(+), 1 deletions(-) diff --git a/drivers/spi/spi-ti-qspi.c b/drivers/spi/spi-ti-qspi.c index 67aa905..776e93d 100644

[PATCH 03/17] spi/qspi: parse register by name.

2013-11-25 Thread Sourav Poddar
Modify the qspi driver to parse reg information by name. Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- drivers/spi/spi-ti-qspi.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/drivers/spi/spi-ti-qspi.c b/drivers/spi/spi-ti-qspi.c index 033ef8d..67aa905

[PATCH 06/17] spi/qspi: Add support to switc to memory mapped operation.

2013-11-25 Thread Sourav Poddar
These add apis that can be used to switch to memory mapped operatons by configuring control module and qspi registers. Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- drivers/spi/spi-ti-qspi.c | 28 1 files changed, 28 insertions(+), 0 deletions(-) diff

[PATCH 01/17] spi/spi.h: Add get_buf/put_buf support in spi master..

2013-11-25 Thread Sourav Poddar
that master address. These can also be used to turm the master controller clock, as usually the clocks get turned in spi core. But, in memory mapped case, we will bypass the spi core and hence needa way out to turn on the controller clock. Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- include

[PATCH 13/17] drivers: mtd: m25p80: Add api to configure master register.

2013-11-25 Thread Sourav Poddar
These can be used to fill information needed to configure master controller registers. Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- drivers/mtd/devices/m25p80.c | 17 + 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/drivers/mtd/devices/m25p80.c b

[PATCH 14/17] drivers: mtd: m25p80: Adapt driver to support memory mapped read.

2013-11-25 Thread Sourav Poddar
Adapt driver to do a memory mapped read. Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- drivers/mtd/devices/m25p80.c | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c index 6a27677..b7ed4be

[PATCH 08/17] spi/qspi: Add api for get_buf/put_buf.

2013-11-25 Thread Sourav Poddar
Adapt qspi driver to use (get_buf/put_buf) pointers added earlier. These can be called just before the memcpy operations to get hold of the memory mapped address and to turn on the controller clocks. Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- drivers/spi/spi-ti-qspi.c | 17

[PATCH 11/17] spi/qspi: set mmap flag to true.

2013-11-25 Thread Sourav Poddar
Set mmap flag to true to indicate that the qspi controller supports memory mapped operations. Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- drivers/spi/spi-ti-qspi.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/spi/spi-ti-qspi.c b/drivers/spi/spi-ti

[PATCH 09/17] spi/spi.h: Add mem variable in spi master.

2013-11-25 Thread Sourav Poddar
Add mem variable in spi_master, which can be used to hold on the memory mapped address. Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- include/linux/spi/spi.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h index

[PATCH 17/17] Documentation: bindings: ti-qspi: update binding information.

2013-11-25 Thread Sourav Poddar
These update binding information for ti qspi controller. Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- Documentation/devicetree/bindings/spi/ti_qspi.txt |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/Documentation/devicetree/bindings/spi/ti_qspi.txt b

[PATCH 15/17] arm: dts: dra7: Add qspi device.

2013-11-25 Thread Sourav Poddar
These add device tree entry for qspi controller driver on dra7. Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- arch/arm/boot/dts/dra7-evm.dts | 32 arch/arm/boot/dts/dra7.dtsi| 13 + 2 files changed, 45 insertions(+), 0 deletions

[PATCH 10/17] spi/spi.h: Add mmap flag in spi master.

2013-11-25 Thread Sourav Poddar
Add mmap flag which can be used to show that the master controller supports memory mapped operations. Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- include/linux/spi/spi.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/linux/spi/spi.h b/include/linux

[PATCH 16/17] arm: dts: am43x-epos: Add qspi device.

2013-11-25 Thread Sourav Poddar
These add device tree entry for qspi controller driver on am43x-epos-evm. Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- arch/arm/boot/dts/am4372.dtsi| 12 arch/arm/boot/dts/am43x-epos-evm.dts | 28 2 files changed, 40 insertions(+), 0

[PATCH 12/17] spi/qspi: convert driver to enable/disable memory mapped.

2013-11-25 Thread Sourav Poddar
Idea is to enable memory mapped by default at the end of the probe, if the control reaches the transfer api, then the operation is not a memory mapped one. Hence, we switch to Normal mode and at the end of the transfer function. switch back to memory mapped mode. Signed-off-by: Sourav Poddar

Re: [RESEND][PATCH] ARM: OMAP: devicetree: fix SPI node compatible property syntax items

2013-11-07 Thread Sourav Poddar
of the hwmod associated to the McSPI - ti,pindir-d0-out-d1-in: Select the D0 pin as output and D1 as Acked-by: Sourav Poddar sourav.pod...@ti.com -- To unsubscribe from this list: send the line unsubscribe linux-omap in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: [PATCH 1/1] arm: dra7xx: Add hwmod data for MDIO and CPSW

2013-10-18 Thread Sourav Poddar
Hi Mugunthan, On Friday 18 October 2013 07:09 PM, Mugunthan V N wrote: Adding hwmod data for CPSW and MDIO which is present in DRA7xx SoC Signed-off-by: Mugunthan V Nmugunthan...@ti.com change the subject to: ARM: OMAP2+: hwmod: Add hwmod data for MDIO and CPSW ---

[PATCH] arm: omap2+: hwmod: Add qspi data for am437x.

2013-10-14 Thread Sourav Poddar
Add hwmod data for qspi for AM437x. Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- This was tested on AM437x EPOS EVM with Afzal's v6 of AM43x PRCM basic support and tero's DT clock series. arch/arm/mach-omap2/omap_hwmod_43xx_data.c | 34 arch/arm/mach-omap2

Re: [PATCH] arm: omap2+: hwmod: Add qspi data for am437x.

2013-10-14 Thread Sourav Poddar
On Tuesday 15 October 2013 01:04 AM, Paul Walmsley wrote: Hi On Mon, 14 Oct 2013, Sourav Poddar wrote: Add hwmod data for qspi for AM437x. Signed-off-by: Sourav Poddarsourav.pod...@ti.com --- This was tested on AM437x EPOS EVM with Afzal's v6 of AM43x PRCM basic support and tero's DT clock

[PATCHv2] arm: omap2+: hwmod: Add qspi data for am437x.

2013-10-14 Thread Sourav Poddar
Add hwmod data for qspi for AM437x. Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- This was tested on AM437x EPOS EVM with Afzal's v6 of AM43x PRCM basic support and tero's DT clock series. v1-v2: Rebase on George Cherian USB hwmod patches. arch/arm/mach-omap2/omap_hwmod_43xx_data.c

[PATCHv2] arm: dts: omap5: Add status parameter.

2013-09-24 Thread Sourav Poddar
This patch disables devices initially(status = disabled). Devices will only be probed, if the devices are present in the board file(status = okay). Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- v1-v2: change approach to disabling devices in dtsi and enable it in respective board file

[PATCH] arm: dts: omap5-uevm: Add status parameter for i2c/spi/uart.

2013-09-23 Thread Sourav Poddar
omap5 has all devices enable by default. Disable thosw not required in omap5 uevm board. Fix the following: Added status parameter Simulataneously, fix some tab formatting. Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- arch/arm/boot/dts/omap5-uevm.dts | 38

Re: [PATCH] arm: dts: omap5-uevm: Add status parameter for i2c/spi/uart.

2013-09-23 Thread Sourav Poddar
On Tuesday 24 September 2013 11:14 AM, Sekhar Nori wrote: On Tuesday 24 September 2013 11:09 AM, Sourav Poddar wrote: omap5 has all devices enable by default. Disable thosw not required in omap5 uevm board. s/thosw/those Fix the following: Added status parameter Simulataneously, fix some tab

[PATCH] spi/qspi: Add compatible string for am43xx

2013-08-27 Thread Sourav Poddar
Add a compatible string for am43xx. Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- Documentation/devicetree/bindings/spi/ti_qspi.txt |2 +- drivers/spi/spi-ti-qspi.c |1 + 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/Documentation

[PATCHv2] spi/qspi: Add compatible string for am4372.

2013-08-27 Thread Sourav Poddar
Add a compatible string for am4372. Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- v1-v2: Instead of am43xx, use exact part number. Documentation/devicetree/bindings/spi/ti_qspi.txt |2 +- drivers/spi/spi-ti-qspi.c |1 + 2 files changed, 2 insertions(+), 1

Re: [PATCHv11] drivers: spi: Add qspi flash controller

2013-08-21 Thread Sourav Poddar
Hi Mark, On Tuesday 20 August 2013 06:55 PM, Sourav Poddar wrote: The patch add basic support for the quad spi controller. QSPI is a kind of spi module that allows single, dual and quad read access to external spi devices. The module has a memory mapped interface which provide direct interface

[PATCHv10] drivers: spi: Add qspi flash controller

2013-08-20 Thread Sourav Poddar
. - All iterations went through without failure. Test2: Use mtd utilities: - flash_erase to erase the flash device - mtd_debug read to read data back. - mtd_debug write to write to the data flash. diff between the write and read data shows zero. Signed-off-by: Sourav Poddar sourav.pod...@ti.com

Re: [PATCHv10] drivers: spi: Add qspi flash controller

2013-08-20 Thread Sourav Poddar
On Tuesday 20 August 2013 06:44 PM, Felipe Balbi wrote: Hi, On Tue, Aug 20, 2013 at 06:35:25PM +0530, Sourav Poddar wrote: +static int qspi_transfer_msg(struct ti_qspi *qspi, struct spi_transfer *t) +{ + int ret; + + if (t-tx_buf) { + ret = qspi_write_msg(qspi, t

[PATCHv11] drivers: spi: Add qspi flash controller

2013-08-20 Thread Sourav Poddar
-by: Felipe Balbiba...@ti.com Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- v10-v11: - Fix a typo Left 3 warnings(80 characters) for better readibilty of code. These was posted till now as a two patch series. Dropping the 2nd patch as of now, will add once the support for multiple data lines

Re: [PATCHv9 1/2] drivers: spi: Add qspi flash controller

2013-08-19 Thread Sourav Poddar
Hi Felipe, Hi, On Sun, Aug 04, 2013 at 02:28:09PM +0530, Sourav Poddar wrote: diff --git a/drivers/spi/spi-ti-qspi.c b/drivers/spi/spi-ti-qspi.c new file mode 100644 index 000..4328ae2 --- /dev/null +++ b/drivers/spi/spi-ti-qspi.c @@ -0,0 +1,591 @@ +/* + * TI QSPI driver

Re: [PATCHv9 1/2] drivers: spi: Add qspi flash controller

2013-08-06 Thread Sourav Poddar
On Sunday 04 August 2013 02:28 PM, Sourav Poddar wrote: The patch add basic support for the quad spi controller. QSPI is a kind of spi module that allows single, dual and quad read access to external spi devices. The module has a memory mapped interface which provide direct interface

[RFC/PATCH 2/2] driver: spi: Add quad spi read support

2013-08-04 Thread Sourav Poddar
once the ongoing discussion in the community is freezed. This patch is posted to demonstrate how patch 1 of the series will support quad read. [1]: http://comments.gmane.org/gmane.linux.kernel.spi.devel/14047 Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- drivers/spi/spi-ti-qspi.c | 22

[PATCHv9 0/2] Add ti qspi controller

2013-08-04 Thread Sourav Poddar
This patch series add support for ti qspi controller. Adapted this series on top of Mark brown series[1]: [1]: https://patchwork.kernel.org/patch/2834694/ Sourav Poddar (2): drivers: spi: Add qspi flash controller driver: spi: Add quad spi read support Documentation/devicetree/bindings/spi

[PATCHv9 1/2] drivers: spi: Add qspi flash controller

2013-08-04 Thread Sourav Poddar
. - All iterations went through without failure. Test2: Use mtd utilities: - flash_erase to erase the flash device - nanddump to read data back. - nandwrite to write to the data flash. diff between the write and read data shows zero. Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- v8-v9

[PATCH] drivers: mtd: devices: make m25p80 dt adapted.

2013-08-02 Thread Sourav Poddar
This patch helps gettimg m25p80 probed through dt. To get the id of the exact flash type supported for dt case, data-type is getting parsed from dt entry. Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- drivers/mtd/devices/m25p80.c | 22 +- 1 files changed, 21

Re: [PATCH] drivers: mtd: devices: make m25p80 dt adapted.

2013-08-02 Thread Sourav Poddar
+ correct device tree mailing list On Friday 02 August 2013 12:19 PM, Sourav Poddar wrote: This patch helps gettimg m25p80 probed through dt. To get the id of the exact flash type supported for dt case, data-type is getting parsed from dt entry. Signed-off-by: Sourav Poddarsourav.pod...@ti.com

Re: [PATCH] drivers: mtd: devices: make m25p80 dt adapted.

2013-08-02 Thread Sourav Poddar
Hi Huang, On Saturday 03 August 2013 07:52 AM, Huang Shijie wrote: On Fri, Aug 02, 2013 at 12:19:30PM +0530, Sourav Poddar wrote: This patch helps gettimg m25p80 probed through dt. without this patch, we also can get the right SPI NOR type from the dt entry. Could you explain why we should

[PATCHv8 0/2] Add ti qspi controller

2013-08-01 Thread Sourav Poddar
This patch series add support for ti qspi controller. Adapted this series on top of Mark brown series[1]: [1]: https://patchwork.kernel.org/patch/2834694/ Sourav Poddar (2): drivers: spi: Add qspi flash controller driver: spi: Add quad spi read support Documentation/devicetree/bindings

[RFC/PATCH 2/2] driver: spi: Add quad spi read support

2013-08-01 Thread Sourav Poddar
once the ongoing discussion in the community is freezed. This patch is posted to demonstrate how patch 1 of the series will support quad read. [1]: http://comments.gmane.org/gmane.linux.kernel.spi.devel/14047 Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- drivers/spi/spi-ti-qspi.c | 22

[PATCHv8 1/2] drivers: spi: Add qspi flash controller

2013-08-01 Thread Sourav Poddar
. - All iterations went through without failure. Test2: Use mtd utilities: - flash_erase to erase the flash device - nanddump to read data back. - nandwrite to write to the data flash. diff between the write and read data shows zero. Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- I have

Re: [RFC/PATCH 0/3] arm: omap: patches from -rt

2013-08-01 Thread Sourav Poddar
suspend. omap5-uevm: - Boot tested. - Tested this series on buses where devices are present. dra7-evm: - Boot tested. - run i2c dump on buses where devices are present. Tested-by: Sourav Poddar sourav.pod...@ti.com -- To unsubscribe from this list: send the line unsubscribe linux-omap in the body

Re: [PATCHv7 1/2] drivers: spi: Add qspi flash controller

2013-07-31 Thread Sourav Poddar
HI, On Wednesday 31 July 2013 01:19 PM, Felipe Balbi wrote: Hi, On Wed, Jul 31, 2013 at 11:17:52AM +0530, Sourav Poddar wrote: diff --git a/drivers/spi/spi-ti-qspi.c b/drivers/spi/spi-ti-qspi.c new file mode 100644 index 000..3d10b69 --- /dev/null +++ b/drivers/spi/spi-ti-qspi.c @@ -0,0

Re: [PATCHv7 1/2] drivers: spi: Add qspi flash controller

2013-07-31 Thread Sourav Poddar
On Wednesday 31 July 2013 02:50 PM, Felipe Balbi wrote: Hi, On Wed, Jul 31, 2013 at 02:40:51PM +0530, Sourav Poddar wrote: +#defineQSPI_FRAME_MAX 0xfff Frame max is 4096, 0x1000, right ? Yes, this macro was used initially to fill the register bits, where 4095 = 4096

Re: [PATCHv7 1/2] drivers: spi: Add qspi flash controller

2013-07-31 Thread Sourav Poddar
On Wednesday 31 July 2013 03:18 PM, Felipe Balbi wrote: Hi, On Wed, Jul 31, 2013 at 03:10:40PM +0530, Sourav Poddar wrote: words can be of any length (1, 2 or 4) bytes. So, I think it should be decremented by 1 only. this is wrong. hmm..got the point. I will pass the count address also

Re: [PATCHv7 1/2] drivers: spi: Add qspi flash controller

2013-07-31 Thread Sourav Poddar
On Thursday 01 August 2013 12:09 AM, Trent Piepho wrote: On Tue, Jul 30, 2013 at 10:47 PM, Sourav Poddarsourav.pod...@ti.com wrote: Test details: - Tested this on dra7 board. Test1: Ran mtd_stesstest for 4 iterations. - All iterations went through without failure. Test2

Re: [PATCHv6 1/2] drivers: spi: Add qspi flash controller

2013-07-30 Thread Sourav Poddar
Hi Felipe, On Monday 29 July 2013 06:05 PM, Felipe Balbi wrote: Hi, On Mon, Jul 29, 2013 at 04:45:02PM +0530, Sourav Poddar wrote: + irq = platform_get_irq(pdev, 0); + if (irq 0) { + dev_err(pdev-dev, no irq resource?\n); + return irq

[PATCHv7 0/2] Add ti qspi controller

2013-07-30 Thread Sourav Poddar
This patch series add support for ti qspi controller. Adapted this series on top of Mark brown series[1]: [1]: https://patchwork.kernel.org/patch/2834694/ And some other cleanups. Sourav Poddar (2): drivers: spi: Add qspi flash controller driver: spi: Add quad spi read support

[RFC/PATCH 2/2] driver: spi: Add quad spi read support

2013-07-30 Thread Sourav Poddar
once the ongoing discussion in the community is freezed. This patch is posted to demonstrate how patch 1 of the series will support quad read. [1]: http://comments.gmane.org/gmane.linux.kernel.spi.devel/14047 Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- drivers/spi/spi-ti-qspi.c | 15

[PATCHv7 1/2] drivers: spi: Add qspi flash controller

2013-07-30 Thread Sourav Poddar
. - All iterations went through without failure. Test2: Use mtd utilities: - flash_erase to erase the flash device - nanddump to read data back. - nandwrite to write to the data flash. diff between the write and read data shows zero. Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- v6-v7

[PATCHv6 0/2] Add ti qspi controller

2013-07-29 Thread Sourav Poddar
This patch series add support for ti qspi controller. Adapted this series on top of Mark brown series[1]: [1]: https://patchwork.kernel.org/patch/2834694/ And some other cleanups. Sourav Poddar (2): drivers: spi: Add qspi flash controller driver: spi: Add quad spi read support

[RFC/PATCH 2/2] driver: spi: Add quad spi read support

2013-07-29 Thread Sourav Poddar
with the ongoing discussion in the community. This patch is posted to demonstrate how patch 1 of the series will support quad read. [1]: http://comments.gmane.org/gmane.linux.kernel.spi.devel/14047 Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- drivers/spi/spi-ti-qspi.c | 16

[PATCHv6 1/2] drivers: spi: Add qspi flash controller

2013-07-29 Thread Sourav Poddar
. - All iterations went through without failure. Test2: Use mtd utilities: - flash_erase to erase the flash device - nanddump to read data back. - nandwrite to write to the data flash. diff between the write and read data shows zero. Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- v5-v6

Re: [RFC/PATCH 2/2] driver: spi: Add quad spi read support

2013-07-29 Thread Sourav Poddar
On Monday 29 July 2013 03:02 PM, Felipe Balbi wrote: On Mon, Jul 29, 2013 at 12:52:30PM +0530, Sourav Poddar wrote: Since, qspi controller uses quad read. Configuring the command register, if the transfer of data needs dual or quad lines. This patch has been done on top of the following patch

Re: [PATCHv6 1/2] drivers: spi: Add qspi flash controller

2013-07-29 Thread Sourav Poddar
On Monday 29 July 2013 03:01 PM, Felipe Balbi wrote: Hi, On Mon, Jul 29, 2013 at 12:52:29PM +0530, Sourav Poddar wrote: diff --git a/drivers/spi/spi-ti-qspi.c b/drivers/spi/spi-ti-qspi.c new file mode 100644 index 000..51fe95f --- /dev/null +++ b/drivers/spi/spi-ti-qspi.c [ snip

Re: [PATCHv6 1/2] drivers: spi: Add qspi flash controller

2013-07-29 Thread Sourav Poddar
On Monday 29 July 2013 03:50 PM, Felipe Balbi wrote: Hi, On Mon, Jul 29, 2013 at 03:42:03PM +0530, Sourav Poddar wrote: + frame_length = (m-frame_length 3) / spi-bits_per_word; there's another way to optimize this. If you assume bits_per_word to always be power of two you can

Re: [PATCHv6 1/2] drivers: spi: Add qspi flash controller

2013-07-29 Thread Sourav Poddar
On Monday 29 July 2013 04:39 PM, Felipe Balbi wrote: Hi, On Mon, Jul 29, 2013 at 04:34:41PM +0530, Sourav Poddar wrote: + irq = platform_get_irq(pdev, 0); + if (irq0) { + dev_err(pdev-dev, no irq resource?\n); + return irq

[Resend/PATCH] arm: dts: omap5: Add status parameter for i2c/spi/uart.

2013-07-27 Thread Sourav Poddar
This patch disabled I2C/SPI/UART device initially(status = disabled). This devices will only be probed, if the devices are present in the dts file(status = okay). Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- arch/arm/boot/dts/omap5-uevm.dts | 10 +- arch/arm/boot/dts/omap5

[RFC/PATCH 2/2] driver: spi: Add quad spi read support

2013-07-26 Thread Sourav Poddar
with the ongoing discussion in the community. This patch is posted to demonstrate how patch 1 of the series will support quad read. [1]: http://comments.gmane.org/gmane.linux.kernel.spi.devel/14047 Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- drivers/spi/spi-ti-qspi.c | 16

[PATCHv5 0/2] Add qspi controller

2013-07-26 Thread Sourav Poddar
This patch series add support for ti qspi controller. The previous version link is here: https://lkml.org/lkml/2013/7/18/154 patch 1 of the previous version already picked. Resending other two with comments fixed. Sourav Poddar (2): drivers: spi: Add qspi flash controller driver: spi: Add

[PATCHv5 1/2] drivers: spi: Add qspi flash controller

2013-07-26 Thread Sourav Poddar
. - All iterations went through without failure. Test2: Use mtd utilities: - flash_erase to erase the flash device - nanddump to read data back. - nandwrite to write to the data flash. diff between the write and read data shows zero. Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- - Modified

Re: [PATCH 0/4] dra7: I2C/MCSPI/UART pin control datas

2013-07-22 Thread Sourav Poddar
On Friday 19 July 2013 10:01 PM, Nishanth Menon wrote: On 07/19/2013 11:24 AM, Sourav Poddar wrote: These series add support for I2C/MCSPI/UART pin control datas. The series is done on top of Rajendra Nayak series[1](posted to the list), which has basic dt boot enable for dra7. These patches

Re: [PATCHv4 2/3] drivers: spi: Add qspi flash controller

2013-07-19 Thread Sourav Poddar
Hi Felipe, On Thursday 18 July 2013 04:54 PM, Felipe Balbi wrote: On Thu, Jul 18, 2013 at 04:48:41PM +0530, Sourav Poddar wrote: +static void qspi_write_msg(struct ti_qspi *qspi, struct spi_transfer *t) +{ + const u8 *txbuf; + int wlen, count; + + count = t-len; + txbuf

Re: [PATCHv4 2/3] drivers: spi: Add qspi flash controller

2013-07-19 Thread Sourav Poddar
Hi Mark, On Thursday 18 July 2013 04:12 PM, Mark Brown wrote: On Thu, Jul 18, 2013 at 03:31:26PM +0530, Sourav Poddar wrote: QSPI is a kind of spi module that allows single, dual and quad read access to external spi devices. The module has a memory mapped interface which provide direct

[PATCH 3/4] arm: dts: dra7-evm: Add SPI pinctrl data

2013-07-19 Thread Sourav Poddar
Add pin control data for mcspi1 and mcspi2. Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- arch/arm/boot/dts/dra7-evm.dts | 33 + 1 files changed, 33 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/dra7-evm.dts b/arch/arm/boot/dts/dra7

[PATCH 1/4] arm: dts: dra7: Add initial status for the devices.

2013-07-19 Thread Sourav Poddar
This patch disabled I2C/SPI/UART device initially(status = disabled). This devices will only be probed, if the devices are present in the dts file(status = okay). Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- arch/arm/boot/dts/dra7.dtsi | 15 +++ 1 files changed, 15

[PATCH 0/4] dra7: I2C/MCSPI/UART pin control datas

2013-07-19 Thread Sourav Poddar
://www.spinics.net/lists/linux-omap/msg93535.html [2]: https://lkml.org/lkml/2013/7/10/335 Sourav Poddar (4): arm: dts: omap5-evm: Add I2c pinctrl data arm: dts: omap5-evm: Add I2c pinctrl data arm: dts: dra7-evm: Add SPI pinctrl data arm: dts: dra7-evm: Add UART pinctrl data arch/arm/boot/dts

[PATCH 2/4] arm: dts: dra7-evm: Add I2C pinctrl data

2013-07-19 Thread Sourav Poddar
Add pin control data for i2c1, i2c2 and i2c3. Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- arch/arm/boot/dts/dra7-evm.dts | 47 1 files changed, 47 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/dra7-evm.dts b/arch/arm/boot/dts

[PATCH 4/4] arm: dts: dra7-evm: Add UART pinctrl data

2013-07-19 Thread Sourav Poddar
Add pin control datas for uart1, uart2 and uart3. Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- arch/arm/boot/dts/dra7-evm.dts | 43 1 files changed, 43 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/dra7-evm.dts b/arch/arm/boot

[PATCH 0/3] spi changes and ti quad spi controller.

2013-07-18 Thread Sourav Poddar
Add support for calculating message length in spi framework. Add support for quad spi controller. Patch 2 of this series had been posted before. Sending along with the series along with ather propsed change. Sourav Poddar (3): driver: spi: Modify core to compute the message length drivers

[RFC/PATCHv2 1/3] driver: spi: Modify core to compute the message length

2013-07-18 Thread Sourav Poddar
Make spi core calculate the message length while populating the other transfer parameters. Usecase, driver can use it to populate framelength filed in their controller. Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- drivers/spi/spi.c |1 + include/linux/spi/spi.h |1 + 2

[PATCHv4 2/3] drivers: spi: Add qspi flash controller

2013-07-18 Thread Sourav Poddar
will configure controller clocks, device control register and for defining low level transfer apis which will be used by the spi framework to transfer data to the slave spi device(flash in this case). Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- v3-v4 - Did miscellaneous cleanup - Added power

[RFC/PATCHv2 3/3] driver: spi: Add quad spi read support

2013-07-18 Thread Sourav Poddar
as the parent patch goes[1] [1]: http://comments.gmane.org/gmane.linux.kernel.spi.devel/14047 Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- v1-v2 Added support for dual also. drivers/spi/spi-ti-qspi.c | 17 +++-- 1 files changed, 15 insertions(+), 2 deletions(-) diff --git

Re: [PATCHv4 2/3] drivers: spi: Add qspi flash controller

2013-07-18 Thread Sourav Poddar
Hi Felipe, On Thursday 18 July 2013 03:54 PM, Felipe Balbi wrote: Hi, it might be just me, but ... On Thu, Jul 18, 2013 at 03:31:26PM +0530, Sourav Poddar wrote: +static inline unsigned long ti_qspi_readl_data(struct ti_qspi *qspi, + unsigned long reg, int wlen

Re: [PATCHv4 2/3] drivers: spi: Add qspi flash controller

2013-07-18 Thread Sourav Poddar
On Thursday 18 July 2013 04:12 PM, Mark Brown wrote: On Thu, Jul 18, 2013 at 03:31:26PM +0530, Sourav Poddar wrote: QSPI is a kind of spi module that allows single, dual and quad read access to external spi devices. The module has a memory mapped interface which provide direct interface

Re: [RFC/PATCHv2 3/3] driver: spi: Add quad spi read support

2013-07-18 Thread Sourav Poddar
On Thursday 18 July 2013 04:14 PM, Mark Brown wrote: On Thu, Jul 18, 2013 at 03:31:27PM +0530, Sourav Poddar wrote: Since, qspi controller uses quad read. Configuring the command register, if the transfer of data needs dual or quad lines. This patch has been done on top of the following patch

Re: [PATCHv4 2/3] drivers: spi: Add qspi flash controller

2013-07-18 Thread Sourav Poddar
On Thursday 18 July 2013 04:54 PM, Felipe Balbi wrote: On Thu, Jul 18, 2013 at 04:48:41PM +0530, Sourav Poddar wrote: +static void qspi_write_msg(struct ti_qspi *qspi, struct spi_transfer *t) +{ + const u8 *txbuf; + int wlen, count; + + count = t-len; + txbuf = t-tx_buf

Re: [PATCHv4 2/3] drivers: spi: Add qspi flash controller

2013-07-18 Thread Sourav Poddar
case where we would need to handle IRQs which we decided to mask, but perhaps there might be some cases, I don't know. Based on that, I believe Sourav is reading IRQSTATUS_RAW$n, then he need to clear the masked bits. That's not the issue - the issue is that if none of the unmasked interrupts

Re: [PATCHv4 2/3] drivers: spi: Add qspi flash controller

2013-07-18 Thread Sourav Poddar
On Friday 19 July 2013 12:38 AM, Trent Piepho wrote: On Thu, Jul 18, 2013 at 3:01 AM, Sourav Poddarsourav.pod...@ti.com wrote: +Required properties: +- compatible : should be ti,dra7xxx-qspi. +- reg: Should contain QSPI registers location and length. +- #address-cells, #size-cells : Must

Re: [PATCHv3 2/3] drivers: spi: Add qspi flash controller

2013-07-11 Thread Sourav Poddar
On Monday 08 July 2013 08:02 PM, Felipe Balbi wrote: Hi, On Mon, Jul 08, 2013 at 07:12:59PM +0530, Sourav Poddar wrote: +static inline unsigned long dra7xxx_readl(struct dra7xxx_qspi *qspi, + unsigned long reg) +{ + return readl(qspi-base + reg); +} + +static inline void

Re: [PATCHv3 2/3] drivers: spi: Add qspi flash controller

2013-07-09 Thread Sourav Poddar
On Tuesday 09 July 2013 02:03 AM, Nishanth Menon wrote: On 19:12-20130708, Sourav Poddar wrote: [..] generic comment, given our historical mistakes of making drivers specific to a SoC family, it never is. Now, ti-qspi in file name is a step in the right direction, but, rest of the code(function

Re: [PATCHv3 2/3] drivers: spi: Add qspi flash controller

2013-07-09 Thread Sourav Poddar
On Monday 08 July 2013 08:02 PM, Felipe Balbi wrote: Hi, On Mon, Jul 08, 2013 at 07:12:59PM +0530, Sourav Poddar wrote: +static inline unsigned long dra7xxx_readl(struct dra7xxx_qspi *qspi, + unsigned long reg) +{ + return readl(qspi-base + reg); +} + +static inline void

[PATCH 0/3] spi changes and ti quad spi controller.

2013-07-08 Thread Sourav Poddar
Add support for calculating message length in spi framework. Add support for quad spi controller. Patch 2 of this series had been posted before. Sending along with the series along with ather propsed change. Sourav Poddar (3): driver: spi: Modify core to compute the message length drivers

[RFC/PATCH 1/3] driver: spi: Modify core to compute the message length

2013-07-08 Thread Sourav Poddar
Make spi core calculate the message length while populating the other transfer parameters. This will be useful in cases where controller driver need to configure its framelength field without iterating through the linklist again in the driver controller. Signed-off-by: Sourav Poddar sourav.pod

[PATCHv3 2/3] drivers: spi: Add qspi flash controller

2013-07-08 Thread Sourav Poddar
will configure controller clocks, device control register and for defining low level transfer apis which will be used by the spi framework to transfer data to the slave spi device(flash in this case). Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- v2-v3 1. Add threaded irq support 2. made the driver

[RFC/PATCH 3/3] driver: spi: Add quad spi read support

2013-07-08 Thread Sourav Poddar
://comments.gmane.org/gmane.linux.kernel.spi.devel/14047 Signed-off-by: Sourav Poddar sourav.pod...@ti.com --- drivers/spi/spi-ti-qspi.c |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-ti-qspi.c b/drivers/spi/spi-ti-qspi.c index 430de9c..307cbed 100644

<    1   2   3   4   5   >