[{"id":1775602,"web_url":"http://patchwork.ozlabs.org/comment/1775602/","msgid":"<bee2a524-0891-01e1-4e03-f6cf6a89e6b1@nvidia.com>","list_archive_url":null,"date":"2017-09-26T14:50:03","subject":"Re: [PATCH v1 3/5] dt-bindings: Add DT bindings for NVIDIA Tegra AHB\n\tDMA controller","submitter":{"id":66273,"url":"http://patchwork.ozlabs.org/api/people/66273/","name":"Jon Hunter","email":"jonathanh@nvidia.com"},"content":"On 26/09/17 00:22, Dmitry Osipenko wrote:\n> Document DT bindings for NVIDIA Tegra AHB DMA controller that presents\n> on Tegra20/30 SoC's.\n> \n> Signed-off-by: Dmitry Osipenko <digetx@gmail.com>\n> ---\n>  .../bindings/dma/nvidia,tegra20-ahbdma.txt         | 23 ++++++++++++++++++++++\n>  1 file changed, 23 insertions(+)\n>  create mode 100644 Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n> \n> diff --git a/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt b/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n> new file mode 100644\n> index 000000000000..2af9aa76ae11\n> --- /dev/null\n> +++ b/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n> @@ -0,0 +1,23 @@\n> +* NVIDIA Tegra AHB DMA controller\n> +\n> +Required properties:\n> +- compatible:\tMust be \"nvidia,tegra20-ahbdma\"\n> +- reg:\t\tShould contain registers base address and length.\n> +- interrupts:\tShould contain one entry, DMA controller interrupt.\n> +- clocks:\tShould contain one entry, DMA controller clock.\n> +- resets :\tShould contain one entry, DMA controller reset.\n> +- #dma-cells:\tShould be <1>. The cell represents DMA request select value\n> +\t\tfor the peripheral. For more details consult the Tegra TRM's\n> +\t\tdocumentation, in particular AHB DMA channel control register\n> +\t\tREQ_SEL field.\n\nWhat about the TRIG_SEL field? Do we need to handle this here as well?\n\nCheers\nJon","headers":{"Return-Path":"<devicetree-owner@vger.kernel.org>","X-Original-To":"incoming-dt@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-dt@bilbo.ozlabs.org","Authentication-Results":"ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=devicetree-owner@vger.kernel.org; receiver=<UNKNOWN>)","Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3y1kSX30KLz9t1G\n\tfor <incoming-dt@patchwork.ozlabs.org>;\n\tWed, 27 Sep 2017 00:52:12 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S969660AbdIZOwL (ORCPT <rfc822; incoming-dt@patchwork.ozlabs.org>);\n\tTue, 26 Sep 2017 10:52:11 -0400","from hqemgate16.nvidia.com ([216.228.121.65]:4319 \"EHLO\n\thqemgate16.nvidia.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S967571AbdIZOwJ (ORCPT\n\t<rfc822; devicetree@vger.kernel.org>); Tue, 26 Sep 2017 10:52:09 -0400","from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by\n\thqemgate16.nvidia.com\n\tid <B59ca69830001>; Tue, 26 Sep 2017 07:51:47 -0700","from HQMAIL101.nvidia.com ([172.20.161.6])\n\tby hqpgpgate101.nvidia.com (PGP Universal service);\n\tTue, 26 Sep 2017 07:51:49 -0700","from UKMAIL101.nvidia.com (10.26.138.13) by HQMAIL101.nvidia.com\n\t(172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1293.2;\n\tTue, 26 Sep 2017 14:50:09 +0000","from [10.21.132.144] (10.21.132.144) by UKMAIL101.nvidia.com\n\t(10.26.138.13) with Microsoft SMTP Server (TLS) id 15.0.1293.2;\n\tTue, 26 Sep 2017 14:50:06 +0000"],"X-PGP-Universal":"processed;\n\tby hqpgpgate101.nvidia.com on Tue, 26 Sep 2017 07:51:49 -0700","Subject":"Re: [PATCH v1 3/5] dt-bindings: Add DT bindings for NVIDIA Tegra AHB\n\tDMA controller","To":"Dmitry Osipenko <digetx@gmail.com>,\n\tThierry Reding <thierry.reding@gmail.com>,\n\tLaxman Dewangan <ldewangan@nvidia.com>,\n\t\"Peter De Schrijver\" <pdeschrijver@nvidia.com>,\n\tPrashant Gaikwad <pgaikwad@nvidia.com>,\n\tMichael Turquette <mturquette@baylibre.com>,\n\tStephen Boyd <sboyd@codeaurora.org>, Rob Herring <robh+dt@kernel.org>,\n\tVinod Koul <vinod.koul@intel.com>","CC":"<linux-tegra@vger.kernel.org>, <devicetree@vger.kernel.org>,\n\t<dmaengine@vger.kernel.org>, <linux-clk@vger.kernel.org>,\n\t<linux-kernel@vger.kernel.org>","References":"<cover.1506380746.git.digetx@gmail.com>\n\t<604d92036e0936443290e68a2226f935fb348113.1506380746.git.digetx@gmail.com>","From":"Jon Hunter <jonathanh@nvidia.com>","Message-ID":"<bee2a524-0891-01e1-4e03-f6cf6a89e6b1@nvidia.com>","Date":"Tue, 26 Sep 2017 15:50:03 +0100","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.3.0","MIME-Version":"1.0","In-Reply-To":"<604d92036e0936443290e68a2226f935fb348113.1506380746.git.digetx@gmail.com>","X-Originating-IP":"[10.21.132.144]","X-ClientProxiedBy":"UKMAIL102.nvidia.com (10.26.138.15) To\n\tUKMAIL101.nvidia.com (10.26.138.13)","Content-Type":"text/plain; charset=\"utf-8\"","Content-Language":"en-US","Content-Transfer-Encoding":"7bit","Sender":"devicetree-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<devicetree.vger.kernel.org>","X-Mailing-List":"devicetree@vger.kernel.org"}},{"id":1775627,"web_url":"http://patchwork.ozlabs.org/comment/1775627/","msgid":"<91112d33-2fd3-cb1c-a1db-5e5be9540d68@gmail.com>","list_archive_url":null,"date":"2017-09-26T15:16:50","subject":"Re: [PATCH v1 3/5] dt-bindings: Add DT bindings for NVIDIA Tegra AHB\n\tDMA controller","submitter":{"id":18124,"url":"http://patchwork.ozlabs.org/api/people/18124/","name":"Dmitry Osipenko","email":"digetx@gmail.com"},"content":"On 26.09.2017 17:50, Jon Hunter wrote:\n> \n> On 26/09/17 00:22, Dmitry Osipenko wrote:\n>> Document DT bindings for NVIDIA Tegra AHB DMA controller that presents\n>> on Tegra20/30 SoC's.\n>>\n>> Signed-off-by: Dmitry Osipenko <digetx@gmail.com>\n>> ---\n>>  .../bindings/dma/nvidia,tegra20-ahbdma.txt         | 23 ++++++++++++++++++++++\n>>  1 file changed, 23 insertions(+)\n>>  create mode 100644 Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>\n>> diff --git a/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt b/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>> new file mode 100644\n>> index 000000000000..2af9aa76ae11\n>> --- /dev/null\n>> +++ b/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>> @@ -0,0 +1,23 @@\n>> +* NVIDIA Tegra AHB DMA controller\n>> +\n>> +Required properties:\n>> +- compatible:\tMust be \"nvidia,tegra20-ahbdma\"\n>> +- reg:\t\tShould contain registers base address and length.\n>> +- interrupts:\tShould contain one entry, DMA controller interrupt.\n>> +- clocks:\tShould contain one entry, DMA controller clock.\n>> +- resets :\tShould contain one entry, DMA controller reset.\n>> +- #dma-cells:\tShould be <1>. The cell represents DMA request select value\n>> +\t\tfor the peripheral. For more details consult the Tegra TRM's\n>> +\t\tdocumentation, in particular AHB DMA channel control register\n>> +\t\tREQ_SEL field.\n> \n> What about the TRIG_SEL field? Do we need to handle this here as well?\n> \n\nI've followed APB DMA here, that HW also has TRIG_SEL but ignores it for some\nreason. I think technically it should be present in the binding, yeah.","headers":{"Return-Path":"<devicetree-owner@vger.kernel.org>","X-Original-To":"incoming-dt@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-dt@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=devicetree-owner@vger.kernel.org; receiver=<UNKNOWN>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"gahnFRxQ\"; dkim-atps=neutral"],"Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3y1l174qxjz9t3x\n\tfor <incoming-dt@patchwork.ozlabs.org>;\n\tWed, 27 Sep 2017 01:16:59 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S965161AbdIZPQ5 (ORCPT <rfc822; incoming-dt@patchwork.ozlabs.org>);\n\tTue, 26 Sep 2017 11:16:57 -0400","from mail-lf0-f67.google.com ([209.85.215.67]:36724 \"EHLO\n\tmail-lf0-f67.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S935062AbdIZPQz (ORCPT\n\t<rfc822; devicetree@vger.kernel.org>); Tue, 26 Sep 2017 11:16:55 -0400","by mail-lf0-f67.google.com with SMTP id l196so2869838lfl.3;\n\tTue, 26 Sep 2017 08:16:54 -0700 (PDT)","from [192.168.1.145] (ppp109-252-90-109.pppoe.spdop.ru.\n\t[109.252.90.109]) by smtp.googlemail.com with ESMTPSA id\n\t18sm1929258ljd.38.2017.09.26.08.16.50\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tTue, 26 Sep 2017 08:16:51 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=subject:to:cc:references:from:message-id:date:user-agent\n\t:mime-version:in-reply-to:content-language:content-transfer-encoding; \n\tbh=rAOpPpjPKEALay42WkMpXpcFeuTM3NRN/Uo0TjwT4rY=;\n\tb=gahnFRxQLxcH2N4RYk+Ea70pKor9xeHT4jrnNhuJdx0P8ytHnghYKGZd15sMNWKHzw\n\t+Dc83e5s8KBLegZdpPZW7F/qI5xT1vHfpYHK9tKzrtmQcaFhTJ4619KHTABBpSc+1BIg\n\t7p5uBG4MTH+BT+m7Eyp2DLl4Cd8c32TTZ3G9v/YxjzgatbAIlHFhxyc0O0lzLQFg9Jvh\n\tKEfzHs8csXdyuoFX6YgBKumZSrvar/IjxrV1FYOZglhJMnERdpeFE2UUk9n7PU3xpL0Z\n\tH4eb7u2xqxtmhgcLK2FbBlda7XniyKlOmOXIzsuAu3Tn1W5cx5lCwnfX2Z3h3QVGIHES\n\twwBA==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:subject:to:cc:references:from:message-id:date\n\t:user-agent:mime-version:in-reply-to:content-language\n\t:content-transfer-encoding;\n\tbh=rAOpPpjPKEALay42WkMpXpcFeuTM3NRN/Uo0TjwT4rY=;\n\tb=E+JyS7Q3uvw0rOmkIUOD/xj+MOVN0Cee42pNrTqA1TykxvaSSRcgItl4OW9qL+/XLY\n\t8PXLn6sepXOFJMAPLEaLTS6S8AT0OLifXP1L2d1bbW+80mxG4czAcomy7p4YEmEOMQDF\n\tMCsuOk9rxM1oJlnP1B0EUguyGX2UAgOZ2fHSBx6Ye/5d4qO3br+cLJ5DC/crBjLP0etF\n\tTqFU+NpyRIRgskbWwCTQRf8BWE15pR1Wu4tp4yuU8tncFCbAkyMLAAOJOUth9CL+53Rm\n\tBwPhmxEVYXLeCufQe8Ld1dF5kAqBWIm0i93vjKk3UGTL0sqJIYYH31PSA3pldk8Dv2d2\n\tmUuw==","X-Gm-Message-State":"AHPjjUjufgUpPrxbeX9mCnbt145v75dAQtMTi/2bNjRrWkhOlK9xVW0z\n\tzphbSVD4GeURBpSnY9/7gbVYj0KR","X-Google-Smtp-Source":"AOwi7QC4AnLw8kMvS7S942G2ImGTVfaXcDzhL4zGh9MTaEqLH0r6F+SuyrJfEoVY1cUQICbqmWASFw==","X-Received":"by 10.46.82.202 with SMTP id n71mr4258112lje.112.1506439012949; \n\tTue, 26 Sep 2017 08:16:52 -0700 (PDT)","Subject":"Re: [PATCH v1 3/5] dt-bindings: Add DT bindings for NVIDIA Tegra AHB\n\tDMA controller","To":"Jon Hunter <jonathanh@nvidia.com>,\n\tThierry Reding <thierry.reding@gmail.com>,\n\tLaxman Dewangan <ldewangan@nvidia.com>,\n\tPeter De Schrijver <pdeschrijver@nvidia.com>,\n\tPrashant Gaikwad <pgaikwad@nvidia.com>,\n\tMichael Turquette <mturquette@baylibre.com>,\n\tStephen Boyd <sboyd@codeaurora.org>, Rob Herring <robh+dt@kernel.org>,\n\tVinod Koul <vinod.koul@intel.com>","Cc":"linux-tegra@vger.kernel.org, devicetree@vger.kernel.org,\n\tdmaengine@vger.kernel.org, linux-clk@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org","References":"<cover.1506380746.git.digetx@gmail.com>\n\t<604d92036e0936443290e68a2226f935fb348113.1506380746.git.digetx@gmail.com>\n\t<bee2a524-0891-01e1-4e03-f6cf6a89e6b1@nvidia.com>","From":"Dmitry Osipenko <digetx@gmail.com>","Message-ID":"<91112d33-2fd3-cb1c-a1db-5e5be9540d68@gmail.com>","Date":"Tue, 26 Sep 2017 18:16:50 +0300","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.3.0","MIME-Version":"1.0","In-Reply-To":"<bee2a524-0891-01e1-4e03-f6cf6a89e6b1@nvidia.com>","Content-Type":"text/plain; charset=utf-8","Content-Language":"en-US","Content-Transfer-Encoding":"7bit","Sender":"devicetree-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<devicetree.vger.kernel.org>","X-Mailing-List":"devicetree@vger.kernel.org"}},{"id":1775986,"web_url":"http://patchwork.ozlabs.org/comment/1775986/","msgid":"<96bfdacb-3d2d-66b6-70f7-a87664b1afc7@gmail.com>","list_archive_url":null,"date":"2017-09-27T01:57:06","subject":"Re: [PATCH v1 3/5] dt-bindings: Add DT bindings for NVIDIA Tegra AHB\n\tDMA controller","submitter":{"id":18124,"url":"http://patchwork.ozlabs.org/api/people/18124/","name":"Dmitry Osipenko","email":"digetx@gmail.com"},"content":"On 26.09.2017 17:50, Jon Hunter wrote:\n> \n> On 26/09/17 00:22, Dmitry Osipenko wrote:\n>> Document DT bindings for NVIDIA Tegra AHB DMA controller that presents\n>> on Tegra20/30 SoC's.\n>>\n>> Signed-off-by: Dmitry Osipenko <digetx@gmail.com>\n>> ---\n>>  .../bindings/dma/nvidia,tegra20-ahbdma.txt         | 23 ++++++++++++++++++++++\n>>  1 file changed, 23 insertions(+)\n>>  create mode 100644 Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>\n>> diff --git a/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt b/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>> new file mode 100644\n>> index 000000000000..2af9aa76ae11\n>> --- /dev/null\n>> +++ b/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>> @@ -0,0 +1,23 @@\n>> +* NVIDIA Tegra AHB DMA controller\n>> +\n>> +Required properties:\n>> +- compatible:\tMust be \"nvidia,tegra20-ahbdma\"\n>> +- reg:\t\tShould contain registers base address and length.\n>> +- interrupts:\tShould contain one entry, DMA controller interrupt.\n>> +- clocks:\tShould contain one entry, DMA controller clock.\n>> +- resets :\tShould contain one entry, DMA controller reset.\n>> +- #dma-cells:\tShould be <1>. The cell represents DMA request select value\n>> +\t\tfor the peripheral. For more details consult the Tegra TRM's\n>> +\t\tdocumentation, in particular AHB DMA channel control register\n>> +\t\tREQ_SEL field.\n> \n> What about the TRIG_SEL field? Do we need to handle this here as well?\n> \n\nActually, DMA transfer trigger isn't related a hardware description. It's up to\nsoftware to decide what trigger to select. So it shouldn't be in the binding.\n\nAnd I think the same applies to requester... any objections?","headers":{"Return-Path":"<devicetree-owner@vger.kernel.org>","X-Original-To":"incoming-dt@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-dt@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=devicetree-owner@vger.kernel.org; receiver=<UNKNOWN>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"tSmtvghD\"; dkim-atps=neutral"],"Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3y21DH4XDdz9t3x\n\tfor <incoming-dt@patchwork.ozlabs.org>;\n\tWed, 27 Sep 2017 11:57:35 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1033291AbdI0B5c (ORCPT\n\t<rfc822;incoming-dt@patchwork.ozlabs.org>);\n\tTue, 26 Sep 2017 21:57:32 -0400","from mail-lf0-f66.google.com ([209.85.215.66]:34357 \"EHLO\n\tmail-lf0-f66.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1033069AbdI0B5K (ORCPT\n\t<rfc822; devicetree@vger.kernel.org>); Tue, 26 Sep 2017 21:57:10 -0400","by mail-lf0-f66.google.com with SMTP id h80so3561040lfe.1;\n\tTue, 26 Sep 2017 18:57:09 -0700 (PDT)","from [192.168.1.145] (ppp109-252-90-109.pppoe.spdop.ru.\n\t[109.252.90.109]) by smtp.googlemail.com with ESMTPSA id\n\tf1sm2120153ljf.62.2017.09.26.18.57.07\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tTue, 26 Sep 2017 18:57:07 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=subject:to:cc:references:from:message-id:date:user-agent\n\t:mime-version:in-reply-to:content-language:content-transfer-encoding; \n\tbh=+fWiKT6Oky20EGjjyYembPhknVkNwPcScUm8wwCYPVI=;\n\tb=tSmtvghDyf816iztaH6VnmvUSp72Hd9r4CRDF9ejuTy75LjH2Q76FQPKhVGb7qab38\n\trxyZz49xDaq2pK285FRy8WH9sQFgJA/4ToocAx9ktdgVbaM4DW2dd6peEXV9rUy91p+X\n\tc9wfHn4r5w7y1bSX/Lmk/Y2FkFEHAzfJf8+oqAWwRaJsK0CH313k68saoFah1vyZebs7\n\t1hVXFYSzsIWjCcP52HoQHfwreK6LFxCiqXl1bLcVTyefOGT1Nq4zZqqsRwQQ2NBBS+Qf\n\tsu0LIjmL44V6zR1gzrNoo2IkCZrKECXBsznxMfUOEjKbXDMZ6lGCpEBcG/BkWU4hbUUv\n\tfNsg==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:subject:to:cc:references:from:message-id:date\n\t:user-agent:mime-version:in-reply-to:content-language\n\t:content-transfer-encoding;\n\tbh=+fWiKT6Oky20EGjjyYembPhknVkNwPcScUm8wwCYPVI=;\n\tb=TVBX6Wzx5WA0gxTHviFffHXae7ALFum31d8XOtyGRIY8KqjTE/lWHUBayUknLVViUZ\n\teMx4Y01GAQzqsgJqOZvVETfcDTTZpti0HRTbZLHbtwyTOAtUBsBYZkCfVVao0MTdCEvp\n\tWK0QGp8dLDSPtRfcAlS87qE+69ULtV7FSDL701w96KAGaXNosntUtFxzRms6/neBXslj\n\tqRf45algT+Iis8aF7E6FViDh0S8vZIbDBDWyyVVC56krY/p0bET7SwwohIhpb5gMz+qP\n\tQZKwCycVBmDisnDz4Za2rcTIE74sYz9zTyte0LULhVoG9c8a5MZhexFDvLL53AUG7wJm\n\tdEnA==","X-Gm-Message-State":"AHPjjUhEhr+GOcb4d6Z3efwGd7JE/EWUTh5ArJ4n++V6hWVmtsPEYbw3\n\t7rsha8KSjmZpHw/n4Hb7XumDLYC8","X-Google-Smtp-Source":"AOwi7QAjSys+KvZ4dNwumTuCL6oc8jsgyNB+Lwaoc7p4i/OobDTt9bs3HtpqYVE7aIOf29nD9wD5qg==","X-Received":"by 10.46.43.76 with SMTP id q73mr4831887lje.25.1506477428558;\n\tTue, 26 Sep 2017 18:57:08 -0700 (PDT)","Subject":"Re: [PATCH v1 3/5] dt-bindings: Add DT bindings for NVIDIA Tegra AHB\n\tDMA controller","To":"Jon Hunter <jonathanh@nvidia.com>,\n\tThierry Reding <thierry.reding@gmail.com>,\n\tLaxman Dewangan <ldewangan@nvidia.com>,\n\tPeter De Schrijver <pdeschrijver@nvidia.com>,\n\tPrashant Gaikwad <pgaikwad@nvidia.com>,\n\tMichael Turquette <mturquette@baylibre.com>,\n\tStephen Boyd <sboyd@codeaurora.org>, Rob Herring <robh+dt@kernel.org>,\n\tVinod Koul <vinod.koul@intel.com>","Cc":"linux-tegra@vger.kernel.org, devicetree@vger.kernel.org,\n\tdmaengine@vger.kernel.org, linux-clk@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org","References":"<cover.1506380746.git.digetx@gmail.com>\n\t<604d92036e0936443290e68a2226f935fb348113.1506380746.git.digetx@gmail.com>\n\t<bee2a524-0891-01e1-4e03-f6cf6a89e6b1@nvidia.com>","From":"Dmitry Osipenko <digetx@gmail.com>","Message-ID":"<96bfdacb-3d2d-66b6-70f7-a87664b1afc7@gmail.com>","Date":"Wed, 27 Sep 2017 04:57:06 +0300","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.3.0","MIME-Version":"1.0","In-Reply-To":"<bee2a524-0891-01e1-4e03-f6cf6a89e6b1@nvidia.com>","Content-Type":"text/plain; charset=utf-8","Content-Language":"en-US","Content-Transfer-Encoding":"7bit","Sender":"devicetree-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<devicetree.vger.kernel.org>","X-Mailing-List":"devicetree@vger.kernel.org"}},{"id":1776124,"web_url":"http://patchwork.ozlabs.org/comment/1776124/","msgid":"<0fd316e9-3584-e9bd-2a8b-e73eaa6a9a48@nvidia.com>","list_archive_url":null,"date":"2017-09-27T08:34:37","subject":"Re: [PATCH v1 3/5] dt-bindings: Add DT bindings for NVIDIA Tegra AHB\n\tDMA controller","submitter":{"id":66273,"url":"http://patchwork.ozlabs.org/api/people/66273/","name":"Jon Hunter","email":"jonathanh@nvidia.com"},"content":"On 27/09/17 02:57, Dmitry Osipenko wrote:\n> On 26.09.2017 17:50, Jon Hunter wrote:\n>>\n>> On 26/09/17 00:22, Dmitry Osipenko wrote:\n>>> Document DT bindings for NVIDIA Tegra AHB DMA controller that presents\n>>> on Tegra20/30 SoC's.\n>>>\n>>> Signed-off-by: Dmitry Osipenko <digetx@gmail.com>\n>>> ---\n>>>  .../bindings/dma/nvidia,tegra20-ahbdma.txt         | 23 ++++++++++++++++++++++\n>>>  1 file changed, 23 insertions(+)\n>>>  create mode 100644 Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>\n>>> diff --git a/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt b/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>> new file mode 100644\n>>> index 000000000000..2af9aa76ae11\n>>> --- /dev/null\n>>> +++ b/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>> @@ -0,0 +1,23 @@\n>>> +* NVIDIA Tegra AHB DMA controller\n>>> +\n>>> +Required properties:\n>>> +- compatible:\tMust be \"nvidia,tegra20-ahbdma\"\n>>> +- reg:\t\tShould contain registers base address and length.\n>>> +- interrupts:\tShould contain one entry, DMA controller interrupt.\n>>> +- clocks:\tShould contain one entry, DMA controller clock.\n>>> +- resets :\tShould contain one entry, DMA controller reset.\n>>> +- #dma-cells:\tShould be <1>. The cell represents DMA request select value\n>>> +\t\tfor the peripheral. For more details consult the Tegra TRM's\n>>> +\t\tdocumentation, in particular AHB DMA channel control register\n>>> +\t\tREQ_SEL field.\n>>\n>> What about the TRIG_SEL field? Do we need to handle this here as well?\n>>\n> \n> Actually, DMA transfer trigger isn't related a hardware description. It's up to\n> software to decide what trigger to select. So it shouldn't be in the binding.\n\nI think it could be, if say a board wanted a GPIO to trigger a transfer.\n\n> And I think the same applies to requester... any objections?\n\nWell, the REQ_SEL should definitely be in the binding.\n\nLaxman, Stephen, what are your thoughts on the TRIG_SEL field? Looks\nlike we never bothered with it for the APB DMA and so maybe no ones uses\nthis.\n\nCheers\nJon","headers":{"Return-Path":"<devicetree-owner@vger.kernel.org>","X-Original-To":"incoming-dt@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-dt@bilbo.ozlabs.org","Authentication-Results":"ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=devicetree-owner@vger.kernel.org; receiver=<UNKNOWN>)","Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3y2B3k6zlpz9t3x\n\tfor <incoming-dt@patchwork.ozlabs.org>;\n\tWed, 27 Sep 2017 18:35:46 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752319AbdI0Ifo (ORCPT\n\t<rfc822;incoming-dt@patchwork.ozlabs.org>);\n\tWed, 27 Sep 2017 04:35:44 -0400","from hqemgate14.nvidia.com ([216.228.121.143]:13252 \"EHLO\n\thqemgate14.nvidia.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1752306AbdI0Ifm (ORCPT\n\t<rfc822; devicetree@vger.kernel.org>); Wed, 27 Sep 2017 04:35:42 -0400","from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by\n\thqemgate14.nvidia.com\n\tid <B59cb62cd0001>; Wed, 27 Sep 2017 01:35:25 -0700","from HQMAIL104.nvidia.com ([172.20.161.6])\n\tby hqpgpgate102.nvidia.com (PGP Universal service);\n\tWed, 27 Sep 2017 01:35:30 -0700","from UKMAIL101.nvidia.com (10.26.138.13) by HQMAIL104.nvidia.com\n\t(172.18.146.11) with Microsoft SMTP Server (TLS) id 15.0.1293.2;\n\tWed, 27 Sep 2017 08:34:41 +0000","from [10.21.132.144] (10.21.132.144) by UKMAIL101.nvidia.com\n\t(10.26.138.13) with Microsoft SMTP Server (TLS) id 15.0.1293.2;\n\tWed, 27 Sep 2017 08:34:37 +0000"],"X-PGP-Universal":"processed;\n\tby hqpgpgate102.nvidia.com on Wed, 27 Sep 2017 01:35:30 -0700","Subject":"Re: [PATCH v1 3/5] dt-bindings: Add DT bindings for NVIDIA Tegra AHB\n\tDMA controller","To":"Dmitry Osipenko <digetx@gmail.com>,\n\tThierry Reding <thierry.reding@gmail.com>,\n\tLaxman Dewangan <ldewangan@nvidia.com>,\n\t\"Peter De Schrijver\" <pdeschrijver@nvidia.com>,\n\tPrashant Gaikwad <pgaikwad@nvidia.com>,\n\tMichael Turquette <mturquette@baylibre.com>,\n\tStephen Boyd <sboyd@codeaurora.org>, Rob Herring <robh+dt@kernel.org>,\n\tVinod Koul <vinod.koul@intel.com>","CC":"<linux-tegra@vger.kernel.org>, <devicetree@vger.kernel.org>,\n\t<dmaengine@vger.kernel.org>, <linux-clk@vger.kernel.org>,\n\t<linux-kernel@vger.kernel.org>","References":"<cover.1506380746.git.digetx@gmail.com>\n\t<604d92036e0936443290e68a2226f935fb348113.1506380746.git.digetx@gmail.com>\n\t<bee2a524-0891-01e1-4e03-f6cf6a89e6b1@nvidia.com>\n\t<96bfdacb-3d2d-66b6-70f7-a87664b1afc7@gmail.com>","From":"Jon Hunter <jonathanh@nvidia.com>","Message-ID":"<0fd316e9-3584-e9bd-2a8b-e73eaa6a9a48@nvidia.com>","Date":"Wed, 27 Sep 2017 09:34:37 +0100","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.3.0","MIME-Version":"1.0","In-Reply-To":"<96bfdacb-3d2d-66b6-70f7-a87664b1afc7@gmail.com>","X-Originating-IP":"[10.21.132.144]","X-ClientProxiedBy":"UKMAIL102.nvidia.com (10.26.138.15) To\n\tUKMAIL101.nvidia.com (10.26.138.13)","Content-Type":"text/plain; charset=\"utf-8\"","Content-Language":"en-US","Content-Transfer-Encoding":"7bit","Sender":"devicetree-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<devicetree.vger.kernel.org>","X-Mailing-List":"devicetree@vger.kernel.org"}},{"id":1776292,"web_url":"http://patchwork.ozlabs.org/comment/1776292/","msgid":"<69ea8dec-db7a-fcfa-6fa7-ea70de4c9ef4@gmail.com>","list_archive_url":null,"date":"2017-09-27T12:12:50","subject":"Re: [PATCH v1 3/5] dt-bindings: Add DT bindings for NVIDIA Tegra AHB\n\tDMA controller","submitter":{"id":18124,"url":"http://patchwork.ozlabs.org/api/people/18124/","name":"Dmitry Osipenko","email":"digetx@gmail.com"},"content":"On 27.09.2017 11:34, Jon Hunter wrote:\n> \n> On 27/09/17 02:57, Dmitry Osipenko wrote:\n>> On 26.09.2017 17:50, Jon Hunter wrote:\n>>>\n>>> On 26/09/17 00:22, Dmitry Osipenko wrote:\n>>>> Document DT bindings for NVIDIA Tegra AHB DMA controller that presents\n>>>> on Tegra20/30 SoC's.\n>>>>\n>>>> Signed-off-by: Dmitry Osipenko <digetx@gmail.com>\n>>>> ---\n>>>>  .../bindings/dma/nvidia,tegra20-ahbdma.txt         | 23 ++++++++++++++++++++++\n>>>>  1 file changed, 23 insertions(+)\n>>>>  create mode 100644 Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>>\n>>>> diff --git a/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt b/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>> new file mode 100644\n>>>> index 000000000000..2af9aa76ae11\n>>>> --- /dev/null\n>>>> +++ b/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>> @@ -0,0 +1,23 @@\n>>>> +* NVIDIA Tegra AHB DMA controller\n>>>> +\n>>>> +Required properties:\n>>>> +- compatible:\tMust be \"nvidia,tegra20-ahbdma\"\n>>>> +- reg:\t\tShould contain registers base address and length.\n>>>> +- interrupts:\tShould contain one entry, DMA controller interrupt.\n>>>> +- clocks:\tShould contain one entry, DMA controller clock.\n>>>> +- resets :\tShould contain one entry, DMA controller reset.\n>>>> +- #dma-cells:\tShould be <1>. The cell represents DMA request select value\n>>>> +\t\tfor the peripheral. For more details consult the Tegra TRM's\n>>>> +\t\tdocumentation, in particular AHB DMA channel control register\n>>>> +\t\tREQ_SEL field.\n>>>\n>>> What about the TRIG_SEL field? Do we need to handle this here as well?\n>>>\n>>\n>> Actually, DMA transfer trigger isn't related a hardware description. It's up to\n>> software to decide what trigger to select. So it shouldn't be in the binding.\n> \n> I think it could be, if say a board wanted a GPIO to trigger a transfer.\n> \n\nGPIO isn't a very good example, there is no \"GPIO\" trigger. To me all triggers\nare software-defined, so that software could create transfer chains.\n\n>> And I think the same applies to requester... any objections?\n> \n> Well, the REQ_SEL should definitely be in the binding.\n> \n\nOkay.\n\n> Laxman, Stephen, what are your thoughts on the TRIG_SEL field? Looks\n> like we never bothered with it for the APB DMA and so maybe no ones uses\n> this.\n>","headers":{"Return-Path":"<devicetree-owner@vger.kernel.org>","X-Original-To":"incoming-dt@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-dt@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=devicetree-owner@vger.kernel.org; receiver=<UNKNOWN>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"adz7LuZN\"; dkim-atps=neutral"],"Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3y2GtM3Jg0z9tXf\n\tfor <incoming-dt@patchwork.ozlabs.org>;\n\tWed, 27 Sep 2017 22:12:59 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752667AbdI0MM5 (ORCPT\n\t<rfc822;incoming-dt@patchwork.ozlabs.org>);\n\tWed, 27 Sep 2017 08:12:57 -0400","from mail-wr0-f195.google.com ([209.85.128.195]:37592 \"EHLO\n\tmail-wr0-f195.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1752546AbdI0MMz (ORCPT\n\t<rfc822; devicetree@vger.kernel.org>); Wed, 27 Sep 2017 08:12:55 -0400","by mail-wr0-f195.google.com with SMTP id u48so4539480wrf.4;\n\tWed, 27 Sep 2017 05:12:53 -0700 (PDT)","from [192.168.1.145] (ppp109-252-90-109.pppoe.spdop.ru.\n\t[109.252.90.109]) by smtp.googlemail.com with ESMTPSA id\n\ti88sm34523lfh.62.2017.09.27.05.12.51\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tWed, 27 Sep 2017 05:12:52 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=subject:to:cc:references:from:message-id:date:user-agent\n\t:mime-version:in-reply-to:content-language:content-transfer-encoding; \n\tbh=jthKPI/oMfHSiECdnwBe12PdXCjRirVmAWwTfHHYhu0=;\n\tb=adz7LuZNKTwu16S/AnhidTTSTiLTZEz15eY1jgtYegUAo39lQqIApj2lQlQm25Dq8w\n\tfcsdnaw5a6yPRPo+1GM9j+2JrwsFORLf7QVwooOPF75BBv4IMeThoAJ2fp0pDWlba93p\n\tABJqg6uvDMqwKQRPtfzXBHejltPJzrSX+h0CE2+gAgfKR+ZrAZHLnWhvDbFRkR0QEi+A\n\tw9iFdJgdd6OnHlcHe+VvURcTDsdGdGxlT8oWzYFGSb82xUEDViGn2uEZHpDvloxK0LE1\n\tEoamrrHg29AHHyp6OPifpQWh+GepjsHHgFyLtJw11rjT36LtgeSenIfLNfuBMgIpd1Rr\n\tVVnQ==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:subject:to:cc:references:from:message-id:date\n\t:user-agent:mime-version:in-reply-to:content-language\n\t:content-transfer-encoding;\n\tbh=jthKPI/oMfHSiECdnwBe12PdXCjRirVmAWwTfHHYhu0=;\n\tb=EB6kSfw1KKzcCkkIxRjR5aE4eis4ytBIylE8RrOk8UecYjVO1jGxmAx71fHzeD8h8b\n\teOh/WpLxGEfTHQaD2xeiTTk3wII2mmS0UzN98I7055UTNvooDu6CdkeurYBPTfVXo3by\n\tHtRykkraVtCEJFog5uhvc+1X0fEzstX6JEwETKboYzMZflsF9CtrdxAm0XpMGnqZ6YLY\n\t7QZJ2XGv2Jibhm3V3ANSfna2rUFbJ6cDaXQ4l1PNuwESg6Cy9mERhdajUOgZ+Z4wB+Mh\n\t48UefvGcJgXNVyvc5wb9V9LZqovUUfcj2igte7miAyQB1d1X8h2j090sVzFL9/j8cejI\n\tQn1g==","X-Gm-Message-State":"AHPjjUgBvW1zf5DpkDamzXjuUC+3Mm8dBPmFKM4FJoG3ll6rlxc+0vfk\n\thFV9dSx6Ud6YnN5XK4hirwKMdVtd","X-Google-Smtp-Source":"AOwi7QAKfKfPOdZozSGny6rbQdF6DAodXhnsEl3hbmzfdbAX5Y+3bb/T2t4UYBX7eadivDIdYr2QIg==","X-Received":"by 10.46.77.157 with SMTP id c29mr585979ljd.14.1506514372749;\n\tWed, 27 Sep 2017 05:12:52 -0700 (PDT)","Subject":"Re: [PATCH v1 3/5] dt-bindings: Add DT bindings for NVIDIA Tegra AHB\n\tDMA controller","To":"Jon Hunter <jonathanh@nvidia.com>,\n\tThierry Reding <thierry.reding@gmail.com>,\n\tLaxman Dewangan <ldewangan@nvidia.com>,\n\tPeter De Schrijver <pdeschrijver@nvidia.com>,\n\tPrashant Gaikwad <pgaikwad@nvidia.com>,\n\tMichael Turquette <mturquette@baylibre.com>,\n\tStephen Boyd <sboyd@codeaurora.org>, Rob Herring <robh+dt@kernel.org>,\n\tVinod Koul <vinod.koul@intel.com>","Cc":"linux-tegra@vger.kernel.org, devicetree@vger.kernel.org,\n\tdmaengine@vger.kernel.org, linux-clk@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org","References":"<cover.1506380746.git.digetx@gmail.com>\n\t<604d92036e0936443290e68a2226f935fb348113.1506380746.git.digetx@gmail.com>\n\t<bee2a524-0891-01e1-4e03-f6cf6a89e6b1@nvidia.com>\n\t<96bfdacb-3d2d-66b6-70f7-a87664b1afc7@gmail.com>\n\t<0fd316e9-3584-e9bd-2a8b-e73eaa6a9a48@nvidia.com>","From":"Dmitry Osipenko <digetx@gmail.com>","Message-ID":"<69ea8dec-db7a-fcfa-6fa7-ea70de4c9ef4@gmail.com>","Date":"Wed, 27 Sep 2017 15:12:50 +0300","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.3.0","MIME-Version":"1.0","In-Reply-To":"<0fd316e9-3584-e9bd-2a8b-e73eaa6a9a48@nvidia.com>","Content-Type":"text/plain; charset=utf-8","Content-Language":"en-US","Content-Transfer-Encoding":"7bit","Sender":"devicetree-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<devicetree.vger.kernel.org>","X-Mailing-List":"devicetree@vger.kernel.org"}},{"id":1776361,"web_url":"http://patchwork.ozlabs.org/comment/1776361/","msgid":"<96f28cc6-7cbf-308f-bc87-d96d3e7fe045@nvidia.com>","list_archive_url":null,"date":"2017-09-27T13:44:38","subject":"Re: [PATCH v1 3/5] dt-bindings: Add DT bindings for NVIDIA Tegra AHB\n\tDMA controller","submitter":{"id":66273,"url":"http://patchwork.ozlabs.org/api/people/66273/","name":"Jon Hunter","email":"jonathanh@nvidia.com"},"content":"On 27/09/17 13:12, Dmitry Osipenko wrote:\n> On 27.09.2017 11:34, Jon Hunter wrote:\n>>\n>> On 27/09/17 02:57, Dmitry Osipenko wrote:\n>>> On 26.09.2017 17:50, Jon Hunter wrote:\n>>>>\n>>>> On 26/09/17 00:22, Dmitry Osipenko wrote:\n>>>>> Document DT bindings for NVIDIA Tegra AHB DMA controller that presents\n>>>>> on Tegra20/30 SoC's.\n>>>>>\n>>>>> Signed-off-by: Dmitry Osipenko <digetx@gmail.com>\n>>>>> ---\n>>>>>  .../bindings/dma/nvidia,tegra20-ahbdma.txt         | 23 ++++++++++++++++++++++\n>>>>>  1 file changed, 23 insertions(+)\n>>>>>  create mode 100644 Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>>>\n>>>>> diff --git a/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt b/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>>> new file mode 100644\n>>>>> index 000000000000..2af9aa76ae11\n>>>>> --- /dev/null\n>>>>> +++ b/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>>> @@ -0,0 +1,23 @@\n>>>>> +* NVIDIA Tegra AHB DMA controller\n>>>>> +\n>>>>> +Required properties:\n>>>>> +- compatible:\tMust be \"nvidia,tegra20-ahbdma\"\n>>>>> +- reg:\t\tShould contain registers base address and length.\n>>>>> +- interrupts:\tShould contain one entry, DMA controller interrupt.\n>>>>> +- clocks:\tShould contain one entry, DMA controller clock.\n>>>>> +- resets :\tShould contain one entry, DMA controller reset.\n>>>>> +- #dma-cells:\tShould be <1>. The cell represents DMA request select value\n>>>>> +\t\tfor the peripheral. For more details consult the Tegra TRM's\n>>>>> +\t\tdocumentation, in particular AHB DMA channel control register\n>>>>> +\t\tREQ_SEL field.\n>>>>\n>>>> What about the TRIG_SEL field? Do we need to handle this here as well?\n>>>>\n>>>\n>>> Actually, DMA transfer trigger isn't related a hardware description. It's up to\n>>> software to decide what trigger to select. So it shouldn't be in the binding.\n>>\n>> I think it could be, if say a board wanted a GPIO to trigger a transfer.\n>>\n> \n> GPIO isn't a very good example, there is no \"GPIO\" trigger. To me all triggers\n> are software-defined, so that software could create transfer chains.\n\nTRM shows the following in the APBDMA_TRIG_REG_0 ...\n\n\"XRQ_A: XRQ.A (GPIOA) (Hardware initiated DMA request)\"\n\nJon","headers":{"Return-Path":"<devicetree-owner@vger.kernel.org>","X-Original-To":"incoming-dt@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-dt@bilbo.ozlabs.org","Authentication-Results":"ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=devicetree-owner@vger.kernel.org; receiver=<UNKNOWN>)","Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3y2Jx96zQPz9sRm\n\tfor <incoming-dt@patchwork.ozlabs.org>;\n\tWed, 27 Sep 2017 23:45:33 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1753037AbdI0NpV (ORCPT\n\t<rfc822;incoming-dt@patchwork.ozlabs.org>);\n\tWed, 27 Sep 2017 09:45:21 -0400","from hqemgate14.nvidia.com ([216.228.121.143]:18125 \"EHLO\n\thqemgate14.nvidia.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1752406AbdI0NpT (ORCPT\n\t<rfc822; devicetree@vger.kernel.org>); Wed, 27 Sep 2017 09:45:19 -0400","from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by\n\thqemgate14.nvidia.com\n\tid <B59cbab540005>; Wed, 27 Sep 2017 06:44:52 -0700","from HQMAIL104.nvidia.com ([172.20.161.6])\n\tby hqpgpgate102.nvidia.com (PGP Universal service);\n\tWed, 27 Sep 2017 06:44:57 -0700","from UKMAIL101.nvidia.com (10.26.138.13) by HQMAIL104.nvidia.com\n\t(172.18.146.11) with Microsoft SMTP Server (TLS) id 15.0.1293.2;\n\tWed, 27 Sep 2017 13:44:43 +0000","from [10.21.132.144] (10.21.132.144) by UKMAIL101.nvidia.com\n\t(10.26.138.13) with Microsoft SMTP Server (TLS) id 15.0.1293.2;\n\tWed, 27 Sep 2017 13:44:40 +0000"],"X-PGP-Universal":"processed;\n\tby hqpgpgate102.nvidia.com on Wed, 27 Sep 2017 06:44:57 -0700","Subject":"Re: [PATCH v1 3/5] dt-bindings: Add DT bindings for NVIDIA Tegra AHB\n\tDMA controller","To":"Dmitry Osipenko <digetx@gmail.com>,\n\tThierry Reding <thierry.reding@gmail.com>,\n\tLaxman Dewangan <ldewangan@nvidia.com>,\n\t\"Peter De Schrijver\" <pdeschrijver@nvidia.com>,\n\tPrashant Gaikwad <pgaikwad@nvidia.com>,\n\tMichael Turquette <mturquette@baylibre.com>,\n\tStephen Boyd <sboyd@codeaurora.org>, Rob Herring <robh+dt@kernel.org>,\n\tVinod Koul <vinod.koul@intel.com>","CC":"<linux-tegra@vger.kernel.org>, <devicetree@vger.kernel.org>,\n\t<dmaengine@vger.kernel.org>, <linux-clk@vger.kernel.org>,\n\t<linux-kernel@vger.kernel.org>","References":"<cover.1506380746.git.digetx@gmail.com>\n\t<604d92036e0936443290e68a2226f935fb348113.1506380746.git.digetx@gmail.com>\n\t<bee2a524-0891-01e1-4e03-f6cf6a89e6b1@nvidia.com>\n\t<96bfdacb-3d2d-66b6-70f7-a87664b1afc7@gmail.com>\n\t<0fd316e9-3584-e9bd-2a8b-e73eaa6a9a48@nvidia.com>\n\t<69ea8dec-db7a-fcfa-6fa7-ea70de4c9ef4@gmail.com>","From":"Jon Hunter <jonathanh@nvidia.com>","Message-ID":"<96f28cc6-7cbf-308f-bc87-d96d3e7fe045@nvidia.com>","Date":"Wed, 27 Sep 2017 14:44:38 +0100","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.3.0","MIME-Version":"1.0","In-Reply-To":"<69ea8dec-db7a-fcfa-6fa7-ea70de4c9ef4@gmail.com>","X-Originating-IP":"[10.21.132.144]","X-ClientProxiedBy":"UKMAIL102.nvidia.com (10.26.138.15) To\n\tUKMAIL101.nvidia.com (10.26.138.13)","Content-Type":"text/plain; charset=\"utf-8\"","Content-Language":"en-US","Content-Transfer-Encoding":"7bit","Sender":"devicetree-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<devicetree.vger.kernel.org>","X-Mailing-List":"devicetree@vger.kernel.org"}},{"id":1776367,"web_url":"http://patchwork.ozlabs.org/comment/1776367/","msgid":"<432fff47-6750-08c4-a91d-1a5d154245bc@nvidia.com>","list_archive_url":null,"date":"2017-09-27T13:46:11","subject":"Re: [PATCH v1 3/5] dt-bindings: Add DT bindings for NVIDIA Tegra AHB\n\tDMA controller","submitter":{"id":66273,"url":"http://patchwork.ozlabs.org/api/people/66273/","name":"Jon Hunter","email":"jonathanh@nvidia.com"},"content":"On 27/09/17 14:44, Jon Hunter wrote:\n> \n> On 27/09/17 13:12, Dmitry Osipenko wrote:\n>> On 27.09.2017 11:34, Jon Hunter wrote:\n>>>\n>>> On 27/09/17 02:57, Dmitry Osipenko wrote:\n>>>> On 26.09.2017 17:50, Jon Hunter wrote:\n>>>>>\n>>>>> On 26/09/17 00:22, Dmitry Osipenko wrote:\n>>>>>> Document DT bindings for NVIDIA Tegra AHB DMA controller that presents\n>>>>>> on Tegra20/30 SoC's.\n>>>>>>\n>>>>>> Signed-off-by: Dmitry Osipenko <digetx@gmail.com>\n>>>>>> ---\n>>>>>>  .../bindings/dma/nvidia,tegra20-ahbdma.txt         | 23 ++++++++++++++++++++++\n>>>>>>  1 file changed, 23 insertions(+)\n>>>>>>  create mode 100644 Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>>>>\n>>>>>> diff --git a/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt b/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>>>> new file mode 100644\n>>>>>> index 000000000000..2af9aa76ae11\n>>>>>> --- /dev/null\n>>>>>> +++ b/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>>>> @@ -0,0 +1,23 @@\n>>>>>> +* NVIDIA Tegra AHB DMA controller\n>>>>>> +\n>>>>>> +Required properties:\n>>>>>> +- compatible:\tMust be \"nvidia,tegra20-ahbdma\"\n>>>>>> +- reg:\t\tShould contain registers base address and length.\n>>>>>> +- interrupts:\tShould contain one entry, DMA controller interrupt.\n>>>>>> +- clocks:\tShould contain one entry, DMA controller clock.\n>>>>>> +- resets :\tShould contain one entry, DMA controller reset.\n>>>>>> +- #dma-cells:\tShould be <1>. The cell represents DMA request select value\n>>>>>> +\t\tfor the peripheral. For more details consult the Tegra TRM's\n>>>>>> +\t\tdocumentation, in particular AHB DMA channel control register\n>>>>>> +\t\tREQ_SEL field.\n>>>>>\n>>>>> What about the TRIG_SEL field? Do we need to handle this here as well?\n>>>>>\n>>>>\n>>>> Actually, DMA transfer trigger isn't related a hardware description. It's up to\n>>>> software to decide what trigger to select. So it shouldn't be in the binding.\n>>>\n>>> I think it could be, if say a board wanted a GPIO to trigger a transfer.\n>>>\n>>\n>> GPIO isn't a very good example, there is no \"GPIO\" trigger. To me all triggers\n>> are software-defined, so that software could create transfer chains.\n> \n> TRM shows the following in the APBDMA_TRIG_REG_0 ...\n> \n> \"XRQ_A: XRQ.A (GPIOA) (Hardware initiated DMA request)\"\n\nFurthermore there are timer and hw-semaphore triggers as well.\n\nJon","headers":{"Return-Path":"<devicetree-owner@vger.kernel.org>","X-Original-To":"incoming-dt@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-dt@bilbo.ozlabs.org","Authentication-Results":"ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=devicetree-owner@vger.kernel.org; receiver=<UNKNOWN>)","Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3y2K0M08pRz9sRm\n\tfor <incoming-dt@patchwork.ozlabs.org>;\n\tWed, 27 Sep 2017 23:48:19 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S932068AbdI0NsE (ORCPT <rfc822; incoming-dt@patchwork.ozlabs.org>);\n\tWed, 27 Sep 2017 09:48:04 -0400","from hqemgate14.nvidia.com ([216.228.121.143]:18223 \"EHLO\n\thqemgate14.nvidia.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1752949AbdI0NsB (ORCPT\n\t<rfc822; devicetree@vger.kernel.org>); Wed, 27 Sep 2017 09:48:01 -0400","from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by\n\thqemgate14.nvidia.com\n\tid <B59cbabec0001>; Wed, 27 Sep 2017 06:47:24 -0700","from HQMAIL104.nvidia.com ([172.20.161.6])\n\tby hqpgpgate102.nvidia.com (PGP Universal service);\n\tWed, 27 Sep 2017 06:47:29 -0700","from UKMAIL101.nvidia.com (10.26.138.13) by HQMAIL104.nvidia.com\n\t(172.18.146.11) with Microsoft SMTP Server (TLS) id 15.0.1293.2;\n\tWed, 27 Sep 2017 13:46:15 +0000","from [10.21.132.144] (10.21.132.144) by UKMAIL101.nvidia.com\n\t(10.26.138.13) with Microsoft SMTP Server (TLS) id 15.0.1293.2;\n\tWed, 27 Sep 2017 13:46:11 +0000"],"X-PGP-Universal":"processed;\n\tby hqpgpgate102.nvidia.com on Wed, 27 Sep 2017 06:47:29 -0700","Subject":"Re: [PATCH v1 3/5] dt-bindings: Add DT bindings for NVIDIA Tegra AHB\n\tDMA controller","From":"Jon Hunter <jonathanh@nvidia.com>","To":"Dmitry Osipenko <digetx@gmail.com>,\n\tThierry Reding <thierry.reding@gmail.com>,\n\tLaxman Dewangan <ldewangan@nvidia.com>,\n\t\"Peter De Schrijver\" <pdeschrijver@nvidia.com>,\n\tPrashant Gaikwad <pgaikwad@nvidia.com>,\n\tMichael Turquette <mturquette@baylibre.com>,\n\tStephen Boyd <sboyd@codeaurora.org>, Rob Herring <robh+dt@kernel.org>,\n\tVinod Koul <vinod.koul@intel.com>","CC":"<linux-tegra@vger.kernel.org>, <devicetree@vger.kernel.org>,\n\t<dmaengine@vger.kernel.org>, <linux-clk@vger.kernel.org>,\n\t<linux-kernel@vger.kernel.org>","References":"<cover.1506380746.git.digetx@gmail.com>\n\t<604d92036e0936443290e68a2226f935fb348113.1506380746.git.digetx@gmail.com>\n\t<bee2a524-0891-01e1-4e03-f6cf6a89e6b1@nvidia.com>\n\t<96bfdacb-3d2d-66b6-70f7-a87664b1afc7@gmail.com>\n\t<0fd316e9-3584-e9bd-2a8b-e73eaa6a9a48@nvidia.com>\n\t<69ea8dec-db7a-fcfa-6fa7-ea70de4c9ef4@gmail.com>\n\t<96f28cc6-7cbf-308f-bc87-d96d3e7fe045@nvidia.com>","Message-ID":"<432fff47-6750-08c4-a91d-1a5d154245bc@nvidia.com>","Date":"Wed, 27 Sep 2017 14:46:11 +0100","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.3.0","MIME-Version":"1.0","In-Reply-To":"<96f28cc6-7cbf-308f-bc87-d96d3e7fe045@nvidia.com>","X-Originating-IP":"[10.21.132.144]","X-ClientProxiedBy":"UKMAIL102.nvidia.com (10.26.138.15) To\n\tUKMAIL101.nvidia.com (10.26.138.13)","Content-Type":"text/plain; charset=\"utf-8\"","Content-Language":"en-US","Content-Transfer-Encoding":"7bit","Sender":"devicetree-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<devicetree.vger.kernel.org>","X-Mailing-List":"devicetree@vger.kernel.org"}},{"id":1776392,"web_url":"http://patchwork.ozlabs.org/comment/1776392/","msgid":"<ca7ce856-208b-2753-a8a2-411b29288306@gmail.com>","list_archive_url":null,"date":"2017-09-27T14:29:19","subject":"Re: [PATCH v1 3/5] dt-bindings: Add DT bindings for NVIDIA Tegra AHB\n\tDMA controller","submitter":{"id":18124,"url":"http://patchwork.ozlabs.org/api/people/18124/","name":"Dmitry Osipenko","email":"digetx@gmail.com"},"content":"On 27.09.2017 16:46, Jon Hunter wrote:\n> \n> On 27/09/17 14:44, Jon Hunter wrote:\n>>\n>> On 27/09/17 13:12, Dmitry Osipenko wrote:\n>>> On 27.09.2017 11:34, Jon Hunter wrote:\n>>>>\n>>>> On 27/09/17 02:57, Dmitry Osipenko wrote:\n>>>>> On 26.09.2017 17:50, Jon Hunter wrote:\n>>>>>>\n>>>>>> On 26/09/17 00:22, Dmitry Osipenko wrote:\n>>>>>>> Document DT bindings for NVIDIA Tegra AHB DMA controller that presents\n>>>>>>> on Tegra20/30 SoC's.\n>>>>>>>\n>>>>>>> Signed-off-by: Dmitry Osipenko <digetx@gmail.com>\n>>>>>>> ---\n>>>>>>>  .../bindings/dma/nvidia,tegra20-ahbdma.txt         | 23 ++++++++++++++++++++++\n>>>>>>>  1 file changed, 23 insertions(+)\n>>>>>>>  create mode 100644 Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>>>>>\n>>>>>>> diff --git a/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt b/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>>>>> new file mode 100644\n>>>>>>> index 000000000000..2af9aa76ae11\n>>>>>>> --- /dev/null\n>>>>>>> +++ b/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>>>>> @@ -0,0 +1,23 @@\n>>>>>>> +* NVIDIA Tegra AHB DMA controller\n>>>>>>> +\n>>>>>>> +Required properties:\n>>>>>>> +- compatible:\tMust be \"nvidia,tegra20-ahbdma\"\n>>>>>>> +- reg:\t\tShould contain registers base address and length.\n>>>>>>> +- interrupts:\tShould contain one entry, DMA controller interrupt.\n>>>>>>> +- clocks:\tShould contain one entry, DMA controller clock.\n>>>>>>> +- resets :\tShould contain one entry, DMA controller reset.\n>>>>>>> +- #dma-cells:\tShould be <1>. The cell represents DMA request select value\n>>>>>>> +\t\tfor the peripheral. For more details consult the Tegra TRM's\n>>>>>>> +\t\tdocumentation, in particular AHB DMA channel control register\n>>>>>>> +\t\tREQ_SEL field.\n>>>>>>\n>>>>>> What about the TRIG_SEL field? Do we need to handle this here as well?\n>>>>>>\n>>>>>\n>>>>> Actually, DMA transfer trigger isn't related a hardware description. It's up to\n>>>>> software to decide what trigger to select. So it shouldn't be in the binding.\n>>>>\n>>>> I think it could be, if say a board wanted a GPIO to trigger a transfer.\n>>>>\n>>>\n>>> GPIO isn't a very good example, there is no \"GPIO\" trigger. To me all triggers\n>>> are software-defined, so that software could create transfer chains.\n>>\n>> TRM shows the following in the APBDMA_TRIG_REG_0 ...\n>>\n>> \"XRQ_A: XRQ.A (GPIOA) (Hardware initiated DMA request)\"\n> \n> Furthermore there are timer and hw-semaphore triggers as well.\n> \n\nAha, I wasn't sure about what XRQ is. AHB DMA doesn't have XRQ.A as a trigger,\nbut XRQ.C/D which I suppose corresponds to GPIO C/D.\n\nTimer and hw-semaphore are more questionable, aren't semaphores software-only\ntriggerable?","headers":{"Return-Path":"<devicetree-owner@vger.kernel.org>","X-Original-To":"incoming-dt@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-dt@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=devicetree-owner@vger.kernel.org; receiver=<UNKNOWN>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"N5EeOHky\"; dkim-atps=neutral"],"Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3y2Kvv3qwLz9sBd\n\tfor <incoming-dt@patchwork.ozlabs.org>;\n\tThu, 28 Sep 2017 00:29:31 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S932144AbdI0O33 (ORCPT <rfc822; incoming-dt@patchwork.ozlabs.org>);\n\tWed, 27 Sep 2017 10:29:29 -0400","from mail-wr0-f196.google.com ([209.85.128.196]:34075 \"EHLO\n\tmail-wr0-f196.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S932141AbdI0O30 (ORCPT\n\t<rfc822; devicetree@vger.kernel.org>); Wed, 27 Sep 2017 10:29:26 -0400","by mail-wr0-f196.google.com with SMTP id z1so2204462wre.1;\n\tWed, 27 Sep 2017 07:29:25 -0700 (PDT)","from [192.168.1.145] (ppp109-252-90-109.pppoe.spdop.ru.\n\t[109.252.90.109]) by smtp.googlemail.com with ESMTPSA id\n\te2sm1735465lff.61.2017.09.27.07.29.22\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tWed, 27 Sep 2017 07:29:22 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=subject:to:cc:references:from:message-id:date:user-agent\n\t:mime-version:in-reply-to:content-language:content-transfer-encoding; \n\tbh=J/FG68S11O+flt41AMTwmMYVUx3wtakA5XPuLi+RyYc=;\n\tb=N5EeOHky0XubrcSgeulBulOFtbLH3ApsgJhQvjAZ0YoBc4veDSslZbiEiHOVP+c1GS\n\tI+2LNqFSIlmML0amN4tLSrngyBbeDZGKJ8OkaVevZ4FYekkfv1KOnWYyJoag1Dlik19M\n\tn++WaeEoOzKezUFrIal4j1weImu57bwtZm+q/MZRxGtknP8SbySTt9fufoS2zdImo2X+\n\tGEbOe++SqpJeLgq7R0ISCQmmFBGRmCoxl7KSKx3wwkUo8bKT830PrklAXqXnqXCC9WP9\n\ti+2RgBRTXIllgjW6DYZr8oUmXUGy8guZpwFvTMpRN4D+vvU1afQw4RAC10IPol1ru5hx\n\talPw==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:subject:to:cc:references:from:message-id:date\n\t:user-agent:mime-version:in-reply-to:content-language\n\t:content-transfer-encoding;\n\tbh=J/FG68S11O+flt41AMTwmMYVUx3wtakA5XPuLi+RyYc=;\n\tb=jic3mdKVatpwU7I4MPky7EnfOva4evpQERBG0CXRyyIiDxIqCSCIKL32ewNof2DZ9X\n\tkW4MJfpZ7YPIHvpUE6fipuqohHKtIoiAySmjdGP+J19XYNwSWGIWRXOdzyaaCcF13MTj\n\t/hWH96kYG97jB+zPZ7/ro1sNfa2sLgYZ+qWZqslo+gMKBHU7KTNHLVvRT5rJV1yBvnV+\n\tN3ITwx+Ov/80FoEvXQcQ/n2YXqxCTvXa1zVTpPl7VVBlP0AeNCXUk5lcv7/9JfCwsofq\n\tcnw5RwefTZ1GIkUHFh1I7Qz2RuC2lXv2J557+Q6DLMa5m90qrCfw/00KFY4bnV1B/KCU\n\tIcEQ==","X-Gm-Message-State":"AMCzsaVi2Y+KB9LIffBXjgpDlFnS2L1HIMbzKmxsh1UZNtx96tzUtnhH\n\tjCR0+yZBEe+WaGzy+6f+p1llXGTQ","X-Google-Smtp-Source":"AOwi7QA9uwFSnKCxurAuM0Xk7F2I4CWDCmtQXv4JOO+QzHAMQpnyI7lz06+QoTkkuZd6ZuT2QysyfQ==","X-Received":"by 10.25.41.147 with SMTP id p141mr603706lfp.56.1506522563896;\n\tWed, 27 Sep 2017 07:29:23 -0700 (PDT)","Subject":"Re: [PATCH v1 3/5] dt-bindings: Add DT bindings for NVIDIA Tegra AHB\n\tDMA controller","To":"Jon Hunter <jonathanh@nvidia.com>,\n\tThierry Reding <thierry.reding@gmail.com>,\n\tLaxman Dewangan <ldewangan@nvidia.com>,\n\tPeter De Schrijver <pdeschrijver@nvidia.com>,\n\tPrashant Gaikwad <pgaikwad@nvidia.com>,\n\tMichael Turquette <mturquette@baylibre.com>,\n\tStephen Boyd <sboyd@codeaurora.org>, Rob Herring <robh+dt@kernel.org>,\n\tVinod Koul <vinod.koul@intel.com>","Cc":"linux-tegra@vger.kernel.org, devicetree@vger.kernel.org,\n\tdmaengine@vger.kernel.org, linux-clk@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org","References":"<cover.1506380746.git.digetx@gmail.com>\n\t<604d92036e0936443290e68a2226f935fb348113.1506380746.git.digetx@gmail.com>\n\t<bee2a524-0891-01e1-4e03-f6cf6a89e6b1@nvidia.com>\n\t<96bfdacb-3d2d-66b6-70f7-a87664b1afc7@gmail.com>\n\t<0fd316e9-3584-e9bd-2a8b-e73eaa6a9a48@nvidia.com>\n\t<69ea8dec-db7a-fcfa-6fa7-ea70de4c9ef4@gmail.com>\n\t<96f28cc6-7cbf-308f-bc87-d96d3e7fe045@nvidia.com>\n\t<432fff47-6750-08c4-a91d-1a5d154245bc@nvidia.com>","From":"Dmitry Osipenko <digetx@gmail.com>","Message-ID":"<ca7ce856-208b-2753-a8a2-411b29288306@gmail.com>","Date":"Wed, 27 Sep 2017 17:29:19 +0300","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.3.0","MIME-Version":"1.0","In-Reply-To":"<432fff47-6750-08c4-a91d-1a5d154245bc@nvidia.com>","Content-Type":"text/plain; charset=utf-8","Content-Language":"en-US","Content-Transfer-Encoding":"7bit","Sender":"devicetree-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<devicetree.vger.kernel.org>","X-Mailing-List":"devicetree@vger.kernel.org"}},{"id":1776698,"web_url":"http://patchwork.ozlabs.org/comment/1776698/","msgid":"<20170927233240.GI457@codeaurora.org>","list_archive_url":null,"date":"2017-09-27T23:32:40","subject":"Re: [PATCH v1 3/5] dt-bindings: Add DT bindings for NVIDIA Tegra AHB\n\tDMA controller","submitter":{"id":6071,"url":"http://patchwork.ozlabs.org/api/people/6071/","name":"Stephen Boyd","email":"sboyd@codeaurora.org"},"content":"On 09/27, Jon Hunter wrote:\n> \n> \n> Well, the REQ_SEL should definitely be in the binding.\n> \n> Laxman, Stephen, what are your thoughts on the TRIG_SEL field? Looks\n\nWrong Stephen?","headers":{"Return-Path":"<devicetree-owner@vger.kernel.org>","X-Original-To":"incoming-dt@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-dt@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=devicetree-owner@vger.kernel.org; receiver=<UNKNOWN>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=codeaurora.org header.i=@codeaurora.org\n\theader.b=\"GYGPgS6Z\"; \n\tdkim=fail reason=\"signature verification failed\" (1024-bit key)\n\theader.d=codeaurora.org header.i=@codeaurora.org header.b=\"c40FtCPT\"; \n\tdkim-atps=neutral","pdx-caf-mail.web.codeaurora.org;\n\tdmarc=none (p=none dis=none) header.from=codeaurora.org","pdx-caf-mail.web.codeaurora.org;\n\tspf=none smtp.mailfrom=sboyd@codeaurora.org"],"Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3y2Yyz13DDz9t6C\n\tfor <incoming-dt@patchwork.ozlabs.org>;\n\tThu, 28 Sep 2017 09:32:59 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752477AbdI0Xcp (ORCPT\n\t<rfc822;incoming-dt@patchwork.ozlabs.org>);\n\tWed, 27 Sep 2017 19:32:45 -0400","from smtp.codeaurora.org ([198.145.29.96]:35926 \"EHLO\n\tsmtp.codeaurora.org\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1752446AbdI0Xcm (ORCPT\n\t<rfc822; devicetree@vger.kernel.org>); Wed, 27 Sep 2017 19:32:42 -0400","by smtp.codeaurora.org (Postfix, from userid 1000)\n\tid 124CD609F2; Wed, 27 Sep 2017 23:32:42 +0000 (UTC)","from localhost (i-global254.qualcomm.com [199.106.103.254])\n\t(using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits))\n\t(No client certificate requested)\n\t(Authenticated sender: sboyd@smtp.codeaurora.org)\n\tby smtp.codeaurora.org (Postfix) with ESMTPSA id 6116F609F2;\n\tWed, 27 Sep 2017 23:32:41 +0000 (UTC)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org;\n\ts=default; t=1506555162;\n\tbh=wsDop5h2WulKYSIGhNXFme5W965OjKasAghXPGBoJ+o=;\n\th=Date:From:To:Cc:Subject:References:In-Reply-To:From;\n\tb=GYGPgS6ZgkNn8NwhUvmcB4iqs+LfNmOSwtcd7N+vs3qrEyO3LXr4GTgAC+tm/W3tg\n\tGjh1xPdgZTEbHTJhA9ww/6RvPwsFHvPTsO7cHmViPNfls9sfuX8VpPqIbs+SAWcFME\n\teMickBhBVM7F2riz3yfluJ3ggo13DWVAgGDhGHgI=","v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org;\n\ts=default; t=1506555161;\n\tbh=wsDop5h2WulKYSIGhNXFme5W965OjKasAghXPGBoJ+o=;\n\th=Date:From:To:Cc:Subject:References:In-Reply-To:From;\n\tb=c40FtCPTu3CHCVmeHeN0WaH5zl9vCn7hGmioGk4o026ND8EAG8raEjyektLsWvJV6\n\t8KdIwPWaplazpHNgjOjIVOEE/qCpyyOAKLQH0toVCwePocD27w1YyBYPwyFdrEp7ZM\n\tCTsR8QV+IeSsC0A2oKnexoNzdMmrTR/IriNK1uWg="],"X-Spam-Checker-Version":"SpamAssassin 3.4.0 (2014-02-07) on\n\tpdx-caf-mail.web.codeaurora.org","X-Spam-Level":"","X-Spam-Status":"No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00,\n\tDKIM_SIGNED,\n\tT_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0","DMARC-Filter":"OpenDMARC Filter v1.3.2 smtp.codeaurora.org 6116F609F2","Date":"Wed, 27 Sep 2017 16:32:40 -0700","From":"Stephen Boyd <sboyd@codeaurora.org>","To":"Jon Hunter <jonathanh@nvidia.com>","Cc":"Dmitry Osipenko <digetx@gmail.com>,\n\tThierry Reding <thierry.reding@gmail.com>,\n\tLaxman Dewangan <ldewangan@nvidia.com>,\n\tPeter De Schrijver <pdeschrijver@nvidia.com>,\n\tPrashant Gaikwad <pgaikwad@nvidia.com>,\n\tMichael Turquette <mturquette@baylibre.com>,\n\tRob Herring <robh+dt@kernel.org>,\n\tVinod Koul <vinod.koul@intel.com>, linux-tegra@vger.kernel.org,\n\tdevicetree@vger.kernel.org, dmaengine@vger.kernel.org,\n\tlinux-clk@vger.kernel.org, linux-kernel@vger.kernel.org","Subject":"Re: [PATCH v1 3/5] dt-bindings: Add DT bindings for NVIDIA Tegra AHB\n\tDMA controller","Message-ID":"<20170927233240.GI457@codeaurora.org>","References":"<cover.1506380746.git.digetx@gmail.com>\n\t<604d92036e0936443290e68a2226f935fb348113.1506380746.git.digetx@gmail.com>\n\t<bee2a524-0891-01e1-4e03-f6cf6a89e6b1@nvidia.com>\n\t<96bfdacb-3d2d-66b6-70f7-a87664b1afc7@gmail.com>\n\t<0fd316e9-3584-e9bd-2a8b-e73eaa6a9a48@nvidia.com>","MIME-Version":"1.0","Content-Type":"text/plain; charset=us-ascii","Content-Disposition":"inline","In-Reply-To":"<0fd316e9-3584-e9bd-2a8b-e73eaa6a9a48@nvidia.com>","User-Agent":"Mutt/1.5.21 (2010-09-15)","Sender":"devicetree-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<devicetree.vger.kernel.org>","X-Mailing-List":"devicetree@vger.kernel.org"}},{"id":1776864,"web_url":"http://patchwork.ozlabs.org/comment/1776864/","msgid":"<1748ef0f-3461-75c9-61fe-4cbe1fa66a9a@nvidia.com>","list_archive_url":null,"date":"2017-09-28T08:33:49","subject":"Re: [PATCH v1 3/5] dt-bindings: Add DT bindings for NVIDIA Tegra AHB\n\tDMA controller","submitter":{"id":66273,"url":"http://patchwork.ozlabs.org/api/people/66273/","name":"Jon Hunter","email":"jonathanh@nvidia.com"},"content":"On 28/09/17 00:32, Stephen Boyd wrote:\n> On 09/27, Jon Hunter wrote:\n>>\n>>\n>> Well, the REQ_SEL should definitely be in the binding.\n>>\n>> Laxman, Stephen, what are your thoughts on the TRIG_SEL field? Looks\n> \n> Wrong Stephen?\n\nIndeed! With all the folks in copy, I assumed we had the right one :-)\n\nCheers\nJon","headers":{"Return-Path":"<devicetree-owner@vger.kernel.org>","X-Original-To":"incoming-dt@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-dt@bilbo.ozlabs.org","Authentication-Results":"ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=devicetree-owner@vger.kernel.org; receiver=<UNKNOWN>)","Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3y2p0J1dMWz9rxl\n\tfor <incoming-dt@patchwork.ozlabs.org>;\n\tThu, 28 Sep 2017 18:34:56 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752154AbdI1Iey (ORCPT\n\t<rfc822;incoming-dt@patchwork.ozlabs.org>);\n\tThu, 28 Sep 2017 04:34:54 -0400","from hqemgate15.nvidia.com ([216.228.121.64]:18145 \"EHLO\n\thqemgate15.nvidia.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1751592AbdI1Iew (ORCPT\n\t<rfc822; devicetree@vger.kernel.org>); Thu, 28 Sep 2017 04:34:52 -0400","from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by\n\thqemgate15.nvidia.com\n\tid <B59ccb41f0000>; Thu, 28 Sep 2017 01:34:39 -0700","from HQMAIL103.nvidia.com ([172.20.161.6])\n\tby hqpgpgate101.nvidia.com (PGP Universal service);\n\tThu, 28 Sep 2017 01:34:42 -0700","from UKMAIL101.nvidia.com (10.26.138.13) by HQMAIL103.nvidia.com\n\t(172.20.187.11) with Microsoft SMTP Server (TLS) id 15.0.1293.2;\n\tThu, 28 Sep 2017 08:33:54 +0000","from [10.21.132.144] (10.21.132.144) by UKMAIL101.nvidia.com\n\t(10.26.138.13) with Microsoft SMTP Server (TLS) id 15.0.1293.2;\n\tThu, 28 Sep 2017 08:33:50 +0000"],"X-PGP-Universal":"processed;\n\tby hqpgpgate101.nvidia.com on Thu, 28 Sep 2017 01:34:42 -0700","Subject":"Re: [PATCH v1 3/5] dt-bindings: Add DT bindings for NVIDIA Tegra AHB\n\tDMA controller","To":"Stephen Boyd <sboyd@codeaurora.org>","CC":"Dmitry Osipenko <digetx@gmail.com>,\n\tThierry Reding <thierry.reding@gmail.com>,\n\tLaxman Dewangan <ldewangan@nvidia.com>,\n\t\"Peter De Schrijver\" <pdeschrijver@nvidia.com>,\n\tPrashant Gaikwad <pgaikwad@nvidia.com>,\n\tMichael Turquette <mturquette@baylibre.com>,\n\tRob Herring <robh+dt@kernel.org>, Vinod Koul <vinod.koul@intel.com>, \n\t<linux-tegra@vger.kernel.org>, <devicetree@vger.kernel.org>,\n\t<dmaengine@vger.kernel.org>, <linux-clk@vger.kernel.org>,\n\t<linux-kernel@vger.kernel.org>, Stephen Warren <swarren@nvidia.com>","References":"<cover.1506380746.git.digetx@gmail.com>\n\t<604d92036e0936443290e68a2226f935fb348113.1506380746.git.digetx@gmail.com>\n\t<bee2a524-0891-01e1-4e03-f6cf6a89e6b1@nvidia.com>\n\t<96bfdacb-3d2d-66b6-70f7-a87664b1afc7@gmail.com>\n\t<0fd316e9-3584-e9bd-2a8b-e73eaa6a9a48@nvidia.com>\n\t<20170927233240.GI457@codeaurora.org>","From":"Jon Hunter <jonathanh@nvidia.com>","Message-ID":"<1748ef0f-3461-75c9-61fe-4cbe1fa66a9a@nvidia.com>","Date":"Thu, 28 Sep 2017 09:33:49 +0100","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.3.0","MIME-Version":"1.0","In-Reply-To":"<20170927233240.GI457@codeaurora.org>","X-Originating-IP":"[10.21.132.144]","X-ClientProxiedBy":"UKMAIL102.nvidia.com (10.26.138.15) To\n\tUKMAIL101.nvidia.com (10.26.138.13)","Content-Type":"text/plain; charset=\"utf-8\"","Content-Language":"en-US","Content-Transfer-Encoding":"7bit","Sender":"devicetree-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<devicetree.vger.kernel.org>","X-Mailing-List":"devicetree@vger.kernel.org"}},{"id":1777738,"web_url":"http://patchwork.ozlabs.org/comment/1777738/","msgid":"<9e4e3dc1-85cd-2096-118c-7d0c929b9246@wwwdotorg.org>","list_archive_url":null,"date":"2017-09-29T19:30:51","subject":"Re: [PATCH v1 3/5] dt-bindings: Add DT bindings for NVIDIA Tegra AHB\n\tDMA controller","submitter":{"id":12517,"url":"http://patchwork.ozlabs.org/api/people/12517/","name":"Stephen Warren","email":"swarren@wwwdotorg.org"},"content":"On 09/27/2017 02:34 AM, Jon Hunter wrote:\n> \n> On 27/09/17 02:57, Dmitry Osipenko wrote:\n>> On 26.09.2017 17:50, Jon Hunter wrote:\n>>>\n>>> On 26/09/17 00:22, Dmitry Osipenko wrote:\n>>>> Document DT bindings for NVIDIA Tegra AHB DMA controller that presents\n>>>> on Tegra20/30 SoC's.\n>>>>\n>>>> Signed-off-by: Dmitry Osipenko <digetx@gmail.com>\n>>>> ---\n>>>>   .../bindings/dma/nvidia,tegra20-ahbdma.txt         | 23 ++++++++++++++++++++++\n>>>>   1 file changed, 23 insertions(+)\n>>>>   create mode 100644 Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>>\n>>>> diff --git a/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt b/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>> new file mode 100644\n>>>> index 000000000000..2af9aa76ae11\n>>>> --- /dev/null\n>>>> +++ b/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>> @@ -0,0 +1,23 @@\n>>>> +* NVIDIA Tegra AHB DMA controller\n>>>> +\n>>>> +Required properties:\n>>>> +- compatible:\tMust be \"nvidia,tegra20-ahbdma\"\n>>>> +- reg:\t\tShould contain registers base address and length.\n>>>> +- interrupts:\tShould contain one entry, DMA controller interrupt.\n>>>> +- clocks:\tShould contain one entry, DMA controller clock.\n>>>> +- resets :\tShould contain one entry, DMA controller reset.\n>>>> +- #dma-cells:\tShould be <1>. The cell represents DMA request select value\n>>>> +\t\tfor the peripheral. For more details consult the Tegra TRM's\n>>>> +\t\tdocumentation, in particular AHB DMA channel control register\n>>>> +\t\tREQ_SEL field.\n>>>\n>>> What about the TRIG_SEL field? Do we need to handle this here as well?\n>>>\n>>\n>> Actually, DMA transfer trigger isn't related a hardware description. It's up to\n>> software to decide what trigger to select. So it shouldn't be in the binding.\n> \n> I think it could be, if say a board wanted a GPIO to trigger a transfer.\n> \n>> And I think the same applies to requester... any objections?\n> \n> Well, the REQ_SEL should definitely be in the binding.\n> \n> Laxman, Stephen, what are your thoughts on the TRIG_SEL field? Looks\n> like we never bothered with it for the APB DMA and so maybe no ones uses\n> this.\n\nI don't think TRIG_SEL should be in the binding, at least at present. \nWhile TRIG_SEL certainly is something used to configure the transfer, I \nbelieve the semantics of the current DMA binding only cover DMA \ntransfers that are initiated when SW desires, rather than being a \ncombination of after SW programs the transfer plus some other HW event. \nSo, we always use a default/hard-coded TRIG_SEL value. As such, there's \nno need for a TRIG_SEL value in DT. There's certainly no known use-case \nthat requires a non-default TRIG_SEL value at present. We could add an \nextra #dma-cells value later if we find a use for it, and the semantics \nof that use-case make sense to add it to the DMA specifier, rather than \nsome other separate higher-level property/driver/...\n--\nTo unsubscribe from this list: send the line \"unsubscribe devicetree\" in\nthe body of a message to majordomo@vger.kernel.org\nMore majordomo info at  http://vger.kernel.org/majordomo-info.html","headers":{"Return-Path":"<devicetree-owner@vger.kernel.org>","X-Original-To":"incoming-dt@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-dt@bilbo.ozlabs.org","Authentication-Results":"ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=devicetree-owner@vger.kernel.org; receiver=<UNKNOWN>)","Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3y3hVn3mcGz9t42\n\tfor <incoming-dt@patchwork.ozlabs.org>;\n\tSat, 30 Sep 2017 05:30:57 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752280AbdI2Taz (ORCPT\n\t<rfc822;incoming-dt@patchwork.ozlabs.org>);\n\tFri, 29 Sep 2017 15:30:55 -0400","from avon.wwwdotorg.org ([104.237.132.123]:42476 \"EHLO\n\tavon.wwwdotorg.org\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1751972AbdI2Tay (ORCPT\n\t<rfc822; devicetree@vger.kernel.org>); Fri, 29 Sep 2017 15:30:54 -0400","from [10.20.204.51] (thunderhill.nvidia.com [216.228.112.22])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128\n\tbits)) (No client certificate requested)\n\tby avon.wwwdotorg.org (Postfix) with ESMTPSA id 8DA261C03B8;\n\tFri, 29 Sep 2017 13:30:52 -0600 (MDT)"],"X-Virus-Status":"Clean","X-Virus-Scanned":"clamav-milter 0.99.2 at avon.wwwdotorg.org","Subject":"Re: [PATCH v1 3/5] dt-bindings: Add DT bindings for NVIDIA Tegra AHB\n\tDMA controller","To":"Jon Hunter <jonathanh@nvidia.com>, Dmitry Osipenko <digetx@gmail.com>,\n\tThierry Reding <thierry.reding@gmail.com>,\n\tLaxman Dewangan <ldewangan@nvidia.com>,\n\tPeter De Schrijver <pdeschrijver@nvidia.com>,\n\tPrashant Gaikwad <pgaikwad@nvidia.com>,\n\tMichael Turquette <mturquette@baylibre.com>,\n\tStephen Boyd <sboyd@codeaurora.org>, Rob Herring <robh+dt@kernel.org>,\n\tVinod Koul <vinod.koul@intel.com>","Cc":"linux-tegra@vger.kernel.org, devicetree@vger.kernel.org,\n\tdmaengine@vger.kernel.org, linux-clk@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org","References":"<cover.1506380746.git.digetx@gmail.com>\n\t<604d92036e0936443290e68a2226f935fb348113.1506380746.git.digetx@gmail.com>\n\t<bee2a524-0891-01e1-4e03-f6cf6a89e6b1@nvidia.com>\n\t<96bfdacb-3d2d-66b6-70f7-a87664b1afc7@gmail.com>\n\t<0fd316e9-3584-e9bd-2a8b-e73eaa6a9a48@nvidia.com>","From":"Stephen Warren <swarren@wwwdotorg.org>","Message-ID":"<9e4e3dc1-85cd-2096-118c-7d0c929b9246@wwwdotorg.org>","Date":"Fri, 29 Sep 2017 13:30:51 -0600","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.3.0","MIME-Version":"1.0","In-Reply-To":"<0fd316e9-3584-e9bd-2a8b-e73eaa6a9a48@nvidia.com>","Content-Type":"text/plain; charset=utf-8; format=flowed","Content-Language":"en-GB","Content-Transfer-Encoding":"7bit","Sender":"devicetree-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<devicetree.vger.kernel.org>","X-Mailing-List":"devicetree@vger.kernel.org"}},{"id":1777856,"web_url":"http://patchwork.ozlabs.org/comment/1777856/","msgid":"<5a5ce745-750f-9c8f-5129-c9b0f7aee614@gmail.com>","list_archive_url":null,"date":"2017-09-30T03:11:07","subject":"Re: [PATCH v1 3/5] dt-bindings: Add DT bindings for NVIDIA Tegra AHB\n\tDMA controller","submitter":{"id":18124,"url":"http://patchwork.ozlabs.org/api/people/18124/","name":"Dmitry Osipenko","email":"digetx@gmail.com"},"content":"On 29.09.2017 22:30, Stephen Warren wrote:\n> On 09/27/2017 02:34 AM, Jon Hunter wrote:\n>>\n>> On 27/09/17 02:57, Dmitry Osipenko wrote:\n>>> On 26.09.2017 17:50, Jon Hunter wrote:\n>>>>\n>>>> On 26/09/17 00:22, Dmitry Osipenko wrote:\n>>>>> Document DT bindings for NVIDIA Tegra AHB DMA controller that presents\n>>>>> on Tegra20/30 SoC's.\n>>>>>\n>>>>> Signed-off-by: Dmitry Osipenko <digetx@gmail.com>\n>>>>> ---\n>>>>>   .../bindings/dma/nvidia,tegra20-ahbdma.txt         | 23\n>>>>> ++++++++++++++++++++++\n>>>>>   1 file changed, 23 insertions(+)\n>>>>>   create mode 100644\n>>>>> Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>>>\n>>>>> diff --git\n>>>>> a/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>>> b/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>>> new file mode 100644\n>>>>> index 000000000000..2af9aa76ae11\n>>>>> --- /dev/null\n>>>>> +++ b/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>>> @@ -0,0 +1,23 @@\n>>>>> +* NVIDIA Tegra AHB DMA controller\n>>>>> +\n>>>>> +Required properties:\n>>>>> +- compatible:    Must be \"nvidia,tegra20-ahbdma\"\n>>>>> +- reg:        Should contain registers base address and length.\n>>>>> +- interrupts:    Should contain one entry, DMA controller interrupt.\n>>>>> +- clocks:    Should contain one entry, DMA controller clock.\n>>>>> +- resets :    Should contain one entry, DMA controller reset.\n>>>>> +- #dma-cells:    Should be <1>. The cell represents DMA request select value\n>>>>> +        for the peripheral. For more details consult the Tegra TRM's\n>>>>> +        documentation, in particular AHB DMA channel control register\n>>>>> +        REQ_SEL field.\n>>>>\n>>>> What about the TRIG_SEL field? Do we need to handle this here as well?\n>>>>\n>>>\n>>> Actually, DMA transfer trigger isn't related a hardware description. It's up to\n>>> software to decide what trigger to select. So it shouldn't be in the binding.\n>>\n>> I think it could be, if say a board wanted a GPIO to trigger a transfer.\n>>\n>>> And I think the same applies to requester... any objections?\n>>\n>> Well, the REQ_SEL should definitely be in the binding.\n>>\n>> Laxman, Stephen, what are your thoughts on the TRIG_SEL field? Looks\n>> like we never bothered with it for the APB DMA and so maybe no ones uses\n>> this.\n> \n> I don't think TRIG_SEL should be in the binding, at least at present. While\n> TRIG_SEL certainly is something used to configure the transfer, I believe the\n> semantics of the current DMA binding only cover DMA transfers that are initiated\n> when SW desires, rather than being a combination of after SW programs the\n> transfer plus some other HW event. So, we always use a default/hard-coded\n> TRIG_SEL value. As such, there's no need for a TRIG_SEL value in DT. There's\n> certainly no known use-case that requires a non-default TRIG_SEL value at\n> present. We could add an extra #dma-cells value later if we find a use for it,\n> and the semantics of that use-case make sense to add it to the DMA specifier,\n> rather than some other separate higher-level property/driver/...\n\nThank you for the comment. If we'd want to extend the binding further with the\ntrigger, how to differentiate trigger from the requester in a case of a single\n#data-cell?\n\nOf course realistically a chance that the further extension would be needed is\nvery-very low, so we may defer the efforts to solve that question and for now\nmake driver aware of the potential #dma-cells extension.\n--\nTo unsubscribe from this list: send the line \"unsubscribe devicetree\" in\nthe body of a message to majordomo@vger.kernel.org\nMore majordomo info at  http://vger.kernel.org/majordomo-info.html","headers":{"Return-Path":"<devicetree-owner@vger.kernel.org>","X-Original-To":"incoming-dt@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-dt@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=devicetree-owner@vger.kernel.org; receiver=<UNKNOWN>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"O/6CmgZD\"; dkim-atps=neutral"],"Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3y3tjx2tyPz9s7m\n\tfor <incoming-dt@patchwork.ozlabs.org>;\n\tSat, 30 Sep 2017 13:11:17 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752664AbdI3DLO (ORCPT\n\t<rfc822;incoming-dt@patchwork.ozlabs.org>);\n\tFri, 29 Sep 2017 23:11:14 -0400","from mail-wr0-f195.google.com ([209.85.128.195]:33339 \"EHLO\n\tmail-wr0-f195.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1752653AbdI3DLM (ORCPT\n\t<rfc822; devicetree@vger.kernel.org>); Fri, 29 Sep 2017 23:11:12 -0400","by mail-wr0-f195.google.com with SMTP id 97so650572wrb.0;\n\tFri, 29 Sep 2017 20:11:11 -0700 (PDT)","from [192.168.1.145] (ppp109-252-90-109.pppoe.spdop.ru.\n\t[109.252.90.109]) by smtp.googlemail.com with ESMTPSA id\n\tx185sm1708578wmx.35.2017.09.29.20.11.08\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tFri, 29 Sep 2017 20:11:09 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=subject:to:cc:references:from:message-id:date:user-agent\n\t:mime-version:in-reply-to:content-language:content-transfer-encoding; \n\tbh=gBF3dOD2Ad0uC4QoojQY6c9mRKM6OVx8Pib/uTDCXpc=;\n\tb=O/6CmgZDcWF5TE505eVBxcSIW2UJpr48wfpBfo4pKGDvqkXpySmMZ8k+dfqr/DP0Z0\n\tbGPLc2AcN5F57X1cPp6olXohseokOk/IhJ8WwSjbJ+gs1SsIavHVe37Nsi8NuvWaO3qM\n\tWWdjivkS3Ym3URhPJn0pNBQe04K4aotzyOH5tH6fWj0Wxc6zyz65VpBUFc6fEexHE4xp\n\t2wSTCoI4saffRfLxynQLDSewKMJidJtBNvV6iX6fPugP6pfqjzf6EBu6O5AwxdckDz+J\n\tS4NDEZ1JfQNRjGTE4jOfPjuhLMKBTyAwhuclNjAQgfCIh0na4UHThR8BxRpEQ6h+5O3k\n\tNOvA==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:subject:to:cc:references:from:message-id:date\n\t:user-agent:mime-version:in-reply-to:content-language\n\t:content-transfer-encoding;\n\tbh=gBF3dOD2Ad0uC4QoojQY6c9mRKM6OVx8Pib/uTDCXpc=;\n\tb=GOm4HGeWJH1QEQQkJf6Gn37Oillz3XLFDMk/ImoFwF84OIU1qVYJWRH0ba+aNvC9ls\n\th5tSyXcovki6YM4MYVzhGCDMtNceqiZzg9dLXV+DzZ+FOVmIuB4TEOrw+Dnoo3yPL2TB\n\tHDdkwXetNA33xiUZnjJLyP7mqiv1TTXyK7qO1QnJXj9sLeiAs51i90Zp12L1dVojjnQo\n\tUSIpuMvnJiLLXg7zrWtg1LpXLNHrjcAb93j+NG3m8+NO/UFLdGuZ57USiSQBI1T4WEYT\n\tVRO1mmFIBGSArRmkEb7vCcjn13mvUPEWRUWvgv6UZJbVX0itYFJYjYu3xDr4VoSyAHqt\n\tSDEw==","X-Gm-Message-State":"AMCzsaVlg1j7Sa1K8mHheZznqXNfWy9LBlO06kA+JgDmUTj4OEG26cMX\n\tGiGpKqbTNCquW73v5RzSv5LBBzyI","X-Google-Smtp-Source":"AOwi7QDF3yJnCigR4hRlBdvOobKbAup0j2FHq3mvrpRcPhXhg+wk6Mj6tps77/sUTII+YE4dbhYPZw==","X-Received":"by 10.223.161.152 with SMTP id u24mr9566989wru.197.1506741070005;\n\tFri, 29 Sep 2017 20:11:10 -0700 (PDT)","Subject":"Re: [PATCH v1 3/5] dt-bindings: Add DT bindings for NVIDIA Tegra AHB\n\tDMA controller","To":"Stephen Warren <swarren@wwwdotorg.org>, Jon Hunter <jonathanh@nvidia.com>,\n\tThierry Reding <thierry.reding@gmail.com>,\n\tLaxman Dewangan <ldewangan@nvidia.com>,\n\tPeter De Schrijver <pdeschrijver@nvidia.com>,\n\tPrashant Gaikwad <pgaikwad@nvidia.com>,\n\tMichael Turquette <mturquette@baylibre.com>,\n\tStephen Boyd <sboyd@codeaurora.org>, Rob Herring <robh+dt@kernel.org>,\n\tVinod Koul <vinod.koul@intel.com>","Cc":"linux-tegra@vger.kernel.org, devicetree@vger.kernel.org,\n\tdmaengine@vger.kernel.org, linux-clk@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org","References":"<cover.1506380746.git.digetx@gmail.com>\n\t<604d92036e0936443290e68a2226f935fb348113.1506380746.git.digetx@gmail.com>\n\t<bee2a524-0891-01e1-4e03-f6cf6a89e6b1@nvidia.com>\n\t<96bfdacb-3d2d-66b6-70f7-a87664b1afc7@gmail.com>\n\t<0fd316e9-3584-e9bd-2a8b-e73eaa6a9a48@nvidia.com>\n\t<9e4e3dc1-85cd-2096-118c-7d0c929b9246@wwwdotorg.org>","From":"Dmitry Osipenko <digetx@gmail.com>","Message-ID":"<5a5ce745-750f-9c8f-5129-c9b0f7aee614@gmail.com>","Date":"Sat, 30 Sep 2017 06:11:07 +0300","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.3.0","MIME-Version":"1.0","In-Reply-To":"<9e4e3dc1-85cd-2096-118c-7d0c929b9246@wwwdotorg.org>","Content-Type":"text/plain; charset=utf-8","Content-Language":"en-US","Content-Transfer-Encoding":"8bit","Sender":"devicetree-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<devicetree.vger.kernel.org>","X-Mailing-List":"devicetree@vger.kernel.org"}},{"id":1778464,"web_url":"http://patchwork.ozlabs.org/comment/1778464/","msgid":"<788f73dc-e011-aa9d-8850-f01ab9459c91@wwwdotorg.org>","list_archive_url":null,"date":"2017-10-02T17:05:11","subject":"Re: [PATCH v1 3/5] dt-bindings: Add DT bindings for NVIDIA Tegra AHB\n\tDMA controller","submitter":{"id":12517,"url":"http://patchwork.ozlabs.org/api/people/12517/","name":"Stephen Warren","email":"swarren@wwwdotorg.org"},"content":"On 09/29/2017 09:11 PM, Dmitry Osipenko wrote:\n> On 29.09.2017 22:30, Stephen Warren wrote:\n>> On 09/27/2017 02:34 AM, Jon Hunter wrote:\n>>>\n>>> On 27/09/17 02:57, Dmitry Osipenko wrote:\n>>>> On 26.09.2017 17:50, Jon Hunter wrote:\n>>>>>\n>>>>> On 26/09/17 00:22, Dmitry Osipenko wrote:\n>>>>>> Document DT bindings for NVIDIA Tegra AHB DMA controller that presents\n>>>>>> on Tegra20/30 SoC's.\n>>>>>>\n>>>>>> Signed-off-by: Dmitry Osipenko <digetx@gmail.com>\n>>>>>> ---\n>>>>>>    .../bindings/dma/nvidia,tegra20-ahbdma.txt         | 23\n>>>>>> ++++++++++++++++++++++\n>>>>>>    1 file changed, 23 insertions(+)\n>>>>>>    create mode 100644\n>>>>>> Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>>>>\n>>>>>> diff --git\n>>>>>> a/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>>>> b/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>>>> new file mode 100644\n>>>>>> index 000000000000..2af9aa76ae11\n>>>>>> --- /dev/null\n>>>>>> +++ b/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>>>> @@ -0,0 +1,23 @@\n>>>>>> +* NVIDIA Tegra AHB DMA controller\n>>>>>> +\n>>>>>> +Required properties:\n>>>>>> +- compatible:    Must be \"nvidia,tegra20-ahbdma\"\n>>>>>> +- reg:        Should contain registers base address and length.\n>>>>>> +- interrupts:    Should contain one entry, DMA controller interrupt.\n>>>>>> +- clocks:    Should contain one entry, DMA controller clock.\n>>>>>> +- resets :    Should contain one entry, DMA controller reset.\n>>>>>> +- #dma-cells:    Should be <1>. The cell represents DMA request select value\n>>>>>> +        for the peripheral. For more details consult the Tegra TRM's\n>>>>>> +        documentation, in particular AHB DMA channel control register\n>>>>>> +        REQ_SEL field.\n>>>>>\n>>>>> What about the TRIG_SEL field? Do we need to handle this here as well?\n>>>>>\n>>>>\n>>>> Actually, DMA transfer trigger isn't related a hardware description. It's up to\n>>>> software to decide what trigger to select. So it shouldn't be in the binding.\n>>>\n>>> I think it could be, if say a board wanted a GPIO to trigger a transfer.\n>>>\n>>>> And I think the same applies to requester... any objections?\n>>>\n>>> Well, the REQ_SEL should definitely be in the binding.\n>>>\n>>> Laxman, Stephen, what are your thoughts on the TRIG_SEL field? Looks\n>>> like we never bothered with it for the APB DMA and so maybe no ones uses\n>>> this.\n>>\n>> I don't think TRIG_SEL should be in the binding, at least at present. While\n>> TRIG_SEL certainly is something used to configure the transfer, I believe the\n>> semantics of the current DMA binding only cover DMA transfers that are initiated\n>> when SW desires, rather than being a combination of after SW programs the\n>> transfer plus some other HW event. So, we always use a default/hard-coded\n>> TRIG_SEL value. As such, there's no need for a TRIG_SEL value in DT. There's\n>> certainly no known use-case that requires a non-default TRIG_SEL value at\n>> present. We could add an extra #dma-cells value later if we find a use for it,\n>> and the semantics of that use-case make sense to add it to the DMA specifier,\n>> rather than some other separate higher-level property/driver/...\n> \n> Thank you for the comment. If we'd want to extend the binding further with the\n> trigger, how to differentiate trigger from the requester in a case of a single\n> #data-cell?\n> \n> Of course realistically a chance that the further extension would be needed is\n> very-very low, so we may defer the efforts to solve that question and for now\n> make driver aware of the potential #dma-cells extension.\n\nThe request selector cell isn't optional, so is always present. If we \nlater add an optional trig_sel cell, we'll either have:\n\n#dma-cells=<1>: req_sel\n\nor:\n\n#dma-cells=<2>: req_sel, trig_sel\n--\nTo unsubscribe from this list: send the line \"unsubscribe devicetree\" in\nthe body of a message to majordomo@vger.kernel.org\nMore majordomo info at  http://vger.kernel.org/majordomo-info.html","headers":{"Return-Path":"<devicetree-owner@vger.kernel.org>","X-Original-To":"incoming-dt@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-dt@bilbo.ozlabs.org","Authentication-Results":"ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=devicetree-owner@vger.kernel.org; receiver=<UNKNOWN>)","Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3y5T7c13Y0z9t7v\n\tfor <incoming-dt@patchwork.ozlabs.org>;\n\tTue,  3 Oct 2017 04:05:32 +1100 (AEDT)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751305AbdJBRFW (ORCPT\n\t<rfc822;incoming-dt@patchwork.ozlabs.org>);\n\tMon, 2 Oct 2017 13:05:22 -0400","from avon.wwwdotorg.org ([104.237.132.123]:49298 \"EHLO\n\tavon.wwwdotorg.org\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1750957AbdJBRFU (ORCPT\n\t<rfc822; devicetree@vger.kernel.org>); Mon, 2 Oct 2017 13:05:20 -0400","from [10.20.204.51] (thunderhill.nvidia.com [216.228.112.22])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128\n\tbits)) (No client certificate requested)\n\tby avon.wwwdotorg.org (Postfix) with ESMTPSA id 6168B1C05C7;\n\tMon,  2 Oct 2017 11:05:18 -0600 (MDT)"],"X-Virus-Status":"Clean","X-Virus-Scanned":"clamav-milter 0.99.2 at avon.wwwdotorg.org","Subject":"Re: [PATCH v1 3/5] dt-bindings: Add DT bindings for NVIDIA Tegra AHB\n\tDMA controller","To":"Dmitry Osipenko <digetx@gmail.com>, Jon Hunter <jonathanh@nvidia.com>,\n\tThierry Reding <thierry.reding@gmail.com>,\n\tLaxman Dewangan <ldewangan@nvidia.com>,\n\tPeter De Schrijver <pdeschrijver@nvidia.com>,\n\tPrashant Gaikwad <pgaikwad@nvidia.com>,\n\tMichael Turquette <mturquette@baylibre.com>,\n\tStephen Boyd <sboyd@codeaurora.org>, Rob Herring <robh+dt@kernel.org>,\n\tVinod Koul <vinod.koul@intel.com>","Cc":"linux-tegra@vger.kernel.org, devicetree@vger.kernel.org,\n\tdmaengine@vger.kernel.org, linux-clk@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org","References":"<cover.1506380746.git.digetx@gmail.com>\n\t<604d92036e0936443290e68a2226f935fb348113.1506380746.git.digetx@gmail.com>\n\t<bee2a524-0891-01e1-4e03-f6cf6a89e6b1@nvidia.com>\n\t<96bfdacb-3d2d-66b6-70f7-a87664b1afc7@gmail.com>\n\t<0fd316e9-3584-e9bd-2a8b-e73eaa6a9a48@nvidia.com>\n\t<9e4e3dc1-85cd-2096-118c-7d0c929b9246@wwwdotorg.org>\n\t<5a5ce745-750f-9c8f-5129-c9b0f7aee614@gmail.com>","From":"Stephen Warren <swarren@wwwdotorg.org>","Message-ID":"<788f73dc-e011-aa9d-8850-f01ab9459c91@wwwdotorg.org>","Date":"Mon, 2 Oct 2017 11:05:11 -0600","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.3.0","MIME-Version":"1.0","In-Reply-To":"<5a5ce745-750f-9c8f-5129-c9b0f7aee614@gmail.com>","Content-Type":"text/plain; charset=utf-8; format=flowed","Content-Language":"en-GB","Content-Transfer-Encoding":"8bit","Sender":"devicetree-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<devicetree.vger.kernel.org>","X-Mailing-List":"devicetree@vger.kernel.org"}},{"id":1778654,"web_url":"http://patchwork.ozlabs.org/comment/1778654/","msgid":"<795e4b19-b747-74c1-6f92-b961ab4bf822@gmail.com>","list_archive_url":null,"date":"2017-10-02T23:02:56","subject":"Re: [PATCH v1 3/5] dt-bindings: Add DT bindings for NVIDIA Tegra AHB\n\tDMA controller","submitter":{"id":18124,"url":"http://patchwork.ozlabs.org/api/people/18124/","name":"Dmitry Osipenko","email":"digetx@gmail.com"},"content":"On 02.10.2017 20:05, Stephen Warren wrote:\n> On 09/29/2017 09:11 PM, Dmitry Osipenko wrote:\n>> On 29.09.2017 22:30, Stephen Warren wrote:\n>>> On 09/27/2017 02:34 AM, Jon Hunter wrote:\n>>>>\n>>>> On 27/09/17 02:57, Dmitry Osipenko wrote:\n>>>>> On 26.09.2017 17:50, Jon Hunter wrote:\n>>>>>>\n>>>>>> On 26/09/17 00:22, Dmitry Osipenko wrote:\n>>>>>>> Document DT bindings for NVIDIA Tegra AHB DMA controller that presents\n>>>>>>> on Tegra20/30 SoC's.\n>>>>>>>\n>>>>>>> Signed-off-by: Dmitry Osipenko <digetx@gmail.com>\n>>>>>>> ---\n>>>>>>>    .../bindings/dma/nvidia,tegra20-ahbdma.txt         | 23\n>>>>>>> ++++++++++++++++++++++\n>>>>>>>    1 file changed, 23 insertions(+)\n>>>>>>>    create mode 100644\n>>>>>>> Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>>>>>\n>>>>>>> diff --git\n>>>>>>> a/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>>>>> b/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>>>>> new file mode 100644\n>>>>>>> index 000000000000..2af9aa76ae11\n>>>>>>> --- /dev/null\n>>>>>>> +++ b/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>>>>> @@ -0,0 +1,23 @@\n>>>>>>> +* NVIDIA Tegra AHB DMA controller\n>>>>>>> +\n>>>>>>> +Required properties:\n>>>>>>> +- compatible:    Must be \"nvidia,tegra20-ahbdma\"\n>>>>>>> +- reg:        Should contain registers base address and length.\n>>>>>>> +- interrupts:    Should contain one entry, DMA controller interrupt.\n>>>>>>> +- clocks:    Should contain one entry, DMA controller clock.\n>>>>>>> +- resets :    Should contain one entry, DMA controller reset.\n>>>>>>> +- #dma-cells:    Should be <1>. The cell represents DMA request select\n>>>>>>> value\n>>>>>>> +        for the peripheral. For more details consult the Tegra TRM's\n>>>>>>> +        documentation, in particular AHB DMA channel control register\n>>>>>>> +        REQ_SEL field.\n>>>>>>\n>>>>>> What about the TRIG_SEL field? Do we need to handle this here as well?\n>>>>>>\n>>>>>\n>>>>> Actually, DMA transfer trigger isn't related a hardware description. It's\n>>>>> up to\n>>>>> software to decide what trigger to select. So it shouldn't be in the binding.\n>>>>\n>>>> I think it could be, if say a board wanted a GPIO to trigger a transfer.\n>>>>\n>>>>> And I think the same applies to requester... any objections?\n>>>>\n>>>> Well, the REQ_SEL should definitely be in the binding.\n>>>>\n>>>> Laxman, Stephen, what are your thoughts on the TRIG_SEL field? Looks\n>>>> like we never bothered with it for the APB DMA and so maybe no ones uses\n>>>> this.\n>>>\n>>> I don't think TRIG_SEL should be in the binding, at least at present. While\n>>> TRIG_SEL certainly is something used to configure the transfer, I believe the\n>>> semantics of the current DMA binding only cover DMA transfers that are initiated\n>>> when SW desires, rather than being a combination of after SW programs the\n>>> transfer plus some other HW event. So, we always use a default/hard-coded\n>>> TRIG_SEL value. As such, there's no need for a TRIG_SEL value in DT. There's\n>>> certainly no known use-case that requires a non-default TRIG_SEL value at\n>>> present. We could add an extra #dma-cells value later if we find a use for it,\n>>> and the semantics of that use-case make sense to add it to the DMA specifier,\n>>> rather than some other separate higher-level property/driver/...\n>>\n>> Thank you for the comment. If we'd want to extend the binding further with the\n>> trigger, how to differentiate trigger from the requester in a case of a single\n>> #data-cell?\n>>\n>> Of course realistically a chance that the further extension would be needed is\n>> very-very low, so we may defer the efforts to solve that question and for now\n>> make driver aware of the potential #dma-cells extension.\n> \n> The request selector cell isn't optional, so is always present. If we later add\n> an optional trig_sel cell, we'll either have:\n> \n> #dma-cells=<1>: req_sel\n> \n> or:\n> \n> #dma-cells=<2>: req_sel, trig_sel\n\nWhy request sel. couldn't be optional? Could you please elaborate a bit more?\n\nI think possible options are:\n\n#dma-cells=<1>: req_sel\n#dma-cells=<1>: trig_sel\n#dma-cells=<2>: req_sel, trig_sel\n\nThe only difference between request and trigger is that trigger issues the whole\ntransfer, while request only a single burst. Isn't it possible to have a case in\nHW for the \"trigger-only\" option? If not or it's a rareness, then I agree that\nREQ_SEL must be mandatory.\n--\nTo unsubscribe from this list: send the line \"unsubscribe devicetree\" in\nthe body of a message to majordomo@vger.kernel.org\nMore majordomo info at  http://vger.kernel.org/majordomo-info.html","headers":{"Return-Path":"<devicetree-owner@vger.kernel.org>","X-Original-To":"incoming-dt@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-dt@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=devicetree-owner@vger.kernel.org; receiver=<UNKNOWN>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"NOg5ROpe\"; dkim-atps=neutral"],"Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3y5d4R0wc7z9t5q\n\tfor <incoming-dt@patchwork.ozlabs.org>;\n\tTue,  3 Oct 2017 10:03:19 +1100 (AEDT)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751247AbdJBXDE (ORCPT\n\t<rfc822;incoming-dt@patchwork.ozlabs.org>);\n\tMon, 2 Oct 2017 19:03:04 -0400","from mail-wr0-f171.google.com ([209.85.128.171]:54859 \"EHLO\n\tmail-wr0-f171.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1751075AbdJBXDB (ORCPT\n\t<rfc822; devicetree@vger.kernel.org>); Mon, 2 Oct 2017 19:03:01 -0400","by mail-wr0-f171.google.com with SMTP id o44so3304429wrf.11;\n\tMon, 02 Oct 2017 16:03:00 -0700 (PDT)","from [192.168.1.145] (ppp109-252-55-163.pppoe.spdop.ru.\n\t[109.252.55.163]) by smtp.googlemail.com with ESMTPSA id\n\th201sm10539883wmd.27.2017.10.02.16.02.57\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tMon, 02 Oct 2017 16:02:58 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=subject:to:cc:references:from:message-id:date:user-agent\n\t:mime-version:in-reply-to:content-language:content-transfer-encoding; \n\tbh=4e3Vry/hRWwJAdqp5ICtVbWhIRHHttpOarnYOsrfHU4=;\n\tb=NOg5ROpemrxKYiTtJz+u8kCdPAVpJilPa8T0t0TSjMgmC1QoOS2mw1KZHT4qljE2xA\n\tUkbINUxngcZPmomhOnDitTbzsRRAWDx0kLH6Izugjp87e7yw3N6q/YBP8kqw4qkow//N\n\tYsoOh5NY2IDFSSYjrbqjxjww8StgoIwh/F/Xy0Q7lwvmCRLVIWwX3hc1DnQGwAYcbTm2\n\tqIiCrBELL2VQv2ylRthzFtJ3U4iPm0LysBNZEzvfHPdNaJi+XkARKKlcSVsZ5BOauZ/a\n\tJIBKJfHgZkCq7M06EmfX19CtS1HkciabMGMER44VH4euuVKRdMC1JuQrUWIF5FAE+LJl\n\tgnqQ==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:subject:to:cc:references:from:message-id:date\n\t:user-agent:mime-version:in-reply-to:content-language\n\t:content-transfer-encoding;\n\tbh=4e3Vry/hRWwJAdqp5ICtVbWhIRHHttpOarnYOsrfHU4=;\n\tb=D3f860JhPPtq5fPZoY6Ef7vUtKUyjNWm1II8wjDeinNWjI/8bMTyi231Q3Sw/NxJtv\n\tN2pR165AkxBu3fkbrnXNu8t4abi0X9HIlqm/dE3jx17HMWh6u05VHliJ5lvMpxj2N7Hx\n\tmW25lQt20a7bkb8CWJLqr/yniQA7mftwhHbs3EIuNFir/KGbFqXXXPB5ynVseAwH2WAK\n\ta2gyky/Q0CLjbANQqaVE2dgRIB3Yplq3GKUxprbrUJhFS8UgDZRiwmxWJIzFlKQhVbC0\n\t+IZSISmIdUHkgm2XWtRGpbrReXVozgN2u8RSN7WDFYrETfpoGOh6rXcD6AxMm7hBioQn\n\titwg==","X-Gm-Message-State":"AMCzsaXIJs0gtheRXiyEsHQD3kyQfgHkL4+qMp6rU8Uct9rGPcXSmlRV\n\tubuvjzweFNKEqilbtZj9xPFMhAoo","X-Google-Smtp-Source":"AOwi7QAXWQlxz5RAB8MrF3w9N0a51zwUBafTP9yIxS28HnkdfDovNzZl3v1i9QI5VdSNiCnQxHdfqg==","X-Received":"by 10.223.148.38 with SMTP id 35mr3493745wrq.204.1506985379233; \n\tMon, 02 Oct 2017 16:02:59 -0700 (PDT)","Subject":"Re: [PATCH v1 3/5] dt-bindings: Add DT bindings for NVIDIA Tegra AHB\n\tDMA controller","To":"Stephen Warren <swarren@wwwdotorg.org>, Jon Hunter <jonathanh@nvidia.com>,\n\tThierry Reding <thierry.reding@gmail.com>,\n\tLaxman Dewangan <ldewangan@nvidia.com>,\n\tPeter De Schrijver <pdeschrijver@nvidia.com>,\n\tPrashant Gaikwad <pgaikwad@nvidia.com>,\n\tMichael Turquette <mturquette@baylibre.com>,\n\tStephen Boyd <sboyd@codeaurora.org>, Rob Herring <robh+dt@kernel.org>,\n\tVinod Koul <vinod.koul@intel.com>","Cc":"linux-tegra@vger.kernel.org, devicetree@vger.kernel.org,\n\tdmaengine@vger.kernel.org, linux-clk@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org","References":"<cover.1506380746.git.digetx@gmail.com>\n\t<604d92036e0936443290e68a2226f935fb348113.1506380746.git.digetx@gmail.com>\n\t<bee2a524-0891-01e1-4e03-f6cf6a89e6b1@nvidia.com>\n\t<96bfdacb-3d2d-66b6-70f7-a87664b1afc7@gmail.com>\n\t<0fd316e9-3584-e9bd-2a8b-e73eaa6a9a48@nvidia.com>\n\t<9e4e3dc1-85cd-2096-118c-7d0c929b9246@wwwdotorg.org>\n\t<5a5ce745-750f-9c8f-5129-c9b0f7aee614@gmail.com>\n\t<788f73dc-e011-aa9d-8850-f01ab9459c91@wwwdotorg.org>","From":"Dmitry Osipenko <digetx@gmail.com>","Message-ID":"<795e4b19-b747-74c1-6f92-b961ab4bf822@gmail.com>","Date":"Tue, 3 Oct 2017 02:02:56 +0300","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.3.0","MIME-Version":"1.0","In-Reply-To":"<788f73dc-e011-aa9d-8850-f01ab9459c91@wwwdotorg.org>","Content-Type":"text/plain; charset=utf-8","Content-Language":"en-US","Content-Transfer-Encoding":"8bit","Sender":"devicetree-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<devicetree.vger.kernel.org>","X-Mailing-List":"devicetree@vger.kernel.org"}},{"id":1778826,"web_url":"http://patchwork.ozlabs.org/comment/1778826/","msgid":"<4443a8fb-7a4d-922b-2dd3-53236d39a050@nvidia.com>","list_archive_url":null,"date":"2017-10-03T10:32:25","subject":"Re: [PATCH v1 3/5] dt-bindings: Add DT bindings for NVIDIA Tegra AHB\n\tDMA controller","submitter":{"id":66273,"url":"http://patchwork.ozlabs.org/api/people/66273/","name":"Jon Hunter","email":"jonathanh@nvidia.com"},"content":"On 03/10/17 00:02, Dmitry Osipenko wrote:\n> On 02.10.2017 20:05, Stephen Warren wrote:\n>> On 09/29/2017 09:11 PM, Dmitry Osipenko wrote:\n>>> On 29.09.2017 22:30, Stephen Warren wrote:\n>>>> On 09/27/2017 02:34 AM, Jon Hunter wrote:\n>>>>>\n>>>>> On 27/09/17 02:57, Dmitry Osipenko wrote:\n>>>>>> On 26.09.2017 17:50, Jon Hunter wrote:\n>>>>>>>\n>>>>>>> On 26/09/17 00:22, Dmitry Osipenko wrote:\n>>>>>>>> Document DT bindings for NVIDIA Tegra AHB DMA controller that presents\n>>>>>>>> on Tegra20/30 SoC's.\n>>>>>>>>\n>>>>>>>> Signed-off-by: Dmitry Osipenko <digetx@gmail.com>\n>>>>>>>> ---\n>>>>>>>>    .../bindings/dma/nvidia,tegra20-ahbdma.txt         | 23\n>>>>>>>> ++++++++++++++++++++++\n>>>>>>>>    1 file changed, 23 insertions(+)\n>>>>>>>>    create mode 100644\n>>>>>>>> Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>>>>>>\n>>>>>>>> diff --git\n>>>>>>>> a/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>>>>>> b/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>>>>>> new file mode 100644\n>>>>>>>> index 000000000000..2af9aa76ae11\n>>>>>>>> --- /dev/null\n>>>>>>>> +++ b/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>>>>>> @@ -0,0 +1,23 @@\n>>>>>>>> +* NVIDIA Tegra AHB DMA controller\n>>>>>>>> +\n>>>>>>>> +Required properties:\n>>>>>>>> +- compatible:    Must be \"nvidia,tegra20-ahbdma\"\n>>>>>>>> +- reg:        Should contain registers base address and length.\n>>>>>>>> +- interrupts:    Should contain one entry, DMA controller interrupt.\n>>>>>>>> +- clocks:    Should contain one entry, DMA controller clock.\n>>>>>>>> +- resets :    Should contain one entry, DMA controller reset.\n>>>>>>>> +- #dma-cells:    Should be <1>. The cell represents DMA request select\n>>>>>>>> value\n>>>>>>>> +        for the peripheral. For more details consult the Tegra TRM's\n>>>>>>>> +        documentation, in particular AHB DMA channel control register\n>>>>>>>> +        REQ_SEL field.\n>>>>>>>\n>>>>>>> What about the TRIG_SEL field? Do we need to handle this here as well?\n>>>>>>>\n>>>>>>\n>>>>>> Actually, DMA transfer trigger isn't related a hardware description. It's\n>>>>>> up to\n>>>>>> software to decide what trigger to select. So it shouldn't be in the binding.\n>>>>>\n>>>>> I think it could be, if say a board wanted a GPIO to trigger a transfer.\n>>>>>\n>>>>>> And I think the same applies to requester... any objections?\n>>>>>\n>>>>> Well, the REQ_SEL should definitely be in the binding.\n>>>>>\n>>>>> Laxman, Stephen, what are your thoughts on the TRIG_SEL field? Looks\n>>>>> like we never bothered with it for the APB DMA and so maybe no ones uses\n>>>>> this.\n>>>>\n>>>> I don't think TRIG_SEL should be in the binding, at least at present. While\n>>>> TRIG_SEL certainly is something used to configure the transfer, I believe the\n>>>> semantics of the current DMA binding only cover DMA transfers that are initiated\n>>>> when SW desires, rather than being a combination of after SW programs the\n>>>> transfer plus some other HW event. So, we always use a default/hard-coded\n>>>> TRIG_SEL value. As such, there's no need for a TRIG_SEL value in DT. There's\n>>>> certainly no known use-case that requires a non-default TRIG_SEL value at\n>>>> present. We could add an extra #dma-cells value later if we find a use for it,\n>>>> and the semantics of that use-case make sense to add it to the DMA specifier,\n>>>> rather than some other separate higher-level property/driver/...\n>>>\n>>> Thank you for the comment. If we'd want to extend the binding further with the\n>>> trigger, how to differentiate trigger from the requester in a case of a single\n>>> #data-cell?\n>>>\n>>> Of course realistically a chance that the further extension would be needed is\n>>> very-very low, so we may defer the efforts to solve that question and for now\n>>> make driver aware of the potential #dma-cells extension.\n>>\n>> The request selector cell isn't optional, so is always present. If we later add\n>> an optional trig_sel cell, we'll either have:\n>>\n>> #dma-cells=<1>: req_sel\n>>\n>> or:\n>>\n>> #dma-cells=<2>: req_sel, trig_sel\n> \n> Why request sel. couldn't be optional? Could you please elaborate a bit more?\n> \n> I think possible options are:\n> \n> #dma-cells=<1>: req_sel\n> #dma-cells=<1>: trig_sel\n\nWith the above, how would you know that it is the req_sel or trig_sel\nthat is specified?\n\n> #dma-cells=<2>: req_sel, trig_sel\n> \n> The only difference between request and trigger is that trigger issues the whole\n> transfer, while request only a single burst. Isn't it possible to have a case in\n> HW for the \"trigger-only\" option? If not or it's a rareness, then I agree that\n> REQ_SEL must be mandatory.\n\nI think that what Stephen is proposing is that for now we go with\n'#dma-cells=<1>' and if we ever need to support the trigger cell we\ncould add support for '#dma-cells=<2>'. So with this proposal the\n'req_sel' would always be required for both '#dma-cells=<1>' and\n'#dma-cells=<2>'. Even if the req_sel is not actually used but the\n'trig_sel' is, the user would have to set 'req_sel' to some pre-defined\nvalue (eg. -1) where we know to ignore it.\n\nCheers\nJon","headers":{"Return-Path":"<devicetree-owner@vger.kernel.org>","X-Original-To":"incoming-dt@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-dt@bilbo.ozlabs.org","Authentication-Results":"ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=devicetree-owner@vger.kernel.org; receiver=<UNKNOWN>)","Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3y5wQB48Mzz9s81\n\tfor <incoming-dt@patchwork.ozlabs.org>;\n\tTue,  3 Oct 2017 21:34:42 +1100 (AEDT)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751001AbdJCKeY convert rfc822-to-8bit (ORCPT\n\t<rfc822;incoming-dt@patchwork.ozlabs.org>);\n\tTue, 3 Oct 2017 06:34:24 -0400","from hqemgate16.nvidia.com ([216.228.121.65]:3925 \"EHLO\n\thqemgate16.nvidia.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1750767AbdJCKeX (ORCPT\n\t<rfc822; devicetree@vger.kernel.org>); Tue, 3 Oct 2017 06:34:23 -0400","from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by\n\thqemgate16.nvidia.com\n\tid <B59d3678b0001>; Tue, 03 Oct 2017 03:33:47 -0700","from HQMAIL101.nvidia.com ([172.20.161.6])\n\tby hqpgpgate101.nvidia.com (PGP Universal service);\n\tTue, 03 Oct 2017 03:33:52 -0700","from UKMAIL101.nvidia.com (10.26.138.13) by HQMAIL101.nvidia.com\n\t(172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1293.2;\n\tTue, 3 Oct 2017 10:32:35 +0000","from [10.21.132.144] (10.21.132.144) by UKMAIL101.nvidia.com\n\t(10.26.138.13) with Microsoft SMTP Server (TLS) id 15.0.1293.2;\n\tTue, 3 Oct 2017 10:32:30 +0000"],"X-PGP-Universal":"processed;\n\tby hqpgpgate101.nvidia.com on Tue, 03 Oct 2017 03:33:52 -0700","Subject":"Re: [PATCH v1 3/5] dt-bindings: Add DT bindings for NVIDIA Tegra AHB\n\tDMA controller","To":"Dmitry Osipenko <digetx@gmail.com>,\n\tStephen Warren <swarren@wwwdotorg.org>, \n\tThierry Reding <thierry.reding@gmail.com>,\n\t\"Laxman Dewangan\" <ldewangan@nvidia.com>,\n\tPeter De Schrijver <pdeschrijver@nvidia.com>,\n\tPrashant Gaikwad <pgaikwad@nvidia.com>,\n\t\"Michael Turquette\" <mturquette@baylibre.com>,\n\tStephen Boyd <sboyd@codeaurora.org>, Rob Herring <robh+dt@kernel.org>,\n\tVinod Koul <vinod.koul@intel.com>","CC":"<linux-tegra@vger.kernel.org>, <devicetree@vger.kernel.org>,\n\t<dmaengine@vger.kernel.org>, <linux-clk@vger.kernel.org>,\n\t<linux-kernel@vger.kernel.org>","References":"<cover.1506380746.git.digetx@gmail.com>\n\t<604d92036e0936443290e68a2226f935fb348113.1506380746.git.digetx@gmail.com>\n\t<bee2a524-0891-01e1-4e03-f6cf6a89e6b1@nvidia.com>\n\t<96bfdacb-3d2d-66b6-70f7-a87664b1afc7@gmail.com>\n\t<0fd316e9-3584-e9bd-2a8b-e73eaa6a9a48@nvidia.com>\n\t<9e4e3dc1-85cd-2096-118c-7d0c929b9246@wwwdotorg.org>\n\t<5a5ce745-750f-9c8f-5129-c9b0f7aee614@gmail.com>\n\t<788f73dc-e011-aa9d-8850-f01ab9459c91@wwwdotorg.org>\n\t<795e4b19-b747-74c1-6f92-b961ab4bf822@gmail.com>","From":"Jon Hunter <jonathanh@nvidia.com>","Message-ID":"<4443a8fb-7a4d-922b-2dd3-53236d39a050@nvidia.com>","Date":"Tue, 3 Oct 2017 11:32:25 +0100","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.3.0","MIME-Version":"1.0","In-Reply-To":"<795e4b19-b747-74c1-6f92-b961ab4bf822@gmail.com>","X-Originating-IP":"[10.21.132.144]","X-ClientProxiedBy":"UKMAIL101.nvidia.com (10.26.138.13) To\n\tUKMAIL101.nvidia.com (10.26.138.13)","Content-Type":"text/plain; charset=\"utf-8\"","Content-Language":"en-US","Content-Transfer-Encoding":"8BIT","Sender":"devicetree-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<devicetree.vger.kernel.org>","X-Mailing-List":"devicetree@vger.kernel.org"}},{"id":1778870,"web_url":"http://patchwork.ozlabs.org/comment/1778870/","msgid":"<d2ae09b5-7645-c79c-efcf-69b26adbfc19@gmail.com>","list_archive_url":null,"date":"2017-10-03T12:07:17","subject":"Re: [PATCH v1 3/5] dt-bindings: Add DT bindings for NVIDIA Tegra AHB\n\tDMA controller","submitter":{"id":18124,"url":"http://patchwork.ozlabs.org/api/people/18124/","name":"Dmitry Osipenko","email":"digetx@gmail.com"},"content":"On 03.10.2017 13:32, Jon Hunter wrote:\n> \n> \n> On 03/10/17 00:02, Dmitry Osipenko wrote:\n>> On 02.10.2017 20:05, Stephen Warren wrote:\n>>> On 09/29/2017 09:11 PM, Dmitry Osipenko wrote:\n>>>> On 29.09.2017 22:30, Stephen Warren wrote:\n>>>>> On 09/27/2017 02:34 AM, Jon Hunter wrote:\n>>>>>>\n>>>>>> On 27/09/17 02:57, Dmitry Osipenko wrote:\n>>>>>>> On 26.09.2017 17:50, Jon Hunter wrote:\n>>>>>>>>\n>>>>>>>> On 26/09/17 00:22, Dmitry Osipenko wrote:\n>>>>>>>>> Document DT bindings for NVIDIA Tegra AHB DMA controller that presents\n>>>>>>>>> on Tegra20/30 SoC's.\n>>>>>>>>>\n>>>>>>>>> Signed-off-by: Dmitry Osipenko <digetx@gmail.com>\n>>>>>>>>> ---\n>>>>>>>>>    .../bindings/dma/nvidia,tegra20-ahbdma.txt         | 23\n>>>>>>>>> ++++++++++++++++++++++\n>>>>>>>>>    1 file changed, 23 insertions(+)\n>>>>>>>>>    create mode 100644\n>>>>>>>>> Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>>>>>>>\n>>>>>>>>> diff --git\n>>>>>>>>> a/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>>>>>>> b/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>>>>>>> new file mode 100644\n>>>>>>>>> index 000000000000..2af9aa76ae11\n>>>>>>>>> --- /dev/null\n>>>>>>>>> +++ b/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>>>>>>> @@ -0,0 +1,23 @@\n>>>>>>>>> +* NVIDIA Tegra AHB DMA controller\n>>>>>>>>> +\n>>>>>>>>> +Required properties:\n>>>>>>>>> +- compatible:    Must be \"nvidia,tegra20-ahbdma\"\n>>>>>>>>> +- reg:        Should contain registers base address and length.\n>>>>>>>>> +- interrupts:    Should contain one entry, DMA controller interrupt.\n>>>>>>>>> +- clocks:    Should contain one entry, DMA controller clock.\n>>>>>>>>> +- resets :    Should contain one entry, DMA controller reset.\n>>>>>>>>> +- #dma-cells:    Should be <1>. The cell represents DMA request select\n>>>>>>>>> value\n>>>>>>>>> +        for the peripheral. For more details consult the Tegra TRM's\n>>>>>>>>> +        documentation, in particular AHB DMA channel control register\n>>>>>>>>> +        REQ_SEL field.\n>>>>>>>>\n>>>>>>>> What about the TRIG_SEL field? Do we need to handle this here as well?\n>>>>>>>>\n>>>>>>>\n>>>>>>> Actually, DMA transfer trigger isn't related a hardware description. It's\n>>>>>>> up to\n>>>>>>> software to decide what trigger to select. So it shouldn't be in the binding.\n>>>>>>\n>>>>>> I think it could be, if say a board wanted a GPIO to trigger a transfer.\n>>>>>>\n>>>>>>> And I think the same applies to requester... any objections?\n>>>>>>\n>>>>>> Well, the REQ_SEL should definitely be in the binding.\n>>>>>>\n>>>>>> Laxman, Stephen, what are your thoughts on the TRIG_SEL field? Looks\n>>>>>> like we never bothered with it for the APB DMA and so maybe no ones uses\n>>>>>> this.\n>>>>>\n>>>>> I don't think TRIG_SEL should be in the binding, at least at present. While\n>>>>> TRIG_SEL certainly is something used to configure the transfer, I believe the\n>>>>> semantics of the current DMA binding only cover DMA transfers that are initiated\n>>>>> when SW desires, rather than being a combination of after SW programs the\n>>>>> transfer plus some other HW event. So, we always use a default/hard-coded\n>>>>> TRIG_SEL value. As such, there's no need for a TRIG_SEL value in DT. There's\n>>>>> certainly no known use-case that requires a non-default TRIG_SEL value at\n>>>>> present. We could add an extra #dma-cells value later if we find a use for it,\n>>>>> and the semantics of that use-case make sense to add it to the DMA specifier,\n>>>>> rather than some other separate higher-level property/driver/...\n>>>>\n>>>> Thank you for the comment. If we'd want to extend the binding further with the\n>>>> trigger, how to differentiate trigger from the requester in a case of a single\n>>>> #data-cell?\n>>>>\n>>>> Of course realistically a chance that the further extension would be needed is\n>>>> very-very low, so we may defer the efforts to solve that question and for now\n>>>> make driver aware of the potential #dma-cells extension.\n>>>\n>>> The request selector cell isn't optional, so is always present. If we later add\n>>> an optional trig_sel cell, we'll either have:\n>>>\n>>> #dma-cells=<1>: req_sel\n>>>\n>>> or:\n>>>\n>>> #dma-cells=<2>: req_sel, trig_sel\n>>\n>> Why request sel. couldn't be optional? Could you please elaborate a bit more?\n>>\n>> I think possible options are:\n>>\n>> #dma-cells=<1>: req_sel\n>> #dma-cells=<1>: trig_sel\n> \n> With the above, how would you know that it is the req_sel or trig_sel\n> that is specified?\n> \n>> #dma-cells=<2>: req_sel, trig_sel\n>>\n>> The only difference between request and trigger is that trigger issues the whole\n>> transfer, while request only a single burst. Isn't it possible to have a case in\n>> HW for the \"trigger-only\" option? If not or it's a rareness, then I agree that\n>> REQ_SEL must be mandatory.\n> \n> I think that what Stephen is proposing is that for now we go with\n> '#dma-cells=<1>' and if we ever need to support the trigger cell we\n> could add support for '#dma-cells=<2>'. So with this proposal the\n> 'req_sel' would always be required for both '#dma-cells=<1>' and\n> '#dma-cells=<2>'. Even if the req_sel is not actually used but the\n> 'trig_sel' is, the user would have to set 'req_sel' to some pre-defined\n> value (eg. -1) where we know to ignore it.\n> \n\nOkay, I see now. Thank you for the clarification, but then we should have that\npre-defined value declared in the binding?\n--\nTo unsubscribe from this list: send the line \"unsubscribe devicetree\" in\nthe body of a message to majordomo@vger.kernel.org\nMore majordomo info at  http://vger.kernel.org/majordomo-info.html","headers":{"Return-Path":"<devicetree-owner@vger.kernel.org>","X-Original-To":"incoming-dt@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-dt@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=devicetree-owner@vger.kernel.org; receiver=<UNKNOWN>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"NQFQwEZ2\"; dkim-atps=neutral"],"Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3y5yTF0Crkz9t2h\n\tfor <incoming-dt@patchwork.ozlabs.org>;\n\tTue,  3 Oct 2017 23:07:29 +1100 (AEDT)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751116AbdJCMH0 (ORCPT\n\t<rfc822;incoming-dt@patchwork.ozlabs.org>);\n\tTue, 3 Oct 2017 08:07:26 -0400","from mail-lf0-f66.google.com ([209.85.215.66]:50361 \"EHLO\n\tmail-lf0-f66.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1750865AbdJCMHX (ORCPT\n\t<rfc822; devicetree@vger.kernel.org>); Tue, 3 Oct 2017 08:07:23 -0400","by mail-lf0-f66.google.com with SMTP id a132so1270565lfa.7;\n\tTue, 03 Oct 2017 05:07:22 -0700 (PDT)","from [192.168.1.145] (ppp109-252-55-163.pppoe.spdop.ru.\n\t[109.252.55.163]) by smtp.googlemail.com with ESMTPSA id\n\tv28sm2869134ljd.0.2017.10.03.05.07.18\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tTue, 03 Oct 2017 05:07:20 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=subject:to:cc:references:from:message-id:date:user-agent\n\t:mime-version:in-reply-to:content-language:content-transfer-encoding; \n\tbh=h6wd/7l/SE41JHZ1csCFZ1x9mQhFsCNe5UIjvNEUJzU=;\n\tb=NQFQwEZ2WkPFuxQRTI8OUZhRA20QdNXX0Wffc0Mr7fxuzRKbXvrYzqT0rQLK/C9TxI\n\t2ivLojFtZomJm0UmSM8wf4XhgVEssmTSBBOmoFf6iqJYU37XwJ55IrQUONneLeapwYEo\n\tVJSFkHkPq4EkJsQJpY8mY9TPYwpRtzV8/1WSc565BZke5j1z9ofBtyHs6uUO6r143BCB\n\t3HQZRSJO/aahIHyM5jpdXTJ0p5ThTtVe+bNwG9Db46+oMtJBsuN9FybxZJRDeH8/X9/T\n\tOsasocWS/742V1uYZ0fs2s9YAuZbCVbehZvhDHfrijo6q7I+SB1ymzdI2xahlGPmrggD\n\ttLgg==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:subject:to:cc:references:from:message-id:date\n\t:user-agent:mime-version:in-reply-to:content-language\n\t:content-transfer-encoding;\n\tbh=h6wd/7l/SE41JHZ1csCFZ1x9mQhFsCNe5UIjvNEUJzU=;\n\tb=CXlepqvTuXUVraH0lkzQ6NOVTnPJjhIWOVY8j/71KfiqQa0QZMs98BK4ZvDGCbTisa\n\t9wSn0Fjd7MlqOPPt24uTRYYKfEYgWL5I4byWXsNs/8WTG9ZBcSxyS3yS5fbpH9sGbIK/\n\tuHXZxx4PO/fFMxklJMCtMAIHpj3QWo4BM/Fj6DOmBxDOGk6mvEjllwJl5Gi/bg7cP5Pj\n\t2SvL5F6QhlhFKZowGLljeRdplmSiKfBm0kSWPXnlI4pIKCcsY+oPMF0RZsXGj92tO4b1\n\t+r7CzpYTvYqQkiasLYrkILBdPj2wZ+Dn1CHLtm+VbK+WXWWhDS//DePlKSOYH3/FWHUH\n\tb8hA==","X-Gm-Message-State":"AHPjjUgGh9tYYJF/zUPgzFzRzApPKfMxL4VPWusjuDOKGMjmmwJ5hlAk\n\tdPoFloAga18JjPI/X/ijp1vQ6yCY","X-Google-Smtp-Source":"AOwi7QDZnt+5JZz1goMYLl8nrI9eoQ/QPlKeOpqTrztTKKTG8u78MNIJYZUjtKyFqHRGoM6FRiXDsQ==","X-Received":"by 10.25.38.6 with SMTP id m6mr5565572lfm.226.1507032440853;\n\tTue, 03 Oct 2017 05:07:20 -0700 (PDT)","Subject":"Re: [PATCH v1 3/5] dt-bindings: Add DT bindings for NVIDIA Tegra AHB\n\tDMA controller","To":"Jon Hunter <jonathanh@nvidia.com>, Stephen Warren <swarren@wwwdotorg.org>,\n\tThierry Reding <thierry.reding@gmail.com>,\n\tLaxman Dewangan <ldewangan@nvidia.com>,\n\tPeter De Schrijver <pdeschrijver@nvidia.com>,\n\tPrashant Gaikwad <pgaikwad@nvidia.com>,\n\tMichael Turquette <mturquette@baylibre.com>,\n\tStephen Boyd <sboyd@codeaurora.org>, Rob Herring <robh+dt@kernel.org>,\n\tVinod Koul <vinod.koul@intel.com>","Cc":"linux-tegra@vger.kernel.org, devicetree@vger.kernel.org,\n\tdmaengine@vger.kernel.org, linux-clk@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org","References":"<cover.1506380746.git.digetx@gmail.com>\n\t<604d92036e0936443290e68a2226f935fb348113.1506380746.git.digetx@gmail.com>\n\t<bee2a524-0891-01e1-4e03-f6cf6a89e6b1@nvidia.com>\n\t<96bfdacb-3d2d-66b6-70f7-a87664b1afc7@gmail.com>\n\t<0fd316e9-3584-e9bd-2a8b-e73eaa6a9a48@nvidia.com>\n\t<9e4e3dc1-85cd-2096-118c-7d0c929b9246@wwwdotorg.org>\n\t<5a5ce745-750f-9c8f-5129-c9b0f7aee614@gmail.com>\n\t<788f73dc-e011-aa9d-8850-f01ab9459c91@wwwdotorg.org>\n\t<795e4b19-b747-74c1-6f92-b961ab4bf822@gmail.com>\n\t<4443a8fb-7a4d-922b-2dd3-53236d39a050@nvidia.com>","From":"Dmitry Osipenko <digetx@gmail.com>","Message-ID":"<d2ae09b5-7645-c79c-efcf-69b26adbfc19@gmail.com>","Date":"Tue, 3 Oct 2017 15:07:17 +0300","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.3.0","MIME-Version":"1.0","In-Reply-To":"<4443a8fb-7a4d-922b-2dd3-53236d39a050@nvidia.com>","Content-Type":"text/plain; charset=utf-8","Content-Language":"en-US","Content-Transfer-Encoding":"8bit","Sender":"devicetree-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<devicetree.vger.kernel.org>","X-Mailing-List":"devicetree@vger.kernel.org"}},{"id":1778891,"web_url":"http://patchwork.ozlabs.org/comment/1778891/","msgid":"<f23600ea-d249-970a-1c28-3e27c5b232f9@nvidia.com>","list_archive_url":null,"date":"2017-10-03T12:19:31","subject":"Re: [PATCH v1 3/5] dt-bindings: Add DT bindings for NVIDIA Tegra AHB\n\tDMA controller","submitter":{"id":66273,"url":"http://patchwork.ozlabs.org/api/people/66273/","name":"Jon Hunter","email":"jonathanh@nvidia.com"},"content":"On 03/10/17 13:07, Dmitry Osipenko wrote:\n> On 03.10.2017 13:32, Jon Hunter wrote:\n>>\n>>\n>> On 03/10/17 00:02, Dmitry Osipenko wrote:\n>>> On 02.10.2017 20:05, Stephen Warren wrote:\n>>>> On 09/29/2017 09:11 PM, Dmitry Osipenko wrote:\n>>>>> On 29.09.2017 22:30, Stephen Warren wrote:\n>>>>>> On 09/27/2017 02:34 AM, Jon Hunter wrote:\n>>>>>>>\n>>>>>>> On 27/09/17 02:57, Dmitry Osipenko wrote:\n>>>>>>>> On 26.09.2017 17:50, Jon Hunter wrote:\n>>>>>>>>>\n>>>>>>>>> On 26/09/17 00:22, Dmitry Osipenko wrote:\n>>>>>>>>>> Document DT bindings for NVIDIA Tegra AHB DMA controller that presents\n>>>>>>>>>> on Tegra20/30 SoC's.\n>>>>>>>>>>\n>>>>>>>>>> Signed-off-by: Dmitry Osipenko <digetx@gmail.com>\n>>>>>>>>>> ---\n>>>>>>>>>>    .../bindings/dma/nvidia,tegra20-ahbdma.txt         | 23\n>>>>>>>>>> ++++++++++++++++++++++\n>>>>>>>>>>    1 file changed, 23 insertions(+)\n>>>>>>>>>>    create mode 100644\n>>>>>>>>>> Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>>>>>>>>\n>>>>>>>>>> diff --git\n>>>>>>>>>> a/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>>>>>>>> b/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>>>>>>>> new file mode 100644\n>>>>>>>>>> index 000000000000..2af9aa76ae11\n>>>>>>>>>> --- /dev/null\n>>>>>>>>>> +++ b/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>>>>>>>> @@ -0,0 +1,23 @@\n>>>>>>>>>> +* NVIDIA Tegra AHB DMA controller\n>>>>>>>>>> +\n>>>>>>>>>> +Required properties:\n>>>>>>>>>> +- compatible:    Must be \"nvidia,tegra20-ahbdma\"\n>>>>>>>>>> +- reg:        Should contain registers base address and length.\n>>>>>>>>>> +- interrupts:    Should contain one entry, DMA controller interrupt.\n>>>>>>>>>> +- clocks:    Should contain one entry, DMA controller clock.\n>>>>>>>>>> +- resets :    Should contain one entry, DMA controller reset.\n>>>>>>>>>> +- #dma-cells:    Should be <1>. The cell represents DMA request select\n>>>>>>>>>> value\n>>>>>>>>>> +        for the peripheral. For more details consult the Tegra TRM's\n>>>>>>>>>> +        documentation, in particular AHB DMA channel control register\n>>>>>>>>>> +        REQ_SEL field.\n>>>>>>>>>\n>>>>>>>>> What about the TRIG_SEL field? Do we need to handle this here as well?\n>>>>>>>>>\n>>>>>>>>\n>>>>>>>> Actually, DMA transfer trigger isn't related a hardware description. It's\n>>>>>>>> up to\n>>>>>>>> software to decide what trigger to select. So it shouldn't be in the binding.\n>>>>>>>\n>>>>>>> I think it could be, if say a board wanted a GPIO to trigger a transfer.\n>>>>>>>\n>>>>>>>> And I think the same applies to requester... any objections?\n>>>>>>>\n>>>>>>> Well, the REQ_SEL should definitely be in the binding.\n>>>>>>>\n>>>>>>> Laxman, Stephen, what are your thoughts on the TRIG_SEL field? Looks\n>>>>>>> like we never bothered with it for the APB DMA and so maybe no ones uses\n>>>>>>> this.\n>>>>>>\n>>>>>> I don't think TRIG_SEL should be in the binding, at least at present. While\n>>>>>> TRIG_SEL certainly is something used to configure the transfer, I believe the\n>>>>>> semantics of the current DMA binding only cover DMA transfers that are initiated\n>>>>>> when SW desires, rather than being a combination of after SW programs the\n>>>>>> transfer plus some other HW event. So, we always use a default/hard-coded\n>>>>>> TRIG_SEL value. As such, there's no need for a TRIG_SEL value in DT. There's\n>>>>>> certainly no known use-case that requires a non-default TRIG_SEL value at\n>>>>>> present. We could add an extra #dma-cells value later if we find a use for it,\n>>>>>> and the semantics of that use-case make sense to add it to the DMA specifier,\n>>>>>> rather than some other separate higher-level property/driver/...\n>>>>>\n>>>>> Thank you for the comment. If we'd want to extend the binding further with the\n>>>>> trigger, how to differentiate trigger from the requester in a case of a single\n>>>>> #data-cell?\n>>>>>\n>>>>> Of course realistically a chance that the further extension would be needed is\n>>>>> very-very low, so we may defer the efforts to solve that question and for now\n>>>>> make driver aware of the potential #dma-cells extension.\n>>>>\n>>>> The request selector cell isn't optional, so is always present. If we later add\n>>>> an optional trig_sel cell, we'll either have:\n>>>>\n>>>> #dma-cells=<1>: req_sel\n>>>>\n>>>> or:\n>>>>\n>>>> #dma-cells=<2>: req_sel, trig_sel\n>>>\n>>> Why request sel. couldn't be optional? Could you please elaborate a bit more?\n>>>\n>>> I think possible options are:\n>>>\n>>> #dma-cells=<1>: req_sel\n>>> #dma-cells=<1>: trig_sel\n>>\n>> With the above, how would you know that it is the req_sel or trig_sel\n>> that is specified?\n>>\n>>> #dma-cells=<2>: req_sel, trig_sel\n>>>\n>>> The only difference between request and trigger is that trigger issues the whole\n>>> transfer, while request only a single burst. Isn't it possible to have a case in\n>>> HW for the \"trigger-only\" option? If not or it's a rareness, then I agree that\n>>> REQ_SEL must be mandatory.\n>>\n>> I think that what Stephen is proposing is that for now we go with\n>> '#dma-cells=<1>' and if we ever need to support the trigger cell we\n>> could add support for '#dma-cells=<2>'. So with this proposal the\n>> 'req_sel' would always be required for both '#dma-cells=<1>' and\n>> '#dma-cells=<2>'. Even if the req_sel is not actually used but the\n>> 'trig_sel' is, the user would have to set 'req_sel' to some pre-defined\n>> value (eg. -1) where we know to ignore it.\n>>\n> \n> Okay, I see now. Thank you for the clarification, but then we should have that\n> pre-defined value declared in the binding?\n\nI would have thought it should be in the dt-binding header.\n\nCheers\nJon","headers":{"Return-Path":"<devicetree-owner@vger.kernel.org>","X-Original-To":"incoming-dt@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-dt@bilbo.ozlabs.org","Authentication-Results":"ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=devicetree-owner@vger.kernel.org; receiver=<UNKNOWN>)","Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3y5ynV26FFz9t2Z\n\tfor <incoming-dt@patchwork.ozlabs.org>;\n\tTue,  3 Oct 2017 23:21:34 +1100 (AEDT)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752256AbdJCMUG convert rfc822-to-8bit (ORCPT\n\t<rfc822;incoming-dt@patchwork.ozlabs.org>);\n\tTue, 3 Oct 2017 08:20:06 -0400","from hqemgate15.nvidia.com ([216.228.121.64]:2544 \"EHLO\n\thqemgate15.nvidia.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1752248AbdJCMUC (ORCPT\n\t<rfc822; devicetree@vger.kernel.org>); Tue, 3 Oct 2017 08:20:02 -0400","from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by\n\thqemgate15.nvidia.com\n\tid <B59d380530000>; Tue, 03 Oct 2017 05:19:31 -0700","from HQMAIL108.nvidia.com ([172.20.161.6])\n\tby hqpgpgate101.nvidia.com (PGP Universal service);\n\tTue, 03 Oct 2017 05:19:36 -0700","from UKMAIL101.nvidia.com (10.26.138.13) by HQMAIL108.nvidia.com\n\t(172.18.146.13) with Microsoft SMTP Server (TLS) id 15.0.1293.2;\n\tTue, 3 Oct 2017 12:19:36 +0000","from [10.21.132.144] (10.21.132.144) by UKMAIL101.nvidia.com\n\t(10.26.138.13) with Microsoft SMTP Server (TLS) id 15.0.1293.2;\n\tTue, 3 Oct 2017 12:19:32 +0000"],"X-PGP-Universal":"processed;\n\tby hqpgpgate101.nvidia.com on Tue, 03 Oct 2017 05:19:36 -0700","Subject":"Re: [PATCH v1 3/5] dt-bindings: Add DT bindings for NVIDIA Tegra AHB\n\tDMA controller","To":"Dmitry Osipenko <digetx@gmail.com>,\n\tStephen Warren <swarren@wwwdotorg.org>, \n\tThierry Reding <thierry.reding@gmail.com>,\n\t\"Laxman Dewangan\" <ldewangan@nvidia.com>,\n\tPeter De Schrijver <pdeschrijver@nvidia.com>,\n\tPrashant Gaikwad <pgaikwad@nvidia.com>,\n\t\"Michael Turquette\" <mturquette@baylibre.com>,\n\tStephen Boyd <sboyd@codeaurora.org>, \"Rob Herring\" <robh+dt@kernel.org>, \n\tVinod Koul <vinod.koul@intel.com>","CC":"<linux-tegra@vger.kernel.org>, <devicetree@vger.kernel.org>,\n\t<dmaengine@vger.kernel.org>, <linux-clk@vger.kernel.org>,\n\t<linux-kernel@vger.kernel.org>","References":"<cover.1506380746.git.digetx@gmail.com>\n\t<604d92036e0936443290e68a2226f935fb348113.1506380746.git.digetx@gmail.com>\n\t<bee2a524-0891-01e1-4e03-f6cf6a89e6b1@nvidia.com>\n\t<96bfdacb-3d2d-66b6-70f7-a87664b1afc7@gmail.com>\n\t<0fd316e9-3584-e9bd-2a8b-e73eaa6a9a48@nvidia.com>\n\t<9e4e3dc1-85cd-2096-118c-7d0c929b9246@wwwdotorg.org>\n\t<5a5ce745-750f-9c8f-5129-c9b0f7aee614@gmail.com>\n\t<788f73dc-e011-aa9d-8850-f01ab9459c91@wwwdotorg.org>\n\t<795e4b19-b747-74c1-6f92-b961ab4bf822@gmail.com>\n\t<4443a8fb-7a4d-922b-2dd3-53236d39a050@nvidia.com>\n\t<d2ae09b5-7645-c79c-efcf-69b26adbfc19@gmail.com>","From":"Jon Hunter <jonathanh@nvidia.com>","Message-ID":"<f23600ea-d249-970a-1c28-3e27c5b232f9@nvidia.com>","Date":"Tue, 3 Oct 2017 13:19:31 +0100","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.3.0","MIME-Version":"1.0","In-Reply-To":"<d2ae09b5-7645-c79c-efcf-69b26adbfc19@gmail.com>","X-Originating-IP":"[10.21.132.144]","X-ClientProxiedBy":"UKMAIL101.nvidia.com (10.26.138.13) To\n\tUKMAIL101.nvidia.com (10.26.138.13)","Content-Type":"text/plain; charset=\"utf-8\"","Content-Language":"en-US","Content-Transfer-Encoding":"8BIT","Sender":"devicetree-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<devicetree.vger.kernel.org>","X-Mailing-List":"devicetree@vger.kernel.org"}},{"id":1779091,"web_url":"http://patchwork.ozlabs.org/comment/1779091/","msgid":"<ecf50d7b-59d2-7b98-5d45-e95922e495bf@wwwdotorg.org>","list_archive_url":null,"date":"2017-10-03T15:38:07","subject":"Re: [PATCH v1 3/5] dt-bindings: Add DT bindings for NVIDIA Tegra AHB\n\tDMA controller","submitter":{"id":12517,"url":"http://patchwork.ozlabs.org/api/people/12517/","name":"Stephen Warren","email":"swarren@wwwdotorg.org"},"content":"On 10/03/2017 04:32 AM, Jon Hunter wrote:\n> \n> \n> On 03/10/17 00:02, Dmitry Osipenko wrote:\n>> On 02.10.2017 20:05, Stephen Warren wrote:\n>>> On 09/29/2017 09:11 PM, Dmitry Osipenko wrote:\n>>>> On 29.09.2017 22:30, Stephen Warren wrote:\n>>>>> On 09/27/2017 02:34 AM, Jon Hunter wrote:\n>>>>>>\n>>>>>> On 27/09/17 02:57, Dmitry Osipenko wrote:\n>>>>>>> On 26.09.2017 17:50, Jon Hunter wrote:\n>>>>>>>>\n>>>>>>>> On 26/09/17 00:22, Dmitry Osipenko wrote:\n>>>>>>>>> Document DT bindings for NVIDIA Tegra AHB DMA controller that presents\n>>>>>>>>> on Tegra20/30 SoC's.\n>>>>>>>>>\n>>>>>>>>> Signed-off-by: Dmitry Osipenko <digetx@gmail.com>\n>>>>>>>>> ---\n>>>>>>>>>     .../bindings/dma/nvidia,tegra20-ahbdma.txt         | 23\n>>>>>>>>> ++++++++++++++++++++++\n>>>>>>>>>     1 file changed, 23 insertions(+)\n>>>>>>>>>     create mode 100644\n>>>>>>>>> Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>>>>>>>\n>>>>>>>>> diff --git\n>>>>>>>>> a/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>>>>>>> b/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>>>>>>> new file mode 100644\n>>>>>>>>> index 000000000000..2af9aa76ae11\n>>>>>>>>> --- /dev/null\n>>>>>>>>> +++ b/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>>>>>>> @@ -0,0 +1,23 @@\n>>>>>>>>> +* NVIDIA Tegra AHB DMA controller\n>>>>>>>>> +\n>>>>>>>>> +Required properties:\n>>>>>>>>> +- compatible:    Must be \"nvidia,tegra20-ahbdma\"\n>>>>>>>>> +- reg:        Should contain registers base address and length.\n>>>>>>>>> +- interrupts:    Should contain one entry, DMA controller interrupt.\n>>>>>>>>> +- clocks:    Should contain one entry, DMA controller clock.\n>>>>>>>>> +- resets :    Should contain one entry, DMA controller reset.\n>>>>>>>>> +- #dma-cells:    Should be <1>. The cell represents DMA request select\n>>>>>>>>> value\n>>>>>>>>> +        for the peripheral. For more details consult the Tegra TRM's\n>>>>>>>>> +        documentation, in particular AHB DMA channel control register\n>>>>>>>>> +        REQ_SEL field.\n>>>>>>>>\n>>>>>>>> What about the TRIG_SEL field? Do we need to handle this here as well?\n>>>>>>>>\n>>>>>>>\n>>>>>>> Actually, DMA transfer trigger isn't related a hardware description. It's\n>>>>>>> up to\n>>>>>>> software to decide what trigger to select. So it shouldn't be in the binding.\n>>>>>>\n>>>>>> I think it could be, if say a board wanted a GPIO to trigger a transfer.\n>>>>>>\n>>>>>>> And I think the same applies to requester... any objections?\n>>>>>>\n>>>>>> Well, the REQ_SEL should definitely be in the binding.\n>>>>>>\n>>>>>> Laxman, Stephen, what are your thoughts on the TRIG_SEL field? Looks\n>>>>>> like we never bothered with it for the APB DMA and so maybe no ones uses\n>>>>>> this.\n>>>>>\n>>>>> I don't think TRIG_SEL should be in the binding, at least at present. While\n>>>>> TRIG_SEL certainly is something used to configure the transfer, I believe the\n>>>>> semantics of the current DMA binding only cover DMA transfers that are initiated\n>>>>> when SW desires, rather than being a combination of after SW programs the\n>>>>> transfer plus some other HW event. So, we always use a default/hard-coded\n>>>>> TRIG_SEL value. As such, there's no need for a TRIG_SEL value in DT. There's\n>>>>> certainly no known use-case that requires a non-default TRIG_SEL value at\n>>>>> present. We could add an extra #dma-cells value later if we find a use for it,\n>>>>> and the semantics of that use-case make sense to add it to the DMA specifier,\n>>>>> rather than some other separate higher-level property/driver/...\n>>>>\n>>>> Thank you for the comment. If we'd want to extend the binding further with the\n>>>> trigger, how to differentiate trigger from the requester in a case of a single\n>>>> #data-cell?\n>>>>\n>>>> Of course realistically a chance that the further extension would be needed is\n>>>> very-very low, so we may defer the efforts to solve that question and for now\n>>>> make driver aware of the potential #dma-cells extension.\n>>>\n>>> The request selector cell isn't optional, so is always present. If we later add\n>>> an optional trig_sel cell, we'll either have:\n>>>\n>>> #dma-cells=<1>: req_sel\n>>>\n>>> or:\n>>>\n>>> #dma-cells=<2>: req_sel, trig_sel\n>>\n>> Why request sel. couldn't be optional? Could you please elaborate a bit more?\n\nThe documentation currently says it's mandatory, and DT bindings must be \nevolved in a backwards-compatible fashion.\n\n>> I think possible options are:\n>>\n>> #dma-cells=<1>: req_sel\n>> #dma-cells=<1>: trig_sel\n> \n> With the above, how would you know that it is the req_sel or trig_sel\n> that is specified?\n\nAlso, if req_sel were optional, then it'd be impossible to distinguish \nbetween those cases, so we can't design a binding like that. In general, \nwhen adding extra optional cells to an #xxx-cells style binding, then \nwhenever cell N is present, all cells before cell N must be present even \nif optional.\n--\nTo unsubscribe from this list: send the line \"unsubscribe devicetree\" in\nthe body of a message to majordomo@vger.kernel.org\nMore majordomo info at  http://vger.kernel.org/majordomo-info.html","headers":{"Return-Path":"<devicetree-owner@vger.kernel.org>","X-Original-To":"incoming-dt@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-dt@bilbo.ozlabs.org","Authentication-Results":"ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=devicetree-owner@vger.kernel.org; receiver=<UNKNOWN>)","Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3y638g61p6z9sNw\n\tfor <incoming-dt@patchwork.ozlabs.org>;\n\tWed,  4 Oct 2017 02:38:27 +1100 (AEDT)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752477AbdJCPiM (ORCPT\n\t<rfc822;incoming-dt@patchwork.ozlabs.org>);\n\tTue, 3 Oct 2017 11:38:12 -0400","from avon.wwwdotorg.org ([104.237.132.123]:53322 \"EHLO\n\tavon.wwwdotorg.org\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1751962AbdJCPiL (ORCPT\n\t<rfc822; devicetree@vger.kernel.org>); Tue, 3 Oct 2017 11:38:11 -0400","from [10.20.204.51] (thunderhill.nvidia.com [216.228.112.22])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128\n\tbits)) (No client certificate requested)\n\tby avon.wwwdotorg.org (Postfix) with ESMTPSA id 4F5851C03B8;\n\tTue,  3 Oct 2017 09:38:09 -0600 (MDT)"],"X-Virus-Status":"Clean","X-Virus-Scanned":"clamav-milter 0.99.2 at avon.wwwdotorg.org","Subject":"Re: [PATCH v1 3/5] dt-bindings: Add DT bindings for NVIDIA Tegra AHB\n\tDMA controller","To":"Jon Hunter <jonathanh@nvidia.com>, Dmitry Osipenko <digetx@gmail.com>,\n\tThierry Reding <thierry.reding@gmail.com>,\n\tLaxman Dewangan <ldewangan@nvidia.com>,\n\tPeter De Schrijver <pdeschrijver@nvidia.com>,\n\tPrashant Gaikwad <pgaikwad@nvidia.com>,\n\tMichael Turquette <mturquette@baylibre.com>,\n\tStephen Boyd <sboyd@codeaurora.org>, Rob Herring <robh+dt@kernel.org>,\n\tVinod Koul <vinod.koul@intel.com>","Cc":"linux-tegra@vger.kernel.org, devicetree@vger.kernel.org,\n\tdmaengine@vger.kernel.org, linux-clk@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org","References":"<cover.1506380746.git.digetx@gmail.com>\n\t<604d92036e0936443290e68a2226f935fb348113.1506380746.git.digetx@gmail.com>\n\t<bee2a524-0891-01e1-4e03-f6cf6a89e6b1@nvidia.com>\n\t<96bfdacb-3d2d-66b6-70f7-a87664b1afc7@gmail.com>\n\t<0fd316e9-3584-e9bd-2a8b-e73eaa6a9a48@nvidia.com>\n\t<9e4e3dc1-85cd-2096-118c-7d0c929b9246@wwwdotorg.org>\n\t<5a5ce745-750f-9c8f-5129-c9b0f7aee614@gmail.com>\n\t<788f73dc-e011-aa9d-8850-f01ab9459c91@wwwdotorg.org>\n\t<795e4b19-b747-74c1-6f92-b961ab4bf822@gmail.com>\n\t<4443a8fb-7a4d-922b-2dd3-53236d39a050@nvidia.com>","From":"Stephen Warren <swarren@wwwdotorg.org>","Message-ID":"<ecf50d7b-59d2-7b98-5d45-e95922e495bf@wwwdotorg.org>","Date":"Tue, 3 Oct 2017 09:38:07 -0600","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.3.0","MIME-Version":"1.0","In-Reply-To":"<4443a8fb-7a4d-922b-2dd3-53236d39a050@nvidia.com>","Content-Type":"text/plain; charset=utf-8; format=flowed","Content-Language":"en-GB","Content-Transfer-Encoding":"8bit","Sender":"devicetree-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<devicetree.vger.kernel.org>","X-Mailing-List":"devicetree@vger.kernel.org"}},{"id":1779145,"web_url":"http://patchwork.ozlabs.org/comment/1779145/","msgid":"<93be2eb5-617a-f681-0a55-c2bbef46d08b@gmail.com>","list_archive_url":null,"date":"2017-10-03T17:04:09","subject":"Re: [PATCH v1 3/5] dt-bindings: Add DT bindings for NVIDIA Tegra AHB\n\tDMA controller","submitter":{"id":18124,"url":"http://patchwork.ozlabs.org/api/people/18124/","name":"Dmitry Osipenko","email":"digetx@gmail.com"},"content":"On 03.10.2017 18:38, Stephen Warren wrote:\n> On 10/03/2017 04:32 AM, Jon Hunter wrote:\n>>\n>>\n>> On 03/10/17 00:02, Dmitry Osipenko wrote:\n>>> On 02.10.2017 20:05, Stephen Warren wrote:\n>>>> On 09/29/2017 09:11 PM, Dmitry Osipenko wrote:\n>>>>> On 29.09.2017 22:30, Stephen Warren wrote:\n>>>>>> On 09/27/2017 02:34 AM, Jon Hunter wrote:\n>>>>>>>\n>>>>>>> On 27/09/17 02:57, Dmitry Osipenko wrote:\n>>>>>>>> On 26.09.2017 17:50, Jon Hunter wrote:\n>>>>>>>>>\n>>>>>>>>> On 26/09/17 00:22, Dmitry Osipenko wrote:\n>>>>>>>>>> Document DT bindings for NVIDIA Tegra AHB DMA controller that presents\n>>>>>>>>>> on Tegra20/30 SoC's.\n>>>>>>>>>>\n>>>>>>>>>> Signed-off-by: Dmitry Osipenko <digetx@gmail.com>\n>>>>>>>>>> ---\n>>>>>>>>>>     .../bindings/dma/nvidia,tegra20-ahbdma.txt         | 23\n>>>>>>>>>> ++++++++++++++++++++++\n>>>>>>>>>>     1 file changed, 23 insertions(+)\n>>>>>>>>>>     create mode 100644\n>>>>>>>>>> Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>>>>>>>>\n>>>>>>>>>> diff --git\n>>>>>>>>>> a/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>>>>>>>> b/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>>>>>>>> new file mode 100644\n>>>>>>>>>> index 000000000000..2af9aa76ae11\n>>>>>>>>>> --- /dev/null\n>>>>>>>>>> +++ b/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>>>>>>>>> @@ -0,0 +1,23 @@\n>>>>>>>>>> +* NVIDIA Tegra AHB DMA controller\n>>>>>>>>>> +\n>>>>>>>>>> +Required properties:\n>>>>>>>>>> +- compatible:    Must be \"nvidia,tegra20-ahbdma\"\n>>>>>>>>>> +- reg:        Should contain registers base address and length.\n>>>>>>>>>> +- interrupts:    Should contain one entry, DMA controller interrupt.\n>>>>>>>>>> +- clocks:    Should contain one entry, DMA controller clock.\n>>>>>>>>>> +- resets :    Should contain one entry, DMA controller reset.\n>>>>>>>>>> +- #dma-cells:    Should be <1>. The cell represents DMA request select\n>>>>>>>>>> value\n>>>>>>>>>> +        for the peripheral. For more details consult the Tegra TRM's\n>>>>>>>>>> +        documentation, in particular AHB DMA channel control register\n>>>>>>>>>> +        REQ_SEL field.\n>>>>>>>>>\n>>>>>>>>> What about the TRIG_SEL field? Do we need to handle this here as well?\n>>>>>>>>>\n>>>>>>>>\n>>>>>>>> Actually, DMA transfer trigger isn't related a hardware description. It's\n>>>>>>>> up to\n>>>>>>>> software to decide what trigger to select. So it shouldn't be in the\n>>>>>>>> binding.\n>>>>>>>\n>>>>>>> I think it could be, if say a board wanted a GPIO to trigger a transfer.\n>>>>>>>\n>>>>>>>> And I think the same applies to requester... any objections?\n>>>>>>>\n>>>>>>> Well, the REQ_SEL should definitely be in the binding.\n>>>>>>>\n>>>>>>> Laxman, Stephen, what are your thoughts on the TRIG_SEL field? Looks\n>>>>>>> like we never bothered with it for the APB DMA and so maybe no ones uses\n>>>>>>> this.\n>>>>>>\n>>>>>> I don't think TRIG_SEL should be in the binding, at least at present. While\n>>>>>> TRIG_SEL certainly is something used to configure the transfer, I believe the\n>>>>>> semantics of the current DMA binding only cover DMA transfers that are\n>>>>>> initiated\n>>>>>> when SW desires, rather than being a combination of after SW programs the\n>>>>>> transfer plus some other HW event. So, we always use a default/hard-coded\n>>>>>> TRIG_SEL value. As such, there's no need for a TRIG_SEL value in DT. There's\n>>>>>> certainly no known use-case that requires a non-default TRIG_SEL value at\n>>>>>> present. We could add an extra #dma-cells value later if we find a use for\n>>>>>> it,\n>>>>>> and the semantics of that use-case make sense to add it to the DMA specifier,\n>>>>>> rather than some other separate higher-level property/driver/...\n>>>>>\n>>>>> Thank you for the comment. If we'd want to extend the binding further with the\n>>>>> trigger, how to differentiate trigger from the requester in a case of a single\n>>>>> #data-cell?\n>>>>>\n>>>>> Of course realistically a chance that the further extension would be needed is\n>>>>> very-very low, so we may defer the efforts to solve that question and for now\n>>>>> make driver aware of the potential #dma-cells extension.\n>>>>\n>>>> The request selector cell isn't optional, so is always present. If we later add\n>>>> an optional trig_sel cell, we'll either have:\n>>>>\n>>>> #dma-cells=<1>: req_sel\n>>>>\n>>>> or:\n>>>>\n>>>> #dma-cells=<2>: req_sel, trig_sel\n>>>\n>>> Why request sel. couldn't be optional? Could you please elaborate a bit more?\n> \n> The documentation currently says it's mandatory, and DT bindings must be evolved\n> in a backwards-compatible fashion.\n> \n>>> I think possible options are:\n>>>\n>>> #dma-cells=<1>: req_sel\n>>> #dma-cells=<1>: trig_sel\n>>\n>> With the above, how would you know that it is the req_sel or trig_sel\n>> that is specified?\n> \n> Also, if req_sel were optional, then it'd be impossible to distinguish between\n> those cases, so we can't design a binding like that. In general, when adding\n> extra optional cells to an #xxx-cells style binding, then whenever cell N is\n> present, all cells before cell N must be present even if optional.\n\nI've checked how extending of #dma-cells looks like and it is indeed a good\nvariant since it preserves backward compatibility. Thank you and Jon for the\ncomments and suggestions, I'll send out v2 soon.\n--\nTo unsubscribe from this list: send the line \"unsubscribe devicetree\" in\nthe body of a message to majordomo@vger.kernel.org\nMore majordomo info at  http://vger.kernel.org/majordomo-info.html","headers":{"Return-Path":"<devicetree-owner@vger.kernel.org>","X-Original-To":"incoming-dt@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-dt@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=devicetree-owner@vger.kernel.org; receiver=<UNKNOWN>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"o+3VOO3L\"; dkim-atps=neutral"],"Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3y653l3DZsz9t6n\n\tfor <incoming-dt@patchwork.ozlabs.org>;\n\tWed,  4 Oct 2017 04:04:19 +1100 (AEDT)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751120AbdJCRER (ORCPT\n\t<rfc822;incoming-dt@patchwork.ozlabs.org>);\n\tTue, 3 Oct 2017 13:04:17 -0400","from mail-wm0-f47.google.com ([74.125.82.47]:49110 \"EHLO\n\tmail-wm0-f47.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1751090AbdJCREP (ORCPT\n\t<rfc822; devicetree@vger.kernel.org>); Tue, 3 Oct 2017 13:04:15 -0400","by mail-wm0-f47.google.com with SMTP id i82so15910170wmd.3;\n\tTue, 03 Oct 2017 10:04:14 -0700 (PDT)","from [192.168.1.145] (ppp109-252-55-163.pppoe.spdop.ru.\n\t[109.252.55.163]) by smtp.googlemail.com with ESMTPSA id\n\tx11sm8183774wrb.26.2017.10.03.10.04.10\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tTue, 03 Oct 2017 10:04:12 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=subject:to:cc:references:from:message-id:date:user-agent\n\t:mime-version:in-reply-to:content-language:content-transfer-encoding; \n\tbh=EIzSfLUGLI2riR6IB3LMS2nBG/8ZYHbn6n85exYrcHQ=;\n\tb=o+3VOO3LpsOWh/BUGfttaQToo5Iu4y0V8VGk1eToGos6xwDq0tcrPB0cjGU9EfwRr6\n\t0S0Ppvi99gjQxXbv2y+iI/wQR91srCsPApkPL1iQa+c/cvokEPNbR1Vpir/Qgbwj1Hbt\n\tD2QV/aEDW2eqwV724x8Omo/GIKqEpS6OteT0UP5hPx31EPBlSNQEAAizBYiLhBd9SABr\n\tvO/y3QwzOCHvoELnW6ouN9tti40ppKhXVXR+cX0WXkJDZgI5El7cxpzZKqe+adzdQsje\n\tyvA+6PS/aZuIzZ8W6RYczH5xWphQwoEzEriGT6LomCAPcNCWQ1ywrajV8n+0jmR0Bhah\n\t3UJw==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:subject:to:cc:references:from:message-id:date\n\t:user-agent:mime-version:in-reply-to:content-language\n\t:content-transfer-encoding;\n\tbh=EIzSfLUGLI2riR6IB3LMS2nBG/8ZYHbn6n85exYrcHQ=;\n\tb=A08aP3NRywSsE3y00+/CueiOwQwbXUa63UUUdjSsWdysUtSDDaZan2knHyb4TDs3Wd\n\tlQ1FxBReZgOLVi5FhyoqnklD9H8mDRNbk4hrLL/kdK1mEDVwI0fgXdpGt/MNH3c3HYvg\n\tXQ4xD/V/FG/9SRDhSevvB79QkuGXOUn8mhPCq5vzG5oiHJvGB/7zbxBrjSoYEKym45Jr\n\th2N4BLOintGn66Di4eiugOpZC3msORUQtneSWSsIqfGJPtUeBqMlabpQ8vFjKpPCPjT7\n\txhiFMM6wWJIhJ+Rp6dXOncqxdC5RqKdYHhISjO6zZBFHVs50C+OM+dxp+nVeLqwtG21/\n\tRImA==","X-Gm-Message-State":"AHPjjUiGwt9b5tjRZyiL+1aY6xd52tJLeqQFgv9U57OvC4zDRmfxOb3Z\n\tXLrajGhOpRz3kUtbFaFTKzlTDd7I","X-Google-Smtp-Source":"AOwi7QC8l63SiRLTpOVRQCy4wVhYKqCI9z34RdOpI9+sb90kLaRcFr4xZIH0DrQWPjPnH5sTf5fODg==","X-Received":"by 10.28.173.1 with SMTP id w1mr13695284wme.3.1507050253305;\n\tTue, 03 Oct 2017 10:04:13 -0700 (PDT)","Subject":"Re: [PATCH v1 3/5] dt-bindings: Add DT bindings for NVIDIA Tegra AHB\n\tDMA controller","To":"Stephen Warren <swarren@wwwdotorg.org>, Jon Hunter <jonathanh@nvidia.com>,\n\tThierry Reding <thierry.reding@gmail.com>,\n\tLaxman Dewangan <ldewangan@nvidia.com>,\n\tPeter De Schrijver <pdeschrijver@nvidia.com>,\n\tPrashant Gaikwad <pgaikwad@nvidia.com>,\n\tMichael Turquette <mturquette@baylibre.com>,\n\tStephen Boyd <sboyd@codeaurora.org>, Rob Herring <robh+dt@kernel.org>,\n\tVinod Koul <vinod.koul@intel.com>","Cc":"linux-tegra@vger.kernel.org, devicetree@vger.kernel.org,\n\tdmaengine@vger.kernel.org, linux-clk@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org","References":"<cover.1506380746.git.digetx@gmail.com>\n\t<604d92036e0936443290e68a2226f935fb348113.1506380746.git.digetx@gmail.com>\n\t<bee2a524-0891-01e1-4e03-f6cf6a89e6b1@nvidia.com>\n\t<96bfdacb-3d2d-66b6-70f7-a87664b1afc7@gmail.com>\n\t<0fd316e9-3584-e9bd-2a8b-e73eaa6a9a48@nvidia.com>\n\t<9e4e3dc1-85cd-2096-118c-7d0c929b9246@wwwdotorg.org>\n\t<5a5ce745-750f-9c8f-5129-c9b0f7aee614@gmail.com>\n\t<788f73dc-e011-aa9d-8850-f01ab9459c91@wwwdotorg.org>\n\t<795e4b19-b747-74c1-6f92-b961ab4bf822@gmail.com>\n\t<4443a8fb-7a4d-922b-2dd3-53236d39a050@nvidia.com>\n\t<ecf50d7b-59d2-7b98-5d45-e95922e495bf@wwwdotorg.org>","From":"Dmitry Osipenko <digetx@gmail.com>","Message-ID":"<93be2eb5-617a-f681-0a55-c2bbef46d08b@gmail.com>","Date":"Tue, 3 Oct 2017 20:04:09 +0300","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.3.0","MIME-Version":"1.0","In-Reply-To":"<ecf50d7b-59d2-7b98-5d45-e95922e495bf@wwwdotorg.org>","Content-Type":"text/plain; charset=utf-8","Content-Language":"en-US","Content-Transfer-Encoding":"8bit","Sender":"devicetree-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<devicetree.vger.kernel.org>","X-Mailing-List":"devicetree@vger.kernel.org"}},{"id":1780976,"web_url":"http://patchwork.ozlabs.org/comment/1780976/","msgid":"<20171005203355.5lftjytx5f6rhe2d@rob-hp-laptop>","list_archive_url":null,"date":"2017-10-05T20:33:55","subject":"Re: [PATCH v1 3/5] dt-bindings: Add DT bindings for NVIDIA Tegra AHB\n\tDMA controller","submitter":{"id":62529,"url":"http://patchwork.ozlabs.org/api/people/62529/","name":"Rob Herring (Arm)","email":"robh@kernel.org"},"content":"On Tue, Sep 26, 2017 at 02:22:04AM +0300, Dmitry Osipenko wrote:\n> Document DT bindings for NVIDIA Tegra AHB DMA controller that presents\n> on Tegra20/30 SoC's.\n> \n> Signed-off-by: Dmitry Osipenko <digetx@gmail.com>\n> ---\n>  .../bindings/dma/nvidia,tegra20-ahbdma.txt         | 23 ++++++++++++++++++++++\n>  1 file changed, 23 insertions(+)\n>  create mode 100644 Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n> \n> diff --git a/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt b/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n> new file mode 100644\n> index 000000000000..2af9aa76ae11\n> --- /dev/null\n> +++ b/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n> @@ -0,0 +1,23 @@\n> +* NVIDIA Tegra AHB DMA controller\n> +\n> +Required properties:\n> +- compatible:\tMust be \"nvidia,tegra20-ahbdma\"\n> +- reg:\t\tShould contain registers base address and length.\n> +- interrupts:\tShould contain one entry, DMA controller interrupt.\n> +- clocks:\tShould contain one entry, DMA controller clock.\n> +- resets :\tShould contain one entry, DMA controller reset.\n> +- #dma-cells:\tShould be <1>. The cell represents DMA request select value\n> +\t\tfor the peripheral. For more details consult the Tegra TRM's\n> +\t\tdocumentation, in particular AHB DMA channel control register\n> +\t\tREQ_SEL field.\n> +\n> +Example:\n> +\n> +ahbdma: ahbdma@60008000  {\n\nUse standard node names. dma-controller in this case.\n\n> +\tcompatible = \"nvidia,tegra20-ahbdma\";\n> +\treg = <0x60008000 0x2000>;\n> +\tinterrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;\n> +\tclocks = <&tegra_car TEGRA20_CLK_AHBDMA>;\n> +\tresets = <&tegra_car 33>;\n> +\t#dma-cells = <1>;\n> +};\n> -- \n> 2.14.1\n> \n--\nTo unsubscribe from this list: send the line \"unsubscribe devicetree\" in\nthe body of a message to majordomo@vger.kernel.org\nMore majordomo info at  http://vger.kernel.org/majordomo-info.html","headers":{"Return-Path":"<devicetree-owner@vger.kernel.org>","X-Original-To":"incoming-dt@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-dt@bilbo.ozlabs.org","Authentication-Results":"ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=devicetree-owner@vger.kernel.org; receiver=<UNKNOWN>)","Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3y7Pcn3lrRz9t6M\n\tfor <incoming-dt@patchwork.ozlabs.org>;\n\tFri,  6 Oct 2017 07:34:01 +1100 (AEDT)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751441AbdJEUd7 (ORCPT\n\t<rfc822;incoming-dt@patchwork.ozlabs.org>);\n\tThu, 5 Oct 2017 16:33:59 -0400","from mail-oi0-f66.google.com ([209.85.218.66]:52195 \"EHLO\n\tmail-oi0-f66.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1751350AbdJEUd5 (ORCPT\n\t<rfc822; devicetree@vger.kernel.org>); Thu, 5 Oct 2017 16:33:57 -0400","by mail-oi0-f66.google.com with SMTP id j126so2984184oib.8;\n\tThu, 05 Oct 2017 13:33:57 -0700 (PDT)","from localhost (216-188-254-6.dyn.grandenetworks.net.\n\t[216.188.254.6]) by smtp.gmail.com with ESMTPSA id\n\to47sm9497996ota.37.2017.10.05.13.33.56\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tThu, 05 Oct 2017 13:33:56 -0700 (PDT)"],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:date:from:to:cc:subject:message-id:references\n\t:mime-version:content-disposition:in-reply-to:user-agent;\n\tbh=V1QnyhPJcNt7FNqaK2ax686tfGYsgqaI6bsTRnggprw=;\n\tb=GKw0wD3GXewmQQ/i2hHO3d0FTxBj1rAhmxkbq+fcIAmqZYB2NQJPAWIxU6hiGIJRxF\n\t+O1cIcuTrSt5/yUEh9gBV3VNgqTPD8sOkoA1IW3+F7XgarEzuvUmH5hDKqm1Qwnt+/eV\n\tFXTWP7fhPcjNn/a1GFWsPTEwioFog/t//kGieIHJdSX0T5nYaDGMODu7l2g3SBUBFFq9\n\tqqKxQtuSuR791BqDYD7zM7t19AAe2mxS2+BMPzKTcaNKGEeEaueZLXC9OEOvxarCOqlY\n\ttalbhYkJ8VBCDhIIt2AOxUfVLjAtGT8vC3AJjIebhlWDG7Vnq2DsOVh7WNr/OnM/doeM\n\t2fkA==","X-Gm-Message-State":"AMCzsaVTWebG/CHnOho9wAAgLIg3wfHdVLB0xcTHOzJVQUouU6C8Did/\n\tPOp3+wGCauB0+z/ZoZgEmA==","X-Google-Smtp-Source":"AOwi7QB6j1hN9z47VuO+GI+8vTom0kxlLUHDnblp7ZB9eIlfty3I2nQL0LvIypTaf/EyPP82U2bdwg==","X-Received":"by 10.202.217.215 with SMTP id\n\tq206mr12937779oig.188.1507235637089; \n\tThu, 05 Oct 2017 13:33:57 -0700 (PDT)","Date":"Thu, 5 Oct 2017 15:33:55 -0500","From":"Rob Herring <robh@kernel.org>","To":"Dmitry Osipenko <digetx@gmail.com>","Cc":"Thierry Reding <thierry.reding@gmail.com>,\n\tJonathan Hunter <jonathanh@nvidia.com>,\n\tLaxman Dewangan <ldewangan@nvidia.com>,\n\tPeter De Schrijver <pdeschrijver@nvidia.com>,\n\tPrashant Gaikwad <pgaikwad@nvidia.com>,\n\tMichael Turquette <mturquette@baylibre.com>,\n\tStephen Boyd <sboyd@codeaurora.org>,\n\tVinod Koul <vinod.koul@intel.com>, linux-tegra@vger.kernel.org,\n\tdevicetree@vger.kernel.org, dmaengine@vger.kernel.org,\n\tlinux-clk@vger.kernel.org, linux-kernel@vger.kernel.org","Subject":"Re: [PATCH v1 3/5] dt-bindings: Add DT bindings for NVIDIA Tegra AHB\n\tDMA controller","Message-ID":"<20171005203355.5lftjytx5f6rhe2d@rob-hp-laptop>","References":"<cover.1506380746.git.digetx@gmail.com>\n\t<604d92036e0936443290e68a2226f935fb348113.1506380746.git.digetx@gmail.com>","MIME-Version":"1.0","Content-Type":"text/plain; charset=us-ascii","Content-Disposition":"inline","In-Reply-To":"<604d92036e0936443290e68a2226f935fb348113.1506380746.git.digetx@gmail.com>","User-Agent":"NeoMutt/20170113 (1.7.2)","Sender":"devicetree-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<devicetree.vger.kernel.org>","X-Mailing-List":"devicetree@vger.kernel.org"}},{"id":1781040,"web_url":"http://patchwork.ozlabs.org/comment/1781040/","msgid":"<4cb9745d-4bc1-57f0-f4ee-c12089d0c190@gmail.com>","list_archive_url":null,"date":"2017-10-05T21:30:59","subject":"Re: [PATCH v1 3/5] dt-bindings: Add DT bindings for NVIDIA Tegra AHB\n\tDMA controller","submitter":{"id":18124,"url":"http://patchwork.ozlabs.org/api/people/18124/","name":"Dmitry Osipenko","email":"digetx@gmail.com"},"content":"On 05.10.2017 23:33, Rob Herring wrote:\n> On Tue, Sep 26, 2017 at 02:22:04AM +0300, Dmitry Osipenko wrote:\n>> Document DT bindings for NVIDIA Tegra AHB DMA controller that presents\n>> on Tegra20/30 SoC's.\n>>\n>> Signed-off-by: Dmitry Osipenko <digetx@gmail.com>\n>> ---\n>>  .../bindings/dma/nvidia,tegra20-ahbdma.txt         | 23 ++++++++++++++++++++++\n>>  1 file changed, 23 insertions(+)\n>>  create mode 100644 Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>>\n>> diff --git a/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt b/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>> new file mode 100644\n>> index 000000000000..2af9aa76ae11\n>> --- /dev/null\n>> +++ b/Documentation/devicetree/bindings/dma/nvidia,tegra20-ahbdma.txt\n>> @@ -0,0 +1,23 @@\n>> +* NVIDIA Tegra AHB DMA controller\n>> +\n>> +Required properties:\n>> +- compatible:\tMust be \"nvidia,tegra20-ahbdma\"\n>> +- reg:\t\tShould contain registers base address and length.\n>> +- interrupts:\tShould contain one entry, DMA controller interrupt.\n>> +- clocks:\tShould contain one entry, DMA controller clock.\n>> +- resets :\tShould contain one entry, DMA controller reset.\n>> +- #dma-cells:\tShould be <1>. The cell represents DMA request select value\n>> +\t\tfor the peripheral. For more details consult the Tegra TRM's\n>> +\t\tdocumentation, in particular AHB DMA channel control register\n>> +\t\tREQ_SEL field.\n>> +\n>> +Example:\n>> +\n>> +ahbdma: ahbdma@60008000  {\n> \n> Use standard node names. dma-controller in this case.\n> \n\nOkay, I'll change it in v3. Thank you for the comment.\n\n>> +\tcompatible = \"nvidia,tegra20-ahbdma\";\n>> +\treg = <0x60008000 0x2000>;\n>> +\tinterrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;\n>> +\tclocks = <&tegra_car TEGRA20_CLK_AHBDMA>;\n>> +\tresets = <&tegra_car 33>;\n>> +\t#dma-cells = <1>;\n>> +};\n>> -- \n>> 2.14.1\n>>\n\n--\nTo unsubscribe from this list: send the line \"unsubscribe devicetree\" in\nthe body of a message to majordomo@vger.kernel.org\nMore majordomo info at  http://vger.kernel.org/majordomo-info.html","headers":{"Return-Path":"<devicetree-owner@vger.kernel.org>","X-Original-To":"incoming-dt@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-dt@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=devicetree-owner@vger.kernel.org; receiver=<UNKNOWN>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"bMEWfCYD\"; dkim-atps=neutral"],"Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3y7Qtz0BKpz9t2Z\n\tfor <incoming-dt@patchwork.ozlabs.org>;\n\tFri,  6 Oct 2017 08:31:23 +1100 (AEDT)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751831AbdJEVbI (ORCPT\n\t<rfc822;incoming-dt@patchwork.ozlabs.org>);\n\tThu, 5 Oct 2017 17:31:08 -0400","from mail-wm0-f65.google.com ([74.125.82.65]:33401 \"EHLO\n\tmail-wm0-f65.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1751776AbdJEVbF (ORCPT\n\t<rfc822; devicetree@vger.kernel.org>); Thu, 5 Oct 2017 17:31:05 -0400","by mail-wm0-f65.google.com with SMTP id u138so9826441wmu.0;\n\tThu, 05 Oct 2017 14:31:04 -0700 (PDT)","from [192.168.1.145] (ppp109-252-55-163.pppoe.spdop.ru.\n\t[109.252.55.163]) by smtp.googlemail.com with ESMTPSA id\n\tn7sm178708edl.12.2017.10.05.14.31.00\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tThu, 05 Oct 2017 14:31:02 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=subject:to:cc:references:from:message-id:date:user-agent\n\t:mime-version:in-reply-to:content-language:content-transfer-encoding; \n\tbh=sTVAAPXqlUwKHSBv6/RH4rZ7umiJVkbl5cgsa9GaXlg=;\n\tb=bMEWfCYDwKvvHjGa8ueVrXK6Cvdm/eQ2YoCRHEjulfvF5Ya0rwdK2K0bDy7mTd1T1o\n\tr0FScfKf5siGVmfqnuFRSHYkDu4V9vhJD1Q2jpzk2p7WUIgk6Lf4QiunG5fSEG4RBHl3\n\tyA0X51bdq3De7sQtxJLoIyngwy/RvrYhYf/eqBMZYFNIFx86oSxd4Ib5yJrugvTmGfU+\n\tSKIiWCotvxJvZyfSzlk0CkpJr2BYVx7WkjvYcEEcnPUVhZy8vMwdCBKvD0kqRbrjxrjS\n\tRnUQf3rPXhNAv81Zs5CdKXIV5ngnGfxIogtafbYLwNZslQ3VYYepKQzR9YgFTBZoq5M6\n\tQMOw==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:subject:to:cc:references:from:message-id:date\n\t:user-agent:mime-version:in-reply-to:content-language\n\t:content-transfer-encoding;\n\tbh=sTVAAPXqlUwKHSBv6/RH4rZ7umiJVkbl5cgsa9GaXlg=;\n\tb=DbSOs5133BlpZrgxxUMKpC7/6d892FiS3lMcHbhfg2Da7WFlA731WKmgt9nHBgjXrL\n\tM29XaYJu07UeJGIsdCQR0Fxbkiqed+q6Pm1LMNeWaz9ukyNYS5oganhvpZ0nkKFHrv27\n\tMN1mllszVN3ghF67D+x+Z8OoilBU7NytQ4dzf5xcGbsopNYEjWNJewq3MoqNWFDO3Dd5\n\t8h9wg0xHrKvVxJDSArVxpcLgNeImPhRUzFUrR/5sGvWhbGAC711RMSKE/WmwOSEsJZQ8\n\tyckEvFoa0DhQwy2SR0+ZVShfwmH6YWcDeo2ZlCl/nripOsPTcLYagi+adgscvNa1xdZT\n\tPu3A==","X-Gm-Message-State":"AMCzsaVpb8sdl57p+NpEhgqjilSyYuUGCCaD3Xa/AvW03TyWnW9xLFMi\n\t3Biw646xGbtF5tproxKQFyBpw2EE","X-Google-Smtp-Source":"AOwi7QBXpVy3MFvHx3rTbXtdMrEUI4sw7ZioIyigP4XARadnT3eoTRKZiI4TbScfItmGq+e/0fFkjw==","X-Received":"by 10.80.173.185 with SMTP id a54mr519814edd.70.1507239063572;\n\tThu, 05 Oct 2017 14:31:03 -0700 (PDT)","Subject":"Re: [PATCH v1 3/5] dt-bindings: Add DT bindings for NVIDIA Tegra AHB\n\tDMA controller","To":"Rob Herring <robh@kernel.org>","Cc":"Thierry Reding <thierry.reding@gmail.com>,\n\tJonathan Hunter <jonathanh@nvidia.com>,\n\tLaxman Dewangan <ldewangan@nvidia.com>,\n\tPeter De Schrijver <pdeschrijver@nvidia.com>,\n\tPrashant Gaikwad <pgaikwad@nvidia.com>,\n\tMichael Turquette <mturquette@baylibre.com>,\n\tStephen Boyd <sboyd@codeaurora.org>,\n\tVinod Koul <vinod.koul@intel.com>, linux-tegra@vger.kernel.org,\n\tdevicetree@vger.kernel.org, dmaengine@vger.kernel.org,\n\tlinux-clk@vger.kernel.org, linux-kernel@vger.kernel.org","References":"<cover.1506380746.git.digetx@gmail.com>\n\t<604d92036e0936443290e68a2226f935fb348113.1506380746.git.digetx@gmail.com>\n\t<20171005203355.5lftjytx5f6rhe2d@rob-hp-laptop>","From":"Dmitry Osipenko <digetx@gmail.com>","Message-ID":"<4cb9745d-4bc1-57f0-f4ee-c12089d0c190@gmail.com>","Date":"Fri, 6 Oct 2017 00:30:59 +0300","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.3.0","MIME-Version":"1.0","In-Reply-To":"<20171005203355.5lftjytx5f6rhe2d@rob-hp-laptop>","Content-Type":"text/plain; charset=utf-8","Content-Language":"en-US","Content-Transfer-Encoding":"7bit","Sender":"devicetree-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<devicetree.vger.kernel.org>","X-Mailing-List":"devicetree@vger.kernel.org"}}]