Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1882350rda; Tue, 24 Oct 2023 06:21:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGZZLO/FfTrQUI+qs9HyKWBWXw08hPm4vmmC51rQ+1XkOP2UCVgPXzCbEUXYe5Nu9wOf5vF X-Received: by 2002:a05:6a21:66c5:b0:15e:9c50:73ee with SMTP id ze5-20020a056a2166c500b0015e9c5073eemr2718013pzb.53.1698153676656; Tue, 24 Oct 2023 06:21:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698153676; cv=none; d=google.com; s=arc-20160816; b=yJ6UTuwxDIFUVI/UzBu+8EdGiHuBxtU947XGWGnBoeXTMvrwfMTF+rAke9S1fzL1I7 tmeRyP8ZXjkD2slWNM0kPcClDdXI/byhwL7ZD+B3axHzKUxFC1lxoECwNqcvlDa679Bh STgzuC0vJX9/pxvMC0HeUm6hdD5vxXdbRV68hxzpwYHZ48CPjuC7JU72zJugKMC368La zs7Da+1D0zfDsZ43bHv6oNBKNMBzhi58NvVjQwKxlE1+rPWWQO+JZ72ewULGgN1UJ02+ UHWDarJxYFvdtqcCCrcf8ssiW7mk1Kk3aFaeT8xrIaB9cUESwj5hJlRxFoRCzxwjw5bP 19ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=UT552xSRxg7vfw/B4jlHzjbiGIGKhdCrIlQ9lB9ogSk=; fh=JYsP4VLyQTDAtBrWlIiC3mGY2VFoTuIDKBDBK+uc9QY=; b=S0Ey/07H4E0RrIj+C5KFg+BVpexGGrBfnYREWCPwu0THXtqC0h3Cg7zAnNps1/YiuG /h+TcX4gwgRjQ0xHvEZWS5ecIbSkL4lkSt8B0hTJUfZthnynR+IW/HXXvoOlPi9rdLoR SlzX9Kz2RJL8ZbaHjHE1r2JaKCJjpZj3luLRNNBxqbsVxCD+8lzp2n28eA1Z5KX+HBz5 EBnZXKo0RpV0VnOMiI5hwc3l4T/wpWvzCIgzDAP2nleu7/S+37W6CGN4oyUZFtp/lBwH EuFfwwByjLNyOYWXOOh02F/UbVSnR369jIB9f/Y8PeIoJysul4TD+TJZnuxccXeSzGXm 650A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RS6oO+kO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id r27-20020a638f5b000000b00565f5281804si8454267pgn.195.2023.10.24.06.21.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 06:21:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RS6oO+kO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id B4EB880B1317; Tue, 24 Oct 2023 06:21:04 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234474AbjJXNUr (ORCPT + 99 others); Tue, 24 Oct 2023 09:20:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234421AbjJXNUk (ORCPT ); Tue, 24 Oct 2023 09:20:40 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C17C12C for ; Tue, 24 Oct 2023 06:20:33 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-507b96095abso6656717e87.3 for ; Tue, 24 Oct 2023 06:20:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698153632; x=1698758432; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=UT552xSRxg7vfw/B4jlHzjbiGIGKhdCrIlQ9lB9ogSk=; b=RS6oO+kOF6nFFUVyLqUXSibAbxFVFD2hlRtuAZmm5qt2pu+qY5uBmBvWge6Dos0uDr 4CtOsOImZWm1DeRwDfsVlV8eiKIKskzDay04kBVtIIOv81jIhU+7FgKLtjFZ8x9PeEfN VK6xhrdVk15l4GIpzzZCU5Vl+Pd9wfEYgQXyyP2IihEHDfJ0ST8cpc3QpVjHDMFphJc2 eluxCaR6YYRBznfJrluPosuTuEBQgdKQWOe/TlJKv4xrCZEKewbSCE0t2IQctjBayRcg ICT+FSUc5yi6CbyJuL8U+cDuu4WqSULFW4pAQJyrq/tLdG3ulXrM+ISVFOTh9Iv9aQFt J5Cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698153632; x=1698758432; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UT552xSRxg7vfw/B4jlHzjbiGIGKhdCrIlQ9lB9ogSk=; b=xA0vpAX2MbHhWbIgRHrILauw0KL3K2hmrTBj/shuTpNZYl0zzrMVbcjpnVrPlqH9o4 Bhvij4BRvJNkLY11RkYHSfMlo/A2GmsyV9ML+/0InNeNvV+zurTMSPuVthhGxlmVMFNV VFdo/ct0Oi5tgOGffVWcTlWn1gNOeS2BmHURZb8w3/1ByxEFzjbMvDGGij+knFujX5Zw K5/xnlb8n8HFybpK6/3IvY6Al33pnGaZ/0jgK4917sX3z6zsQ2AhwzIvQ8VvDUlccvVk ahS2D2p3tQuugN/Aueqvyl8T8+mFldkzPlraVAgppw/ENqE5f7szeJMZlS2zu+bnB+tP hURw== X-Gm-Message-State: AOJu0YywWszPQjwZeXYQ9yMg2qwGpDa1g2nuKWWQ/gOwOd0eAT2KQD8j 8oYr6KXjPemAkXJDWWF8W8qhzw== X-Received: by 2002:a05:6512:4016:b0:508:1178:efa4 with SMTP id br22-20020a056512401600b005081178efa4mr188587lfb.55.1698153631805; Tue, 24 Oct 2023 06:20:31 -0700 (PDT) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id d5-20020a193845000000b00507ab956ab9sm2147365lfj.147.2023.10.24.06.20.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 06:20:31 -0700 (PDT) From: Linus Walleij Date: Tue, 24 Oct 2023 15:20:27 +0200 Subject: [PATCH net-next v7 1/7] dt-bindings: net: dsa: Require ports or ethernet-ports MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20231024-marvell-88e6152-wan-led-v7-1-2869347697d1@linaro.org> References: <20231024-marvell-88e6152-wan-led-v7-0-2869347697d1@linaro.org> In-Reply-To: <20231024-marvell-88e6152-wan-led-v7-0-2869347697d1@linaro.org> To: Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Russell King , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , =?utf-8?q?Marek_Beh=C3=BAn?= Cc: Christian Marangi , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Linus Walleij , Rob Herring X-Mailer: b4 0.12.4 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 24 Oct 2023 06:21:04 -0700 (PDT) Bindings using dsa.yaml#/$defs/ethernet-ports specify that a DSA switch node need to have a ports or ethernet-ports subnode, and that is actually required, so add requirements using oneOf. Suggested-by: Rob Herring Signed-off-by: Linus Walleij --- Documentation/devicetree/bindings/net/dsa/dsa.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/net/dsa/dsa.yaml b/Documentation/devicetree/bindings/net/dsa/dsa.yaml index 6107189d276a..2abd036578d1 100644 --- a/Documentation/devicetree/bindings/net/dsa/dsa.yaml +++ b/Documentation/devicetree/bindings/net/dsa/dsa.yaml @@ -46,4 +46,10 @@ $defs: $ref: dsa-port.yaml# unevaluatedProperties: false +oneOf: + - required: + - ports + - required: + - ethernet-ports + ... -- 2.34.1