Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6590085rwb; Mon, 5 Dec 2022 14:48:33 -0800 (PST) X-Google-Smtp-Source: AA0mqf5PSiDURbKSCSZTK1aw+bMDe9yr4+zJByZ7M5a5xnk9IogwBx6sEApsy0yWljKRTeoghYSk X-Received: by 2002:a05:6402:114f:b0:462:1e07:1dd7 with SMTP id g15-20020a056402114f00b004621e071dd7mr76936541edw.293.1670280512804; Mon, 05 Dec 2022 14:48:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670280512; cv=none; d=google.com; s=arc-20160816; b=knf6iQBTgWQ56ss9EtIKpJqqleQ0C7nWCV7bMU4K/N4xmDfaBRritX6isc/ImfNtkV mM3NJxT2D0wQXDDNZK9eA5jsp6MymJhbBhxp63Sqlo3MQdMP2pBGsc9ksPkTBffKfvI2 FjWi62JGyV5t5neHLfABg9Sgig5sbUgv/G+t99NZl9X+miHBNJkYio6S5q3glmaNyqED SfAfZzcoUyYjv/hayaSjylec1NZJy33bmIArGpjTJPmOTh5BLwog6QZ+dNCknQWLuEMr kcOvgMLWDxsFmaIBiNS5VUFMU/UldI5DYA97ZGlqN6p5Cp+9hyvqRqayrJ29AVxdijsZ 1V3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=Mjzds2RzECUq1xcqjJsP8nfg2ZPV+dnkXlgwu7if9PE=; b=xOMStWCgqvrSwDQ21S910DwnqmtZKjmdGm8Pa/Qkf7X0ThobR7qASMzQe5Fv/QKx2s T3Zqq2t2L7wh2fGcPWbQCM6k42AODSe9BDBnwwYTTM+l3piJJ3BNCfwqLUU9iKu8L7OS qk2BS0pmyvWjtjw1ml0unSk1VRwWbU74FSXChlml2BMLbVKjbWTwrtSkljDxmiXhEjqL ZiUL2aWvNNELxL+YC/dOlFojvuUjmFyoT7LpxJ4JZYnezN8g/b4cl3nCRjeFwayBZhwM lyAJk/TT/UXX5R3sA09iwUqbmErNn/Doul6+Z1ffMi/qt3Gdayu1V9m3pHkwV45yuYVf qrEw== 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 di7-20020a170906730700b007add5af39f6si9627151ejc.929.2022.12.05.14.48.13; Mon, 05 Dec 2022 14:48:32 -0800 (PST) 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 S233750AbiLEVuV (ORCPT + 80 others); Mon, 5 Dec 2022 16:50:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232903AbiLEVtr (ORCPT ); Mon, 5 Dec 2022 16:49:47 -0500 Received: from mail-oa1-f53.google.com (mail-oa1-f53.google.com [209.85.160.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7EDA7643; Mon, 5 Dec 2022 13:47:49 -0800 (PST) Received: by mail-oa1-f53.google.com with SMTP id 586e51a60fabf-14449b7814bso10147295fac.3; Mon, 05 Dec 2022 13:47:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Mjzds2RzECUq1xcqjJsP8nfg2ZPV+dnkXlgwu7if9PE=; b=t+gfM+a6ADFjr169f1qZXmh2Y+iLccK8cb6xXtYsc2lWB/vGHbQCwAnVGLnl9ysD3s UIxfhqlw94va1T67ZXrwD9tN3rzGD6HbeVipduEDKWXxUA5WWqJ8LyCkNESNr6V6a8FD vWUF3eiHvV83ANoj5kRw7eQF9O4FMa1GN1grg+KGmdxfg6OtX0iWmW+WjqH7cBUH6Q0W FAo5A2rc4wBwsDfOwNrvNUc0FzLhKlDjAKISmAYzB1cJRGJ4GeJk5q/ESJmR7RGlm+lf +nXkan0sTHJfBZuUlceXRT4YOidnQxir/0FJ/UPAQ1AaF1QDvCx3qMFGC6ybKQr2BTB3 YM5w== X-Gm-Message-State: ANoB5pmazc9ZaZMXjmHQ+AitrhBj+TLHibHNVEB8dKszix/z/AEbC+gr b36U9LsndKeBDssJu+29gw== X-Received: by 2002:a05:6870:7988:b0:13c:84e6:96d2 with SMTP id he8-20020a056870798800b0013c84e696d2mr4030384oab.72.1670276869061; Mon, 05 Dec 2022 13:47:49 -0800 (PST) Received: from robh_at_kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id y7-20020a4ac407000000b0049ea9654facsm7064489oop.32.2022.12.05.13.47.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Dec 2022 13:47:48 -0800 (PST) Received: (nullmailer pid 2682645 invoked by uid 1000); Mon, 05 Dec 2022 21:47:47 -0000 Date: Mon, 5 Dec 2022 15:47:47 -0600 From: Rob Herring To: Colin Foster Cc: linux-renesas-soc@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org, John Crispin , Alexandre Belloni , Claudiu Manoil , Marek Vasut , Sean Wang , DENG Qingfang , Landen Chao , =?UTF-8?B?bsOnIMOcTkFM?= , Vivien Didelot , =?UTF-8?B?Q2zDqW1lbnQgTMOpZ2Vy?= , =?UTF-8?Q?Alvin_=C5=A0ipraga?= , Linus Walleij , UNGLinuxDriver@microchip.com, Woojung Huh , Matthias Brugger , Kurt Kanzenbach , Krzysztof Kozlowski , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Vladimir Oltean , Florian Fainelli , Andrew Lunn , George McCollister Subject: Re: [PATCH v4 net-next 7/9] dt-bindings: net: add generic ethernet-switch Message-ID: <20221205214747.GA2679200-robh@kernel.org> References: <20221202204559.162619-1-colin.foster@in-advantage.com> <20221202204559.162619-8-colin.foster@in-advantage.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221202204559.162619-8-colin.foster@in-advantage.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,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 On Fri, Dec 02, 2022 at 12:45:57PM -0800, Colin Foster wrote: > The dsa.yaml bindings had references that can apply to non-dsa switches. To > prevent duplication of this information, keep the dsa-specific information > inside dsa.yaml and move the remaining generic information to the newly > created ethernet-switch.yaml. > > Signed-off-by: Colin Foster > Suggested-by: Vladimir Oltean > Reviewed-by: Florian Fainelli > --- > > v3 -> v4 > * Update ethernet-ports and ethernet-port nodes to match what the new > dsa.yaml has. Namely: > "unevaluatedProperties: false" instead of "additionalProperties: true" > "additionalProperties: true" instead of "unevaluatedProperties: true" > for ethernet-ports and ethernet-port, respectively. > * Add Florian Reviewed tag > > v2 -> v3 > * Change ethernet-switch.yaml title from "Ethernet Switch Device > Tree Bindings" to "Generic Ethernet Switch" > * Rework ethernet-switch.yaml description > * Add base defs structure for switches that don't have any additional > properties. > * Add "additionalProperties: true" under "^(ethernet-)?ports$" node > * Correct port reference from /schemas/net/dsa/dsa-port.yaml# to > ethernet-controller.yaml# > > v1 -> v2 > * No net change, but deletions from dsa.yaml included the changes for > "addionalProperties: true" under ports and "unevaluatedProperties: > true" under port. > > --- > .../devicetree/bindings/net/dsa/dsa.yaml | 28 +------- > .../bindings/net/ethernet-switch.yaml | 66 +++++++++++++++++++ > MAINTAINERS | 1 + > 3 files changed, 69 insertions(+), 26 deletions(-) > create mode 100644 Documentation/devicetree/bindings/net/ethernet-switch.yaml > > diff --git a/Documentation/devicetree/bindings/net/dsa/dsa.yaml b/Documentation/devicetree/bindings/net/dsa/dsa.yaml > index 5081f4979f1b..843205ea722d 100644 > --- a/Documentation/devicetree/bindings/net/dsa/dsa.yaml > +++ b/Documentation/devicetree/bindings/net/dsa/dsa.yaml > @@ -18,6 +18,8 @@ description: > > select: false > > +$ref: "/schemas/net/ethernet-switch.yaml#" You can drop quotes here. With that, Reviewed-by: Rob Herring This is a nice clean-up. Rob