Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E1E66C7618B for ; Thu, 16 Mar 2023 08:06:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230403AbjCPIG6 (ORCPT ); Thu, 16 Mar 2023 04:06:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230398AbjCPIGw (ORCPT ); Thu, 16 Mar 2023 04:06:52 -0400 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1749B06E9 for ; Thu, 16 Mar 2023 01:06:35 -0700 (PDT) Received: by mail-ed1-x52a.google.com with SMTP id z21so4203472edb.4 for ; Thu, 16 Mar 2023 01:06:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678953994; 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=KZkYtSR+YFrQLhjFXxMBdPgks/5EamNF6JACsG0aG5I=; b=MZyWQTzvPjgcuXcNYT/yQuy4ao0cb9lt1XOBPuBy/LGocjOIgUnBTqrQrapFtA6C5E AGe9t2b3JcQHb3Q0v31fRCNeKoqIgB7uxmG4eUHu6PVn7YXwLKvofq1IsrNhzIQ5Ig5L G47IzFDjVpaYokKqTGsVn5LsAe2j9nVg+gL3gFJb2RBUQ/fJqO+x/XbJ3fW4DQcZliwU 2eUuZbzvtg+tchztjsUboLm+FqCFo08EcEwtrqlxVmR2ZcECbx4rwrcx1fBjxjsLkdUt yKxW9Om5vG01d/pnvBq5Fk53TFajpGZVA36Mz47lJtM3a1KHEpphS9VYczFs/+gzUbIi cl2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678953994; 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=KZkYtSR+YFrQLhjFXxMBdPgks/5EamNF6JACsG0aG5I=; b=MkOBj4cVhkvsmycOHg7hNtIMBPRPEdPuUArHty2/kyIXaug4bH/szZoBqvA4kdw6+5 FGxIdfyh+hK5jL62aj1ccU6+IDTqHBRpKYzGIgbxfRcwsePEsPglK2OhmetqqJ4csJov EQNf2VXB19NGSeNkbTw/Tizw9BikHeLaLVomizcHN8lBeTlaSuHTbBUtG4wW1tRtc6dy NEdSkOWTyvI5KQDruoqoEfV87UA4v9JVco249NMeK4d6jcxYD545+e8NdEjpQyCFcRLx EbVVUnmwxqaF+d5Sm2wmeZsl77XUqKwR4Uwb/v7e8OInXk1j60zBul6T0umrfeXg2PS/ 7BrA== X-Gm-Message-State: AO0yUKVhUBH9FCS+0DyhtTUpVraYCP0MgA+IIgHlCI6kwBeru5E3UU33 zfyZqRg4a0AOpZdbC9Wi+3JIKQ== X-Google-Smtp-Source: AK7set816JtppXD+OBP7Q2nHJWHyKFcPf9wNBzn6R33ibzuPGNNFWGvEWVf1ckoXJyxR+9WOJERVLA== X-Received: by 2002:a17:906:b17:b0:8b1:7857:2331 with SMTP id u23-20020a1709060b1700b008b178572331mr8990750ejg.65.1678953994419; Thu, 16 Mar 2023 01:06:34 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:9827:5f65:8269:a95f? ([2a02:810d:15c0:828:9827:5f65:8269:a95f]) by smtp.gmail.com with ESMTPSA id oq12-20020a170906cc8c00b0092fdb0b2e5dsm938055ejb.93.2023.03.16.01.06.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 16 Mar 2023 01:06:34 -0700 (PDT) Message-ID: Date: Thu, 16 Mar 2023 09:06:32 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH net-next 10/16] dt-bindings: net: dwmac: Add AXI-bus properties constraints Content-Language: en-US To: Serge Semin , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Rob Herring , Krzysztof Kozlowski Cc: Serge Semin , Alexey Malahov , Pavel Parkhomenko , Christian Marangi , Richard Cochran , Biao Huang , Yang Yingliang , devicetree@vger.kernel.org, netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20230313225103.30512-1-Sergey.Semin@baikalelectronics.ru> <20230313225103.30512-11-Sergey.Semin@baikalelectronics.ru> From: Krzysztof Kozlowski In-Reply-To: <20230313225103.30512-11-Sergey.Semin@baikalelectronics.ru> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13/03/2023 23:50, Serge Semin wrote: > Currently none of the AXI-bus non-boolean DT-properties have constraints > defined meanwhile they can be specified at least based on the > corresponding device configs. Let's do that: > + snps,wr_osr_lm/snps,rd_osr_lmt - maximum number of outstanding AXI-bus > read/write requests is limited with the IP-core synthesize parameter > AXI_MAX_{RD,WR}_REQ. DW MAC/GMAC: <= 16, DW Eth QoS: <= 32, DW xGMAC: <= > 64. The least restrictive constraint is defined since the DT-schema is > common for all IP-cores. > + snps,blen - array of the burst lengths supported by the AXI-bus. Values > are limited by the AXI3/4 bus standard, available AXI/System bus CSR flags > and the AXI-bus IP-core synthesize config . All DW *MACs support setting > the burst length within the set: 4, 8, 16, 32, 64, 128, 256. If some burst > length is unsupported a zero value can be specified instead in the array. > > Signed-off-by: Serge Semin > > snps,kbbe: > $ref: /schemas/types.yaml#/definitions/uint32 > @@ -501,6 +507,8 @@ properties: > this is a vector of supported burst length. > minItems: 7 > maxItems: 7 > + items: > + enum: [256, 128, 64, 32, 16, 8, 4, 0] Increasing order. Best regards, Krzysztof