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

2016-11-21 Thread Sanchayan Maity
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
Code cleanup 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

[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
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
hanks & 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 dr

[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 --- 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 --- 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 3/4] spi: spi-fsl-dspi: Fix continuous selection format

2016-11-17 Thread Sanchayan Maity
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 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 --- 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

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

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

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

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

2016-09-13 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-13 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-06 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-06 Thread Sanchayan Maity
ys/bus/soc/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-vf6

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

2016-07-06 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-06 Thread Sanchayan Maity
truct 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-06 Thread Sanchayan Maity
s.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 soc: Add SoC driver for Freescale Vybrid pla

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

2016-07-06 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
chset 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:

[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
ys/bus/soc/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/f

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

2016-05-02 Thread Sanchayan Maity
ys/bus/soc/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-vf6

[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
de name of phandle 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 insertion

[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
nics.net/lists/devicetree/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

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

2016-03-15 Thread Sanchayan Maity
sters. 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/chipid

[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 --- 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
SoC but grepping arch/ arm64/boot/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

[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
el/msg420847.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, Sanch

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

2016-03-11 Thread Sanchayan Maity
ys/bus/soc/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-vf6

[PATCH v1 2/4] ARM: dts: vfxxx: Add device tree node for OCOTP

2016-03-11 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 5e49fbd..db9157e 100644 --- a/arch/arm

[PATCH v1 1/4] mfd: syscon: Introduce syscon_regmap_read_from_offset

2016-03-11 Thread Sanchayan Maity
de name of phandle 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 insertion

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

2016-03-11 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 v3 1/3] hwmon: iio_hwmon: Allow the driver to accept hypen in device tree node names

2016-02-15 Thread Sanchayan Maity
managed string, replacing hypen with underscore and then calling hwmon_device_register_with_groups. This allows the use of hypen in device tree node name while maintaining backwards compatibility and preventing any possible regressions with user space. Signed-off-by: Sanchayan Maity --- drivers

[PATCH v3 3/3] ARM: dts: vfxxx: Add iio_hwmon node for ADC temperature channel

2016-02-15 Thread Sanchayan Maity
Add iio-hwmon node to expose the temperature channel on Vybrid as hardware monitor device using the iio_hwmon driver. 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

[PATCH v3 0/3] Allow iio_hwmon to accept hypen in node names

2016-02-15 Thread Sanchayan Maity
l.org/lkml/2015/9/16/932 v2: https://lkml.org/lkml/2016/2/12/168 Thanks & Regards, Sanchayan Maity. Sanchayan Maity (3): hwmon: iio_hwmon: Allow the driver to accept hypen in device tree node names ARM: dts: Change iio_hwmon nodes to use hypen in node names ARM: dts: vfxxx: Add iio_hwmon

[PATCH v3 2/3] ARM: dts: Change iio_hwmon nodes to use hypen in node names

2016-02-15 Thread Sanchayan Maity
Change iio_hwmon nodes to use hypen in node names instead of underscore. Signed-off-by: Sanchayan Maity --- Documentation/devicetree/bindings/iio/iio-bindings.txt | 2 +- arch/arm/boot/dts/imx23.dtsi | 2 +- arch/arm/boot/dts/imx28.dtsi | 2

[PATCH v2] ARM: dts: vfxxx: Add iio_hwmon node for ADC temperature channel

2016-02-12 Thread Sanchayan Maity
Add iio_hwmon node to expose the temperature channel on Vybrid as hardware monitor device using the iio_hwmon driver. Signed-off-by: Sanchayan Maity --- Hello, The first version of the patch was send quite a while ago. https://lkml.org/lkml/2015/9/16/932 Shawn you had requested that hyphen

[PATCH] touchscreen: edt-ft5x06: Prevent DMA driver from mapping an area on stack

2015-12-12 Thread Sanchayan Maity
009634>] (do_one_initcall) from [<80773d78>] (kernel_init_freeable+0x124/0x1c4) [1.821359] [<80773d78>] (kernel_init_freeable) from [<8055a674>] (kernel_init+0xc/0xe8) [1.834797] [<8055a674>] (kernel_init) from [<8000f2c8>] (ret_from_fork+0x14/0x2c) [1.847692]

[PATCH] iio: adc: vf610_adc: Fix division by zero error

2015-10-19 Thread Sanchayan Maity
r9:8076a5ec r8:0098 r7:807d5780 r6:807d5780 r5:0006 [1.265153] r4:807a0ee8 [1.267753] [<8076acf8>] (kernel_init_freeable) from [<80590ef0>] (kernel_init+0x18/0xf0) [1.276021] r10: r9: r8: r7: r6: r5:80590ed8 [1.284015] r4:807d5780 [

[PATCH] ARM: dts: vfxxx: Fix erroneous property in esdhc0 node

2015-10-17 Thread Sanchayan Maity
de. This patch fixes it. Signed-off-by: Sanchayan Maity --- arch/arm/boot/dts/vfxxx.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/vfxxx.dtsi b/arch/arm/boot/dts/vfxxx.dtsi index 6736bae..a64bfe1 100644 --- a/arch/arm/boot/dts/vfxxx.dtsi +++

[PATCH v10 2/4] ARM: dts: vfxxx: Add OCOTP node

2015-09-07 Thread Sanchayan Maity
Add device tree node for the On-Chip One Time Programmable controller (OCOTP) on the Vybrid platform. Signed-off-by: Sanchayan Maity --- arch/arm/boot/dts/vfxxx.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/vfxxx.dtsi b/arch/arm/boot/dts/vfxxx.dtsi index

[PATCH v10 3/4] drivers: nvmem: Add Vybrid OCOTP support

2015-09-07 Thread Sanchayan Maity
The patch adds support for the On Chip One Time Programmable Peripheral (OCOTP) on the Vybrid platform. Signed-off-by: Sanchayan Maity Acked-by: Srinivas Kandagatla --- drivers/nvmem/Kconfig | 10 ++ drivers/nvmem/Makefile | 2 + drivers/nvmem/vf610-ocotp.c | 302

[PATCH v10 1/4] clk: clk-vf610: Add clock for Vybrid OCOTP controller

2015-09-07 Thread Sanchayan Maity
. We explicitly specify the ipg clock for OCOTP as a result. Signed-off-by: Sanchayan Maity --- drivers/clk/imx/clk-vf610.c | 1 + include/dt-bindings/clock/vf610-clock.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-vf610.c b/drivers/clk

[PATCH v10 4/4] nvmem: Add DT binding documentation for Vybrid OCOTP driver

2015-09-07 Thread Sanchayan Maity
Add the devicetree bindings for the Freescale Vybrid On-Chip OTP driver. Signed-off-by: Sanchayan Maity Acked-by: Srinivas Kandagatla --- .../devicetree/bindings/nvmem/vf610-ocotp.txt | 19 +++ 1 file changed, 19 insertions(+) create mode 100644 Documentation

[PATCH v10 0/4] Implement OCOTP driver for Vybrid using NVMEM

2015-09-07 Thread Sanchayan Maity
et 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 Thanks & Regards, Sanchayan Maity. Sanchayan Maity (4): clk: clk-vf610: Add clock for Vybrid OCOTP controller ARM: dts: vfxxx: Add OCOTP node dr

[PATCH v5 2/3] input: Add DT binding documentation for Colibri VF50 touchscreen

2015-09-01 Thread Sanchayan Maity
This adds device tree binding documentation for the Colibri VF50 touchscreen driver. Signed-off-by: Sanchayan Maity --- .../bindings/input/touchscreen/colibri-vf50-ts.txt | 36 ++ 1 file changed, 36 insertions(+) create mode 100644 Documentation/devicetree/bindings/input

[PATCH v5 1/3] ARM: dts: vf500-colibri: Add device tree node for touchscreen support

2015-09-01 Thread Sanchayan Maity
Add device tree node for touchscreen support on Colibri VF50. The touchscreen functionality on VF50 uses the ADC channels of Vybrid and some GPIOs. Also add pinctrl nodes for proper pinmux. Signed-off-by: Sanchayan Maity --- arch/arm/boot/dts/vf500-colibri-eval-v3.dts | 5 +++ arch/arm/boot

[PATCH v5 3/3] touchscreen: colibri-vf50-ts: Add touchscreen support for Colibri VF50

2015-09-01 Thread Sanchayan Maity
The Colibri Vybrid VF50 module supports 4-wire touchscreens using FETs and ADC inputs. This driver uses the IIO consumer interface and relies on the vf610_adc driver based on the IIO framework. Signed-off-by: Sanchayan Maity --- drivers/input/touchscreen/Kconfig | 12 + drivers/input

[PATCH v5 0/3] Add support for touchscreen on Colibri VF50

2015-09-01 Thread Sanchayan Maity
.com/linux-input@vger.kernel.org/msg18090.html Version 1 of the patchset can be found here https://lkml.org/lkml/2015/6/30/103 Regards, Sanchayan. Sanchayan Maity (3): ARM: dts: vf500-colibri: Add device tree node for touchscreen support input: Add DT binding documentation for Colibri VF50

[PATCH v4 1/3] ARM: dts: vf500-colibri: Add device tree node for touchscreen support

2015-08-21 Thread Sanchayan Maity
Add device tree node for touchscreen support on Colibri VF50. The touchscreen functionality on VF50 uses the ADC channels of Vybrid and some GPIOs. Also add pinctrl nodes for proper pinmux. Signed-off-by: Sanchayan Maity --- arch/arm/boot/dts/vf500-colibri-eval-v3.dts | 4 +++ arch/arm/boot

[PATCH v4 3/3] touchscreen: colibri-vf50-ts: Add touchscreen support for Colibri VF50

2015-08-21 Thread Sanchayan Maity
The Colibri Vybrid VF50 module supports 4-wire touchscreens using FETs and ADC inputs. This driver uses the IIO consumer interface and relies on the vf610_adc driver based on the IIO framework. Signed-off-by: Sanchayan Maity --- drivers/input/touchscreen/Kconfig | 12 + drivers/input

[PATCH v4 0/3] Add support for touchscreen on Colibri VF50

2015-08-21 Thread Sanchayan Maity
vger.kernel.org/msg18090.html Version 1 of the patchset can be found here https://lkml.org/lkml/2015/6/30/103 Thank you very much for the feedback till now. Regards, Sanchayan. Sanchayan Maity (3): ARM: dts: vf500-colibri: Add device tree node for touchscreen support input: Add DT bind

[PATCH v4 2/3] input: Add DT binding documentation for Colibri VF50 touchscreen

2015-08-21 Thread Sanchayan Maity
This adds device tree binding documentation for the Colibri VF50 touchscreen driver. Signed-off-by: Sanchayan Maity --- .../bindings/input/touchscreen/colibri-vf50-ts.txt | 36 ++ 1 file changed, 36 insertions(+) create mode 100644 Documentation/devicetree/bindings/input

[PATCH v4] iio: adc: vf610: Add IIO buffer support for Vybrid ADC

2015-08-17 Thread Sanchayan Maity
This patch adds support for IIO buffer to the Vybrid ADC driver. IIO triggered buffer infrastructure along with iio sysfs trigger is used to leverage continuous sampling support provided by the ADC block. Signed-off-by: Sanchayan Maity --- Changes since v3: Fix iio_buffer_setup_ops for

[PATCH v9 1/4] clk: clk-vf610: Add clock for Vybrid OCOTP controller

2015-08-12 Thread Sanchayan Maity
. We explicitly specify the ipg clock for OCOTP as a result. Signed-off-by: Sanchayan Maity --- drivers/clk/imx/clk-vf610.c | 1 + include/dt-bindings/clock/vf610-clock.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-vf610.c b/drivers/clk

[PATCH v9 2/4] ARM: dts: vfxxx: Add OCOTP node

2015-08-12 Thread Sanchayan Maity
Add device tree node for the On-Chip One Time Programmable controller (OCOTP) on the Vybrid platform. Signed-off-by: Sanchayan Maity --- arch/arm/boot/dts/vfxxx.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/vfxxx.dtsi b/arch/arm/boot/dts/vfxxx.dtsi index

[PATCH v9 3/4] drivers: nvmem: Add Vybrid OCOTP support

2015-08-12 Thread Sanchayan Maity
The patch adds support for the On Chip One Time Programmable Peripheral (OCOTP) on the Vybrid platform. Signed-off-by: Sanchayan Maity Acked-by: Srinivas Kandagatla --- drivers/nvmem/Kconfig | 10 ++ drivers/nvmem/Makefile | 2 + drivers/nvmem/vf610-ocotp.c | 302

[PATCH v9 4/4] nvmem: Add DT binding documentation for Vybrid OCOTP driver

2015-08-12 Thread Sanchayan Maity
Add the devicetree bindings for the Freescale Vybrid On-Chip OTP driver. Signed-off-by: Sanchayan Maity Acked-by: Srinivas Kandagatla --- .../devicetree/bindings/nvmem/vf610-ocotp.txt | 21 + 1 file changed, 21 insertions(+) create mode 100644 Documentation

[PATCH v9 0/4] Implement OCOTP driver for Vybrid using NVMEM

2015-08-12 Thread Sanchayan Maity
mplement the SoC bus code as a driver in drivers/soc by registering with fsl,mscm-cpucfg as per Arnd's feedback Changes since v1: Sort the headers in alphabetical order Changes since RFC: Use a DT entry for the ROM area while specifying it as syscon. Thanks & Regards, Sanchayan Maity. Sa

[PATCH v3] iio: adc: vf610: Add IIO buffer support for Vybrid ADC

2015-08-11 Thread Sanchayan Maity
This patch adds support for IIO buffer to the Vybrid ADC driver. IIO triggered buffer infrastructure along with iio sysfs trigger is used to leverage continuous sampling support provided by the ADC block. Signed-off-by: Sanchayan Maity --- drivers/iio/adc/Kconfig | 2 + drivers/iio/adc

[PATCH v3] Add continuous sampling with IIO buffers for Vybrid

2015-08-11 Thread Sanchayan Maity
1]. https://lkml.org/lkml/2015/5/27/350 [2]. https://lkml.org/lkml/2015/7/14/395 Thanks & Regards, Sanchayan Maity. Sanchayan Maity (1): iio: adc: vf610: Add IIO buffer support for Vybrid ADC drivers/iio/adc/Kconfig | 2 + drivers/iio/adc/vf610_adc.c | 102 +

[PATCH v8 2/4] ARM: dts: vfxxx: Add OCOTP node

2015-08-10 Thread Sanchayan Maity
Add device tree node for the On-Chip One Time Programmable controller (OCOTP) on the Vybrid platform. Signed-off-by: Sanchayan Maity --- arch/arm/boot/dts/vfxxx.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/vfxxx.dtsi b/arch/arm/boot/dts/vfxxx.dtsi index

[PATCH v8 4/4] nvmem: Add DT binding documentation for Vybrid OCOTP driver

2015-08-10 Thread Sanchayan Maity
Add the devicetree bindings for the Freescale Vybrid On-Chip OTP driver. Signed-off-by: Sanchayan Maity --- .../devicetree/bindings/nvmem/vf610-ocotp.txt | 21 + 1 file changed, 21 insertions(+) create mode 100644 Documentation/devicetree/bindings/nvmem/vf610

[PATCH v8 1/4] clk: clk-vf610: Add clock for Vybrid OCOTP controller

2015-08-10 Thread Sanchayan Maity
. We explicitly specify the ipg clock for OCOTP as a result. Signed-off-by: Sanchayan Maity --- drivers/clk/imx/clk-vf610.c | 1 + include/dt-bindings/clock/vf610-clock.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-vf610.c b/drivers/clk

[PATCH v8 3/4] drivers: nvmem: Add Vybrid OCOTP support

2015-08-10 Thread Sanchayan Maity
The patch adds support for the On Chip One Time Programmable Peripheral (OCOTP) on the Vybrid platform. Signed-off-by: Sanchayan Maity --- drivers/nvmem/Kconfig | 10 ++ drivers/nvmem/Makefile | 2 + drivers/nvmem/vf610-ocotp.c | 301 3

[PATCH v8 0/4] Implement OCOTP driver for Vybrid using NVMEM

2015-08-10 Thread Sanchayan Maity
hanges since v2: Implement the SoC bus code as a driver in drivers/soc by registering with fsl,mscm-cpucfg as per Arnd's feedback Changes since v1: Sort the headers in alphabetical order Changes since RFC: Use a DT entry for the ROM area while specifying it as syscon. Thanks & Regards, San

[PATCH] ARM: dts: vfxxx: Add iio_hwmon node for ADC temperature channel

2015-08-06 Thread Sanchayan Maity
Add iio_hwmon node to expose the temperature channel on Vybrid as hardware monitor device using the iio_hwmon driver. 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

[PATCH v7 2/4] ARM: dts: vfxxx: Add OCOTP node

2015-08-06 Thread Sanchayan Maity
Add device tree node for the On-Chip One Time Programmable controller (OCOTP) on the Vybrid platform. Signed-off-by: Sanchayan Maity --- arch/arm/boot/dts/vfxxx.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/vfxxx.dtsi b/arch/arm/boot/dts/vfxxx.dtsi index

[PATCH v7 1/4] clk: clk-vf610: Add clock for Vybrid OCOTP controller

2015-08-06 Thread Sanchayan Maity
. We explicitly specify the ipg clock for OCOTP as a result. Signed-off-by: Sanchayan Maity --- drivers/clk/imx/clk-vf610.c | 1 + include/dt-bindings/clock/vf610-clock.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-vf610.c b/drivers/clk

[PATCH v7 4/4] nvmem: Add DT binding documentation for Vybrid OCOTP driver

2015-08-06 Thread Sanchayan Maity
Add the devicetree bindings for the Freescale Vybrid On-Chip OTP driver. Signed-off-by: Sanchayan Maity --- .../devicetree/bindings/nvmem/vf610-ocotp.txt| 20 1 file changed, 20 insertions(+) create mode 100644 Documentation/devicetree/bindings/nvmem/vf610

[PATCH v7 3/4] drivers: nvmem: Add Vybrid OCOTP support

2015-08-06 Thread Sanchayan Maity
The patch adds support for the On Chip One Time Programmable Peripheral (OCOTP) on the Vybrid platform. Signed-off-by: Sanchayan Maity --- drivers/nvmem/Kconfig | 10 ++ drivers/nvmem/Makefile | 2 + drivers/nvmem/vf610-ocotp.c | 297 3

[PATCH v7 0/4] Implement OCOTP driver for Vybrid using NVMEM

2015-08-06 Thread Sanchayan Maity
ying it as syscon. Thanks & Regards, Sanchayan Maity. Sanchayan Maity (4): clk: clk-vf610: Add clock for Vybrid OCOTP controller ARM: dts: vfxxx: Add OCOTP node drivers: nvmem: Add Vybrid OCOTP support nvmem: Add DT binding documentation for Vybrid OCOTP driver .../devicetree/bindin

[PATCH v2] Add continuous sampling with IIO buffers for Vybrid

2015-08-05 Thread Sanchayan Maity
# RCU Subsystem CONFIG_TINY_RCU=y CONFIG_SRCU=y # CONFIG_TASKS_RCU is not set # CONFIG_RCU_STALL_COMMON is not set # CONFIG_TREE_RCU_TRACE is not set CONFIG_RCU_KTHREAD_PRIO=0 # RCU Debugging # CONFIG_SPARSE_RCU_POINTER is not set # CONFIG_RCU_TORTURE_TEST is not set # CONFIG_RCU_TRACE is not set

[PATCH v2] iio: adc: vf610: Add IIO buffer support for Vybrid ADC

2015-08-05 Thread Sanchayan Maity
This patch adds support for IIO buffer to the Vybrid ADC driver. IIO triggered buffer infrastructure along with iio sysfs trigger is used to leverage continuous sampling support provided by the ADC block. Signed-off-by: Sanchayan Maity --- drivers/iio/adc/Kconfig | 4 ++ drivers/iio/adc

[PATCH v3 2/3] input: Add DT binding documentation for Colibri VF50 touchscreen

2015-08-05 Thread Sanchayan Maity
This adds device tree binding documentation for the Colibri VF50 touchscreen driver. Signed-off-by: Sanchayan Maity --- .../bindings/input/touchscreen/colibri-vf50-ts.txt | 32 ++ 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/input

[PATCH v3 0/3] Add support for touchscreen on Colibri VF50

2015-08-05 Thread Sanchayan Maity
Kconfig file Version 2 of the patchset can be found here https://www.mail-archive.com/linux-input@vger.kernel.org/msg18090.html Version 1 of the patchset can be found here https://lkml.org/lkml/2015/6/30/103 Thank you very much for the feedback till now. Regards, Sanchayan. Sanchayan Maity

[PATCH v3 3/3] touchscreen: colibri-vf50-ts: Add touchscreen support for Colibri VF50

2015-08-05 Thread Sanchayan Maity
The Colibri Vybrid VF50 module supports 4-wire touchscreens using FETs and ADC inputs. This driver uses the IIO consumer interface and relies on the vf610_adc driver based on the IIO framework. Signed-off-by: Sanchayan Maity --- drivers/input/touchscreen/Kconfig | 12 + drivers/input

[PATCH v3 1/3] ARM: dts: vf500-colibri: Add device tree node for touchscreen support

2015-08-05 Thread Sanchayan Maity
Add device tree node for touchscreen support on Colibri VF50. The touchscreen functionality on VF50 uses the ADC channels of Vybrid and some GPIOs. Also add pinctrl nodes for proper pinmux. Signed-off-by: Sanchayan Maity --- arch/arm/boot/dts/vf500-colibri-eval-v3.dts | 4 +++ arch/arm/boot

  1   2   >