Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6493824rwl; Tue, 4 Apr 2023 13:46:16 -0700 (PDT) X-Google-Smtp-Source: AKy350Z8U/QteEoM7l6YYUtl8OLBewrHONXaWCdj112P+i2T2/DOCXLtGNN80An25PJ9+nPJGyR6 X-Received: by 2002:a05:6a20:2d94:b0:d9:f1dc:c23e with SMTP id bf20-20020a056a202d9400b000d9f1dcc23emr443972pzb.21.1680641176553; Tue, 04 Apr 2023 13:46:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680641176; cv=none; d=google.com; s=arc-20160816; b=tI5XDt6yuQs9uW/wyuBBmWoX/v3qnmVSNiuI5lXEh6y0NCiHc6VEJQBJ8V5i5v4tE/ 7NwG//vke5pIpIYNOkjB9qlV9tVfZN3IFAB7xD51G5lTAmNGpcyV16qDQJ2wuV8XlVtD NeD6b3/bcjR9FrC/8UihHKT5k/CPC+LbTHA3g/BHMKZDsAC/S8poh7ulBrXEw4knia8e 37MsQuRvoSNfx/f7gqvccSOeZdWOLPSaUC8o3RHwDQkRud+pWvhexC2rIPhw6Yfqa57B 7vFP9tyWrC9grTkxkSaDTBQplubjVRCbBYi25d2eGELqmWlaPwHs47ufmCloxFwpNBI3 X+GA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=KBi9VXnHWBPCYkffNdPrifIxEbW15RY1Ay74oyEreAU=; b=ChKWbHhDnFT2wsiee2dZs/kCdGoOJdlZjw9GoE+hqY8LOnYaI33W1JCWT+hAdP8Ca4 hir4/dGU6SE7vX5rwPly9nsOLMK3IzKZaolSevHSKal3ETipm74oa5st0E0bISw023uy M3R23xBuRxMsc2t6gPo8EWgB5CMh2y9/wnN6PnaslQgWinOClJxUz6UwAQnwnGaPKK5X TV+4UH1qS3midRZr2ZrGY1Ce23VOM3BQDRJxGguRRwTN8Jebqcr2dLrEYjTIJVgZVhpn dL4jE6mVLHX8yv3yLcpgVB92ajT95ZYOnTBKXp84Pm5fRbwbpPxrlt+b6mOBfmmRVspQ YbuA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r3-20020aa79883000000b00627dd2b5307si11030700pfl.102.2023.04.04.13.46.04; Tue, 04 Apr 2023 13:46:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236203AbjDDUmb (ORCPT + 99 others); Tue, 4 Apr 2023 16:42:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236087AbjDDUm3 (ORCPT ); Tue, 4 Apr 2023 16:42:29 -0400 Received: from mail-oi1-f177.google.com (mail-oi1-f177.google.com [209.85.167.177]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50058468E; Tue, 4 Apr 2023 13:42:24 -0700 (PDT) Received: by mail-oi1-f177.google.com with SMTP id bl22so11194284oib.11; Tue, 04 Apr 2023 13:42:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680640943; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=KBi9VXnHWBPCYkffNdPrifIxEbW15RY1Ay74oyEreAU=; b=4n/Yrf0aS1kEaO+V9rQd5RoUE35QpjjNcNpuS25cadaE67ei2wUopJjpTbT7UYwhXv CsCgx51sz/Lb9X2cGAXwduYx1Rr9dsM7e6Y+s5gx2YGOs8RFQs71GS0oGhqvP1bxtpkG Yv9Vrt+Bl/dLerV47KAn/FH8mwyhUGQUKJKpAO0nWbmu48Yz0EwAgDRtqHyhyLURL62h BsWwCNm2m33V8dqKk3tzftLCY16/EdDR7QrHq5f7Ghi12Ln1tKLTFT37A96RunFtuPkk ZTR44DoFWOlAOkmy6dVuV08zg9ggqs1FOuppCPw8xM2xpzto0oI2Mloa4HW40bOnYk3o 2SWA== X-Gm-Message-State: AAQBX9cKjUFFGa5fSObNiCatC3EKyf4O/SCeqZNHHevF051OZcyxlj/t uPi6ySMod6lffrZpdP0R+Q== X-Received: by 2002:a54:4585:0:b0:387:926e:35d3 with SMTP id z5-20020a544585000000b00387926e35d3mr241273oib.20.1680640943548; Tue, 04 Apr 2023 13:42:23 -0700 (PDT) Received: from robh_at_kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id d11-20020a9d5e0b000000b006a3170fe3efsm4207936oti.27.2023.04.04.13.42.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Apr 2023 13:42:23 -0700 (PDT) Received: (nullmailer pid 635963 invoked by uid 1000); Tue, 04 Apr 2023 20:42:22 -0000 From: Rob Herring To: Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Konrad Dybcio , Christian Marangi Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH] dt-bindings: net: ethernet-switch: Make "#address-cells/#size-cells" required Date: Tue, 4 Apr 2023 15:42:13 -0500 Message-Id: <20230404204213.635773-1-robh@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no 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 The schema doesn't allow for a single (unaddressed) ethernet port node nor does a single port switch make much sense. So if there's always multiple child nodes, "#address-cells" and "#size-cells" should be required. Signed-off-by: Rob Herring --- Documentation/devicetree/bindings/net/ethernet-switch.yaml | 4 ++++ Documentation/devicetree/bindings/net/qcom,ipq8064-mdio.yaml | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/net/ethernet-switch.yaml b/Documentation/devicetree/bindings/net/ethernet-switch.yaml index a04f8ef744aa..2ceccce6cbd7 100644 --- a/Documentation/devicetree/bindings/net/ethernet-switch.yaml +++ b/Documentation/devicetree/bindings/net/ethernet-switch.yaml @@ -40,6 +40,10 @@ patternProperties: type: object description: Ethernet switch ports + required: + - "#address-cells" + - "#size-cells" + oneOf: - required: - ports diff --git a/Documentation/devicetree/bindings/net/qcom,ipq8064-mdio.yaml b/Documentation/devicetree/bindings/net/qcom,ipq8064-mdio.yaml index d7748dd33199..ad1ff9533697 100644 --- a/Documentation/devicetree/bindings/net/qcom,ipq8064-mdio.yaml +++ b/Documentation/devicetree/bindings/net/qcom,ipq8064-mdio.yaml @@ -53,7 +53,9 @@ examples: reg = <0x10>; ports { - /* ... */ + #address-cells = <1>; + #size-cells = <0>; + /* ... */ }; }; }; -- 2.39.2