Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2282213rwb; Thu, 15 Dec 2022 23:12:47 -0800 (PST) X-Google-Smtp-Source: AA0mqf7V15ob4vlXXQuWvfRtd4wC3IyvsigGnfebZgB8L7JW6kTptTxlfajv4+KRnf/C6tpq7zYU X-Received: by 2002:a17:902:b209:b0:188:f0d6:ed30 with SMTP id t9-20020a170902b20900b00188f0d6ed30mr37348485plr.41.1671174766913; Thu, 15 Dec 2022 23:12:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671174766; cv=none; d=google.com; s=arc-20160816; b=seACDfRiS66nx8wLv2o63gNqTRM5hTHzNBc/CvDB4TF6gMf55xFYW1EiYIiijChSia Kg2d5WDZENYJwXfspu63jUH8i853bR+3/0YJyNZ8FvfJ9n78LPpFZMkRePMxrJAeP1Qd WmMkpgXiC/7Ev/kIhZY1Td7bJ8M+DsDa+lgiRHX6ZHoUra/M04XFzU3TMkG987OY+Yml fwb6Usn/8uAJTNRH7EKPCteVBdO6hmdX3eOB9Kh94mF+ciBhu9LDnpA0w+KpxbYFPxjG 8IVX/IzVYVq5Za8aCVjEmZbfL9SkuvWFeNH7PRXplHSzOsw0v69xiXCuNkbVILcOFe7K jgaQ== 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=E+FeF0fQ/zjDDfQK5oaSilXuOtYSG0JlA5EFP0Pjf2M=; b=sjgSrBgjxbpQOGVo5hT9hdcpc+PvAWlyBDlJwKOhy5TDB4kDa5sfpaBI01Oor9YMyA D9TQPl2slR4iwya3p04eWZJM3zNAF0IZkb9OPB6u2+4snbc9RVBnH7ObI1SGVhOCrJcq xiT5UwS+EXilU/lkl3RDFSu4e7eGoV5Iam2UYv+BAfTCzXmX2f/WbcZuEItHsuKZORf1 +rLmwsjJhyRm6oggBr8qXvCerQDZ1lBXkS9oBy38ku7JuRMfn+ueg/4yy40GYcLwf2VU IuE/05RpnRucF3uf0sHtqkXAsRwkcWe2Bc6YoDFJJ3mgMXqhGXEGZn/0yYR+oOSOIWtk MY9Q== 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 n2-20020a170902e54200b001899477302csi1917054plf.590.2022.12.15.23.12.36; Thu, 15 Dec 2022 23:12:46 -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 S229904AbiLPHFt (ORCPT + 68 others); Fri, 16 Dec 2022 02:05:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229549AbiLPHFp (ORCPT ); Fri, 16 Dec 2022 02:05:45 -0500 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38F66EB0; Thu, 15 Dec 2022 23:05:42 -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 DEDCD24E250; Fri, 16 Dec 2022 15:05:39 +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, 16 Dec 2022 15:05:40 +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, 16 Dec 2022 15:05:38 +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 v2 2/9] dt-bindings: net: snps,dwmac: Update the maxitems number of resets and reset-names Date: Fri, 16 Dec 2022 15:06:25 +0800 Message-ID: <20221216070632.11444-3-yanhong.wang@starfivetech.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221216070632.11444-1-yanhong.wang@starfivetech.com> References: <20221216070632.11444-1-yanhong.wang@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [171.223.208.138] X-ClientProxiedBy: EXCAS064.cuchost.com (172.16.6.24) 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 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 power-domains: maxItems: 1 -- 2.17.1