Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp1746660rwl; Thu, 5 Jan 2023 19:20:17 -0800 (PST) X-Google-Smtp-Source: AMrXdXsCW5HFrp1rtxthqksWVURKu7inhXcZHNqtsLsmv10ZQwerp2JjUNZqKyQggib2uByXGCQs X-Received: by 2002:a17:906:6b10:b0:7c8:9f04:ae7b with SMTP id q16-20020a1709066b1000b007c89f04ae7bmr48321120ejr.62.1672975216794; Thu, 05 Jan 2023 19:20:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672975216; cv=none; d=google.com; s=arc-20160816; b=b7HcrUj4+1//JqYzyVGpVrdfE/UBcb0nlk7EGlMPO+4xj19MIDJ7PGy/MTvCyZYM1F l3mDik3UMQvFBen9UYYnUKoJo1igaE5v7yIuT621xDJv5ctXoTCKZUmkebegNOkRxZA/ OIIDIxs9zypuhQKJKJwssjoHzelphVqgxGJtthnfQNh6ES6q0W+oNd3iCPZSIl5HVG5S iAXv6lavQziIy6uA/+Lc87uA2YcCrHmdaML165evjtsVo0gqh2P71ltQtgA1yMuNV8fG KyN2CIreBxiL4bG5AeT24ifTWJEa2EO2Re4zD2mJkLlaOhnQLXdXqr9hUm72Xf6H9CAR Yr0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=vW1y/1APm1asluf+qGOyqPd9cMszNT909KLGuQZ7Djw=; b=yDBdJBCdOa2JYB2kou1dxIJaokseo9gnVqLUetuvV5GURrGaU6dmoluNWt4gs+ufi4 jFGHjgR3O/XTWIA4NN0o9LHk8yJco+p9WHGt2PyLjuuDGPC4F02+jWxwDMy8t9zxI1hj IIam3RHI6qGT5Xv9ypepgNhbI9hfrc/NJ32LpDiWkaGqghWxLrfjrEfxKUfgugej6QNW Xz5Q842LomEyUrwDpbcK7aKGhB5oQIbeRZDrb9b05iXcmIVWdP/ymvXmcF2mu33g9JDN TNt1GqrX5browjyuLhe7XrAq4VZ5qpA8GcNKZeCykRSHZ2dV++bN9C7m06vvFUf2b+Wi PcwA== 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 wz2-20020a170906fe4200b007adb868f102si6481613ejb.476.2023.01.05.19.20.03; Thu, 05 Jan 2023 19:20:16 -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 S229786AbjAFDAY (ORCPT + 56 others); Thu, 5 Jan 2023 22:00:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229455AbjAFDAM (ORCPT ); Thu, 5 Jan 2023 22:00:12 -0500 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A62CB65AFC; Thu, 5 Jan 2023 19:00:07 -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 ex01.ufhost.com (Postfix) with ESMTP id 9130B24E1D3; Fri, 6 Jan 2023 11:00:05 +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; Fri, 6 Jan 2023 11:00:05 +0800 Received: from wyh-VirtualBox.starfivetech.com (171.223.208.138) by EXMBX173.cuchost.com (172.16.6.93) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 6 Jan 2023 11:00:04 +0800 From: Yanhong Wang To: , , , 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 , Yanhong Wang Subject: [PATCH v3 2/7] dt-bindings: net: snps,dwmac: Update the maxitems number of resets and reset-names Date: Fri, 6 Jan 2023 10:59:56 +0800 Message-ID: <20230106030001.1952-3-yanhong.wang@starfivetech.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230106030001.1952-1-yanhong.wang@starfivetech.com> References: <20230106030001.1952-1-yanhong.wang@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain 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=-1.9 required=5.0 tests=BAYES_00,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 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 - power-domains: maxItems: 1 @@ -463,6 +455,34 @@ allOf: Enables the TSO feature otherwise it will be managed by MAC HW capability register. + - 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 + additionalProperties: true examples: -- 2.17.1