From patchwork Tue Oct 24 09:24:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 157317 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp1818588vqx; Tue, 24 Oct 2023 02:25:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHvds+ejSdpd1cHU/5QMk1eMcKifM96+17WM0AwehshkIMUAVVdxeIBZslO1voEVsbxnHtT X-Received: by 2002:a05:6a20:9385:b0:16b:c20d:f979 with SMTP id x5-20020a056a20938500b0016bc20df979mr2577287pzh.13.1698139534334; Tue, 24 Oct 2023 02:25:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698139534; cv=none; d=google.com; s=arc-20160816; b=H5IIMFOuCK+Ar8WBsBon5xcUeooUBNQym4Ae5GQXEhkZBiSumrZb9pgIuciuCbBmr/ dRZNggMV3MnpeP2oU6KQUXN1wGRQ1lpDtdhjUYhGDDOgSkBVJ2IVbRrQLX0tSqhIlZkw 5lKpQ2haYx2n2RInMMgftLdzpSTWieP3FF6luVAGlvX2pJS+16otvBUMGmE0GjyDDN42 vSWT4MPDNNSi1dZs8r+5BMUQk2n9kp8aB3zQjyOegLCTwpuUsPIIVt1v0yD939X2MD3b 4iKIeg9CeMJVUeCRzTdVIxhu9lxAdkTJnqxcQJSjVZRz0Q3CwYkbCqS+PtBaZ/HpQ9w8 C1oA== 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=g3ohJUebuUECvOi0FjqwIOrHZugSfuRp6dT+KCBYjf4=; fh=JYsP4VLyQTDAtBrWlIiC3mGY2VFoTuIDKBDBK+uc9QY=; b=n8QO24KiJin1nrs5AKWXmioji2f6lbZU34BaOieH9QoCa8AEBTnDJWsTPRSGiAixCb y+wYA71SzKohVxSAffIqfil+FK+MvoYDWJ9qpAbjtwBYX2BXfdfm9v36Kw+gv4iYOhIE FlvRRYqqqUI/oBqi/w14Fe0M0Pbe8aeoHHLDJ//PkN/PdqoZnKwaGKjw9Jp6zuUQhON0 ntHnPPXetfQp5/gI2aFTr0+sp/QCXo9iWKvquoCVkMWTX5X8b0FzmnjobmcTYnvqdTzq ahd9pcRPaB0uByPh1WDLxnqrncCKEtfRpoa8P2azgLZ3lJVwIQt4+wMdkfAKJmonNi0f aYxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mGWueSOj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id h24-20020a17090aa89800b0027ced9acac0si10752779pjq.2.2023.10.24.02.25.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 02:25:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mGWueSOj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id 6BE8480309D2; Tue, 24 Oct 2023 02:25:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233721AbjJXJZX (ORCPT + 26 others); Tue, 24 Oct 2023 05:25:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234059AbjJXJZR (ORCPT ); Tue, 24 Oct 2023 05:25:17 -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 4607CC2 for ; Tue, 24 Oct 2023 02:25:14 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-507a5f2193bso4847662e87.1 for ; Tue, 24 Oct 2023 02:25:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698139512; x=1698744312; 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=g3ohJUebuUECvOi0FjqwIOrHZugSfuRp6dT+KCBYjf4=; b=mGWueSOjb78oBCLJei5DiYZJd1mNezLomG9F5zPlpP3eLbuWPBwoafiKKIBDVRnIZp ZmLLd/uWZBlWewPOxF3/Ye59zpR+01YRHOWjRDkXjWgFqCTavzPBD2UN3NN+RT4s+kLf yM1EAhGHsSrq5A/k+ONZhRP/7e2SblFQwl7BKWwvva/ixUqTGhfiXEF7vZ5zNKVFLiq0 02vgzDbgViAVL/j4DR37O8DoyPvHLAA928I5BqAaKdmryPnWqHOWnlORqBZcfjC8aZBc XJUn9hLBD8TgkHGqQg0czBaOLfPJzztY9rUeOpNBaGTCBi80wl0LOM1OhC+bOvr7xjaB jDdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698139512; x=1698744312; 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=g3ohJUebuUECvOi0FjqwIOrHZugSfuRp6dT+KCBYjf4=; b=RfkRyo7urc3HSL/iMR5jX28MDqC93d+Xfas5GJ5bVuamVB4wADQnbYNf2i4mC7hLj4 h9DePLIxJhohMr6DrqQFqse9gASbVPGxr+Bjrhug+xHYaD8RxH7M90hxxDvvGaC4KabN Tw9nEaTkAopppukDuQrdKlU9iL60NYiiCF2a4o+1weNKiFsVHtPKuCxvmxuqi5r0CthQ MQdQH/iFaVCcWK0oUno9GKVWqKNjHEOVrdBkOhFrk+ktAbZfJoG3s/KtyWnL95DQsjLN ZGrHw3tvKoqbiy9Oaz9YzP1Riilsgm/YIZQ4IAMf7za5eJqDY4J/G+54VgdhqA2tXLGc 4MEg== X-Gm-Message-State: AOJu0YxWNKNSNYGsaGBOshB91NZNg5wCwZkNUdtH99L168d3dGCFa9yn zr1qpgmn6srQP7IeM6Q/0WUKMA== X-Received: by 2002:a05:6512:159:b0:4fe:8ba8:1a8b with SMTP id m25-20020a056512015900b004fe8ba81a8bmr4012841lfo.7.1698139512609; Tue, 24 Oct 2023 02:25:12 -0700 (PDT) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id c12-20020ac25f6c000000b004fbc82dd1a5sm2060246lfc.13.2023.10.24.02.25.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 02:25:12 -0700 (PDT) From: Linus Walleij Date: Tue, 24 Oct 2023 11:24:53 +0200 Subject: [PATCH net-next v6 1/7] dt-bindings: net: dsa: Require ports or ethernet-ports MIME-Version: 1.0 Message-Id: <20231024-marvell-88e6152-wan-led-v6-1-993ab0949344@linaro.org> References: <20231024-marvell-88e6152-wan-led-v6-0-993ab0949344@linaro.org> In-Reply-To: <20231024-marvell-88e6152-wan-led-v6-0-993ab0949344@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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 24 Oct 2023 02:25:33 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780628359881183414 X-GMAIL-MSGID: 1780628359881183414 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..53ab2158fe2d 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 + ...