From patchwork Tue Mar 21 15:13:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Kochetkov X-Patchwork-Id: 9636795 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6D6DF60216 for ; Tue, 21 Mar 2017 15:14:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 62D2928358 for ; Tue, 21 Mar 2017 15:14:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 55FAF28405; Tue, 21 Mar 2017 15:14:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E88DB28358 for ; Tue, 21 Mar 2017 15:14:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=tpq0aLmiScqDNr4LkXCfHGen+bx/BOQyoU9by4AHTUY=; b=qmM qCFvlgS1fUKHC0Q/o9hdjPZ96Pu9PFzL9y49uYpWgbE7u6Qk2n7aYmw7yhvwvATLLmdsZir3VlMV3 slW3Q0OQZ5ABrYjChQHhNtRhA0zWvqfg7kxBok6CTxHcxHK6Kwc6Y6VGsllXanszWkCqf6IaQjJ+Q leWlG8AQeu0tPfSJPSHtiPvzCiFg4RogSVf54G7EFc2Kym8Yw9wA+OY85VgKVAmjXTI3ij+oPiWHd DIOXgr2b2Zo58r2A4GjAoHmgzCqC6mrQQem6RWOYjpCY9yDid/fwf6sj6JlNtjOp9/4EotiG7JKQk XAVonjZB4EgCDfOk4BZG4MBhYjR9eTA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cqLUG-000144-JP; Tue, 21 Mar 2017 15:14:16 +0000 Received: from mail-lf0-x242.google.com ([2a00:1450:4010:c07::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cqLUE-00012l-12; Tue, 21 Mar 2017 15:14:15 +0000 Received: by mail-lf0-x242.google.com with SMTP id v2so13325450lfi.2; Tue, 21 Mar 2017 08:13:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=1UgsWAFk33/TObanh/x9Do7rMpwdfjoMiaLpKFbU+fA=; b=eQNTh6fd53sceltsMb+kZXxeOAILneCVb52YEFhDggOdr2Ee+M4dZoP+AXCfqZa5wN Q8sELiYvw1RtQse6ev8LU0jAyAui1OxiK8Sq5ARuSd3CIomP+hQX5misyjxIi+2iTgi1 58m1f4w8cT3NGBq7i9JsSlb+X8stq6JjerPAOWDG9uv7SrF3FLlvN1Y60ZM98nsAtYJz SvdQWNjx0060TYxRS1vceqZrdZmkY+S1JvA+fGacOtONkxQcrpKfQn9JdnkFpUJmieDy 93fjq8AJ0nyjZtcY4Xwl5C91LhVjdmlmM7Go+VxaQtnP/VjpJLdKOvtw0Ctdn0tHDYdS yy/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=1UgsWAFk33/TObanh/x9Do7rMpwdfjoMiaLpKFbU+fA=; b=uRfXmebtoNUVYLgkB8w2+5nhL3ipgY6avpzuKq2hxKnqfcqH4eqrpx+a6rJqslA8qn d4OTt8YGG3LIMoLfJ5mEBE7qAbVo5yABnf1pJIy+W7eyhx0p8pftlV54XbprRqnOUvui ZCiAv7rgYESi1zYw81KoFLKj6NAbjFBQ95gzmWjs74Gwq4wQXJ4ZmX0/2a3tdA3QwZoq kjS1cUDGlMtuikdjMZxVhSQPZDdgaMIX9R5WVZ5891ea5MwJWUul/BycYB20vbMwjw5C OMU3yvpxQ3NBOi0N5bDtibNqYiYiIKK9ZbN3LstsS52nfvDEp1C2BNNnmxL9woQjaeUK I5kg== X-Gm-Message-State: AFeK/H0HaE9ZoDzny3uAMcWnWWzgxATGEAcX/3hCPdsxVSo4Bin93OP8FowO9wSBm8V/Og== X-Received: by 10.25.22.214 with SMTP id 83mr9487133lfw.79.1490109231813; Tue, 21 Mar 2017 08:13:51 -0700 (PDT) Received: from ubuntu.lintech.local ([185.35.119.87]) by smtp.gmail.com with ESMTPSA id e88sm3656700lji.26.2017.03.21.08.13.50 (version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 21 Mar 2017 08:13:51 -0700 (PDT) From: Alexander Kochetkov To: Heiko Stuebner , Rob Herring , Mark Rutland , Russell King , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: dts: rockchip: setup DMA-channels for mmc0 and emmc for rk3188 Date: Tue, 21 Mar 2017 18:13:47 +0300 Message-Id: <1490109227-4006-1-git-send-email-al.kochet@gmail.com> X-Mailer: git-send-email 1.7.9.5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170321_081414_286735_776D8E0A X-CRM114-Status: UNSURE ( 8.42 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexander Kochetkov MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This commit enable DMA-based transfers for SD/eMMC card adapters and reduce number of interrupts produced by SD-card/eMMC-card adapters. Sometimes interrupts from SD-card/eMMC-card adapters running in PIO mode blocks execution of hrtimers and I2S DMA callbacks for a long periods (100 ms or more). Signed-off-by: Alexander Kochetkov --- arch/arm/boot/dts/rk3188.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/rk3188.dtsi b/arch/arm/boot/dts/rk3188.dtsi index 44da3d42..de786f8 100644 --- a/arch/arm/boot/dts/rk3188.dtsi +++ b/arch/arm/boot/dts/rk3188.dtsi @@ -638,3 +638,13 @@ &wdt { compatible = "rockchip,rk3188-wdt", "snps,dw-wdt"; }; + +&mmc0 { + dmas = <&dmac2 1>; + dma-names = "rx-tx"; +}; + +&emmc { + dmas = <&dmac2 4>; + dma-names = "rx-tx"; +};