From patchwork Mon Jun 24 18:05:47 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sylwester Nawrocki/Kernel \\(PLT\\) /SRPOL/Staff Engineer/Samsung Electronics" X-Patchwork-Id: 2772551 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B67A5C0AB1 for ; Mon, 24 Jun 2013 18:06:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E0C66201DC for ; Mon, 24 Jun 2013 18:06:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F3B40201D6 for ; Mon, 24 Jun 2013 18:06:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752662Ab3FXSGh (ORCPT ); Mon, 24 Jun 2013 14:06:37 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:44089 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752433Ab3FXSGh (ORCPT ); Mon, 24 Jun 2013 14:06:37 -0400 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MOW00G33SZ0VQK0@mailout2.samsung.com> for linux-samsung-soc@vger.kernel.org; Tue, 25 Jun 2013 03:06:36 +0900 (KST) X-AuditID: cbfee61b-b7f8e6d00000524c-60-51c88aabb040 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 72.0C.21068.BAA88C15; Tue, 25 Jun 2013 03:06:36 +0900 (KST) Received: from amdc1344.digital.local ([106.116.147.32]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MOW005HYSXU1L40@mmp2.samsung.com>; Tue, 25 Jun 2013 03:06:35 +0900 (KST) From: Sylwester Nawrocki To: kgene.kim@samsung.com Cc: t.figa@samsung.com, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, myungjoo.ham@samsung.com, m.szyprowski@samsung.com, phil.carmody@partner.samsung.com, j.anaszewski@samsung.com, kyungmin.park@samsung.com, devicetree-discuss@lists.ozlabs.org, Sylwester Nawrocki Subject: [PATCH v2 4/8] ARM: dts: Use generic DMA bindings for Exynos4 SPI devices Date: Mon, 24 Jun 2013 20:05:47 +0200 Message-id: <1372097151-18122-5-git-send-email-s.nawrocki@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1372097151-18122-1-git-send-email-s.nawrocki@samsung.com> References: <1372097151-18122-1-git-send-email-s.nawrocki@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrGLMWRmVeSWpSXmKPExsVy+t9jQd01XScCDWZ9YbQ4MPshq0Xv1eeM Fr0LrrJZnG16w26x6fE1VosZ5/cxWaw9cpfd4nbjCjaL3a+WslocftPOarF+xmsWB26PzUvq Pc7PWMjocfDdHiaPvi2rGD0+b5ILYI3isklJzcksSy3St0vgypj/ahdrwTm+ikdNe9kaGK9x dzFycEgImEic7ePvYuQEMsUkLtxbz9bFyMUhJDCdUWLfnLlMEE4Hk8SHU1eZQKrYBAwleo/2 MYLYIgKSEk0Nf5hBipgFjjFJ/Gy8wQ6SEBYIkdh88C4LiM0ioCrxfls3WAOvgJvE/P3PmSA2 K0jMmWQDEuYUcJc4/HAjWKsQUEnbmh6WCYy8CxgZVjGKphYkFxQnpeca6RUn5haX5qXrJefn bmIEh94z6R2MqxosDjEKcDAq8fB+iDsRKMSaWFZcmXuIUYKDWUmEN1QEKMSbklhZlVqUH19U mpNafIhRmoNFSZz3YKt1oJBAemJJanZqakFqEUyWiYNTqoGxgfGoeotv9kqm+x0XhJR5983p K7Qvb2nN2uFidWVp5ZVFEzZ1SN511N4QO/lvUuysaNbqR1ujt+ey3JWoanRP3nAgtHVmp/Dp Jpf5wuErnvi8stpwMO540vmCbU0Wjb82/224aCsoe/JF8tpb/pZZfq94GXqCq06VSPKZvTTu CvrnLnfB4IoSS3FGoqEWc1FxIgDIoHZJOQIAAA== Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-8.0 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The Exynos4 SPI controller uses the PL330 DMA controller which has migrated to the generic DMA bindings since commit b5be04d35dbb2e00 "spi: s3c64xx: Modify SPI driver to use generic DMA DT support". Use the generic bindings to specify the corresponding DMA to make the SPI usable again on Exynos4x12 SOCs. Signed-off-by: Sylwester Nawrocki Signed-off-by: Kyungmin Park --- arch/arm/boot/dts/exynos4.dtsi | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/exynos4.dtsi b/arch/arm/boot/dts/exynos4.dtsi index 3f94fe8..bce2254 100644 --- a/arch/arm/boot/dts/exynos4.dtsi +++ b/arch/arm/boot/dts/exynos4.dtsi @@ -297,8 +297,8 @@ compatible = "samsung,exynos4210-spi"; reg = <0x13920000 0x100>; interrupts = <0 66 0>; - tx-dma-channel = <&pdma0 7>; /* preliminary */ - rx-dma-channel = <&pdma0 6>; /* preliminary */ + dmas = <&pdma0 7>, <&pdma0 6>; + dma-names = "tx", "rx"; #address-cells = <1>; #size-cells = <0>; clocks = <&clock 327>, <&clock 159>; @@ -312,8 +312,8 @@ compatible = "samsung,exynos4210-spi"; reg = <0x13930000 0x100>; interrupts = <0 67 0>; - tx-dma-channel = <&pdma1 7>; /* preliminary */ - rx-dma-channel = <&pdma1 6>; /* preliminary */ + dmas = <&pdma1 7>, <&pdma1 6>; + dma-names = "tx", "rx"; #address-cells = <1>; #size-cells = <0>; clocks = <&clock 328>, <&clock 160>; @@ -327,8 +327,8 @@ compatible = "samsung,exynos4210-spi"; reg = <0x13940000 0x100>; interrupts = <0 68 0>; - tx-dma-channel = <&pdma0 9>; /* preliminary */ - rx-dma-channel = <&pdma0 8>; /* preliminary */ + dmas = <&pdma0 9>, <&pdma0 8>; + dma-names = "tx", "rx"; #address-cells = <1>; #size-cells = <0>; clocks = <&clock 329>, <&clock 161>;