From patchwork Mon Nov 13 23:35:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 13454601 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 D9368C074FD for ; Mon, 13 Nov 2023 23:36: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=idLkulgyu+SyYbfm73RTOCnjwQtX14l+kD5FAXkNDFI=; b=hniX4cWo40QK3b pNEjuB0N3agFNDYVBVN4cxuIDj0KfOxnPf9xCFXaqhHsornMkA1LljTy/NesdM+BDo9V3WxCnQe0F 3deTOpYL/Yr9/sESTIN9sRaFb7b6Y/NW0T2nRs4Qq3GQNpwEs5oujsDxJ9kxIZetQotPBtGogtuhJ nTF5yOFu3VV+fJ5vvfEY/PdWxXP4pAZKUXR/VKZdb8jBpqaNhQJ9soxjjTD9jGXMBxHmm0GB+cJrB O0GcynkRJcIVAtzfCuFL2m3CEIpBffJs3MWvvJmm0muo3paBTUNBJmHQtwqHCJhcqjFQrsA948k+y IrWIsv6WEuefIBfm17pA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r2gTL-00EtOY-1m; Mon, 13 Nov 2023 23:36:03 +0000 Received: from mail-lj1-x229.google.com ([2a00:1450:4864:20::229]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r2gTI-00EtNK-2h for linux-arm-kernel@lists.infradead.org; Mon, 13 Nov 2023 23:36:02 +0000 Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2c79d8b67f3so53361301fa.0 for ; Mon, 13 Nov 2023 15:36:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699918559; x=1700523359; 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=VuNdy95VNpWQjRKNnpzeQQ54Hlq4tpuG2i9HfgCgKck=; b=z2MzhV2DYto2SqyGthUCZ61XMhS+XAPRoGpYp8kvZJfeKGoDPXQPfRi+GcCEXZKuHW WFaYPB02ww6xqZkGi1DgLi62rRAFPusA+ncKl5/IuTZK68RXHmmzoindW7s5dPmIZEbm bT5crGq0Ne56/lajCT5PjaJpxhnugbWtlefw/W/bVP5w/6sCvFcN45GMR3BSnFStdewM mmTHemoc0BtyQWL8bcwnPLX3vz+ray6FxQYMOsB8oJiE5ZXHwcsJvOhXKdep+sfK86Ip GWpJuCQoSe7GFpqqSO6HRM3nPONbMhTYVDt6TRdSoP5I/jKYfvJGSDN2gD/GkYXT+5ov J78w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699918559; x=1700523359; 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=VuNdy95VNpWQjRKNnpzeQQ54Hlq4tpuG2i9HfgCgKck=; b=OGN44aQ0DqLTtsgAJe0fZUXmD+DTMVGucjGKX2MTladym/K3Hc8beBq9G0DHPo/Yjo ZLMn6Un7SxO3BX0oVprsJbnTAZlAjV3fgcFaQToczCdCY0utx1Sv6k33BADdnHMXB9u0 OcDqOsxaEs2xmuaV2kmwY+JxpAC4btUc7AMGfhsb9aPu1KnSfCeQYwA9qVNVLnI1uqW+ kCP6f9UqCJnr0zByTdKlh+X/JnKVqDY9csqeb5AlQN9M56bkY6V2eV4AJM7P/xQcQwwb 6UvCz4UoDr9+1LyFD9h8UaxYSnGd91alexfchSaXccQpN7f3yVcvoidMTNHMVtLEAtGz RROA== X-Gm-Message-State: AOJu0YwCuWptErXCNHyLid9LtUb1auhHdlkG46TFR4vnCDqN1SYOWl5L g4UbhQt2z1VeWIEDi4/g8t0EbQ== X-Google-Smtp-Source: AGHT+IH+vpWSTfI+TqOPfDKq76GtSXfLBIVn7t5E38cxEXvkov/kjCBQrBt7VVuzFvyFnuIoPT3IzA== X-Received: by 2002:a2e:1659:0:b0:2c5:169f:ff03 with SMTP id 25-20020a2e1659000000b002c5169fff03mr475738ljw.5.1699918558910; Mon, 13 Nov 2023 15:35:58 -0800 (PST) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 17-20020a2e0611000000b002b70a8478ddsm1202859ljg.44.2023.11.13.15.35.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Nov 2023 15:35:58 -0800 (PST) From: Linus Walleij Date: Tue, 14 Nov 2023 00:35:56 +0100 Subject: [PATCH net-next v8 1/9] dt-bindings: net: dsa: Require ports or ethernet-ports MIME-Version: 1.0 Message-Id: <20231114-marvell-88e6152-wan-led-v8-1-50688741691b@linaro.org> References: <20231114-marvell-88e6152-wan-led-v8-0-50688741691b@linaro.org> In-Reply-To: <20231114-marvell-88e6152-wan-led-v8-0-50688741691b@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 , Florian Fainelli , Krzysztof Kozlowski X-Mailer: b4 0.12.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231113_153600_874964_ECCA6536 X-CRM114-Status: GOOD ( 10.38 ) 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 Acked-by: Florian Fainelli Reviewed-by: Krzysztof Kozlowski 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 + ...