From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D06D919516 for ; Tue, 30 May 2023 14:41:56 +0000 (UTC) Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-96f7bf3cf9eso883120066b.0 for ; Tue, 30 May 2023 07:41:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685457715; x=1688049715; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=HZ55BKQe5vzGyKOw1n9AfdmJAZ4/YqSEcizV/peiawc=; b=dxSdSpU7OGIj4962KNBkgW1KbqPrzRKBhU9L5IBdAAvsWc2bKREhNjl4OUwgp2Yjz6 57RGn+qRr5GHadFP7aiwF9FNWndp3Ea+PktAySTiFwxOChucyZGyNnax4I06uYsZEOCG 1WYIY/zUsJSKO++7OVVxo5/s96vjvzDibfYVtb8XcOatHLDfxB5ivqFkWiTwX2PoL/42 NjSz2sA5OhnD4p1Dq1HTFDzg0NIr/l16awbBKW0tmzU2spc1IX9Jl+orMMhxktBbJl8q fX79Rn48OqxJNi14gOKbkaTHiXsjnF/UH7uX3+D6kOOlepg0hj57LFeRRoS1gbTboW3m AK3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685457715; x=1688049715; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=HZ55BKQe5vzGyKOw1n9AfdmJAZ4/YqSEcizV/peiawc=; b=KqNyUcIJ8yxK+aQoFHIn7qS1MHuWDyLk0zOqWYpBYFrq4370thJPk0RyK6juxtZxMn ASDUkW97yTPJ5vypThYdMWF4BNWR7W3Qfl4CKoIUwJ0DXcuOLgOmQLQ0zvZKLVbCSypO 25I3CKueySUMvYLEmiM/hoyv2UoCFz7DHM389bt0wKe9+qG5N/HWzj+MZo4BRCXYYFoH nxTim4MRUbV6mOYhACw66rYVwiE6wm91XpRMUJ/c36Mb/Js+YFMssFNv2s2rERdIH7PO A3DK6AEtWTZf4+05vf7I4Ew9eUnnEE4NSTZlaGSUEadvpl+lVvY3SE/22g6/RNwNAbPA 3hMA== X-Gm-Message-State: AC+VfDz56NbMxM776Bb2d7Wv+WdlKe75L5Ey5doVmvuTXgnFnqA1rhfL 084xt/aq/o126iAe/MgeVdo/fg== X-Google-Smtp-Source: ACHHUZ7BxBV9LFJWkXWwzhZqkFq1FAFu83njQb+13RZvNUWZRprYqN594V5GTTGTi3Y5+Zght+O7Dw== X-Received: by 2002:a17:907:97d3:b0:94e:5679:d950 with SMTP id js19-20020a17090797d300b0094e5679d950mr2593647ejc.72.1685457714905; Tue, 30 May 2023 07:41:54 -0700 (PDT) Received: from [192.168.1.20] ([178.197.199.204]) by smtp.gmail.com with ESMTPSA id fi13-20020a170906da0d00b0096fbc516a93sm7380282ejb.211.2023.05.30.07.41.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 30 May 2023 07:41:54 -0700 (PDT) Message-ID: Date: Tue, 30 May 2023 16:41:52 +0200 Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v2 12/12] dt-bindings: fsl-dma: fsl-edma: add edma3 compatible string Content-Language: en-US To: Frank Li Cc: krzysztof.kozlowski+dt@linaro.org, peng.fan@nxp.com, vkoul@kernel.org, devicetree@vger.kernel.org, dmaengine@vger.kernel.org, imx@lists.linux.dev, joy.zou@nxp.com, linux-kernel@vger.kernel.org, robh+dt@kernel.org, shenwei.wang@nxp.com References: <20230529200453.1423796-1-Frank.Li@nxp.com> <20230529200453.1423796-13-Frank.Li@nxp.com> <65e7b6df-b83b-2d7c-5093-f5822050827a@linaro.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 30/05/2023 15:57, Frank Li wrote: > On Tue, May 30, 2023 at 03:08:48PM +0200, Krzysztof Kozlowski wrote: >>> diff --git a/Documentation/devicetree/bindings/dma/fsl,edma.yaml b/Documentation/devicetree/bindings/dma/fsl,edma.yaml >>> index 5fd8fc604261..eed12687b0c9 100644 >>> --- a/Documentation/devicetree/bindings/dma/fsl,edma.yaml >>> +++ b/Documentation/devicetree/bindings/dma/fsl,edma.yaml >>> @@ -21,6 +21,10 @@ properties: >>> - enum: >>> - fsl,vf610-edma >>> - fsl,imx7ulp-edma >>> + - fsl,imx8qm-edma >>> + - fsl,imx8qm-adma >>> + - fsl,imx93-edma3 >>> + - fsl,imx93-edma4 >> >> What are these last two? What is "3" and "4"? > > imx93 edma have two version, edma3(AHB) and edma4(AXI). > There are little bit difference at channel space size. > > +static struct fsl_edma_drvdata imx93_data3 = { > + .version = v3, > + .flags = FSL_EDMA_DRV_HAS_CHMUX | FSL_EDMA_DRV_HAS_DMACLK, > + .chreg_space_sz = 0x10000, > + .chreg_off = 0x10000, > + .setup_irq = fsl_edma3_irq_init, > +}; > + > +static struct fsl_edma_drvdata imx93_data4 = { > + .version = v4, > + .flags = FSL_EDMA_DRV_HAS_CHMUX | FSL_EDMA_DRV_HAS_DMACLK, > + .chreg_space_sz = 0x8000, > + .chreg_off = 0x10000, > + .setup_irq = fsl_edma3_irq_init, OK > +}; > >> >>> - items: >>> - const: fsl,ls1028a-edma >>> - const: fsl,vf610-edma >>> @@ -101,6 +105,22 @@ allOf: >>> reg: >>> maxItems: 2 >>> >>> + - if: >>> + properties: >>> + compatible: >>> + contains: >>> + anyOf: >>> + - const: fsl,imx8qm-edma >>> + - const: fsl,imx8qm-adma >>> + - const: fsl,imx93-edma3 >>> + - const: fsl,imx93-edma4 >>> + then: >>> + properties: >>> + reg: >>> + maxItems: 1 >>> + interrupts: >>> + maxItems: 64 >> >> That's odd. What about the names? What about minItems? Anyway, this >> wasn't tested - you will have failures with dtbs_check. > > It passed dtbs_check. interrupt-names is optional property, which > will no used after edma v3. > > Planned dts look like: > > + edma1: dma-controller@44000000{ > + compatible = "fsl,imx93-edma3"; > + reg = <0x44000000 0x200000>; > + #dma-cells = <3>; > + dma-channels = <31>; > + interrupts = , > + , > + , > .... So add here interrupt-names and double check the result... Optional means it can appear. Best regards, Krzysztof