From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 76FD8C5DF61 for ; Thu, 7 Nov 2019 08:52:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4293D2077C for ; Thu, 7 Nov 2019 08:52:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=sifive.com header.i=@sifive.com header.b="G7HveYk1" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733266AbfKGIwi (ORCPT ); Thu, 7 Nov 2019 03:52:38 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:40090 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727120AbfKGIwh (ORCPT ); Thu, 7 Nov 2019 03:52:37 -0500 Received: by mail-pf1-f196.google.com with SMTP id r4so2119977pfl.7 for ; Thu, 07 Nov 2019 00:52:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=WYgJCjRBqhwY0ulINWDVeN12R2Tn8RH5kuZplnJEZos=; b=G7HveYk1IudPQMGmvQ2c7tpccDcJSLzQvM5gihotCO9sU2EOQLD2dorDNKZBfLnQbT N299NgJA3fiMAGdZgC783yJ9ZXiHACZgpJKpgs7L982cA26pzAI5GYZNrG7ANQNxjnXb qd0j7fsekgVSkMUTPu4TaxKbzSWwciTPEeZu+WoSCijwnzq0YqxWwyK+Y4jCYbuOIWMm Vpk/29WFu6gz7HwqVrz/+GW+0eRA2epF1LgMr271rBQUiHgEZMG8EBtg/A3gmYIt6z3x Gx9CKuJfuUJMDCInxFFvPWBGivrfBPjMSyqDt8Y96fYzEzxlSWkV1iu6zyuHfFBBAl7S K6lg== 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=WYgJCjRBqhwY0ulINWDVeN12R2Tn8RH5kuZplnJEZos=; b=AmNzFEjhW9psdb0MjYGgIC5krKtFcf1j9ZgsIhlF35d8q1H60ED1NutIQlnkAA6HjE iawO2HO3yYCKQb/ZDy3sXjYM6qENPW8Utx4a56Ef410M2MeXVLYhHQtMSEqUePWSPcbV +uIwRZ7c9N7LCu4y/4sZcPjUqOh6W4qOYDE9LGfLbZKMW5O3p9Ig16eiF+Kxw4bLj9V4 ipGyPJ4PccyFPorWWmhJp/vpj826xYliFmfp+iaoLtBv3yJa4YAhf2q55FM4QK2x5Phe lOXk5sV44PE51D+HKF6qHo4QH5x3lYFyKErzgeRulKtgnbY3ubiphk5Pr6syQnaU94Hf L3nA== X-Gm-Message-State: APjAAAUNu0vlfe4elyDvY8XHDyz/fL2LDWpehjUHj/GpPmCBRfP3+4CZ 9G07wV5LJUTM/1eK/iu5s9MSWQ== X-Google-Smtp-Source: APXvYqzwiffXH7qAwTNlrwNnSzFYjok1bc9tn4Pi6HSzCFjYW64y7zo3+tmzH1fmx6SaC2g7igW/Ig== X-Received: by 2002:a63:d405:: with SMTP id a5mr3054839pgh.79.1573116756735; Thu, 07 Nov 2019 00:52:36 -0800 (PST) Received: from localhost.localdomain (36-228-119-18.dynamic-ip.hinet.net. [36.228.119.18]) by smtp.gmail.com with ESMTPSA id a33sm2402361pgb.57.2019.11.07.00.52.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Nov 2019 00:52:36 -0800 (PST) From: Green Wan Cc: Green Wan , Vinod Koul , Rob Herring , Mark Rutland , Palmer Dabbelt , Paul Walmsley , Albert Ou , Dan Williams , Mauro Carvalho Chehab , "David S. Miller" , Greg Kroah-Hartman , Jonathan Cameron , "Paul E. McKenney" , Bin Meng , Yash Shah , Sagar Kadam , dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 1/4] dt-bindings: dmaengine: sf-pdma: add bindins for SiFive PDMA Date: Thu, 7 Nov 2019 16:49:19 +0800 Message-Id: <20191107084955.7580-2-green.wan@sifive.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191107084955.7580-1-green.wan@sifive.com> References: <20191107084955.7580-1-green.wan@sifive.com> To: unlisted-recipients:; (no To-header on input) Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org Add DT bindings document for Platform DMA(PDMA) driver of board, HiFive Unleashed Rev A00. Reviewed-by: Rob Herring Reviewed-by: Pragnesh Patel Signed-off-by: Green Wan --- .../bindings/dma/sifive,fu540-c000-pdma.yaml | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 Documentation/devicetree/bindings/dma/sifive,fu540-c000-pdma.yaml diff --git a/Documentation/devicetree/bindings/dma/sifive,fu540-c000-pdma.yaml b/Documentation/devicetree/bindings/dma/sifive,fu540-c000-pdma.yaml new file mode 100644 index 000000000000..2ca3ddbe1ff4 --- /dev/null +++ b/Documentation/devicetree/bindings/dma/sifive,fu540-c000-pdma.yaml @@ -0,0 +1,55 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/dma/sifive,fu540-c000-pdma.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: SiFive Unleashed Rev C000 Platform DMA + +maintainers: + - Green Wan + - Palmer Debbelt + - Paul Walmsley + +description: | + Platform DMA is a DMA engine of SiFive Unleashed. It supports 4 + channels. Each channel has 2 interrupts. One is for DMA done and + the other is for DME error. + + In different SoC, DMA could be attached to different IRQ line. + DT file need to be changed to meet the difference. For technical + doc, + + https://static.dev.sifive.com/FU540-C000-v1.0.pdf + +properties: + compatible: + items: + - const: sifive,fu540-c000-pdma + + reg: + maxItems: 1 + + interrupts: + minItems: 1 + maxItems: 8 + + '#dma-cells': + const: 1 + +required: + - compatible + - reg + - interrupts + - '#dma-cells' + +examples: + - | + dma@3000000 { + compatible = "sifive,fu540-c000-pdma"; + reg = <0x0 0x3000000 0x0 0x8000>; + interrupts = <23 24 25 26 27 28 29 30>; + #dma-cells = <1>; + }; + +... -- 2.17.1