Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp3633630rwj; Mon, 19 Dec 2022 23:00:40 -0800 (PST) X-Google-Smtp-Source: AMrXdXtGXJz9o3vzmJJAg4h0eBzYeTl4Yg9OBreaT6tJagM2fCkC22U/vOxX4004th3SZImKp2k+ X-Received: by 2002:a05:6a20:4c83:b0:ad:e914:38ab with SMTP id fq3-20020a056a204c8300b000ade91438abmr12340004pzb.53.1671519640481; Mon, 19 Dec 2022 23:00:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671519640; cv=none; d=google.com; s=arc-20160816; b=cvcy/+UvOt0a82jSd51R4e4w6KWMoalZkyb9IgfcqXX0W5pJWzNWhEKJPDzjg43qJx uMTx3VlZlAYfhNGDf4GqOG7Zhw/Puj39jwDuPS2ETSVYhIF5nXjF7br1wGbliMrgA7KW WwDTI8xmEFUfHFxhdo7g27ECx7GXuZq/wfjTIZthEyuAOXNqSZZvzJrSHJlDUgu2G+g+ ktK45wLNy0fXehM4lPjufMuq9jz3wnXy/7/GNr0Jx7jV2appEES7VK/WqEfa1vwB61jh YFNnkOTHxYvQrmOSUs5YVa7RaikkMRVBS49DLFvjoIR86n9Ji9OfT30MRvlAW9XPLZNh 8o0w== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id; bh=7ccsG1RXT3esZ+jmDZQaZqA4n/PeobLlh243c5UdcLI=; b=zk4DrgzhCb9E6zHKWJqY4VaGebO3InihDAivC7yd+qEr5HcTGw8j6wcTvJKEgqpTJq gQGVmeW00di32tiuuVj0wI/Rm/ZhdkXXafJ+oOqjbuSCXtnWFK8RCyziwKYc34rVjYTi omp/7ppTVCI04rl6PMeYZJ73bx/8xP10kQwlADEWhKMIqsXsi6oD507+ZR8kWNQ91qV2 RzqX8vMmqNohkLB+QDBY8SXesnidYMrFn8Y+uoECFe1FqP0hGOerIsodK37rzVWfEP+6 nFJRqer0Tj6b1LGuaEE+L3/I4pbKMemgVM0gjCwNFPeCd7l3hXexRvOi8EA2T6GwfDjg DHTA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j9-20020a056a00174900b0056bb0103ea4si13532305pfc.246.2022.12.19.23.00.31; Mon, 19 Dec 2022 23:00:40 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233191AbiLTGtA (ORCPT + 70 others); Tue, 20 Dec 2022 01:49:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229500AbiLTGs6 (ORCPT ); Tue, 20 Dec 2022 01:48:58 -0500 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E2AC115B; Mon, 19 Dec 2022 22:48:50 -0800 (PST) Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by fd01.gateway.ufhost.com (Postfix) with ESMTP id 8F2BD24DBD3; Tue, 20 Dec 2022 14:48:38 +0800 (CST) Received: from EXMBX173.cuchost.com (172.16.6.93) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 20 Dec 2022 14:48:38 +0800 Received: from [192.168.120.49] (171.223.208.138) by EXMBX173.cuchost.com (172.16.6.93) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 20 Dec 2022 14:48:36 +0800 Message-ID: <7f4339df-6616-120f-f16a-cd38a2b6ea1d@starfivetech.com> Date: Tue, 20 Dec 2022 14:48:36 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCH v2 2/9] dt-bindings: net: snps,dwmac: Update the maxitems number of resets and reset-names To: Krzysztof Kozlowski , , , , 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: <20221216070632.11444-1-yanhong.wang@starfivetech.com> <20221216070632.11444-3-yanhong.wang@starfivetech.com> <040b56b1-c65c-34c3-e4a1-5cae4428d1d2@linaro.org> Content-Language: en-US From: yanhong wang In-Reply-To: <040b56b1-c65c-34c3-e4a1-5cae4428d1d2@linaro.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [171.223.208.138] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX173.cuchost.com (172.16.6.93) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_MSPIKE_H2,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 2022/12/16 19:03, Krzysztof Kozlowski wrote: > On 16/12/2022 08:06, 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 from 1 to 3.. >> >> Signed-off-by: Yanhong Wang >> --- >> .../devicetree/bindings/net/snps,dwmac.yaml | 15 +++++++++++---- >> 1 file changed, 11 insertions(+), 4 deletions(-) >> >> diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml >> index e26c3e76ebb7..7870228b4cd3 100644 >> --- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml >> +++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml >> @@ -133,12 +133,19 @@ properties: >> - ptp_ref >> >> resets: >> - maxItems: 1 >> - description: >> - MAC Reset signal. >> + minItems: 1 >> + maxItems: 3 >> + additionalItems: true >> + items: >> + - description: MAC Reset signal >> >> reset-names: >> - const: stmmaceth >> + minItems: 1 >> + maxItems: 3 >> + additionalItems: true >> + contains: >> + enum: >> + - stmmaceth > > No, this is highly unspecific and you know affect all the schemas using > snps,dwmac.yaml. Both lists must be specific - for your device and for > others. > I have tried to define the resets in "starfive,jh71x0-dwmac.yaml", but it can not over-write the maxItems limit in "snps,dwmac.yaml",therefore, it will report error "reset-names: ['stmmaceth', 'ahb'] is too long" running "make dt_binding_check". Do you have any suggestions to deal with this situation? > Best regards, > Krzysztof >