From patchwork Tue Nov 20 15:31:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrea Merello X-Patchwork-Id: 10690519 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 82BDF5A4 for ; Tue, 20 Nov 2018 15:32:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 728442A9BC for ; Tue, 20 Nov 2018 15:32:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 670D02A9C1; Tue, 20 Nov 2018 15:32:39 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 F24B52A9BC for ; Tue, 20 Nov 2018 15:32:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725898AbeKUCCT (ORCPT ); Tue, 20 Nov 2018 21:02:19 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:33558 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726001AbeKUCBp (ORCPT ); Tue, 20 Nov 2018 21:01:45 -0500 Received: by mail-wm1-f66.google.com with SMTP id 79so5272299wmo.0; Tue, 20 Nov 2018 07:32:02 -0800 (PST) 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=SxxJgmbLU8DQm4q7pBzucwRse/NWd1WEcuZvJUw+NKI=; b=U6QOMPNJUyhfC/t+E0nqJFlqLMKQKzaoeT366uCCF1TyI92BG03x7DFM04vXwIE1Ji sCDCWvteWf3q7ZWdFbBqJ3e6bV50Fy0idU8XJ/KMZvo4CqAbszPFPwBxKB39W5i2vxfm H9ZcMvq2iLFseuYaNaxQiEf/HP988C7/VbUZV1lox/9vlE33Q6ymBCfIPY/55aSMh6Ke U+zAOlUhzAFXTS8k6eMCRVjd2yAh4HOHsQrBiLIoa/gtoutKFwit5aARaUTw4caMM0Vz w6eZ1qq65QKqUcOfzVPyK17o3XdEnGkAL1z+7g2i9sz2KMrl/ckhZroNeJitqUaoSMBm RLMQ== 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=SxxJgmbLU8DQm4q7pBzucwRse/NWd1WEcuZvJUw+NKI=; b=U69Qt54nBbvo//ACs8eykhpq5riRMGuQW/sef4FFUlAUy1AVQKrhG5Eiqf2nrRveXO vDAuG38gOv/U+UeC8qenZEiqL9ScwQPFlNUjGkziOYQDqOYNY261jEiKT6fnrjYBNiGw znpjWBcKpeK+FCBaahwvDf2WZsxN0lpMnM1GjS74Nlo0yaq3vPJKrT2YLWcpC1PV3jiv sZ+K8g89j8tMihXG0hGW1F7aqyJwTRtlpyFIJ7aCL9QqgMtI+8QWhJ+x+U6fVP1+nI6T ICGMRoUM0JpuHdUTwQxuHTEiJtzke3g/wGZud56bUOY6oNfzY4NK5bCHx39PcA+2ho/3 BkIQ== X-Gm-Message-State: AA+aEWYMb7f+6xP2raNjLCrxxuJwM8EiGkc9UbclCsytfAYJNuIzt9Tx l2B5svchlfHFhHdKOvIUszs= X-Google-Smtp-Source: AFSGD/UITQpPW0oxdnxd9LS+wO5wcZmacLQ4zsE094U9DFK8WoHB2t0iXybI3xpcq3qOsRotRqQ+2g== X-Received: by 2002:a1c:7209:: with SMTP id n9mr2485909wmc.5.1542727921993; Tue, 20 Nov 2018 07:32:01 -0800 (PST) Received: from NewMoon.iit.local ([90.147.180.254]) by smtp.gmail.com with ESMTPSA id k73sm14677464wmd.36.2018.11.20.07.32.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Nov 2018 07:32:00 -0800 (PST) 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: linux-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 v6 3/7] dt-bindings: dmaengine: xilinx_dma: add optional xlnx,sg-length-width property Date: Tue, 20 Nov 2018 16:31:47 +0100 Message-Id: <20181120153151.18024-3-andrea.merello@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181120153151.18024-1-andrea.merello@gmail.com> References: <20181120153151.18024-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 documentation 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 Changes in v5: - commit message trivial fix - fix spaces before tab Changes in v6: None --- 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 174af2c45e77..2fce9fb4b270 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.