Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp2297500rwl; Fri, 6 Jan 2023 04:43:31 -0800 (PST) X-Google-Smtp-Source: AMrXdXti0sWgbL4NrVgNfgeAkQizi2Dl/yLloJZ1SAwAsBgC8oi0kn9fstVXOXwuKOXGqhP/FuqF X-Received: by 2002:a17:90a:f0cb:b0:226:c917:85c6 with SMTP id fa11-20020a17090af0cb00b00226c91785c6mr6200867pjb.2.1673009011474; Fri, 06 Jan 2023 04:43:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673009011; cv=none; d=google.com; s=arc-20160816; b=PnAcIHjj4l2vpplh5KbYfrSxL1ftNjKks8jHNYzEJemvd6M4UL+shSnJwrWbwm0wRZ Gxioh31SDjfZxyE0x/xoTJCkP3sBMeuMhKzmgNkpSBvyAA8pWYbYNleYMep+En/i8Lyw 63xWqbcEgYyEsdkCkJDqJvT0vZubrfUy537+VWLbtLjonthU44KaMu60v6Uh/ZC2UoTF I7ouK5kma/ZW4wA/mijZsjBhSRAsmzCxkIM1RYYoj5Ntfbd/pjc9UxH6aGLXuSu61W3h ezELuj1TKmJYFoyj0lU8guzsL0W5PydzbbGi9Sb3OM0PVdeAIt1MAqFNynw8es4ljY+n qvyQ== 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=OJ7xr6hqaFunxstN9Frwa743d6EY0RYUMvbu/BvcENU=; b=yqRhohepgS+I9sGX6m82xJqPNP0dxmbfQZoI93L0zINS9wOM/NHsnmiBGuCnjiHTI/ n8ezu6+bNs7Gju3OGlN5RecvAkCG3uELV20Zt9XIXUCvJUvWmqhahHZ/uFJqjuYQNca/ uUSj6npQId6oCM823Ra/IGYaMyr1nVF/b6UQbJ9/jRf4fLmbkKWgH7OSKyDrPh/lIe/l n/6P5BcEfTJ7Kx3Aby2kZBaxl7uocZoYjSzyaWa5rs72pyzO3a6etR9573RP513Cyhfy G575Zuc908UqcOQeBXLDm1EiWQVcMRvR9zXOdc8f960WS+AHJxRRVxhFgxILIh+NBy8c AfaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=k533u49J; 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 na6-20020a17090b4c0600b002262ce26628si1368243pjb.184.2023.01.06.04.43.24; Fri, 06 Jan 2023 04:43:31 -0800 (PST) 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=k533u49J; 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 S230294AbjAFMiq (ORCPT + 54 others); Fri, 6 Jan 2023 07:38:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230244AbjAFMio (ORCPT ); Fri, 6 Jan 2023 07:38:44 -0500 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 959FE687A7 for ; Fri, 6 Jan 2023 04:38:43 -0800 (PST) Received: by mail-wm1-x32e.google.com with SMTP id fm16-20020a05600c0c1000b003d96fb976efso3430525wmb.3 for ; Fri, 06 Jan 2023 04:38:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=OJ7xr6hqaFunxstN9Frwa743d6EY0RYUMvbu/BvcENU=; b=k533u49JmlzI9E0GmLi1/SbA4DHKKnuJLwcWPrk5dQCS8t7rkz+MHy08ABQhin/X/6 JgRoDBIY7EFHGJgc9dMEvwbhzTO0xbC3ALki8QJnhibyoI2nI9CwYpQcqCg9P/fjNqCs KOGaNGKYtv0TvGzekX+Rn0gYaHJa96u63r2TCFFwoG5i49iv8XvbV92w7kwe2FydP22z 7kn9AMzHk5eFhxiflGGLIWTzivhLMwSi6yQQpqwWwpjbXoQKRkw2MZsgbtZZ9iOmr5Qb IH6h6ZmVnSg3H5JJ2/HvwbK0bBIk4wLbn/xXWxNANNI6X1Kc37/4U42ZwinHarOws8PY bAjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=OJ7xr6hqaFunxstN9Frwa743d6EY0RYUMvbu/BvcENU=; b=m2mGveutuFt6HU0k2A7+uGcV2k7GhTshZhbdwRPGB5w5MLbtxXJ6e7ujQ/gYra3t72 EHbRk98+pPmEQr7TOfIaNlpDdgPbigfVhp6ZpuQ9L7L0sYDSQrHPfzVgcrpjbc0g9kSj Eglg+qSQPhT0EssgCRJhE+90aNwuWT93CxzRQAavLsqWnOOG31CeaivfWD+QOJ42CknY efMTOihNANnta0P8ahSzURhYVVK5os6NAB40YlWczdPdRvyBgzEYhuCJIsFcL8ew6Tme qS8IxA2gsQS1VzPujdiikh7vy959pbcMNFm1pdYyXjS+EK/U/bKbJa72KEiqIuOd5ufo qXlg== X-Gm-Message-State: AFqh2krfy5qQnMfIMtoZIxFqBg1bvKmIYsF4vEViiYnu+RvhG/LFnO3P Yl+SIJ/dQ+nBS2pQhI/L9sqeSg== X-Received: by 2002:a05:600c:5012:b0:3d3:5a4a:9103 with SMTP id n18-20020a05600c501200b003d35a4a9103mr38570557wmr.31.1673008722161; Fri, 06 Jan 2023 04:38:42 -0800 (PST) Received: from [192.168.1.102] ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id s2-20020adff802000000b00241bd7a7165sm1025445wrp.82.2023.01.06.04.38.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 06 Jan 2023 04:38:41 -0800 (PST) Message-ID: <80c9fac7-36fe-293e-62f0-945515b8f481@linaro.org> Date: Fri, 6 Jan 2023 13:38:38 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH v3 2/7] dt-bindings: net: snps,dwmac: Update the maxitems number of resets and reset-names Content-Language: en-US To: Yanhong Wang , linux-riscv@lists.infradead.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Emil Renner Berthing , Richard Cochran , Andrew Lunn , Heiner Kallweit , Peter Geis References: <20230106030001.1952-1-yanhong.wang@starfivetech.com> <20230106030001.1952-3-yanhong.wang@starfivetech.com> From: Krzysztof Kozlowski In-Reply-To: <20230106030001.1952-3-yanhong.wang@starfivetech.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.0 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 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 06/01/2023 03:59, Yanhong Wang wrote: > Some boards(such as StarFive VisionFive v2) require more than one value > which defined by resets property, so the original definition can not > meet the requirements. In order to adapt to different requirements, > adjust the maxitems number definition. > > Signed-off-by: Yanhong Wang > --- > .../devicetree/bindings/net/snps,dwmac.yaml | 36 ++++++++++++++----- > 1 file changed, 28 insertions(+), 8 deletions(-) > > diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml > index e26c3e76ebb7..f7693e8c8d6d 100644 > --- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml > +++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml > @@ -132,14 +132,6 @@ properties: > - pclk > - ptp_ref > > - resets: > - maxItems: 1 > - description: > - MAC Reset signal. > - > - reset-names: > - const: stmmaceth Do not remove properties from top-level properties. Instead these should have widest constraints which are further constrain in allOf:if:then. Here you should list items with minItems: 1. > - Best regards, Krzysztof