From patchwork Wed Jul 18 20:07:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 10533203 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 1FEC9600F4 for ; Wed, 18 Jul 2018 20:09:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1059A29BB9 for ; Wed, 18 Jul 2018 20:09:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 02AD329BC3; Wed, 18 Jul 2018 20:09:03 +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=unavailable 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 A7C7929BB9 for ; Wed, 18 Jul 2018 20:09:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730469AbeGRUs0 (ORCPT ); Wed, 18 Jul 2018 16:48:26 -0400 Received: from mail-pl0-f68.google.com ([209.85.160.68]:35868 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730253AbeGRUs0 (ORCPT ); Wed, 18 Jul 2018 16:48:26 -0400 Received: by mail-pl0-f68.google.com with SMTP id e11-v6so2517865plb.3 for ; Wed, 18 Jul 2018 13:08:57 -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=SxwL5nwuLJAU6wglAbFMjHAzucuB8O0I8yWtC37TapucrKD7KZ2DnKCH2gT5KhzYpI oFCgkAFQwIV3SOXZlnnN5SE/hlHAvArQEnxCFPyOYkVcCc5Hv3OcOKnbl0C4lNfc4L6l +jnhsyPNOoqdHZ8bB7Fqz2ehdX0UIqE1WQWog= 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=t4Sj+TqPc1X0sapKDVjpI4LXnrDg6zFQ5dFyj8vJ/FPZQSBE1w4xTbeRXywOjhSux1 /a2dEANLNXvWUVFwmhe/FKwmFp74AlJ2cAqWXVhPqLRBQNKM3lJyEr4O3yNSachxm6+j ibGh4Jiwy7N2Ys6Po7zgGZqy3vFivoFFClC0aN1JP4MDlR91CiY5/ZpHeKoXbA6+ZoJ6 0maET0SP3HKdymigsQTz/Mov5dBR5sCdASI390AJcpuRRFc1D0/Tz5wBKbj7JwXnhdAO Bv/18BM4UDQcJJ87wz9A0eKiNLGcaM82ilMI2xusEJh59GljJ+nceNPxqRTtagEUO6fb Ohwg== X-Gm-Message-State: AOUpUlFjHDXMubC61hx2LVsFeBqWQYuUgR8YBPb5SECoQ0Qwn7+hmOHC Pf0k5lxao0pvaTNQBX39yBBH X-Google-Smtp-Source: AAOMgpezqNB4R0jDfGt4HZGZfHh3I1D3AKW/Am+lQ+5ESWbj3I7uF/RSJ/BWz6xRl0ZIonYlF4JNrA== X-Received: by 2002:a17:902:201:: with SMTP id 1-v6mr7330898plc.310.1531944537193; Wed, 18 Jul 2018 13:08:57 -0700 (PDT) Received: from localhost.localdomain ([2409:4072:628d:5c0b:b467:58cc:4c91:39b3]) by smtp.gmail.com with ESMTPSA id c7-v6sm6924697pfh.25.2018.07.18.13.08.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Jul 2018 13:08:56 -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 1/4] dt-bindings: dma: Add binding for Actions Semi Owl SoCs Date: Thu, 19 Jul 2018 01:37:06 +0530 Message-Id: <20180718200709.27102-2-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180718200709.27102-1-manivannan.sadhasivam@linaro.org> References: <20180718200709.27102-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>; + ... +};