From patchwork Mon Oct 23 07:18:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 13432446 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5BFE8C001E0 for ; Mon, 23 Oct 2023 07:19:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=XlTzwHW2qbeV/zlKnDWDiCE3eydb/3evaKhKdwOfkU8=; b=j2TCA6zvbt2M74 LpCoU05bPxxoAONbUfbJR9aMNmrneC9Uq+79+BaKiE7pHVnWw1tXjFdvU4mJ0DSlAAYBegA6PvHWN TE6usckKmAlIl22wsCrvMmpVw1cS+6ee0WByX6PVu80LFAI90X+1XSGIwJHpoLXtWD9ZB0wr2Gn0u WlGD6eOYzitR+i08en4FeLwKIGY7cgAmyhNY7UG0jSJMwXYgPdJylyumj5DDnhv/T/wIlBVRC/2cx sRx5pzQydrZmscNlQFNGcLt7pa3KqYXP9AbXcZxUz+FC3DYj7hUG6CWyDA9GgCU/5xuFDwn+O18f9 MWYV4xy5HRIvYvxNvgfA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qupDU-006czP-18; Mon, 23 Oct 2023 07:19:12 +0000 Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qupDR-006cyK-1f for linux-arm-kernel@lists.infradead.org; Mon, 23 Oct 2023 07:19:10 +0000 Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-507a29c7eefso4338174e87.1 for ; Mon, 23 Oct 2023 00:19:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698045548; x=1698650348; darn=lists.infradead.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=2tyOup0+oFY1qNiEuX6Mw7ppmGYAINv0IB1dZ7z8mjE=; b=J0QGf+RkuLatf5PVSCq9gpqNQfsZv3PkN6pfrVLz+Xyx7D7rUHFDpEEANN7Vvhurwv opmfM+mO7SJA8laFd9EeqSiNQHlyXSM3dewIENzhuT1+W1UpfRhYifQLSPILjSVtDEWs fFqQsaBenBlcTjBBhapZw5rNjHswiXh1hOAfnBmtTEGwJu2dU8exgpAJsUT81mEnWU7A lZ3aeKCXR7BfCtGtZbBDsuXPKl0aU4IW15GbbWd8Fp87JUPURm6tBjZxbsJsmQG4xSbY JOc3b4z4SfD8cvyyaT9Vb57jdm8IOBPSGqHRKtdKtpsyFtB2Kme6sC5fDKMMDNI3h7sJ Xp6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698045548; x=1698650348; 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=2tyOup0+oFY1qNiEuX6Mw7ppmGYAINv0IB1dZ7z8mjE=; b=PE5ZgLqxLXAH4mmkcmMZe006kpooNcjtzk9CPDzHO+waJHsbllLkSWckFUXYCPThOk C29bsJeSO8bpV9lokeguNDgRRoWAm2j1bEzWSjOmDyZwi6rOlmpJlmGUphyxtSa0Yqzr tuOj6drfXAaB3FmH/LN5JIoQjR80QRN+wwD1wfR0ZswTttmuXZk2u6sLIgoIlxQALuMJ F+KwWOGTdulwhDUgcUZBAKb1ZXG9xO2jQSjCkhifIojlUDvQa/p6xz9nJhbLFEumdJF6 Q0xMkpv4huZUWWcjttoLSZx+yIVfzHLlxszUHwYrTrGOlpdnQyDYi5QqzyUtrWlXn++J dJXA== X-Gm-Message-State: AOJu0YyBpqKYkmY5cp6t91socGZi13T8Np3OV0cVIKEaXu6yxnp+dc0k s504xlhFsMQLaCQt4wYS4BaS+A== X-Google-Smtp-Source: AGHT+IGDalWEGxPNcMqfMhzsK7CMCx7fUXXylPNH6oOJUMXrVw7IaZ2iPNraUE0ypwwaZpR/UEtg0A== X-Received: by 2002:a19:4f16:0:b0:507:aaa4:e3b3 with SMTP id d22-20020a194f16000000b00507aaa4e3b3mr5101284lfb.50.1698045547836; Mon, 23 Oct 2023 00:19:07 -0700 (PDT) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id w15-20020a05651204cf00b00507a682c049sm1578727lfq.215.2023.10.23.00.19.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 00:19:07 -0700 (PDT) From: Linus Walleij Date: Mon, 23 Oct 2023 09:18:52 +0200 Subject: [PATCH net-next v5 1/7] dt-bindings: net: dsa: Require ports or ethernet-ports MIME-Version: 1.0 Message-Id: <20231023-marvell-88e6152-wan-led-v5-1-0e82952015a7@linaro.org> References: <20231023-marvell-88e6152-wan-led-v5-0-0e82952015a7@linaro.org> In-Reply-To: <20231023-marvell-88e6152-wan-led-v5-0-0e82952015a7@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 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231023_001909_549337_16F7C8AC X-CRM114-Status: GOOD ( 10.59 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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..368169f7fd37 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 + ...