From patchwork Tue Oct 24 13:20:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 13434480 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 57C93C25B48 for ; Tue, 24 Oct 2023 13:21:01 +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=t0K3TJl26UcfzAuvttsIDw8u8eWzAbRw538lFfyCGbg=; b=bGTb0aVWUFmCBt 0nAbA55xSbQWSh/rxOuJDvr279aG0ugeX6YFAbYAxR4HK8oUO4oMish4rOr/vRRku7/wsESPa+j+m PILK6R+nvUHUe29XSTFITeExm+29bL2gMqttVmQHwaj+No+lsch8EYlianRfAdiwYBttAt+344K/b 8iKoVKEgp306GaCec0uka2TXTEA5MeMxpfX5qUeaF7WbcpbIbWVVOJQyDGeTwYkSEFDphH0J20+Ro Hcooija6JDW1QJBlzVIoUgEnyNFD6LoYWTbLeDez0wWAv7qe0Vkxn7c84wyuVQAVeUl03/O4kNVDj DzY750eoBx6mJOedvxHg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qvHKn-009v3d-1W; Tue, 24 Oct 2023 13:20:37 +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 1qvHKk-009v1s-0b for linux-arm-kernel@lists.infradead.org; Tue, 24 Oct 2023 13:20:35 +0000 Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-507a29c7eefso6671354e87.1 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=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=UT552xSRxg7vfw/B4jlHzjbiGIGKhdCrIlQ9lB9ogSk=; b=jDWIge3UTL1YVpgtSP/1hITm6kTJzDh+scZ2ziLyewbWyN+2pzx3Pcx4ITvgfzbEtY gKsfreLxuVe5Lno1glj4AwHcsNxo7EiqP8IceSh1RV77gIHMXqtQfMDLGIpZp2AwnNcw z5vElvT0W/JZDSyDFDb89qQ7p6vxK+HPKaciSQWT8s3SVfNV5IGj2apORGPd7IP6OFfd ueIffIEAJLRGcU5+2YoNtyzl98p+753k/yVM+TyGDHe4Y3IJhnO8p7pcBUn0hh7EwO+l xpddwBOE8pcRZbLpb2JzyBT/HsOE5Uek07vpyPNZ9fqyw2QnnCwNULC8g0zpGStrnkD+ OhZg== 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=Sj+mhwfJbFEgX16eQcdJiOVaQLX+A55s6Gsw6YXfR56jHhzxTJO0epHdIVqmtGSLBd 7kmLiwaWyqnzmtQpk5QGMjKPqnM0oMtrx6w6umNw+rkipqDdZz1aQsxcjHgtXkAecDN1 a7Pa3Aa1622QBo5E0ePRFVoP9z/HXnDXDhl0+82WpfSy90Wvy3wgvzPxQZllHQaBGXHf cRgW2LHLFdrr8gyoaiMDdp1lZYxYCI4stTIzT2xp2X8hPzQoiaB5KEdNccVp1wLgEplW vuq9WqmU1AUblrGa+gBacrbMTUq7TnhWu1ABoZYEe+15IwceKhGPxHXfdNJphbxjAwk8 ns/w== X-Gm-Message-State: AOJu0YxZSNILy1FnNFAkVedo4GVTkBLJTqVZKhto0GDR1jF+mMmjwUFq AVRisJN4P3/1MnK26D5x3/RNeA== X-Google-Smtp-Source: AGHT+IEj+KMeONE10q/gquHsR7jOzyg2PFLfGY6LK/CyGvVzrP9Ev1G3Y33qwldjE7BWxEeoNM6aWg== 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 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231024_062034_225429_1C924694 X-CRM114-Status: GOOD ( 10.56 ) 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 Acked-by: Florian Fainelli Reviewed-by: Krzysztof Kozlowski --- 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 + ...