Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3460149imw; Mon, 18 Jul 2022 08:27:46 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u8q5JTPbEv8c+dZCaE7nJZ/tASC/pADf5I88NUPSud3ggLu2yW5E3+PEn83RGnA1DpCBFM X-Received: by 2002:a05:6402:430f:b0:43a:d521:bda with SMTP id m15-20020a056402430f00b0043ad5210bdamr38668427edc.69.1658158066380; Mon, 18 Jul 2022 08:27:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658158066; cv=none; d=google.com; s=arc-20160816; b=THptzvB06ETZphqYFtPO9qVV8Cu3peUdsEO7Txwqa19H6K3EpdfYpZ/7ZEMlFumx83 7rsDudRfdcevIDBhIjDscL6GBTskI6oj0bhnhwle9L50SoOfzaciLibAn1MX/SUog1N6 608vgNyo+6YhoXA/MoCTsirmCMsR4pNCsl0E6G+0G45nGpvaNuD8ksPZyjxRJFqa/IQ/ Mn9u0O//xWpW6xauWtwTVzTZhBId3Do/4F09Cc3N5r1lA9KKsbD80XwWLM/r9/xWlzlU EQ5pHrFcyCqnaEbsKqtz2y3QxKGdVxyUfE5fuRWXLim1OdQswctgpKc+y/NU1fdNG/tL 6E+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id; bh=O3uY0MsaRDQp2D2P7KJ6MpI3qLYIFa2vDgRQ3SD7YR0=; b=SNbbktrVrOaK3gAToC9OwbARTgk8FbOcarzxp+Jaa521TSC5GKMqGZCKi1O2yIfBv1 Z3bidiDd0RYTThUR0ORmv7gqe2pHlfAWxJFFINnQXpZflteCmkSaHuBXPkEZ/Yn7qEmQ 6Kv+w76mH99L85l9gL8J5SXCmh3IuXqtsXzyUG1novzUquFUpAibV0QaWruDFE4iQ0w4 +01MQGdn/MohKNO9XZr+1iFySQwBEAAH1+5XwxAlOtjRTL5Hg3qjUrF/6ANVWlUHpzwD BcVZKC9un2cuWB4eVp+eXPwA8cI2I2p/7+HymhGk69jexRw8ctUsHqKFd3bpIPHCKjni pa1Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=codethink.co.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e25-20020a50d4d9000000b0043a3f82e5ecsi15636475edj.496.2022.07.18.08.27.21; Mon, 18 Jul 2022 08:27:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=codethink.co.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235224AbiGRPMw (ORCPT + 99 others); Mon, 18 Jul 2022 11:12:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235202AbiGRPMu (ORCPT ); Mon, 18 Jul 2022 11:12:50 -0400 X-Greylist: delayed 115 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 18 Jul 2022 08:12:48 PDT Received: from imap4.hz.codethink.co.uk (imap4.hz.codethink.co.uk [188.40.203.114]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B2221CFEE for ; Mon, 18 Jul 2022 08:12:48 -0700 (PDT) Received: from [167.98.27.226] (helo=[10.35.4.171]) by imap4.hz.codethink.co.uk with esmtpsa (Exim 4.94.2 #2 (Debian)) id 1oDSQ9-002C9w-8q; Mon, 18 Jul 2022 16:12:29 +0100 Message-ID: <7c68e645-efd7-c48c-77aa-9aa607c77033@codethink.co.uk> Date: Mon, 18 Jul 2022 16:12:28 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH v5 03/13] dt-bindings: dma: dw-axi-dmac: extend the number of interrupts Content-Language: en-GB To: Conor Dooley , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Thierry Reding , Sam Ravnborg , Eugeniy Paltsev , Vinod Koul , Serge Semin , Daniel Lezcano , Palmer Dabbelt , Palmer Dabbelt Cc: Paul Walmsley , Albert Ou , Conor Dooley , Masahiro Yamada , Damien Le Moal , Geert Uytterhoeven , Niklas Cassel , Dillon Min , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, linux-riscv@lists.infradead.org, Rob Herring References: <20220705215213.1802496-1-mail@conchuod.ie> <20220705215213.1802496-4-mail@conchuod.ie> From: Ben Dooks Organization: Codethink Limited. In-Reply-To: <20220705215213.1802496-4-mail@conchuod.ie> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/07/2022 22:52, Conor Dooley wrote: > From: Conor Dooley > > The Canaan k210 apparently has a Sysnopsys Designware AXI DMA > controller, but according to the documentation & devicetree it has 6 > interrupts rather than the standard one. Support the 6 interrupt > configuration by unconditionally extending the binding to a maximum of > 8 per-channel interrupts thereby matching the number of possible > channels. I think you can still configure it to produce a single interrupt even if there are per-channel interrupts available. This is from my reading of the driver a little while ago so may not be totally correct now. Having per-channel irqs might be useful in the future, but as above I think it'll require the driver to be updated to do it (and possibly some sort of detection) > Link: https://canaan-creative.com/wp-content/uploads/2020/03/kendryte_standalone_programming_guide_20190311144158_en.pdf #Page 51 > Reviewed-by: Serge Semin > Reviewed-by: Rob Herring > Signed-off-by: Conor Dooley > --- > .../devicetree/bindings/dma/snps,dw-axi-dmac.yaml | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml b/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml > index 4324a94b26b2..67aa7bb6d36a 100644 > --- a/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml > +++ b/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml > @@ -34,7 +34,12 @@ properties: > - const: axidma_apb_regs > > interrupts: > - maxItems: 1 > + description: > + If the IP-core synthesis parameter DMAX_INTR_IO_TYPE is set to 1, this > + will be per-channel interrupts. Otherwise, this is a single combined IRQ > + for all channels. > + minItems: 1 > + maxItems: 8 > > clocks: > items: -- Ben Dooks http://www.codethink.co.uk/ Senior Engineer Codethink - Providing Genius https://www.codethink.co.uk/privacy.html