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: 142297 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp944858ljj; Wed, 18 Jul 2018 13:08:59 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdrx6DmlcqgoFCABLctfLseMRrJX0JEDyEf4SaIQQForJRD9Cou9h4X4UuT634MJxQeiy+l X-Received: by 2002:a62:b20c:: with SMTP id x12-v6mr6705679pfe.64.1531944538972; Wed, 18 Jul 2018 13:08:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531944538; cv=none; d=google.com; s=arc-20160816; b=GVf5mk2SJXm6WlyoiG5nXobRoT9g7fKD//6lRY57hSPwSxe/JfEKxhne8rFwMEn5Pb 8ewdrtgGSlE/0IWhtKMMix0AF6+USXef67Ul/fSrk3FoiSOyzumSV7rGbDuD7s+8UHFW hvDq8Run2jFSjsxYNbQZefE9/jrI+BXdzBiCrqXvylKUtnhLaWEZEaWt3phejVhvvigh M8lTl7zXhlcT9Zj+H1srJQ4TQWzcOfl5KQ69QpjNNqz5cWRkOz7HWNzDLGOJ+1brmhL9 bUwuFwz0bsEcx1n/YPjIBywypb5yCgY7jnJ/XbxRuDLu4I7yqKlwQV0YcRj5BbrrBd7t +B2A== 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=j1ZD65P1lXtiE3DKBq0kclfYKL8ISb5Vv+wyz8qvPY9c2kH9HaF9l8Nzv2A823oEgT JqSOgmuTHe2nBl/6DTWnUg/QUtQACEcUA+TEBYhLM0EiGPZKgqlpjv1hpQr7HOdV9QH8 ApwH+ufSDSWksJIXxg3gKCDms+pmgMWKBstYSJA6TQFkSqihnsAqC2+wkFFYLLXzDcmQ bGNGtV+bTokXFL6pDb8xrf5A9CirOIONtCtT/rnVRuFZqF/9gCQQy+HJmohnU5v3zty3 0qHOBscy23lPxLLh7/y6jrEujFn4ZubJihUdoQwyouM8E5I+TlZ3XJZajfap06jVVSK6 pndg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=SxwL5nwu; 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 b80-v6si4319724pfm.230.2018.07.18.13.08.58; Wed, 18 Jul 2018 13:08:58 -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=SxwL5nwu; 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 S1730328AbeGRUs0 (ORCPT + 5 others); Wed, 18 Jul 2018 16:48:26 -0400 Received: from mail-pl0-f67.google.com ([209.85.160.67]:42712 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729776AbeGRUs0 (ORCPT ); Wed, 18 Jul 2018 16:48:26 -0400 Received: by mail-pl0-f67.google.com with SMTP id z7-v6so745967plo.9 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=afPkvdfZdChEpqDe6UNq9lY0WV4z6SXxubNqMEqRb0tSOrvctSCqhtQkVWCei4TdES yleo8J4/N1bZZH3ecdZ0ZPO4VyLtW8DbShhsevjNBApLMANh+g6qpVjqKpTMFpEI4spT wIRD8kSUtHMUSwLanXAMvUf3k1N89zDV6e0DBCyfxTisD9CfaWMQy79vc1Yrqz/K+TRH sRx49w6DBN8McNZwonUtS/m1UfbUP9JyouzWGK1UA17rXfAFnqwQ4YNFAkqArhFrAX1D Zzss8RzeaRTrLgT7jisF5s10gWGVFJOxkD/bCQpXxozww30icFG/WyOG6eOlNIIG9z1Y tvNg== X-Gm-Message-State: AOUpUlHKiSG1V6YUZnU5Oiyh1rUSG1PWGAggVY/L4pYN1olRpycidwb4 aOFZrqyHu48J11gj8ddCEYkzL7bV6Q== 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: 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>; + ... +};