From patchwork Thu Jul 26 05:06:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 10545207 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2B8D3139A for ; Thu, 26 Jul 2018 05:07:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 191802AB00 for ; Thu, 26 Jul 2018 05:07:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0CDA52ACCC; Thu, 26 Jul 2018 05:07:36 +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=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A70742AB00 for ; Thu, 26 Jul 2018 05:07:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728934AbeGZGWg (ORCPT ); Thu, 26 Jul 2018 02:22:36 -0400 Received: from mail-pl0-f65.google.com ([209.85.160.65]:43377 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728933AbeGZGWb (ORCPT ); Thu, 26 Jul 2018 02:22:31 -0400 Received: by mail-pl0-f65.google.com with SMTP id x6-v6so257428plv.10 for ; Wed, 25 Jul 2018 22:07:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Cd73XDFSEX1ohFky7INlC/9VLpbnqGIbt7UvK7l2ck8=; b=eFNP6N7V6aIoYgAMyiitFxhkkt67YY7Csf6xHenNKQLZ90wtONE6+Kgq2sicf2OZqG TC181NEbxPRb3GjrWMWx25OIIXyh6spnz5HUZvl/iZjidtfWFbUVsJIAx3OfGK/Lt1Ao QwAofelgW5ZnaHJQNtMwGL9+wCSTiKBjevGD8= 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:in-reply-to :references; bh=Cd73XDFSEX1ohFky7INlC/9VLpbnqGIbt7UvK7l2ck8=; b=eGenXSNV0vcjng+hKh8xq/FlmPWsHko7wr4wnkdib3SjE80J3lAlt6PwVjEOe8woN7 5dvPtMYPaDRdtChs8l5s+j31sJKyVeShzlyG1zC5mebhiMt/9SKTLoRZQ46MM/ncYuU+ WShOnLK7skDeY27eY5iRsuKwXSIhV7DIhszWDBtbxMOFzUL2ic+gMBHHQS6j9zU75ZFg /boQ9FeQ4am+zhU1SgPjXfXU7zCB+J4mA6xlUu4xLIv12j7LykOPIuazwLUZc/Nbre1i ZRQPUJ/bLUNd/YmbN2S/ozeqL8slCh15YCjkkVAH4zF0VQSjLdm645uc5nvzlAzrilHl Hrog== X-Gm-Message-State: AOUpUlE9wI7HtgYghgvETRLxt/0LoXOys4NduLSvBbw8v9YTw9ZqRJ7u 4C8+Ou0EmyAJmkKEK+qT6jSa X-Google-Smtp-Source: AAOMgpc5cWrjrWlKIzqoBmQvOmZcCVe8PEJ3U7hIUjXAFW3+YenIQ7p8DxC3cPEJ1BzsYXWkQVr2Iw== X-Received: by 2002:a17:902:3081:: with SMTP id v1-v6mr534683plb.266.1532581649190; Wed, 25 Jul 2018 22:07:29 -0700 (PDT) Received: from localhost.localdomain ([2409:4072:6208:6a6e:a8cb:6394:3bdf:2b97]) by smtp.gmail.com with ESMTPSA id y4-v6sm492540pfm.137.2018.07.25.22.07.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Jul 2018 22:07:28 -0700 (PDT) From: Manivannan Sadhasivam To: vkoul@kernel.org, dan.j.williams@intel.com, afaerber@suse.de, robh+dt@kernel.org, dmaengine@vger.kernel.org, liuwei@actions-semi.com, 96boards@ucrobotics.com, devicetree@vger.kernel.org, daniel.thompson@linaro.org, amit.kucheria@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, hzhang@ucrobotics.com, bdong@ucrobotics.com, manivannanece23@gmail.com, thomas.liau@actions-semi.com, jeff.chen@actions-semi.com, pn@denx.de, edgar.righi@lsitec.org.br Cc: Manivannan Sadhasivam Subject: [PATCH v3 1/4] dt-bindings: dmaengine: Add binding for Actions Semi Owl SoCs Date: Thu, 26 Jul 2018 10:36:55 +0530 Message-Id: <20180726050658.1399-2-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180726050658.1399-1-manivannan.sadhasivam@linaro.org> References: <20180726050658.1399-1-manivannan.sadhasivam@linaro.org> Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add devicetree binding for Actions Semi Owl SoCs DMA controller. Signed-off-by: Manivannan Sadhasivam Reviewed-by: Rob Herring --- .../devicetree/bindings/dma/owl-dma.txt | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Documentation/devicetree/bindings/dma/owl-dma.txt diff --git a/Documentation/devicetree/bindings/dma/owl-dma.txt b/Documentation/devicetree/bindings/dma/owl-dma.txt new file mode 100644 index 000000000000..03e9bb12b75f --- /dev/null +++ b/Documentation/devicetree/bindings/dma/owl-dma.txt @@ -0,0 +1,47 @@ +* Actions Semi Owl SoCs DMA controller + +This binding follows the generic DMA bindings defined in dma.txt. + +Required properties: +- compatible: Should be "actions,s900-dma". +- reg: Should contain DMA registers location and length. +- interrupts: Should contain 4 interrupts shared by all channel. +- #dma-cells: Must be <1>. Used to represent the number of integer + cells in the dmas property of client device. +- dma-channels: Physical channels supported. +- dma-requests: Number of DMA request signals supported by the controller. + Refer to Documentation/devicetree/bindings/dma/dma.txt +- clocks: Phandle and Specifier of the clock feeding the DMA controller. + +Example: + +Controller: + dma: dma-controller@e0260000 { + compatible = "actions,s900-dma"; + reg = <0x0 0xe0260000 0x0 0x1000>; + interrupts = , + , + , + ; + #dma-cells = <1>; + dma-channels = <12>; + dma-requests = <46>; + clocks = <&clock CLK_DMAC>; + }; + +Client: + +DMA clients connected to the Actions Semi Owl SoCs DMA controller must +use the format described in the dma.txt file, using a two-cell specifier +for each channel. + +The two cells in order are: +1. A phandle pointing to the DMA controller. +2. The channel id. + +uart5: serial@e012a000 { + ... + dma-names = "tx", "rx"; + dmas = <&dma 26>, <&dma 27>; + ... +};