From patchwork Mon Jul 23 04:17:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 10539593 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 31BC0174A for ; Mon, 23 Jul 2018 04:18:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1D50B28478 for ; Mon, 23 Jul 2018 04:18:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 118CD284B1; Mon, 23 Jul 2018 04:18: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=-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 AA3C128478 for ; Mon, 23 Jul 2018 04:18:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727719AbeGWFRX (ORCPT ); Mon, 23 Jul 2018 01:17:23 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:34643 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726607AbeGWFRV (ORCPT ); Mon, 23 Jul 2018 01:17:21 -0400 Received: by mail-pl0-f66.google.com with SMTP id f6-v6so7680780plo.1 for ; Sun, 22 Jul 2018 21:18:09 -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=C4QDxfwbcSCB7qVJ4ISeVsB/ZWDUU3UoPGKz3WkRL2U=; b=P4kHHvKi7cviW0qQtqjWITy1bl+4UL6BfJpFRdzhzg10iQNN0KRzfYFY1C4u2OpkQq JbOwdbqmno9BmC1gnLZMGTACzlID9DEaWBMzWL1WFXm+rvkXqUA/gqwJS8qc67NTVTtA aFIMd/0fBYd5Gavc7pKomQtXVQAvxK/wHkcT4= 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=C4QDxfwbcSCB7qVJ4ISeVsB/ZWDUU3UoPGKz3WkRL2U=; b=ruow0dwacmj8QarHGLdYN1m35BwSIlVNPLJVPqH2x2T8GBRewXM7rQotGgoQhJ0J0I Mnwd8yQ0fwoPI634N875uwCsnLAfoNaxrtz2bViexOHZiCaLfHXnHdDpCEp/XZkGwDSK 1oONaD+Wq6RJASqKN9hhLQt6FtODYT1BYYx+egS9DoDzi2mzln8Xw2aHBvhXgkFwCJQI 7F1rv6jpGbeZEJVcvSYeY6PNkQ0Jf9/4uiaQi+QImnVM7GpR1xPQwUkmcr1IOmitsy8U EOwfEhtmWkRmk8y2lZ6iTVEYoiWFjU0kNU5gO3S8xJChNB+MyDe5+sWBIl43iy95z/IC LBGg== X-Gm-Message-State: AOUpUlFXdHRkSJr/T2DdGdTybkc2qV1VtR25KCnVR6pFqxN6p1F9Ge4W 3px1s7/xrftLh4NM0Ng+BfL+ X-Google-Smtp-Source: AAOMgpdB4ACkGjKTvDaL0hvVQ83MQamvF+2HJQ1ZPTFbDfUEspzx9GZ7zUDuEdqFHOIDBd/xubnApw== X-Received: by 2002:a17:902:a24:: with SMTP id 33-v6mr11292482plo.88.1532319488743; Sun, 22 Jul 2018 21:18:08 -0700 (PDT) Received: from localhost.localdomain ([2409:4072:802:a98c:b568:c01f:49a2:2aa5]) by smtp.gmail.com with ESMTPSA id i20-v6sm13369282pfj.82.2018.07.22.21.18.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Jul 2018 21:18:08 -0700 (PDT) From: Manivannan Sadhasivam To: vkoul@kernel.org, dan.j.williams@intel.com, afaerber@suse.de, robh+dt@kernel.org Cc: 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, Manivannan Sadhasivam Subject: [PATCH v2 1/4] dt-bindings: dma: Add binding for Actions Semi Owl SoCs Date: Mon, 23 Jul 2018 09:47:40 +0530 Message-Id: <20180723041743.32024-2-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180723041743.32024-1-manivannan.sadhasivam@linaro.org> References: <20180723041743.32024-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 --- .../devicetree/bindings/dma/owl-dma.txt | 46 +++++++++++++++++++ 1 file changed, 46 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..dd6ce237b216 --- /dev/null +++ b/Documentation/devicetree/bindings/dma/owl-dma.txt @@ -0,0 +1,46 @@ +* 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: Virtual channels supported. +- 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>; + ... +};