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: 13434119 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 B3F97C07545 for ; Tue, 24 Oct 2023 09:25:51 +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=HQaerJSQ1JDvyP7Ay5j/+857U/+cwsmaCej9UKW0Woo=; b=rB86ixSZOjH6pf shPelBCD/zk8eomeuAe/LrHA+GqA9zCNXa/7pOGS7X2vTIlwvK0IgwMxD9LQyUp4K/F1WkA/3HmEk 6ljnDniMk5RA6c0xJsnbEYsrCOLapt6onrr8290lcLYk4dTeeFW80v53usD7WuN+26fGr4fZ53Seu L3H+yP8bZf+OK1H+ZjWqjvp8wQ/aQfHh46Fj8Ruv+1RgiyaRcwgBhAGtN72T099sA5+BxqhG+hQ7O XfWdELHikymli2ot/4XpwYgQD0W1xO9DAVAGEUMwUMZ2LqL6/cvS/0UWij9ImiMOT0zVChEVEn/n1 NZF/upWeY1T8Jg2uLieg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qvDfF-009Imv-37; Tue, 24 Oct 2023 09:25:29 +0000 Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qvDfB-009Iek-0r for linux-arm-kernel@lists.infradead.org; Tue, 24 Oct 2023 09:25:26 +0000 Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-5079f9ec8d9so4864973e87.0 for ; Tue, 24 Oct 2023 02:25:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698139512; x=1698744312; 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=g3ohJUebuUECvOi0FjqwIOrHZugSfuRp6dT+KCBYjf4=; b=lIlJM2igDXrL4wTJbI6bltC+jahom0TZVL32njwUoy9NjnukvJGyC+z6IHaqCPiEzb UWAEekdcBLIu2Y4m/7ua3ol8PVSuax1bQPcrNNswUe/SzyQDGV8yXxOkAj6K39UMi1Ec edc0sFB7RjBhd/piqceanI65XNrp3wchW4mYEImB3vQfTdh4edEgsedpa68tT2RV3JnZ TfU245lUgKs+BDq1AtDa0gOk1or1B+e/nzlk7Ld18FpfBlShjjptIcXgP8d1twT6kg9T 1p2Ap0hryHTwCglV89BinutY3XlkML5hT7MBQ+QvMYnqNiYlOIFZIgMmB6plNcK0q/2M TrlQ== 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=jDJmIioWQk3+LMP4tRTCHHUFT5JqIRs75ueFJlGmbj/Aa21qoJB9I/6nvHa8wg6j6/ Sx3UhhP9BKpg/rK93qWjETYxBHRBxyGIOUQSEONueOOrb3mM9DjN0Mfk1bpDUAtUxZUd IerGQslLEeoQh92qAhdBWOAJr47WJ+ADP3+H0efam3NjoUXJVn96ntwkvSZV2Q56ka56 HU/cXrOipIHdKIqQn4WoucMEl0Ypal+K1H+8RPrXfr+jHS2bfvfP1nCkRseEraTIUAmf rvQ66TSm/s5DSG2/nYzkKMB7SeyQ7smbvr0qrzqC4fNoDKGb7Xxb3xoUmyk2bvLQ9d4j 1+Fw== X-Gm-Message-State: AOJu0YwACB6AbPIwHk0BjlC6vbzsGFi5OHVy/Syji3BXynAyR0QSSyzc DeJgE65OJk+truLWmSj5isUnuA== X-Google-Smtp-Source: AGHT+IGiyQM7g5OyW8btVnjClzjpUyoGGYj82N9E2e8k/Ty2hz9D8SMWiF5JyYso8GbS/oipvF07Ag== 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231024_022525_306187_85C25811 X-CRM114-Status: GOOD ( 10.57 ) 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..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 + ...