Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp4471299rwb; Tue, 17 Jan 2023 01:01:03 -0800 (PST) X-Google-Smtp-Source: AMrXdXu+F9czpOVzq/zD4tJkQN57nhZrtDLPB2L6IVt/b/5VKz4TH9HubCFs+XOD5V/GVos4Rn4O X-Received: by 2002:a17:902:e9cd:b0:194:6627:d7ab with SMTP id 13-20020a170902e9cd00b001946627d7abmr3080050plk.12.1673946062845; Tue, 17 Jan 2023 01:01:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673946062; cv=none; d=google.com; s=arc-20160816; b=O+1YCSXH4NjxadAgzTobzq0eWO3jQm0UAUQA/HqrOP1GU+MtYjx2Kt6U++NNkyiJVr g+leYU4+NyOeekqWe8oaPPKx0FOTm9V0Bs7QSIcAqRloPHI4Z9GJfx8iaXfx0PWApPE3 XJD7kc/VxV9wYSC8dtKaKX5oPngxGxvfUZuFm5Wj6ChoIm/b/c1Gc1ipvJcTcHmKCjVs dq/YpaN+uini+EFT1s9/+ZmkLNzoWBkEnV/rTolRJUnVoc+BYOvjNYbI5o8xp8w/kM7p 1Cp4q1yZWoFNHiNVazVpebRUa0Soc2PgDKKg1UplhIsCrRn7HJnn7Bl1fo60l6yeXdjK eeVA== 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=WWm/D5U36CBBZnisDCQc8jy48M3+XXeWpLI/3U6tBZA=; b=iK8jCaB2Xw2qrFI/bw1a2iid/GwgXtxgTOvknl20mPOgfVx5ALMYfdpraIMJQ3ZkSe psGZg+Yn7YNxCK76zwRe5/woDqasqQpch2EQVDvvt5Oq5O4jC7334JCTpCVu2iYeaviE TnPJSCGMVIl0rlSQ8CRwum7w0eILFRJQIQXUUvvALZSxdcXycGZaOjyNipyfNfu8NIqu +VuDN5/nkOBArDaQeE/0z+M9LpDy90xCMaQMJrHVFD3sZytI7TZ2p+2Uaxh89gZfMA22 lcLmnTojNm1p4Ss4Mgj//ymjDpfSmeZpyxAr2t0wTB59JVOKf3lUkArorpS2zJagGzR3 qlUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TupwNN70; 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 s5-20020a656445000000b004cd050fe743si6127342pgv.123.2023.01.17.01.00.56; Tue, 17 Jan 2023 01:01:02 -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=TupwNN70; 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 S236076AbjAQInq (ORCPT + 49 others); Tue, 17 Jan 2023 03:43:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236199AbjAQIni (ORCPT ); Tue, 17 Jan 2023 03:43:38 -0500 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0EE0629E37 for ; Tue, 17 Jan 2023 00:43:37 -0800 (PST) Received: by mail-wr1-x434.google.com with SMTP id r2so29776656wrv.7 for ; Tue, 17 Jan 2023 00:43:36 -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=WWm/D5U36CBBZnisDCQc8jy48M3+XXeWpLI/3U6tBZA=; b=TupwNN700Dfm2HUutSMwjPlmPKv1qxM6rYQyMm0mpHkjqxUP6/0EINC3oD3RQ0ssr9 ZzPtSYa/mGq4cHtJcahITvOZmStCZdZWU1jfRSTQRltvQy18nreIqtAjQBDUJ5qUqWPj Vmigbtmqu/qh3Crc2SEdV8EfGgnlOdVOyKxP8c2Fl4gjbBFiArELiXSHSbu9YA15LyiR YFwyzD8iLVSiyiiQ62RpEg3nb5p1ifgQxrmUkaEAewQmadv8mXnL7W9/QY9FGQsohvEg WVZAiCvLCyWsyG2KrU8FpyT04KS1EJ5k+p4CSGwyZJbNMrSOVPp4L6n3+x6r1ynkMaFR vzfQ== 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=WWm/D5U36CBBZnisDCQc8jy48M3+XXeWpLI/3U6tBZA=; b=B2UzNvkyC0OgWGhL6lVbnm+y+P5DAQcBk8ddkUTmf8u+gljiv37/Wa8y+fZyEyjq+R 8+eMpdbz/cmJLEJH0k+MqgDQk4n/HYrOQGdS1vRsytYIsgwdwOW4VRBDam8l/i1eM2Vq D3sCQrplvnhEeKtL3FD34MsQF5lTDXWcPh0ezjhwo1HLNivtsZ3MkWkXwXsmk3jcmFWP LthNLMISI0Av/Dyf9FeUSXL+Ds5050ZIjl5Ak/DG5qZN9m+BNsCMwueTttWzNkkY2pUp FyuQngrmF3QEbS/MAbXDYGye3wZQZNoamlgWSMxxEwjSKKE398ic35wtOuCKlw+ToXQ/ H42w== X-Gm-Message-State: AFqh2kq5Do/LzAzoBJzgxivkxi2A0hN7vfAyIFHLzVKPpgyDMVJt6gBB aARupEIb60tI/r8RWKALunK6ZoLuZNwLr9ve X-Received: by 2002:adf:e195:0:b0:2bd:d26c:ccc4 with SMTP id az21-20020adfe195000000b002bdd26cccc4mr2366095wrb.42.1673945015641; Tue, 17 Jan 2023 00:43:35 -0800 (PST) Received: from [192.168.1.109] ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id bu3-20020a056000078300b002bbe7efd88csm23519456wrb.41.2023.01.17.00.43.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 17 Jan 2023 00:43:35 -0800 (PST) Message-ID: <17f910a8-186f-48a3-8817-6a2fa4fe06ec@linaro.org> Date: Tue, 17 Jan 2023 09:43:32 +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> <2328562d-59a2-f60e-b17b-6cf16392e01f@linaro.org> <84e783a6-0aea-a6ba-13a0-fb29c66cc81a@starfivetech.com> <8ee5f6ef-80cb-2e0f-6681-598ccc697291@linaro.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 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 17/01/2023 09:14, yanhong wang wrote: >>> Thanks, refer to the definition of clocks. If it is defined as follows, is it OK? >>> >>> properties: >>> resets: >>> minItems: 1 >>> maxItems: 3 >>> additionalItems: true >> >> Drop >> >>> items: >>> - description: MAC Reset signal. >> >> Drop both >> >>> >>> reset-names: >>> minItems: 1 >>> maxItems: 3 >>> additionalItems: true >> >> Drop >> >>> contains: >>> enum: >>> - stmmaceth >> >> Drop all >> >>> >>> >>> allOf: >>> - if: >>> properties: >>> compatible: >>> contains: >>> const: starfive,jh7110-dwmac >>> then: >>> properties: >>> resets: >>> minItems: 2 >>> maxItems: 2 >>> reset-names: >>> items: >>> - const: stmmaceth >>> - const: ahb >>> required: >>> - resets >>> - reset-names >>> else: >>> properties: >>> resets: >>> maxItems: 1 >>> description: >>> MAC Reset signal. >>> >>> reset-names: >>> const: stmmaceth >>> >>> Do you have any other better suggestions? >> >> More or less like this but the allOf should not be in snps,dwmac schema >> but in individual schemas. The snps,dwmac is growing unmaintainable... >> > > Thanks, it is defined as follows, is it right? > > properties: > resets: > minItems: 1 > maxItems: 3 > additionalItems: true > Read my comments above. Drop. Best regards, Krzysztof