[PATCH v5 3/6] dmaengine: fsl-edma-common: version check for v2 instead

2019-06-25 Thread yibin . gong
From: Robin Gong The next v3 i.mx7ulp edma is based on v1, so change version check logic for v2 instead. Signed-off-by: Robin Gong --- drivers/dma/fsl-edma-common.c | 40 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/drivers/dma/fsl-ed

[PATCH v5 2/6] dmaengine: fsl-edma-common: move dmamux register to another single function

2019-06-25 Thread yibin . gong
From: Robin Gong Prepare for edmav2 on i.mx7ulp whose dmamux register is 32bit. No function impacted. Signed-off-by: Robin Gong --- drivers/dma/fsl-edma-common.c | 18 ++ 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/drivers/dma/fsl-edma-common.c b/drivers/dma/

[PATCH v5 4/6] dt-bindings: dma: fsl-edma: add new i.mx7ulp-edma

2019-06-25 Thread yibin . gong
From: Robin Gong More channel interrupts, one more clock, and only one dmamux on i.mx7ulp-edma. Signed-off-by: Robin Gong --- Documentation/devicetree/bindings/dma/fsl-edma.txt | 44 +++--- 1 file changed, 39 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/

[PATCH v5 6/6] ARM: dts: imx7ulp: add edma device node

2019-06-25 Thread yibin . gong
From: Robin Gong Add edma device node in dts. Signed-off-by: Robin Gong --- arch/arm/boot/dts/imx7ulp.dtsi | 28 1 file changed, 28 insertions(+) diff --git a/arch/arm/boot/dts/imx7ulp.dtsi b/arch/arm/boot/dts/imx7ulp.dtsi index dc5bc32..97496cf 100644 --- a/arch/

[PATCH v5 1/6] dmaengine: fsl-edma: add drvdata for fsl-edma

2019-06-25 Thread yibin . gong
From: Robin Gong There are some differences between vf610 and next i.mx7ulp. Put such differences into static driver data for distinguishing easily at driver level. Change mcf-edma accordingly. Signed-off-by: Robin Gong --- drivers/dma/fsl-edma-common.c | 29 +++-- driv

[PATCH v5 0/6] add edma2 for i.mx7ulp

2019-06-25 Thread yibin . gong
From: Robin Gong This patch set add new version of edma for i.mx7ulp, the main changes are as belows: 1. only one dmamux. 2. another clock dma_clk except dmamux clk. 3. 16 independent interrupts instead of only one interrupt for all channels For the first change, need modify fsl-edma-commo

[PATCH v5 5/6] dmaengine: fsl-edma: add i.mx7ulp edma2 version support

2019-06-25 Thread yibin . gong
From: Robin Gong Add edma2 for i.mx7ulp by version v3, since v2 has already been used by mcf-edma. The big changes based on v1 are belows: 1. only one dmamux. 2. another clock dma_clk except dmamux clk. 3. 16 independent interrupts instead of only one interrupt for all channels. Signed-off-by: R

[PATCH v4 2/6] dmaengine: fsl-edma-common: move dmamux register to another single function

2019-06-14 Thread yibin . gong
From: Robin Gong Prepare for edmav2 on i.mx7ulp whose dmamux register is 32bit. No function impacted. Signed-off-by: Robin Gong --- drivers/dma/fsl-edma-common.c | 18 ++ 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/drivers/dma/fsl-edma-common.c b/drivers/dma/

[PATCH v4 4/6] dt-bindings: dma: fsl-edma: add new i.mx7ulp-edma

2019-06-14 Thread yibin . gong
From: Robin Gong More channel interrupts, one more clock, and only one dmamux on i.mx7ulp-edma. Signed-off-by: Robin Gong --- Documentation/devicetree/bindings/dma/fsl-edma.txt | 44 +++--- 1 file changed, 39 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/

[PATCH v4 3/6] dmaengine: fsl-edma-common: version check for v2 instead

2019-06-14 Thread yibin . gong
From: Robin Gong The next v3 i.mx7ulp edma is based on v1, so change version check logic for v2 instead. Signed-off-by: Robin Gong --- drivers/dma/fsl-edma-common.c | 40 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/drivers/dma/fsl-ed

[PATCH v4 5/6] dmaengine: fsl-edma: add i.mx7ulp edma2 version support

2019-06-14 Thread yibin . gong
From: Robin Gong Add edma2 for i.mx7ulp by version v3, since v2 has already been used by mcf-edma. The big changes based on v1 are belows: 1. only one dmamux. 2. another clock dma_clk except dmamux clk. 3. 16 independent interrupts instead of only one interrupt for all channels. Signed-off-by: R

[PATCH v4 6/6] ARM: dts: imx7ulp: add edma device node

2019-06-14 Thread yibin . gong
From: Robin Gong Add edma device node in dts. Signed-off-by: Robin Gong --- arch/arm/boot/dts/imx7ulp.dtsi | 28 1 file changed, 28 insertions(+) diff --git a/arch/arm/boot/dts/imx7ulp.dtsi b/arch/arm/boot/dts/imx7ulp.dtsi index 8fb9559..2221c95 100644 --- a/arch/

[PATCH v4 1/6] dmaengine: fsl-edma: add drvdata for fsl-edma

2019-06-14 Thread yibin . gong
From: Robin Gong There are some differences between vf610 and next i.mx7ulp. Put such differences into static driver data for distiguish easily at driver level. Change mcf-edma accordingly. Signed-off-by: Robin Gong --- drivers/dma/fsl-edma-common.c | 29 +++-- drivers/

[PATCH v4 0/6] add edma2 for i.mx7ulp

2019-06-14 Thread yibin . gong
From: Robin Gong This patch set add new version of edma for i.mx7ulp, the main changes are as belows: 1. only one dmamux. 2. another clock dma_clk except dmamux clk. 3. 16 independent interrupts instead of only one interrupt for all channels For the first change, need modify fsl-edma-commo

[PATCH v5 05/15] dmaengine: imx-sdma: add mcu_2_ecspi script

2019-06-10 Thread yibin . gong
From: Robin Gong Add mcu_2_ecspi script to fix ecspi errata ERR009165. Signed-off-by: Robin Gong Acked-by: Vinod Koul --- drivers/dma/imx-sdma.c | 3 +++ include/linux/platform_data/dma-imx-sdma.h | 1 + 2 files changed, 4 insertions(+) diff --git a/drivers/dma/imx-sdma.c

[PATCH v5 03/15] Revert "dmaengine: imx-sdma: refine to load context only once"

2019-06-10 Thread yibin . gong
From: Robin Gong This reverts commit ad0d92d7ba6aecbe2705907c38ff8d8be4da1e9c, because in spi-imx case, burst length may be changed dynamically. Signed-off-by: Robin Gong --- drivers/dma/imx-sdma.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/i

[PATCH v5 09/15] dmaengine: imx-sdma: remove ERR009165 on i.mx6ul

2019-06-10 Thread yibin . gong
From: Robin Gong ECSPI issue fixed from i.mx6ul at hardware level, no need ERR009165 anymore on those chips such as i.mx8mq. Add i.mx6sx from where i.mx6ul source. Signed-off-by: Robin Gong Acked-by: Vinod Koul --- drivers/dma/imx-sdma.c | 51 +-

[PATCH v5 08/15] spi: imx: add new i.mx6ul compatible name in binding doc

2019-06-10 Thread yibin . gong
From: Robin Gong ERR009165 fixed from i.mx6ul, add its compatible name in binding doc. Signed-off-by: Robin Gong Acked-by: Mark Brown --- Documentation/devicetree/bindings/spi/fsl-imx-cspi.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/spi/fsl-imx-cs

[PATCH v5 07/15] spi: imx: remove ERR009165 workaround on i.mx6ul

2019-06-10 Thread yibin . gong
From: Robin Gong ERR009165 fixed on i.mx6ul/6ull/6sll. All other i.mx6/7 and i.mx8m/8mm still need this errata. Please refer to nxp official errata document from https://www.nxp.com/ . For removing workaround on those chips. Add new i.mx6ul type. Signed-off-by: Robin Gong Acked-by: Mark Brown

[PATCH v5 01/15] Revert "ARM: dts: imx6q: Use correct SDMA script for SPI5 core"

2019-06-10 Thread yibin . gong
From: Robin Gong There are two ways for SDMA accessing SPBA devices: one is SDMA->AIPS ->SPBA(masterA port), another is SDMA->SPBA(masterC port). Please refer to the 'Figure 58-1. i.MX 6Dual/6Quad SPBA connectivity' of i.mx6DQ Reference Manual. SDMA provide the corresponding app_2_mcu/mcu_2_app

[PATCH v5 14/15] arm64: defconfig: Enable SDMA on i.mx8mq/8mm

2019-06-10 Thread yibin . gong
From: Robin Gong Enable SDMA support on i.mx8mq/8mm chips, including enabling CONFIG_FW_LOADER_USER_HELPER/CONFIG_FW_LOADER_USER_HELPER_FALLBACK for firmware loaded by udev. Signed-off-by: Robin Gong --- arch/arm64/configs/defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/a

[PATCH v5 15/15] dmaengine: imx-sdma: add uart rom script

2019-06-10 Thread yibin . gong
From: Robin Gong For the compatibility of NXP internal legacy kernel before 4.19 which is based on uart ram script and upstreaming kernel based on uart rom script, add both uart ram/rom script in latest sdma firmware. By default uart rom script used. Besides, add two multi-fifo scripts for SAI/PD

[PATCH v5 13/15] ARM: dts: imx6sll: correct sdma compatible

2019-06-10 Thread yibin . gong
From: Robin Gong Correct sdma compatible since ecspi errata ERR009165 has been fixed on i.mx6sll as i.mx6ul. Signed-off-by: Robin Gong --- arch/arm/boot/dts/imx6sll.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx6sll.dtsi b/arch/arm/boot/dts/imx6s

[PATCH v5 11/15] dmaengine: imx-sdma: fix ecspi1 rx dma not work on i.mx8mm

2019-06-10 Thread yibin . gong
From: Robin Gong Because the number of ecspi1 rx event on i.mx8mm is 0, the condition check ignore such special case without dma channel enabled, which caused ecspi1 rx works failed. Actually, no need to check event_id0/event_id1 and replace checking 'event_id1' with 'DMA_DEV_TO_DEV', so that con

[PATCH v5 10/15] dma: imx-sdma: add i.mx6ul/6sx compatible name

2019-06-10 Thread yibin . gong
From: Robin Gong Add i.mx6ul and i.mx6sx compatible name in binding doc. Signed-off-by: Robin Gong --- Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt b/Documentation/devicetree

[PATCH v5 12/15] ARM: dts: imx6ul: add dma support on ecspi

2019-06-10 Thread yibin . gong
From: Robin Gong Add dma support on ecspi. Signed-off-by: Robin Gong --- arch/arm/boot/dts/imx6ul.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/imx6ul.dtsi b/arch/arm/boot/dts/imx6ul.dtsi index fc388b8..4a34316 100644 --- a/arch/arm/boot/dts/imx6ul.dtsi +++

[PATCH v5 04/15] dmaengine: imx-sdma: remove dupilicated sdma_load_context

2019-06-10 Thread yibin . gong
From: Robin Gong Since sdma_transfer_init() will do sdma_load_context before any sdma transfer, no need once more in sdma_config_channel(). Signed-off-by: Robin Gong Acked-by: Vinod Koul --- drivers/dma/imx-sdma.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers

[PATCH v5 00/15] add ecspi ERR009165 for i.mx6/7 soc family

2019-06-10 Thread yibin . gong
From: Robin Gong There is ecspi ERR009165 on i.mx6/7 soc family, which cause FIFO transfer to be send twice in DMA mode. Please get more information from: https://www.nxp.com/docs/en/errata/IMX6DQCE.pdf. The workaround is adding new sdma ram script which works in XCH mode as PIO inside sdma in

[PATCH v5 06/15] spi: imx: fix ERR009165

2019-06-10 Thread yibin . gong
From: Robin Gong Change to XCH mode even in dma mode, please refer to the below errata: https://www.nxp.com/docs/en/errata/IMX6DQCE.pdf Signed-off-by: Robin Gong Acked-by: Mark Brown --- drivers/spi/spi-imx.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --gi

[PATCH v5 02/15] Revert "ARM: dts: imx6: Use correct SDMA script for SPI cores"

2019-06-10 Thread yibin . gong
From: Robin Gong There are two ways for SDMA accessing SPBA devices: one is SDMA->AIPS ->SPBA(masterA port), another is SDMA->SPBA(masterC port). Please refer to the 'Figure 58-1. i.MX 6Dual/6Quad SPBA connectivity' of i.mx6DQ Reference Manual. SDMA provide the corresponding app_2_mcu/mcu_2_app

[PATCH v3 1/8] dmaengine: fsl-edma: add dmamux_nr for next version

2019-05-29 Thread yibin . gong
From: Robin Gong Next version of edma such as edmav2 on i.mx7ulp has only one dmamux. Add dmamux_nr instead of static macro define 'DMAMUX_NR'. No any function change here. Signed-off-by: Robin Gong --- drivers/dma/fsl-edma-common.h | 1 + drivers/dma/fsl-edma.c| 11 ++- 2 fil

[PATCH v3 4/8] dmaengine: fsl-edma-common: version check for v2 instead

2019-05-29 Thread yibin . gong
From: Robin Gong The next v3 i.mx7ulp edma is based on v1, so change version check logic for v2 instead. Signed-off-by: Robin Gong --- drivers/dma/fsl-edma-common.c | 40 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/drivers/dma/fsl-ed

[PATCH v3 8/8] ARM: dts: imx7ulp: add edma device node

2019-05-29 Thread yibin . gong
From: Robin Gong Add edma device node in dts. Signed-off-by: Robin Gong --- arch/arm/boot/dts/imx7ulp.dtsi | 28 1 file changed, 28 insertions(+) diff --git a/arch/arm/boot/dts/imx7ulp.dtsi b/arch/arm/boot/dts/imx7ulp.dtsi index d6b7110..b4f7adf 100644 --- a/arch/

[PATCH v3 2/8] dmaengine: mcf-edma: update to 'dmamux_nr'

2019-05-29 Thread yibin . gong
From: Robin Gong Update to 'dmamux_nr' instead of static macro DMAMUX_NR since new version edma only has one dmamux. Signed-off-by: Robin Gong --- drivers/dma/fsl-edma-common.c | 2 +- drivers/dma/mcf-edma.c| 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/dm

[PATCH v3 7/8] dmaengine: fsl-edma: add i.mx7ulp edma2 version support

2019-05-29 Thread yibin . gong
From: Robin Gong Add edma2 for i.mx7ulp by version v3, since v2 has already been used by mcf-edma. The big changes based on v1 are belows: 1. only one dmamux. 2. another clock dma_clk except dmamux clk. 3. 16 independent interrupts instead of only one interrupt for all channels. Signed-off-by:

[PATCH v3 0/8] add edma2 for i.mx7ulp

2019-05-29 Thread yibin . gong
From: Robin Gong This patch set add new version of edma for i.mx7ulp, the main changes are as belows: 1. only one dmamux. 2. another clock dma_clk except dmamux clk. 3. 16 independent interrupts instead of only one interrupt for all channels. For the first change, need modify fsl-e

[PATCH v3 6/8] dt-bindings: dma: fsl-edma: add new i.mx7ulp-edma

2019-05-29 Thread yibin . gong
From: Robin Gong More channel interrupts, one more clock, and only one dmamux on i.mx7ulp-edma. Signed-off-by: Robin Gong --- Documentation/devicetree/bindings/dma/fsl-edma.txt | 44 +++--- 1 file changed, 39 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/

[PATCH v3 3/8] dmaengine: fsl-edma-common: move dmamux register to another single function

2019-05-29 Thread yibin . gong
From: Robin Gong Prepare for edmav2 on i.mx7ulp whose dmamux register is 32bit. No function impacted. Signed-off-by: Robin Gong --- drivers/dma/fsl-edma-common.c | 18 ++ 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/drivers/dma/fsl-edma-common.c b/drivers/dma/

[PATCH v3 5/8] dmaengine: fsl-edma: add drvdata for vf610

2019-05-29 Thread yibin . gong
From: Robin Gong There are some differences between vf610 and next i.mx7ulp. Put such differences into static driver data for distiguish easily in driver. Signed-off-by: Robin Gong --- drivers/dma/fsl-edma-common.h | 10 ++ drivers/dma/fsl-edma.c| 36 +++

[PATCH v2 7/7] ARM: dts: imx7ulp: add edma device node

2019-05-27 Thread yibin . gong
From: Robin Gong Add edma device node in dts. Signed-off-by: Robin Gong --- arch/arm/boot/dts/imx7ulp.dtsi | 28 1 file changed, 28 insertions(+) diff --git a/arch/arm/boot/dts/imx7ulp.dtsi b/arch/arm/boot/dts/imx7ulp.dtsi index d6b7110..b4f7adf 100644 --- a/arch/

[PATCH v2 1/7] dmaengine: fsl-edma: add dmamux_nr for next version

2019-05-27 Thread yibin . gong
From: Robin Gong Next version of edma such as edmav2 on i.mx7ulp has only one dmamux. Add dmamux_nr instead of static macro define 'DMAMUX_NR'. No any function change here. Signed-off-by: Robin Gong --- drivers/dma/fsl-edma-common.h | 1 + drivers/dma/fsl-edma.c| 11 ++- 2 fil

[PATCH v2 4/7] dmaengine: fsl-edma-common: version check for v2 instead

2019-05-27 Thread yibin . gong
From: Robin Gong The next v3 i.mx7ulp edma is based on v1, so change version check logic for v2 instead. Signed-off-by: Robin Gong --- drivers/dma/fsl-edma-common.c | 40 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/drivers/dma/fsl-ed

[PATCH v2 2/7] dmaengine: mcf-edma: update to 'dmamux_nr'

2019-05-27 Thread yibin . gong
From: Robin Gong Update to 'dmamux_nr' instead of static macro DMAMUX_NR since new version edma only has one dmamux. Signed-off-by: Robin Gong --- drivers/dma/fsl-edma-common.c | 2 +- drivers/dma/mcf-edma.c| 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/dm

[PATCH v2 3/7] dmaengine: fsl-edma-common: move dmamux register to another single function

2019-05-27 Thread yibin . gong
From: Robin Gong Prepare for edmav2 on i.mx7ulp whose dmamux register is 32bit. No function impacted. Signed-off-by: Robin Gong --- drivers/dma/fsl-edma-common.c | 18 ++ 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/drivers/dma/fsl-edma-common.c b/drivers/dma/

[PATCH v2 0/7] add edma2 for i.mx7ulp

2019-05-27 Thread yibin . gong
From: Robin Gong This patch set add new version of edma for i.mx7ulp, the main changes are as belows: 1. only one dmamux. 2. another clock dma_clk except dmamux clk. 3. 16 independent interrupts instead of only one interrupt for all channels. For the first change, need modify fsl-e

[PATCH v2 6/7] dmaengine: fsl-edma: add i.mx7ulp edma2 version support

2019-05-27 Thread yibin . gong
From: Robin Gong Add edma2 for i.mx7ulp by version v3, since v2 has already been used by mcf-edma. The big changes based on v1 are belows: 1. only one dmamux. 2. another clock dma_clk except dmamux clk. 3. 16 independent interrupts instead of only one interrupt for all channels. Signed-off-by:

[PATCH v2 5/7] dt-bindings: dma: fsl-edma: add new i.mx7ulp-edma

2019-05-27 Thread yibin . gong
From: Robin Gong More channel interrupts, one more clock, and only one dmamux on i.mx7ulp-edma. Signed-off-by: Robin Gong --- Documentation/devicetree/bindings/dma/fsl-edma.txt | 44 +++--- 1 file changed, 39 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/

Re: linux-next: build failure after merge of the slave-dma tree

2015-02-15 Thread Yibin Gong
Hi Stephen, Thanks for you report. I have notice it and sent the v4 patch review yesterday. 发自我的 iPhone > 在 2015年2月16日,09:09,Stephen Rothwell 写道: > > Hi Vinod, > > After merging the slave-dma tree, today's linux-next build (arm > multi_v7_defconfig) > failed like this: > > drivers/dma/i

RE: [PATCH v6] spi: spi-imx: add DMA support

2014-10-20 Thread Yibin Gong
Sorry for sending the wrong patch set, please ignore... -Original Message- From: Robin Gong [mailto:b38...@freescale.com] Sent: Tuesday, October 21, 2014 9:06 AM To: vinod.k...@intel.com; dan.j.willi...@intel.com; andriy.shevche...@linux.intel.com Cc: dmaeng...@vger.kernel.org; linux-ker

RE: [RFT][PATCH] regulator: pfuze100: Support enable/disable for fixed regulator

2014-05-26 Thread Yibin Gong
Tested-by: Robin Gong Acked-by: Robin Gong -Original Message- From: Axel Lin [mailto:axel@ingics.com] Sent: Monday, May 26, 2014 5:56 PM To: Mark Brown Cc: Gong Yibin-B38343; Estevam Fabio-R49496; Liam Girdwood; linux-kernel@vger.kernel.org Subject: [RFT][PATCH] regulator: pfuze100

RE: [PATCH] regulator: pfuze100: Add PFUZE200 support to Kconfig and module description

2014-03-05 Thread Yibin Gong
Acked-by: Robin Gong -Original Message- From: Axel Lin [mailto:axel@ingics.com] Sent: Wednesday, March 05, 2014 6:03 PM To: Mark Brown Cc: Gong Yibin-B38343; Liam Girdwood; linux-kernel@vger.kernel.org Subject: [PATCH] regulator: pfuze100: Add PFUZE200 support to Kconfig and module

RE: [PATCH] regulator: pfuze100: Add terminate entry for [i2c|of]_device_id tables

2014-03-04 Thread Yibin Gong
Acked-by: Robin Gong -Original Message- From: Axel Lin [mailto:axel@ingics.com] Sent: Tuesday, March 04, 2014 6:20 PM To: Mark Brown Cc: Gong Yibin-B38343; Liam Girdwood; linux-kernel@vger.kernel.org Subject: [PATCH] regulator: pfuze100: Add terminate entry for [i2c|of]_device_id ta

RE: [PATCH v2] regulator: pfuze100: add pfuze200 support

2014-03-03 Thread Yibin Gong
Hi Mark, Thanks for your reminding, PFUZE200 is currently validated on the same board(i.MX6Q Sabresd) which mounted with PFUZE100 before. So the patch only adding driver level support to let others can easily add PFUZE200 support once they have the PFUZE200 board. -Original Message

RE: [PATCH V1] spi: imx: add dma support for ecspi

2014-02-12 Thread Yibin Gong
Sorry, I miss the message .Thanks Shawn's reminding and thanks Sascha's comments and I will talk with Frank. -Original Message- From: Shawn Guo [mailto:shawn@linaro.org] Sent: Thursday, February 13, 2014 9:56 AM To: Gong Yibin-B38343 Cc: broo...@kernel.org; s.ha...@pengutronix.de; li