From patchwork Thu Aug 2 14:10:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrea Merello X-Patchwork-Id: 10553667 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 8960B15A6 for ; Thu, 2 Aug 2018 14:10:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 796A92C13C for ; Thu, 2 Aug 2018 14:10:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 764392C157; Thu, 2 Aug 2018 14:10:53 +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_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,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 04BDC2C159 for ; Thu, 2 Aug 2018 14:10:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732616AbeHBQCO (ORCPT ); Thu, 2 Aug 2018 12:02:14 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:46032 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732141AbeHBQBo (ORCPT ); Thu, 2 Aug 2018 12:01:44 -0400 Received: by mail-wr1-f65.google.com with SMTP id f12-v6so2258012wrv.12; Thu, 02 Aug 2018 07:10:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=nFjdJlN5uSi6gOX8L6ohs2T0Z1o07cnerZr+JKHCTXw=; b=cbFaVvW0btnyTVvGDGO5bp7mlpsgQvWqMQH60G9TEgiorzDNv2PGcTGSf6ERmNxnBt st+PU+gao6VD2Z6f0+7zGjwvj1lCDzk23p5lpRL9mCqH4D6YQDyzqi7heq/zKzMZcMdo sQe5QX9u8qSPa5QWISzno5UbqOfyMCjFz4dhX1gI0w8E8otqmS/JCaWWREGib80vKG+3 2VCwBqRggxFLLEEyLLfMYP5Bglnc8EhvyAC9MO4ZALFQFRtaa7cKVmlD2Usnb5ebUu8m CByk/QlxOgDiYLK08m+M+lC/ykxzKrbqHqLRtvpaNHSJ7xc/2+neCN2SFtdWJ1EmPkvb 7/Aw== 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=nFjdJlN5uSi6gOX8L6ohs2T0Z1o07cnerZr+JKHCTXw=; b=cy+JvX2I4lMzTnPWH5rXy0FvWicLAPISKvtfJN5/rxYgnka6mUVX11CbSaYJ0Q6kE7 SmC9efXupK1T8POIGM4Tc8VVe+TM5VlK5+OolVcn2ZBh7PQzfe2cA0BKNw31s6O1fl84 axpNI3oApNGKAJxWkYyr3ZUFLye59ZSYBiy1EegLa4V+NvEnSapPPpdfU0h+B7ak8oyu 9mhwVtI2JOgXcOXaKD/OFS30acnWkMzXFEV4gRFZMmLvfpuW4hACuJXDgMXQY3+ydA7P VYSaDZYe7kA3A+a/5bwIrvtwgsqsIR835+kCClu1060OGg6U32ILRTuHjeBP0ZDlZsON hviQ== X-Gm-Message-State: AOUpUlFXgcWrcSZ+B6USiyxn3ZrSEytQNF65QIcuutFbhbi+lkxh4woP /6kdsEu0cZnxQFzJNyCqBMM= X-Google-Smtp-Source: AAOMgpdWXb+mP99MCpxjkJ1+8hOIjMSRbQSd5gFr/6NHTlLRQMe1w+wIJ5XC2oCtNBK1O7JsSmFM8A== X-Received: by 2002:adf:88e3:: with SMTP id g32-v6mr2015453wrg.62.1533219020734; Thu, 02 Aug 2018 07:10:20 -0700 (PDT) Received: from NewMoon.iit.local ([90.147.180.254]) by smtp.gmail.com with ESMTPSA id d78-v6sm3392310wma.37.2018.08.02.07.10.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Aug 2018 07:10:19 -0700 (PDT) From: Andrea Merello To: vkoul@kernel.org, dan.j.williams@intel.com, michal.simek@xilinx.com, appana.durga.rao@xilinx.com, dmaengine@vger.kernel.org Cc: v4-000linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org, radhey.shyam.pandey@xilinx.com, Andrea Merello Subject: [PATCH v4 3/7] dt-bindings: dmaengine: xilinx_dma: add optional xlnx,sg-length-width property Date: Thu, 2 Aug 2018 16:10:08 +0200 Message-Id: <20180802141012.19970-3-andrea.merello@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180802141012.19970-1-andrea.merello@gmail.com> References: <20180802141012.19970-1-andrea.merello@gmail.com> Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The width of the "length register" cannot be autodetected, and it is now specified with a DT property. Add DOC for it. Cc: Rob Herring Cc: Mark Rutland Cc: devicetree@vger.kernel.org Cc: Radhey Shyam Pandey Signed-off-by: Andrea Merello Reviewed-by: Radhey Shyam Pandey --- Changes in v2: - change property name - property is now optional - cc DT maintainer Changes in v3: - reword - cc DT maintainerS and ML Changes in v4: - specify the unit, the valid range and the default value --- Documentation/devicetree/bindings/dma/xilinx/xilinx_dma.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/dma/xilinx/xilinx_dma.txt b/Documentation/devicetree/bindings/dma/xilinx/xilinx_dma.txt index a2b8bfaec43c..aec4a41a03ae 100644 --- a/Documentation/devicetree/bindings/dma/xilinx/xilinx_dma.txt +++ b/Documentation/devicetree/bindings/dma/xilinx/xilinx_dma.txt @@ -41,6 +41,10 @@ Optional properties: - xlnx,include-sg: Tells configured for Scatter-mode in the hardware. Optional properties for AXI DMA: +- xlnx,sg-length-width: Should be set to the width in bits of the length + register as configured in h/w. Takes values {8...26}. If the property + is missing or invalid then the default value 23 is used. This is the + maximum value that is supported by all IP versions. - xlnx,mcdma: Tells whether configured for multi-channel mode in the hardware. Optional properties for VDMA: - xlnx,flush-fsync: Tells which channel to Flush on Frame sync.