Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp7051649rwr; Wed, 10 May 2023 03:14:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6CWkRvMzGLXeCDsXS2iXgjMQ74JN0FuBrtPPaANVK+V0kFv4grvsDIK3BLMywxiXdrFLNn X-Received: by 2002:a05:6a20:4411:b0:101:2ad0:134c with SMTP id ce17-20020a056a20441100b001012ad0134cmr7794575pzb.45.1683713652872; Wed, 10 May 2023 03:14:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683713652; cv=none; d=google.com; s=arc-20160816; b=0AlaDe24ZG+ZmyzCg4NWww46nmayXn+bw9dSRSbXcVTVxdYsVIAA1u/Qqp5FFBCs94 FwtzD8A/bNiPHapaCAsGpQ0IH+CM2sPU3agcVinr7ex9ub+YlDvoWLxFxYxPemDl5nDI OFuWjh+ZIfNF4bj0M4qaT/gvaw3kec09S39BXa8e0rmY0EAkxOje50LNZ0H30+0F8GEo G3WEzhQktfYLwJgDD2DM9dPLb8STdSvzdSRmen5h4jTeOxM91P8GjCSrICeN1Xo8yUwy hMAJ2hdTH9K7sUFpEr+gJXjzGJQODZrnilf6q4XU9t9VWrgNzaUgurfV4/WULDn2NaIa LFaA== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=jvB4fpU8+So5VWO8ax0y0Ffp0LarCBg3hyDsYVyRDvs=; b=X8R6ZUXpc9uJv+B22VHIOKpG8G3qAQM0T9+4bBmn3cOjm3YN84Skm+xEUP7eMygOKt onmC1FHW8AVsCGSpA3Ff+RrG/nQmzY5HgV5F0G4q0ZPLrlXkMFQBu7cOY6RYNoCJur9Y zso8p5wqp+dvIFE0qwt9XNRhyEMaRlLD/hVaU0w0eOZZRYGnJzSDUmnGuTxRxSpF34RZ YMqyxmnUGctfgA9chfTG1iHAeKB5K1CoA4L5Qpob31T0myfdOGb8hHueGpmL59OSbIAz 2bOp6aP0kWpaYFEl4G19+MbCKDD6xASvi1Jvdk0Efj7yfdojzXm/QLkDgfMnn8vcJnVy mkmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="cuJm4LR/"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e20-20020a633714000000b0050f818e900dsi3630423pga.761.2023.05.10.03.13.58; Wed, 10 May 2023 03:14:12 -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; dkim=pass header.i=@linaro.org header.s=google header.b="cuJm4LR/"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230205AbjEJKIt (ORCPT + 99 others); Wed, 10 May 2023 06:08:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229755AbjEJKIr (ORCPT ); Wed, 10 May 2023 06:08:47 -0400 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0251D13D for ; Wed, 10 May 2023 03:08:46 -0700 (PDT) Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-50bdd7b229cso12949328a12.0 for ; Wed, 10 May 2023 03:08:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683713324; x=1686305324; 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=jvB4fpU8+So5VWO8ax0y0Ffp0LarCBg3hyDsYVyRDvs=; b=cuJm4LR/uVjYQO2u1k1ggNHX/xrJraHzGQ+vB6zB14LymvptbbR9cV0lrlSG9Kg0+T bU3FQaWGHw0v1wBPJAnuvaQ/VAAPn7Hd8bLjOUdE2fn2uB92qi8cGHplgNVNdyNCl1To LbqWGBz8LHhlNwxgnhnALptjwdZkVYSRXS7z0Jj7KzdZqcWO3AZh3s72oVT5oMVOI3hF AdxdCkoDhsH2mNjQpE3mzkD97LXWlu/hEVuITTpSR4+sDkP8ZGnd9iDh7CixyjXOqk1O jWzeoaNsVAMOGKeO+uJ5u5YDSRO6s3mlDJiszAyVK6392DL2xNWN0mSKOXAwBJ41gtHf 7xsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683713324; x=1686305324; 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=jvB4fpU8+So5VWO8ax0y0Ffp0LarCBg3hyDsYVyRDvs=; b=ar4MzeweM7vaXw6vrK0rwZj36EdPLUdR6f19RuoF/1WWLZF/FkmB8bLb5kWIt8XjP7 67//2odYMOga/OEq5bPf/ZJ+5t3lnWFoaL2+jDNvF2fvVuRlhVzbZB/sBzmG/SCxfYl8 ZtltRvLPqOOXG7p7DNG/yO32KD/bL3geqjDhGIy9oC803c+WmZACyfA4jx6vnHdTNPCf u6OIhXP++lsmrnYq6uVRjPGlC0+HVmM5z03YnKcRh+EpBQ4cQpg7zUhYS5g2GV233HcD xacEf0sgpuuIFPAJqjxUk/oV4m7U6uZUjty+ZGYqKScR4iaDYVp55XMjQ55Vf3wXkAwW MeEQ== X-Gm-Message-State: AC+VfDyIBubQaifDvAiWSNgGzEWJKYHQDSXxi5A/iN9zUQbZt642hug2 FHBOiF9C4UFsooX1AGgsQNwLgA== X-Received: by 2002:a05:6402:216:b0:50b:bfee:ea26 with SMTP id t22-20020a056402021600b0050bbfeeea26mr11863642edv.35.1683713324445; Wed, 10 May 2023 03:08:44 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:c175:a0f9:6928:8c9d? ([2a02:810d:15c0:828:c175:a0f9:6928:8c9d]) by smtp.gmail.com with ESMTPSA id w15-20020a50fa8f000000b0050d89daaa70sm1707195edr.2.2023.05.10.03.08.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 10 May 2023 03:08:43 -0700 (PDT) Message-ID: <95f61847-2ec3-a4e0-d277-5d68836f66cf@linaro.org> Date: Wed, 10 May 2023 12:08:42 +0200 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 net-next V3 1/3] dt-bindings: net: xilinx_axienet: Introduce dmaengine binding support Content-Language: en-US To: Sarath Babu Naidu Gaddam , davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: linux@armlinux.org.uk, michal.simek@amd.com, radhey.shyam.pandey@amd.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, anirudha.sarangi@amd.com, harini.katakam@amd.com, git@amd.com References: <20230510085031.1116327-1-sarath.babu.naidu.gaddam@amd.com> <20230510085031.1116327-2-sarath.babu.naidu.gaddam@amd.com> From: Krzysztof Kozlowski In-Reply-To: <20230510085031.1116327-2-sarath.babu.naidu.gaddam@amd.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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 10/05/2023 10:50, Sarath Babu Naidu Gaddam wrote: > From: Radhey Shyam Pandey > > The axiethernet driver will use dmaengine framework to communicate > with dma controller IP instead of built-in dma programming sequence. Subject: drop second/last, redundant "bindings". The "dt-bindings" prefix is already stating that these are bindings. Actually also drop "dmaenging" as it is Linuxism. Focus on hardware, e.g. "Add DMA support". > > To request dma transmit and receive channels the axiethernet driver uses > generic dmas, dma-names properties. > > Also to support the backward compatibility, use "dmas" property to > identify as it should use dmaengine framework or legacy > driver(built-in dma programming). > > At this point it is recommended to use dmaengine framework but it's > optional. Once the solution is stable will make dmas as > required properties. > > Signed-off-by: Radhey Shyam Pandey > Signed-off-by: Sarath Babu Naidu Gaddam > --- > These changes are on top of below txt to yaml conversion discussion > https://lore.kernel.org/all/20230308061223.1358637-1-sarath.babu.naidu.gaddam@amd.com/#Z2e.:20230308061223.1358637-1-sarath.babu.naidu.gaddam::40amd.com:1bindings:net:xlnx::2caxi-ethernet.yaml > > Changes in V3: > 1) Reverted reg and interrupts property to support backward compatibility. > 2) Moved dmas and dma-names properties from Required properties. > > Changes in V2: > - None. > --- > .../devicetree/bindings/net/xlnx,axi-ethernet.yaml | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/Documentation/devicetree/bindings/net/xlnx,axi-ethernet.yaml b/Documentation/devicetree/bindings/net/xlnx,axi-ethernet.yaml > index 80843c177029..9dfa1976e260 100644 > --- a/Documentation/devicetree/bindings/net/xlnx,axi-ethernet.yaml > +++ b/Documentation/devicetree/bindings/net/xlnx,axi-ethernet.yaml > @@ -122,6 +122,16 @@ properties: > modes, where "pcs-handle" should be used to point to the PCS/PMA PHY, > and "phy-handle" should point to an external PHY if exists. > > + dmas: > + items: > + - description: TX DMA Channel phandle and DMA request line number > + - description: RX DMA Channel phandle and DMA request line number > + > + dma-names: > + items: > + - const: tx_chan0 tx > + - const: rx_chan0 rx Why doing these differently than all other devices? Best regards, Krzysztof