[PATCH v3 2/3] spi: spi-fsl-dspi: Fix continuous selection format

2016-11-21 Thread Sanchayan Maity
in EOQ mode does. This correctly implements continuous selection format while also correcting and cleaning up the transmit code path. Signed-off-by: Sanchayan Maity <maitysancha...@gmail.com> --- drivers/spi/spi-fsl-dspi.c | 20 ++-- 1 file changed, 6 insertions(+), 14 del

[PATCH v3 2/3] spi: spi-fsl-dspi: Fix continuous selection format

2016-11-21 Thread Sanchayan Maity
in EOQ mode does. This correctly implements continuous selection format while also correcting and cleaning up the transmit code path. Signed-off-by: Sanchayan Maity --- drivers/spi/spi-fsl-dspi.c | 20 ++-- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/drivers/spi

[PATCH v3 0/3] Fixes for Vybrid SPI DMA implementation

2016-11-21 Thread Sanchayan Maity
eanup patch has less to clean with change above v2: https://www.spinics.net/lists/arm-kernel/msg543941.html v1: http://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1274632.html Thanks & Regards, Sanchayan. Sanchayan Maity (3): spi: spi-fsl-dspi: Fix incorrect DMA setup spi: spi-

[PATCH v3 3/3] spi: spi-fsl-dspi: Fix incorrect freeing of DMA allocated buffers

2016-11-21 Thread Sanchayan Maity
Buffers allocated with a call to dma_alloc_coherent should be freed with dma_free_coherent instead of the currently used devm_kfree. Signed-off-by: Sanchayan Maity <maitysancha...@gmail.com> --- drivers/spi/spi-fsl-dspi.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff

[PATCH v3 1/3] spi: spi-fsl-dspi: Fix incorrect DMA setup

2016-11-21 Thread Sanchayan Maity
been transferred. While at it also clean up the use of curr_xfer_len which is central to the DMA setup, from bytes to DMA transfers for every use. Signed-off-by: Sanchayan Maity <maitysancha...@gmail.com> Reviewed-by: Stefan Agner <ste...@agner.ch> --- drivers/spi/spi-fsl

[PATCH v3 0/3] Fixes for Vybrid SPI DMA implementation

2016-11-21 Thread Sanchayan Maity
eanup patch has less to clean with change above v2: https://www.spinics.net/lists/arm-kernel/msg543941.html v1: http://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1274632.html Thanks & Regards, Sanchayan. Sanchayan Maity (3): spi: spi-fsl-dspi: Fix incorrect DMA setup spi: spi-

[PATCH v3 3/3] spi: spi-fsl-dspi: Fix incorrect freeing of DMA allocated buffers

2016-11-21 Thread Sanchayan Maity
Buffers allocated with a call to dma_alloc_coherent should be freed with dma_free_coherent instead of the currently used devm_kfree. Signed-off-by: Sanchayan Maity --- drivers/spi/spi-fsl-dspi.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-fsl-dspi.c

[PATCH v3 1/3] spi: spi-fsl-dspi: Fix incorrect DMA setup

2016-11-21 Thread Sanchayan Maity
been transferred. While at it also clean up the use of curr_xfer_len which is central to the DMA setup, from bytes to DMA transfers for every use. Signed-off-by: Sanchayan Maity Reviewed-by: Stefan Agner --- drivers/spi/spi-fsl-dspi.c | 35 ++- 1 file changed, 18

[PATCH v2 2/4] spi: spi-fsl-dspi: Fix continuous selection format

2016-11-20 Thread Sanchayan Maity
to be asserted between sequential transfers. Signed-off-by: Sanchayan Maity <maitysancha...@gmail.com> --- drivers/spi/spi-fsl-dspi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/spi/spi-fsl-dspi.c b/drivers/spi/spi-fsl-dspi.c index b1ee1f5..41422cd 100644 --- a/drivers/spi/spi-fsl-

[PATCH v2 4/4] spi: spi-fsl-dspi: Minor code cleanup and error path fixes

2016-11-20 Thread Sanchayan Maity
Code cleanup for improving code readability and error path fixes and cleanup removing use of devm_kfree. Signed-off-by: Sanchayan Maity <maitysancha...@gmail.com> --- drivers/spi/spi-fsl-dspi.c | 22 -- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/d

[PATCH v2 0/4] Fixes for Vybrid SPI DMA implementation

2016-11-20 Thread Sanchayan Maity
& Regards, Sanchayan. Sanchayan Maity (4): spi: spi-fsl-dspi: Fix SPI transfer issue when using multiple SPI_IOC_MESSAGE spi: spi-fsl-dspi: Fix continuous selection format spi: spi-fsl-dspi: Fix incorrect DMA setup spi: spi-fsl-dspi: Minor code cleanup and error path fixes drivers

[PATCH v2 3/4] spi: spi-fsl-dspi: Fix incorrect DMA setup

2016-11-20 Thread Sanchayan Maity
been transferred. While at it also clean up the use of curr_xfer_len which is central to the DMA setup, from bytes to DMA transfers for every use. Signed-off-by: Sanchayan Maity <maitysancha...@gmail.com> --- drivers/spi/spi-fsl-dspi.c | 35 ++- 1 file chang

[PATCH v2 1/4] spi: spi-fsl-dspi: Fix SPI transfer issue when using multiple SPI_IOC_MESSAGE

2016-11-20 Thread Sanchayan Maity
Current DMA implementation had a bug where the DMA transfer would exit the loop in dspi_transfer_one_message after the completion of a single transfer. This results in a multi message transfer submitted with SPI_IOC_MESSAGE to terminate incorrectly without an error. Signed-off-by: Sanchayan Maity

[PATCH v2 2/4] spi: spi-fsl-dspi: Fix continuous selection format

2016-11-20 Thread Sanchayan Maity
to be asserted between sequential transfers. Signed-off-by: Sanchayan Maity --- drivers/spi/spi-fsl-dspi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/spi/spi-fsl-dspi.c b/drivers/spi/spi-fsl-dspi.c index b1ee1f5..41422cd 100644 --- a/drivers/spi/spi-fsl-dspi.c +++ b/drivers/spi/spi-fsl

[PATCH v2 4/4] spi: spi-fsl-dspi: Minor code cleanup and error path fixes

2016-11-20 Thread Sanchayan Maity
Code cleanup for improving code readability and error path fixes and cleanup removing use of devm_kfree. Signed-off-by: Sanchayan Maity --- drivers/spi/spi-fsl-dspi.c | 22 -- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/drivers/spi/spi-fsl-dspi.c b/drivers

[PATCH v2 0/4] Fixes for Vybrid SPI DMA implementation

2016-11-20 Thread Sanchayan Maity
& Regards, Sanchayan. Sanchayan Maity (4): spi: spi-fsl-dspi: Fix SPI transfer issue when using multiple SPI_IOC_MESSAGE spi: spi-fsl-dspi: Fix continuous selection format spi: spi-fsl-dspi: Fix incorrect DMA setup spi: spi-fsl-dspi: Minor code cleanup and error path fixes drivers

[PATCH v2 3/4] spi: spi-fsl-dspi: Fix incorrect DMA setup

2016-11-20 Thread Sanchayan Maity
been transferred. While at it also clean up the use of curr_xfer_len which is central to the DMA setup, from bytes to DMA transfers for every use. Signed-off-by: Sanchayan Maity --- drivers/spi/spi-fsl-dspi.c | 35 ++- 1 file changed, 18 insertions(+), 17 deletions

[PATCH v2 1/4] spi: spi-fsl-dspi: Fix SPI transfer issue when using multiple SPI_IOC_MESSAGE

2016-11-20 Thread Sanchayan Maity
Current DMA implementation had a bug where the DMA transfer would exit the loop in dspi_transfer_one_message after the completion of a single transfer. This results in a multi message transfer submitted with SPI_IOC_MESSAGE to terminate incorrectly without an error. Signed-off-by: Sanchayan Maity

[PATCH 4/4] spi: spi-fsl-dspi: Minor code cleanup and error path fixes

2016-11-17 Thread Sanchayan Maity
Code cleanup for improving code readability and error path fixes and cleanup removing use of devm_kfree. Signed-off-by: Sanchayan Maity <maitysancha...@gmail.com> --- drivers/spi/spi-fsl-dspi.c | 34 +- 1 file changed, 25 insertions(+), 9 deletions(-) diff

[PATCH 4/4] spi: spi-fsl-dspi: Minor code cleanup and error path fixes

2016-11-17 Thread Sanchayan Maity
Code cleanup for improving code readability and error path fixes and cleanup removing use of devm_kfree. Signed-off-by: Sanchayan Maity --- drivers/spi/spi-fsl-dspi.c | 34 +- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/drivers/spi/spi-fsl

[PATCH 2/4] spi: spi-fsl-dspi: Fix incorrect DMA setup

2016-11-17 Thread Sanchayan Maity
been transferred. Signed-off-by: Sanchayan Maity <maitysancha...@gmail.com> --- drivers/spi/spi-fsl-dspi.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-fsl-dspi.c b/drivers/spi/spi-fsl-dspi.c index b1ee1f5..aee8c88 100644 --- a/drivers/spi/s

[PATCH 2/4] spi: spi-fsl-dspi: Fix incorrect DMA setup

2016-11-17 Thread Sanchayan Maity
been transferred. Signed-off-by: Sanchayan Maity --- drivers/spi/spi-fsl-dspi.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-fsl-dspi.c b/drivers/spi/spi-fsl-dspi.c index b1ee1f5..aee8c88 100644 --- a/drivers/spi/spi-fsl-dspi.c +++ b/drivers/spi/spi

[PATCH 0/4] Fixes for Vybrid SPI DMA implementation

2016-11-17 Thread Sanchayan Maity
/broonie/spi.git/log/?h=topic/fsl-dspi The patches have been tested on a Toradex Colibri Vybrid VF61 module. Thanks & Regards, Sanchayan. Sanchayan Maity (4): spi: spi-fsl-dspi: Fix SPI transfer issue when using multiple SPI_IOC_MESSAGE spi: spi-fsl-dspi: Fix incorrect DMA setup spi: spi

[PATCH 0/4] Fixes for Vybrid SPI DMA implementation

2016-11-17 Thread Sanchayan Maity
/broonie/spi.git/log/?h=topic/fsl-dspi The patches have been tested on a Toradex Colibri Vybrid VF61 module. Thanks & Regards, Sanchayan. Sanchayan Maity (4): spi: spi-fsl-dspi: Fix SPI transfer issue when using multiple SPI_IOC_MESSAGE spi: spi-fsl-dspi: Fix incorrect DMA setup spi: spi

[PATCH 3/4] spi: spi-fsl-dspi: Fix continuous selection format

2016-11-17 Thread Sanchayan Maity
to be asserted between sequential transfers. Signed-off-by: Sanchayan Maity <maitysancha...@gmail.com> --- drivers/spi/spi-fsl-dspi.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/drivers/spi/spi-fsl-dspi.c b/drivers/spi/spi-fsl-dspi.c index aee8c88..164e2e1

[PATCH 3/4] spi: spi-fsl-dspi: Fix continuous selection format

2016-11-17 Thread Sanchayan Maity
to be asserted between sequential transfers. Signed-off-by: Sanchayan Maity --- drivers/spi/spi-fsl-dspi.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/drivers/spi/spi-fsl-dspi.c b/drivers/spi/spi-fsl-dspi.c index aee8c88..164e2e1 100644 --- a/drivers/spi/spi-fsl

[PATCH 1/4] spi: spi-fsl-dspi: Fix SPI transfer issue when using multiple SPI_IOC_MESSAGE

2016-11-17 Thread Sanchayan Maity
Current DMA implementation had a bug where the DMA transfer would exit the loop in dspi_transfer_one_message after the completion of a single transfer. This results in a multi message transfer submitted with SPI_IOC_MESSAGE to terminate incorrectly without an error. Signed-off-by: Sanchayan Maity

[PATCH 1/4] spi: spi-fsl-dspi: Fix SPI transfer issue when using multiple SPI_IOC_MESSAGE

2016-11-17 Thread Sanchayan Maity
Current DMA implementation had a bug where the DMA transfer would exit the loop in dspi_transfer_one_message after the completion of a single transfer. This results in a multi message transfer submitted with SPI_IOC_MESSAGE to terminate incorrectly without an error. Signed-off-by: Sanchayan Maity

[PATCH v2] ARM: dts: vfxxx: Enable DMA for DSPI2 and DSPI3

2016-11-14 Thread Sanchayan Maity
Enable DMA for DSPI2 and DSPI3 on Vybrid. Signed-off-by: Sanchayan Maity <maitysancha...@gmail.com> --- Changes since v1: Add signed-off-by missing in v1. --- arch/arm/boot/dts/vfxxx.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/vfxxx.dtsi b/arch/arm/bo

[PATCH v2] ARM: dts: vfxxx: Enable DMA for DSPI2 and DSPI3

2016-11-14 Thread Sanchayan Maity
Enable DMA for DSPI2 and DSPI3 on Vybrid. Signed-off-by: Sanchayan Maity --- Changes since v1: Add signed-off-by missing in v1. --- arch/arm/boot/dts/vfxxx.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/vfxxx.dtsi b/arch/arm/boot/dts/vfxxx.dtsi index 000550f

[PATCH v3] spi: spi-fsl-dspi: Add DMA support for Vybrid

2016-11-10 Thread Sanchayan Maity
Add DMA support for Vybrid. Signed-off-by: Sanchayan Maity <maitysancha...@gmail.com> --- Changes since v2: 1. Rebase on top of Shawn's latest for-next branch 2. Make DMA mode the default for Vybrid. We no longer use the EOQ mode. Since devtype_data has been constantified it's no longer

[PATCH v3] spi: spi-fsl-dspi: Add DMA support for Vybrid

2016-11-10 Thread Sanchayan Maity
Add DMA support for Vybrid. Signed-off-by: Sanchayan Maity --- Changes since v2: 1. Rebase on top of Shawn's latest for-next branch 2. Make DMA mode the default for Vybrid. We no longer use the EOQ mode. Since devtype_data has been constantified it's no longer makes sense to change

[PATCH] ARM: dts: vfxxx: Enable DMA for DSPI2 and DSPI3

2016-11-10 Thread Sanchayan Maity
Enable DMA for DSPI2 and DSPI3 on Vybrid. --- arch/arm/boot/dts/vfxxx.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/vfxxx.dtsi b/arch/arm/boot/dts/vfxxx.dtsi index 000550f..e9d2847 100644 --- a/arch/arm/boot/dts/vfxxx.dtsi +++ b/arch/arm/boot/dts/vfxxx.dtsi @@

[PATCH] ARM: dts: vfxxx: Enable DMA for DSPI2 and DSPI3

2016-11-10 Thread Sanchayan Maity
Enable DMA for DSPI2 and DSPI3 on Vybrid. --- arch/arm/boot/dts/vfxxx.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/vfxxx.dtsi b/arch/arm/boot/dts/vfxxx.dtsi index 000550f..e9d2847 100644 --- a/arch/arm/boot/dts/vfxxx.dtsi +++ b/arch/arm/boot/dts/vfxxx.dtsi @@

[PATCH v2] spi: spi-fsl-dspi: Add DMA support for Vybrid

2016-10-04 Thread Sanchayan Maity
Add DMA support for Vybrid. Signed-off-by: Sanchayan Maity <maitysancha...@gmail.com> --- Changes since v1: - Change in the dspi_dma_xfer function. Use more apt DSPI_FIFO_SIZE instead of sizeof(u32) - Do not set RSER on every iteration of loop Tested on Toradex Colibri Vybrid VF61

[PATCH v2] spi: spi-fsl-dspi: Add DMA support for Vybrid

2016-10-04 Thread Sanchayan Maity
Add DMA support for Vybrid. Signed-off-by: Sanchayan Maity --- Changes since v1: - Change in the dspi_dma_xfer function. Use more apt DSPI_FIFO_SIZE instead of sizeof(u32) - Do not set RSER on every iteration of loop Tested on Toradex Colibri Vybrid VF61 module with spi based MCP CAN 251x

[PATCH v1 2/2] spi: spi-fsl-dspi: Add DMA support for Vybrid

2016-10-03 Thread Sanchayan Maity
Add DMA support for Vybrid. Signed-off-by: Sanchayan Maity <maitysancha...@gmail.com> --- drivers/spi/spi-fsl-dspi.c | 293 + 1 file changed, 293 insertions(+) diff --git a/drivers/spi/spi-fsl-dspi.c b/drivers/spi/spi-fsl-dspi.c index 9e9dadb..a

[PATCH v1 2/2] spi: spi-fsl-dspi: Add DMA support for Vybrid

2016-10-03 Thread Sanchayan Maity
Add DMA support for Vybrid. Signed-off-by: Sanchayan Maity --- drivers/spi/spi-fsl-dspi.c | 293 + 1 file changed, 293 insertions(+) diff --git a/drivers/spi/spi-fsl-dspi.c b/drivers/spi/spi-fsl-dspi.c index 9e9dadb..ada50ee 100644 --- a/drivers/spi

[PATCH v1 1/2] ARM: dts: vfxxx: Enable DMA for DSPI on Vybrid

2016-10-03 Thread Sanchayan Maity
Enable DMA for DSPI on Vybrid. Signed-off-by: Sanchayan Maity <maitysancha...@gmail.com> --- arch/arm/boot/dts/vf-colibri.dtsi | 4 arch/arm/boot/dts/vfxxx.dtsi | 6 ++ 2 files changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/vf-colibri.dtsi b/arch/arm/boot/

[PATCH v1 1/2] ARM: dts: vfxxx: Enable DMA for DSPI on Vybrid

2016-10-03 Thread Sanchayan Maity
Enable DMA for DSPI on Vybrid. Signed-off-by: Sanchayan Maity --- arch/arm/boot/dts/vf-colibri.dtsi | 4 arch/arm/boot/dts/vfxxx.dtsi | 6 ++ 2 files changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/vf-colibri.dtsi b/arch/arm/boot/dts/vf-colibri.dtsi index b741709

[PATCH] ARM: dts: imx6: Add support for Toradex Colibri iMX6 module

2016-09-21 Thread Sanchayan Maity
Add support for Toradex Colibri iMX6 module. Signed-off-by: Sanchayan Maity <maitysancha...@gmail.com> --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts | 253 arch/arm/boot/dts/imx6qdl-colibri.dtsi

[PATCH] ARM: dts: imx6: Add support for Toradex Colibri iMX6 module

2016-09-21 Thread Sanchayan Maity
Add support for Toradex Colibri iMX6 module. Signed-off-by: Sanchayan Maity --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts | 253 arch/arm/boot/dts/imx6qdl-colibri.dtsi | 890 +++ 3 files changed

[PATCH v2 3/3] ARM: dts: imx6qdl-apalis: Use enable-gpios property for backlight

2016-09-18 Thread Sanchayan Maity
Use enable-gpios property of PWM backlight driver for backlight control. Signed-off-by: Sanchayan Maity <maitysancha...@gmail.com> --- Changes since v1: Fix commit message v1: https://lkml.org/lkml/2016/9/14/55 --- arch/arm/boot/dts/imx6qdl-apalis.dtsi | 9 + 1 file chan

[PATCH v2 3/3] ARM: dts: imx6qdl-apalis: Use enable-gpios property for backlight

2016-09-18 Thread Sanchayan Maity
Use enable-gpios property of PWM backlight driver for backlight control. Signed-off-by: Sanchayan Maity --- Changes since v1: Fix commit message v1: https://lkml.org/lkml/2016/9/14/55 --- arch/arm/boot/dts/imx6qdl-apalis.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch

[PATCH v2 1/3] ARM: dts: imx6qdl-apalis: Do not rely on DDC I2C bus bitbang for HDMI

2016-09-18 Thread Sanchayan Maity
Remove the use of DDC I2C bus bitbang to support reading of EDID and rely on support from internal HDMI I2C master controller instead. As a result remove the device tree property ddc-i2c-bus. Signed-off-by: Sanchayan Maity <maitysancha...@gmail.com> --- Changes since v1: Change the r

[PATCH v2 2/3] ARM: dts: imx6q-apalis-ixora: Remove use of pwm-leds

2016-09-18 Thread Sanchayan Maity
Remove use of pwm-leds and use the standard /sys/class/pwm interface from PWM subsystem. Signed-off-by: Sanchayan Maity <maitysancha...@gmail.com> Acked-by: Marcel Ziswiler <marcel.ziswi...@toradex.com> --- v1: https://lkml.org/lkml/2016/9/14/55 --- arch/arm/boot/dts/imx6q-apalis-ix

[PATCH v2 1/3] ARM: dts: imx6qdl-apalis: Do not rely on DDC I2C bus bitbang for HDMI

2016-09-18 Thread Sanchayan Maity
Remove the use of DDC I2C bus bitbang to support reading of EDID and rely on support from internal HDMI I2C master controller instead. As a result remove the device tree property ddc-i2c-bus. Signed-off-by: Sanchayan Maity --- Changes since v1: Change the ranking in i2c aliases v1: https

[PATCH v2 2/3] ARM: dts: imx6q-apalis-ixora: Remove use of pwm-leds

2016-09-18 Thread Sanchayan Maity
Remove use of pwm-leds and use the standard /sys/class/pwm interface from PWM subsystem. Signed-off-by: Sanchayan Maity Acked-by: Marcel Ziswiler --- v1: https://lkml.org/lkml/2016/9/14/55 --- arch/arm/boot/dts/imx6q-apalis-ixora.dts | 22 -- 1 file changed, 22 deletions

[PATCH v1 3/3] ARM: dts: imx6qdl-apalis: Use enable-gpios property for backlight

2016-09-14 Thread Sanchayan Maity
Use enable-gpios property of PWM backlight driver for backlight control. While at it also fix the use of brightness levels required by EDT displays which require inverted PWM's. Signed-off-by: Sanchayan Maity <maitysancha...@gmail.com> --- arch/arm/boot/dts/imx6qdl-apalis.dtsi | 9 ++

[PATCH v1 3/3] ARM: dts: imx6qdl-apalis: Use enable-gpios property for backlight

2016-09-14 Thread Sanchayan Maity
Use enable-gpios property of PWM backlight driver for backlight control. While at it also fix the use of brightness levels required by EDT displays which require inverted PWM's. Signed-off-by: Sanchayan Maity --- arch/arm/boot/dts/imx6qdl-apalis.dtsi | 9 + 1 file changed, 9 insertions

[PATCH v1 2/3] ARM: dts: imx6q-apalis-ixora: Remove use of pwm-leds

2016-09-14 Thread Sanchayan Maity
Remove use of pwm-leds and use the standard /sys/class/pwm interface from PWM subsystem. Signed-off-by: Sanchayan Maity <maitysancha...@gmail.com> --- arch/arm/boot/dts/imx6q-apalis-ixora.dts | 22 -- 1 file changed, 22 deletions(-) diff --git a/arch/arm/boot/dts

[PATCH v1 2/3] ARM: dts: imx6q-apalis-ixora: Remove use of pwm-leds

2016-09-14 Thread Sanchayan Maity
Remove use of pwm-leds and use the standard /sys/class/pwm interface from PWM subsystem. Signed-off-by: Sanchayan Maity --- arch/arm/boot/dts/imx6q-apalis-ixora.dts | 22 -- 1 file changed, 22 deletions(-) diff --git a/arch/arm/boot/dts/imx6q-apalis-ixora.dts b/arch/arm

[PATCH v1 1/3] ARM: dts: imx6qdl-apalis: Do not rely on DDC I2C bus bitbang for HDMI

2016-09-14 Thread Sanchayan Maity
Remove the use of DDC I2C bus bitbang to support reading of EDID and rely on support from internal HDMI I2C master controller instead. As a result remove the device tree property ddc-i2c-bus. Signed-off-by: Sanchayan Maity <maitysancha...@gmail.com> --- Hello, This patch is

[PATCH v1 1/3] ARM: dts: imx6qdl-apalis: Do not rely on DDC I2C bus bitbang for HDMI

2016-09-14 Thread Sanchayan Maity
Remove the use of DDC I2C bus bitbang to support reading of EDID and rely on support from internal HDMI I2C master controller instead. As a result remove the device tree property ddc-i2c-bus. Signed-off-by: Sanchayan Maity --- Hello, This patch is tested with the following patch applied https

[PATCH v4 2/5] ARM: dts: vfxxx: Add On-Chip ROM node for Vybrid

2016-07-07 Thread Sanchayan Maity
Add a device tree node for the On-Chip ROM on Vybrid. Signed-off-by: Sanchayan Maity <maitysancha...@gmail.com> --- arch/arm/boot/dts/vfxxx.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/vfxxx.dtsi b/arch/arm/boot/dts/vfxxx.dtsi index 0e34d44..6c5222e

[PATCH v4 4/5] soc: Add SoC driver for Freescale Vybrid platform

2016-07-07 Thread Sanchayan Maity
/devices/soc0# cat revision 0013 root@colibri-vf:/sys/bus/soc/devices/soc0# cat soc_id df6472a6130f29d4 Signed-off-by: Sanchayan Maity <maitysancha...@gmail.com> --- drivers/soc/Kconfig | 1 + drivers/soc/fsl/Kconfig | 10 +++ drivers/soc/fsl/Makefile| 1 + drivers/s

[PATCH v4 5/5] ARM: dts: vfxxx: Add a compatible binding for Vybrid SoC bus driver

2016-07-07 Thread Sanchayan Maity
Add a compatible binding to the main soc node required by the Vybrid SoC bus driver to bind on. Signed-off-by: Sanchayan Maity <maitysancha...@gmail.com> --- arch/arm/boot/dts/vfxxx.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/vfxxx.dtsi b/ar

[PATCH v4 2/5] ARM: dts: vfxxx: Add On-Chip ROM node for Vybrid

2016-07-07 Thread Sanchayan Maity
Add a device tree node for the On-Chip ROM on Vybrid. Signed-off-by: Sanchayan Maity --- arch/arm/boot/dts/vfxxx.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/vfxxx.dtsi b/arch/arm/boot/dts/vfxxx.dtsi index 0e34d44..6c5222e 100644 --- a/arch/arm/boot/dts

[PATCH v4 4/5] soc: Add SoC driver for Freescale Vybrid platform

2016-07-07 Thread Sanchayan Maity
/devices/soc0# cat revision 0013 root@colibri-vf:/sys/bus/soc/devices/soc0# cat soc_id df6472a6130f29d4 Signed-off-by: Sanchayan Maity --- drivers/soc/Kconfig | 1 + drivers/soc/fsl/Kconfig | 10 +++ drivers/soc/fsl/Makefile| 1 + drivers/soc/fsl/soc-vf610.c | 212

[PATCH v4 5/5] ARM: dts: vfxxx: Add a compatible binding for Vybrid SoC bus driver

2016-07-07 Thread Sanchayan Maity
Add a compatible binding to the main soc node required by the Vybrid SoC bus driver to bind on. Signed-off-by: Sanchayan Maity --- arch/arm/boot/dts/vfxxx.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/vfxxx.dtsi b/arch/arm/boot/dts/vfxxx.dtsi index

[PATCH v4 3/5] nvmem: core: Add consumer API to get nvmem cell from node

2016-07-07 Thread Sanchayan Maity
ell_np; struct nvmem_cell *foo_cell; cell_np = of_find_node_by_name(parent, "foo"); foo_cell = of_nvmem_cell_get_direct(cell_np); Parent node can also be the of_node of the main SoC device node. Signed-off-by: Sanchayan Maity <maitysancha...@gmail.com> --- drivers/nvmem

[PATCH v4 0/5] Implement SoC driver for Vybrid

2016-07-07 Thread Sanchayan Maity
/lists/devicetree/msg80257.html The RFC version can be found here https://lkml.org/lkml/2015/5/11/13 Regards, Sanchayan. Sanchayan Maity (4): ARM: dts: vfxxx: Add device tree node for OCOTP ARM: dts: vfxxx: Add On-Chip ROM node for Vybrid soc: Add SoC driver for Freescale Vybrid platform

[PATCH v4 3/5] nvmem: core: Add consumer API to get nvmem cell from node

2016-07-07 Thread Sanchayan Maity
nvmem_cell *foo_cell; cell_np = of_find_node_by_name(parent, "foo"); foo_cell = of_nvmem_cell_get_direct(cell_np); Parent node can also be the of_node of the main SoC device node. Signed-off-by: Sanchayan Maity --- drivers/nvmem/core.c | 44 +

[PATCH v4 0/5] Implement SoC driver for Vybrid

2016-07-07 Thread Sanchayan Maity
/lists/devicetree/msg80257.html The RFC version can be found here https://lkml.org/lkml/2015/5/11/13 Regards, Sanchayan. Sanchayan Maity (4): ARM: dts: vfxxx: Add device tree node for OCOTP ARM: dts: vfxxx: Add On-Chip ROM node for Vybrid soc: Add SoC driver for Freescale Vybrid platform

[PATCH v4 1/5] ARM: dts: vfxxx: Add device tree node for OCOTP

2016-07-07 Thread Sanchayan Maity
Add device tree node for the OCOTP peripheral on Vybrid. Signed-off-by: Sanchayan Maity <maitysancha...@gmail.com> --- arch/arm/boot/dts/vfxxx.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/vfxxx.dtsi b/arch/arm/boot/dts/vfxxx.dtsi index 2

[PATCH v4 1/5] ARM: dts: vfxxx: Add device tree node for OCOTP

2016-07-07 Thread Sanchayan Maity
Add device tree node for the OCOTP peripheral on Vybrid. Signed-off-by: Sanchayan Maity --- arch/arm/boot/dts/vfxxx.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/vfxxx.dtsi b/arch/arm/boot/dts/vfxxx.dtsi index 2c13ec6..0e34d44 100644 --- a/arch/arm

[PATCH v3 0/4] Implement SoC driver for Vybrid

2016-05-20 Thread Sanchayan Maity
can be found here http://www.spinics.net/lists/devicetree/msg80257.html The RFC version can be found here https://lkml.org/lkml/2015/5/11/13 Regards, Sanchayan. Sanchayan Maity (4): ARM: dts: vfxxx: Add device tree node for OCOTP ARM: dts: vfxxx: Add On-Chip ROM node for Vybrid ARM: dts: vfxxx

[PATCH v3 0/4] Implement SoC driver for Vybrid

2016-05-20 Thread Sanchayan Maity
can be found here http://www.spinics.net/lists/devicetree/msg80257.html The RFC version can be found here https://lkml.org/lkml/2015/5/11/13 Regards, Sanchayan. Sanchayan Maity (4): ARM: dts: vfxxx: Add device tree node for OCOTP ARM: dts: vfxxx: Add On-Chip ROM node for Vybrid ARM: dts: vfxxx

[PATCH v3 3/4] ARM: dts: vfxxx: Add device tree node required by Vybrid SoC driver

2016-05-20 Thread Sanchayan Maity
Add a device tree node which will be used to bind the Vybrid SoC driver and provide information adhering to the following: https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-devices-soc Signed-off-by: Sanchayan Maity <maitysancha...@gmail.com> --- arch/arm/boot/dts/vfxxx.dt

[PATCH v3 1/4] ARM: dts: vfxxx: Add device tree node for OCOTP

2016-05-20 Thread Sanchayan Maity
Add device tree node for the OCOTP peripheral on Vybrid. Signed-off-by: Sanchayan Maity <maitysancha...@gmail.com> --- arch/arm/boot/dts/vfxxx.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/vfxxx.dtsi b/arch/arm/boot/dts/vfxxx.dtsi index 2

[PATCH v3 2/4] ARM: dts: vfxxx: Add On-Chip ROM node for Vybrid

2016-05-20 Thread Sanchayan Maity
Add a device tree node for the On-Chip ROM on Vybrid. Signed-off-by: Sanchayan Maity <maitysancha...@gmail.com> --- arch/arm/boot/dts/vfxxx.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/vfxxx.dtsi b/arch/arm/boot/dts/vfxxx.dtsi index 0e34d44..6c5222e

[PATCH v3 4/4] soc: Add SoC driver for Freescale Vybrid platform

2016-05-20 Thread Sanchayan Maity
/devices/soc0# cat revision 0013 root@colibri-vf:/sys/bus/soc/devices/soc0# cat soc_id df6472a6130f29d4 Signed-off-by: Sanchayan Maity <maitysancha...@gmail.com> --- .../bindings/arm/freescale/fsl,vf610-soc.txt | 20 +++ drivers/soc/Kconfig

[PATCH v3 3/4] ARM: dts: vfxxx: Add device tree node required by Vybrid SoC driver

2016-05-20 Thread Sanchayan Maity
Add a device tree node which will be used to bind the Vybrid SoC driver and provide information adhering to the following: https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-devices-soc Signed-off-by: Sanchayan Maity --- arch/arm/boot/dts/vfxxx.dtsi | 8 1 file changed, 8

[PATCH v3 1/4] ARM: dts: vfxxx: Add device tree node for OCOTP

2016-05-20 Thread Sanchayan Maity
Add device tree node for the OCOTP peripheral on Vybrid. Signed-off-by: Sanchayan Maity --- arch/arm/boot/dts/vfxxx.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/vfxxx.dtsi b/arch/arm/boot/dts/vfxxx.dtsi index 2c13ec6..0e34d44 100644 --- a/arch/arm

[PATCH v3 2/4] ARM: dts: vfxxx: Add On-Chip ROM node for Vybrid

2016-05-20 Thread Sanchayan Maity
Add a device tree node for the On-Chip ROM on Vybrid. Signed-off-by: Sanchayan Maity --- arch/arm/boot/dts/vfxxx.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/vfxxx.dtsi b/arch/arm/boot/dts/vfxxx.dtsi index 0e34d44..6c5222e 100644 --- a/arch/arm/boot/dts

[PATCH v3 4/4] soc: Add SoC driver for Freescale Vybrid platform

2016-05-20 Thread Sanchayan Maity
/devices/soc0# cat revision 0013 root@colibri-vf:/sys/bus/soc/devices/soc0# cat soc_id df6472a6130f29d4 Signed-off-by: Sanchayan Maity --- .../bindings/arm/freescale/fsl,vf610-soc.txt | 20 +++ drivers/soc/Kconfig| 1 + drivers/soc/fsl/Kconfig

[PATCH v2 4/5] soc: Add SoC bus driver for Freescale Vybrid Platform

2016-05-02 Thread Sanchayan Maity
/devices/soc0# cat revision 0013 root@colibri-vf:/sys/bus/soc/devices/soc0# cat soc_id df6472a6130f29d4 Signed-off-by: Sanchayan Maity <maitysancha...@gmail.com> --- drivers/soc/Kconfig | 1 + drivers/soc/fsl/Kconfig | 10 +++ drivers/soc/fsl/Makefile| 1 + drivers/s

[PATCH v2 5/5] vf610-soc: Add Vybrid SoC device tree binding documentation

2016-05-02 Thread Sanchayan Maity
Add device tree binding documentation for Vybrid SoC. Signed-off-by: Sanchayan Maity <maitysancha...@gmail.com> --- .../bindings/arm/freescale/fsl,vf610-soc.txt | 35 ++ 1 file changed, 35 insertions(+) create mode 100644 Documentation/devicetree/bindin

[PATCH v2 4/5] soc: Add SoC bus driver for Freescale Vybrid Platform

2016-05-02 Thread Sanchayan Maity
/devices/soc0# cat revision 0013 root@colibri-vf:/sys/bus/soc/devices/soc0# cat soc_id df6472a6130f29d4 Signed-off-by: Sanchayan Maity --- drivers/soc/Kconfig | 1 + drivers/soc/fsl/Kconfig | 10 +++ drivers/soc/fsl/Makefile| 1 + drivers/soc/fsl/soc-vf610.c | 160

[PATCH v2 5/5] vf610-soc: Add Vybrid SoC device tree binding documentation

2016-05-02 Thread Sanchayan Maity
Add device tree binding documentation for Vybrid SoC. Signed-off-by: Sanchayan Maity --- .../bindings/arm/freescale/fsl,vf610-soc.txt | 35 ++ 1 file changed, 35 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/freescale/fsl,vf610-soc.txt diff

[PATCH v2 1/5] mfd: syscon: Introduce syscon_regmap_read_from_offset

2016-05-02 Thread Sanchayan Maity
handle reference, reading the offset from the node entry and providing the value from the offset in the register map. Signed-off-by: Sanchayan Maity <maitysancha...@gmail.com> --- drivers/mfd/syscon.c | 30 ++ include/linux/mfd/syscon.h | 10 ++ 2 files

[PATCH v2 2/5] ARM: dts: vfxxx: Add device tree node for OCOTP

2016-05-02 Thread Sanchayan Maity
Add device tree node for the OCOTP peripheral on Vybrid. Signed-off-by: Sanchayan Maity <maitysancha...@gmail.com> --- arch/arm/boot/dts/vfxxx.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/vfxxx.dtsi b/arch/arm/boot/dts/vfxxx.dtsi index 2

[PATCH v2 3/5] ARM: dts: vfxxx: Add OCROM and phandle entries for Vybrid SoC bus driver

2016-05-02 Thread Sanchayan Maity
Add OCROM node and introduce phandles to OCROM, MSCM and NVMEM OCOTP for use by the Vybrid SoC bus driver. Signed-off-by: Sanchayan Maity <maitysancha...@gmail.com> --- arch/arm/boot/dts/vfxxx.dtsi | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/arm/bo

[PATCH v2 0/5] Implement SoC bus driver for Vybrid

2016-05-02 Thread Sanchayan Maity
icetree/msg80257.html The RFC version can be found here https://lkml.org/lkml/2015/5/11/13 Regards, Sanchayan. Sanchayan Maity (5): mfd: syscon: Introduce syscon_regmap_read_from_offset ARM: dts: vfxxx: Add device tree node for OCOTP ARM: dts: vfxxx: Add OCROM and phandle entries for Vybrid SoC

[PATCH v2 1/5] mfd: syscon: Introduce syscon_regmap_read_from_offset

2016-05-02 Thread Sanchayan Maity
handle reference, reading the offset from the node entry and providing the value from the offset in the register map. Signed-off-by: Sanchayan Maity --- drivers/mfd/syscon.c | 30 ++ include/linux/mfd/syscon.h | 10 ++ 2 files changed, 40 insertions(+) diff

[PATCH v2 2/5] ARM: dts: vfxxx: Add device tree node for OCOTP

2016-05-02 Thread Sanchayan Maity
Add device tree node for the OCOTP peripheral on Vybrid. Signed-off-by: Sanchayan Maity --- arch/arm/boot/dts/vfxxx.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/vfxxx.dtsi b/arch/arm/boot/dts/vfxxx.dtsi index 2c13ec6..0e34d44 100644 --- a/arch/arm

[PATCH v2 3/5] ARM: dts: vfxxx: Add OCROM and phandle entries for Vybrid SoC bus driver

2016-05-02 Thread Sanchayan Maity
Add OCROM node and introduce phandles to OCROM, MSCM and NVMEM OCOTP for use by the Vybrid SoC bus driver. Signed-off-by: Sanchayan Maity --- arch/arm/boot/dts/vfxxx.dtsi | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/vfxxx.dtsi b/arch/arm

[PATCH v2 0/5] Implement SoC bus driver for Vybrid

2016-05-02 Thread Sanchayan Maity
icetree/msg80257.html The RFC version can be found here https://lkml.org/lkml/2015/5/11/13 Regards, Sanchayan. Sanchayan Maity (5): mfd: syscon: Introduce syscon_regmap_read_from_offset ARM: dts: vfxxx: Add device tree node for OCOTP ARM: dts: vfxxx: Add OCROM and phandle entries for Vybrid SoC

[RFC PATCH 1/4] usb: chipidea: Do not rely on OTG while using extcon

2016-03-15 Thread Sanchayan Maity
. This patch almost reverts most of commit "usb: chipidea: Use extcon framework for VBUS and ID detect". We do not rely anymore on emulating an OTG capable controller by faking OTG controller reads. Signed-off-by: Sanchayan Maity <maitysancha...@gmail.com> --- drivers/usb/chipi

[RFC PATCH 4/4] ARM: dts: vf-colibri: USB device/host switch using extcon gpio

2016-03-15 Thread Sanchayan Maity
Use USBC_DET feature of standard Colibri SODIMM pin 137 for USB device/host switching using the generic extcon USB gpio implementation. Signed-off-by: Sanchayan Maity <maitysancha...@gmail.com> --- arch/arm/boot/dts/vf-colibri-eval-v3.dtsi | 12 arch/arm/boot/dts/vf-colibr

[RFC PATCH 1/4] usb: chipidea: Do not rely on OTG while using extcon

2016-03-15 Thread Sanchayan Maity
. This patch almost reverts most of commit "usb: chipidea: Use extcon framework for VBUS and ID detect". We do not rely anymore on emulating an OTG capable controller by faking OTG controller reads. Signed-off-by: Sanchayan Maity --- drivers/usb/chipidea/co

[RFC PATCH 4/4] ARM: dts: vf-colibri: USB device/host switch using extcon gpio

2016-03-15 Thread Sanchayan Maity
Use USBC_DET feature of standard Colibri SODIMM pin 137 for USB device/host switching using the generic extcon USB gpio implementation. Signed-off-by: Sanchayan Maity --- arch/arm/boot/dts/vf-colibri-eval-v3.dtsi | 12 arch/arm/boot/dts/vf-colibri.dtsi | 7 +++ 2 files

[RFC PATCH 3/4] ARM: dts: vfxxx: Make Vybrid match only on it's own compatible string

2016-03-15 Thread Sanchayan Maity
r. Signed-off-by: Sanchayan Maity <maitysancha...@gmail.com> --- arch/arm/boot/dts/vfxxx.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/vfxxx.dtsi b/arch/arm/boot/dts/vfxxx.dtsi index 5e49fbd..c2d1b5d 100644 --- a/arch/arm/boot/dts/vfxxx.dtsi +++ b/a

[RFC PATCH 3/4] ARM: dts: vfxxx: Make Vybrid match only on it's own compatible string

2016-03-15 Thread Sanchayan Maity
r. Signed-off-by: Sanchayan Maity --- arch/arm/boot/dts/vfxxx.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/vfxxx.dtsi b/arch/arm/boot/dts/vfxxx.dtsi index 5e49fbd..c2d1b5d 100644 --- a/arch/arm/boot/dts/vfxxx.dtsi +++ b/arch/arm/boot/dts/vfxxx.dtsi

[RFC PATCH 0/4] Implement USB device/host switch for Vybrid

2016-03-15 Thread Sanchayan Maity
oot/dts/qcom for an extcon entry I didn't find any. Regards, Sanchayan. Sanchayan Maity (4): usb: chipidea: Do not rely on OTG while using extcon usb: chipidea: ci_hdrc_imx: Introduce CI_HDRC_DUAL_ROLE_NOT_OTG for Vybrid ARM: dts: vfxxx: Make Vybrid match only on it's own compatible string AR

[RFC PATCH 0/4] Implement USB device/host switch for Vybrid

2016-03-15 Thread Sanchayan Maity
oot/dts/qcom for an extcon entry I didn't find any. Regards, Sanchayan. Sanchayan Maity (4): usb: chipidea: Do not rely on OTG while using extcon usb: chipidea: ci_hdrc_imx: Introduce CI_HDRC_DUAL_ROLE_NOT_OTG for Vybrid ARM: dts: vfxxx: Make Vybrid match only on it's own compatible string AR

[RFC PATCH 2/4] usb: chipidea: ci_hdrc_imx: Introduce CI_HDRC_DUAL_ROLE_NOT_OTG for Vybrid

2016-03-15 Thread Sanchayan Maity
fsl,vf610-usb instead of the earlier fsl,imx27-usb. Signed-off-by: Sanchayan Maity <maitysancha...@gmail.com> --- drivers/usb/chipidea/ci_hdrc_imx.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/usb/chipidea/ci_hdrc_imx.c b/drivers/usb/chipidea/ci_hdrc_imx.c index f

[RFC PATCH 2/4] usb: chipidea: ci_hdrc_imx: Introduce CI_HDRC_DUAL_ROLE_NOT_OTG for Vybrid

2016-03-15 Thread Sanchayan Maity
fsl,vf610-usb instead of the earlier fsl,imx27-usb. Signed-off-by: Sanchayan Maity --- drivers/usb/chipidea/ci_hdrc_imx.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/usb/chipidea/ci_hdrc_imx.c b/drivers/usb/chipidea/ci_hdrc_imx.c index f14f4ab..d9b8a53 100644 --- a/drivers

[PATCH v1 0/4] Implement SoC bus driver for Vybrid

2016-03-11 Thread Sanchayan Maity
7.html Version 2 of the patchset can be found here http://www.spinics.net/lists/devicetree/msg80654.html Version 1 of the patchset can be found here http://www.spinics.net/lists/devicetree/msg80257.html The RFC version can be found here https://lkml.org/lkml/2015/5/11/13 Regards, Sanchayan. Sanchayan

[PATCH v1 0/4] Implement SoC bus driver for Vybrid

2016-03-11 Thread Sanchayan Maity
7.html Version 2 of the patchset can be found here http://www.spinics.net/lists/devicetree/msg80654.html Version 1 of the patchset can be found here http://www.spinics.net/lists/devicetree/msg80257.html The RFC version can be found here https://lkml.org/lkml/2015/5/11/13 Regards, Sanchayan. Sanchayan

  1   2   3   4   >