Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2948256ybi; Mon, 10 Jun 2019 01:19:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqy5THD7u2fxiSBcPVX3B/pva/uS90QPa0t2mNlG5qaAjH3g8+1jRfxMVNiMFTKP2jUHljdf X-Received: by 2002:a62:15c3:: with SMTP id 186mr8886969pfv.141.1560154783509; Mon, 10 Jun 2019 01:19:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560154783; cv=none; d=google.com; s=arc-20160816; b=EuF3usv3j+H2CM4wgrFVoOJF+BgNn8QSHz95PXnJKZLqCxmQ6ZE8E31Bkj9sZNsZ85 cYCr20GNbRuUmx8ci+70KFM/sgZQWghjWB//sx7i1jXtF3stCKYMWnARwGupxk7ESV9h nEI5rm0hk4px6RAcFyHDSCWcqtuvUf0ftSKdy66qNXU7dfb1wCCsJrYjBwMqP8qI/7KO bpRebY78uVEHKhBDS9ddlVcTU5dgG2A6CFMbqag9NRFYSTtNBX/c/tc7RossMlZNmUoH Os1IOU705PMEIt4QLmeN2CPJKOiIW5ZnPp1csjdp7dsfWBxQ7S+59E/L8QLeyFc+Pot6 RBoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=JXrPmDwmZz60cwiu7ugylUCBA+HSA+2MHZLifgEJlKU=; b=YYcBC/BfmeKfi3abduQzT/hKlkENPJARedhP+0jgDlS9AO/OmyHgdv2nk66lxKSzJM pwfWDHBQtnz7h83nLvUp3SU99ZMiq5JrYSnBYbD0lOKnciklFEgZHaBqIVpvjEFpIqHQ Mi4SozydigK09UCBwBxj8QHdn/xL7uF5B+FaP0iU4erL/r/OcOreflrMjkZESOzAD9Fu tQY5LuevsI5voZzP4X766Bj2pxxm4CPwCRHR+M31Is5FNkUPBuVNcQC3CQ0msuv3xQ8y 4BbtCDFTrxDzJSTVN+jl/nKU9RnkXtQAejGxuvjcOt90KeAu/fRQP+3/f1gPtmA93wA4 tEow== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t9si8944280pjw.9.2019.06.10.01.19.27; Mon, 10 Jun 2019 01:19:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388140AbfFJIQ0 (ORCPT + 99 others); Mon, 10 Jun 2019 04:16:26 -0400 Received: from inva020.nxp.com ([92.121.34.13]:36870 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387824AbfFJIQZ (ORCPT ); Mon, 10 Jun 2019 04:16:25 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 81CC01A07C4; Mon, 10 Jun 2019 10:16:23 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 7E7B21A07B3; Mon, 10 Jun 2019 10:16:15 +0200 (CEST) Received: from localhost.localdomain (mega.ap.freescale.net [10.192.208.232]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 776FC402C0; Mon, 10 Jun 2019 16:16:05 +0800 (SGT) From: yibin.gong@nxp.com To: robh+dt@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, broonie@kernel.org, festevam@gmail.com, vkoul@kernel.org, dan.j.williams@intel.com, u.kleine-koenig@pengutronix.de, catalin.marinas@arm.com, l.stach@pengutronix.de, will.deacon@arm.com Cc: linux-spi@vger.kernel.org, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v5 02/15] Revert "ARM: dts: imx6: Use correct SDMA script for SPI cores" Date: Mon, 10 Jun 2019 16:17:40 +0800 Message-Id: <20190610081753.11422-3-yibin.gong@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190610081753.11422-1-yibin.gong@nxp.com> References: <20190610081753.11422-1-yibin.gong@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 and shp_2_mcu/mcu_2_shp script for such two options. So both AIPS and SPBA scripts should keep the same behaviour, the issue only caught in AIPS script sounds not solide. The issue is more likely as the ecspi errata ERR009165(http://www.nxp.com/docs/en/errata/IMX6DQCE.pdf): eCSPI: TXFIFO empty flag glitch can cause the current FIFO transfer to be sent twice So revert commit 'dd4b487b32a3' firstly. Signed-off-by: Robin Gong --- arch/arm/boot/dts/imx6qdl.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/boot/dts/imx6qdl.dtsi index 929fc7d..b352ea2 100644 --- a/arch/arm/boot/dts/imx6qdl.dtsi +++ b/arch/arm/boot/dts/imx6qdl.dtsi @@ -339,7 +339,7 @@ clocks = <&clks IMX6QDL_CLK_ECSPI1>, <&clks IMX6QDL_CLK_ECSPI1>; clock-names = "ipg", "per"; - dmas = <&sdma 3 8 1>, <&sdma 4 8 2>; + dmas = <&sdma 3 7 1>, <&sdma 4 7 2>; dma-names = "rx", "tx"; status = "disabled"; }; @@ -353,7 +353,7 @@ clocks = <&clks IMX6QDL_CLK_ECSPI2>, <&clks IMX6QDL_CLK_ECSPI2>; clock-names = "ipg", "per"; - dmas = <&sdma 5 8 1>, <&sdma 6 8 2>; + dmas = <&sdma 5 7 1>, <&sdma 6 7 2>; dma-names = "rx", "tx"; status = "disabled"; }; @@ -367,7 +367,7 @@ clocks = <&clks IMX6QDL_CLK_ECSPI3>, <&clks IMX6QDL_CLK_ECSPI3>; clock-names = "ipg", "per"; - dmas = <&sdma 7 8 1>, <&sdma 8 8 2>; + dmas = <&sdma 7 7 1>, <&sdma 8 7 2>; dma-names = "rx", "tx"; status = "disabled"; }; @@ -381,7 +381,7 @@ clocks = <&clks IMX6QDL_CLK_ECSPI4>, <&clks IMX6QDL_CLK_ECSPI4>; clock-names = "ipg", "per"; - dmas = <&sdma 9 8 1>, <&sdma 10 8 2>; + dmas = <&sdma 9 7 1>, <&sdma 10 7 2>; dma-names = "rx", "tx"; status = "disabled"; }; -- 2.7.4