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: 142540 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp5603121ljj; Sun, 22 Jul 2018 21:18:18 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeJJFrDptzLkhxHJ5HYHppMOyH6jRnQn30LazJ/q36JeQvFhip+dcPDD0dO0j5zcpSap3Q9 X-Received: by 2002:a63:6243:: with SMTP id w64-v6mr10679178pgb.179.1532319498675; Sun, 22 Jul 2018 21:18:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532319498; cv=none; d=google.com; s=arc-20160816; b=RAjZohlBV5qrWP5AY84Mvlx0MfDqwgGSHT7vwDjeEZbC8rkRVejO2wfXl6G1Mt7o6O EbQEL+R3fPEFZvxRhMxAuOmCnFiGCXyUKtBRMeWBncpIYhq/Ax/qGMKIhbNYywwz0GLb +/MF+jevpn8oXlb/XzYLhnecC1d++syuIDwkE4iV8avgUbzwYinYvrp6kgSjnlbMOBHE BsvV5CGLYqXv2oVRAGxFnEn+KobcEDzbge3kb94rcQ1APhK8ZzokuJBoDDPv6vMcQw6O MaloE/3D2tu+yFOfR6k1V5IE/TnfxzLj9hGK2pJf6OSbt1nD2IQbdSBYel2p0ZMe2duF KnXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=QgpbleDBSgODFCpM1JSztgcWDk87CsRGyNfaIi8Tfjg=; b=Z/yOb0MvCqbpMm+hHAzgen0eNu+vVfD8QDmO0kFfgJPjlRFfmnziIa6ks4M/ku+T8t uLXT0OxUq19+IGVAFx0UsDp/a2lj2QsfBW9fL5KYvEWc/uc/xdv5Q2ko41YWgACKDP61 IVY5vrbGvyRa3ENZMZ+OPJQ4DX0wIBaIjpuKyXn3jWLl9K/vLghX/hV+9qQ88F4eCVBW qbryx/lC0vbldYu+DtzWxjzX4z2Rg9nWhq9Ixytf+Y+yM7+3pegQ5QMNoBfpDd1m6+2o rODOcP1TszG+igOQ3a19dw+gTyPBCfoiSiH7bAvL2P1Tsw4Gb72836LtEcr8ipr/FRcr uTXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=P4kHHvKi; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r73-v6si7988950pfk.83.2018.07.22.21.18.18; Sun, 22 Jul 2018 21:18:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=P4kHHvKi; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727944AbeGWFRV (ORCPT + 5 others); Mon, 23 Jul 2018 01:17:21 -0400 Received: from mail-pl0-f67.google.com ([209.85.160.67]:36208 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727765AbeGWFRV (ORCPT ); Mon, 23 Jul 2018 01:17:21 -0400 Received: by mail-pl0-f67.google.com with SMTP id e11-v6so7677686plb.3 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=R7VRuOow9jFIAD+tHIyA4RDk8Td84gUtqBXNsWPiOKSs1MYmqbSQC3vMyqcjxPZJlu Uy7t1/YT5ZPyPGRiVt1qaRgW/ubpndF04VloxbqAByyFQ1aCP3D/SRhnetb2XDLuoWOk 0S6LtouSBKgyC2y4ryro2ou2k+KjoPAj/H2H+0PumH4slQgd9Y1Fw4jikOy1bIm4K2tH FPPTtBxuvCXIVArpkK+Nvv+aiOw4LWIOaAgNZTxECaJDZQN5Se8nR+kSo6aVioIDBT4o D5THCQ66QMC0Y56CoGR8toX02aXHbhanjsUPRRv7krlzWkO+NKQ26/sO1r4DO7DBXnUe grFA== X-Gm-Message-State: AOUpUlFGQSi6cMIoOCvGgHCuhCxrH0FCVkemo2g77Pal5SGtNxFlYCwO 8eIkeVIyUsuWNLjgZKaKMav9 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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 -- 2.17.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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>; + ... +};