Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3436892rdb; Wed, 13 Sep 2023 11:59:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEdRBMzEZ6NJR81lRjYKL0+qJHEwJR9XYKr1JbcWQNZ+dB6m3tUK5jLvNgs512H5Q6n7i3v X-Received: by 2002:a17:90a:eb0b:b0:273:e64c:f22e with SMTP id j11-20020a17090aeb0b00b00273e64cf22emr2806691pjz.29.1694631584080; Wed, 13 Sep 2023 11:59:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694631584; cv=none; d=google.com; s=arc-20160816; b=AduV89SfsqXFVPsiPI6VJAOZNByHxcwu9fKnTdlrqPdKLedgStJORBJ1hOz4z4dbfs PS0yWwLLjakHgwNPSUI3fUhZV9vvOz0ENKmh7FDZOtFY1f3ulBbOV0GHgHjCogd9cWmy kkZJpwa+yC0qLTlK3uE31Ui8p84okLC/O2lycW4lKxj2BFYOjRgVM2BUmcHb2QFx0Ei6 1TVhrKvpjxNeGci19pHio1b+AtcV6DLPD0a+fZG+/svioGeCLbqzv7UC2F1pjKZqKP/n j0U9kcYK1yJxDvDQcHVZzJW17IJQvSZ4l17CJRaT/pfvWVCSbObtjHZNI7ISpERNVEUy 51MQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=WbMwXGk6o+lbYJAjbVb82tnFj2aYuAgarBbBqqRuBPc=; fh=WoDrkf2rzq4PXxfDyFqPOHYNFsUVDJdpNfFdcbK+Ju0=; b=qqMaOY5AswX1/qGgTmyyUcPeM/oFCRRfwz5BoWiBO/Q7KL+VQPyfB67mpNCN2wEFhv Chp7cBZNhgs1P5tO0CKbdL1oU8pWbYYLIBd+jqO32tm/rLJXLeyuz0KxHUZSR+PZSDvZ D1wMqFyuUejSeRePd+jQ8x0W312XmvUDJwmyY3+sBhE1gzdp9BKA/ZPo3az7u5vhZeAr GKPzBaCiuuzJSVL0q4XcZy8iBxiUrH/BGTwVOtfHkuf63TghsuhqQg2BDDcWMQ4tRkba wp3+I1W90sZucNf1l+Me++uzOXdIW0Tr09qt0uAggwAmkVWY5vHmFbJqA8JtO48ZI38D zZ2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arinc9.com header.s=gm1 header.b=Z2GShICU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arinc9.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id ob6-20020a17090b390600b0025bec4468c2si2306236pjb.167.2023.09.13.11.59.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 11:59:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@arinc9.com header.s=gm1 header.b=Z2GShICU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arinc9.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 7D4D3827719F; Wed, 13 Sep 2023 04:36:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240413AbjIMLfq (ORCPT + 99 others); Wed, 13 Sep 2023 07:35:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240401AbjIMLfg (ORCPT ); Wed, 13 Sep 2023 07:35:36 -0400 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C44621FC0; Wed, 13 Sep 2023 04:35:31 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id 235F224000E; Wed, 13 Sep 2023 11:35:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arinc9.com; s=gm1; t=1694604930; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WbMwXGk6o+lbYJAjbVb82tnFj2aYuAgarBbBqqRuBPc=; b=Z2GShICU3ihvCutupOM5tgMDhIm2mE3jZBu65j1kClIXb2kYp4zA/1kLyRZzGnS+y8zwpF i86FO0SJS5yz1RmHw7lK4RftC4V8Zq87sTEDaeW6ujIFLUgkEcgSneHohDugmA/6dXn9M7 l6ri9KtfyFJDfNZa5xmZdwMi4UJUcKqCk4itn8lqSf4uXjh/hLbvGajBUtR+3uqm8KgPyE P0CTMnaxoU9OeECX6sFWp7QiheE76FXBve+lU0I1gknHwXcQtOK6Ujz0RJT34oRYMgMcUy ootEQlkXZFAYcTtHnxCsV1YuntvZx6uKdcTZYTyUsvrhINyUHJiJQGJmuJjvIw== Message-ID: <137fd54d-7d2d-4d0b-a50b-cca69875a814@arinc9.com> Date: Wed, 13 Sep 2023 14:35:11 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/4] dt-bindings: net: dsa: document internal MDIO bus Content-Language: en-US To: Vladimir Oltean Cc: Andrew Lunn , Florian Fainelli , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Woojung Huh , UNGLinuxDriver@microchip.com, Linus Walleij , =?UTF-8?Q?Alvin_=C5=A0ipraga?= , Daniel Golle , Landen Chao , DENG Qingfang , Sean Wang , Matthias Brugger , AngeloGioacchino Del Regno , mithat.guner@xeront.com, erkin.bozoglu@xeront.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org References: <0cee0928-74c9-4048-8cd8-70bfbfafd9b2@arinc9.com> <20230827121235.zog4c3ehu2cyd3jy@skbuf> <676d1a2b-6ffa-4aff-8bed-a749c373f5b3@arinc9.com> <87325ce9-595a-4dda-a6a1-b5927d25719b@arinc9.com> <20230911225126.rk23g3u3bzo3agby@skbuf> <036c0763-f1b2-49ff-bc82-1ff16eec27ab@arinc9.com> <20230912193450.h5s6miubag46z623@skbuf> <6cec079e-991e-4222-a76d-d6156de0daca@arinc9.com> <20230913074231.5azwxqjuv2wp5nik@skbuf> <89c9b84c-574c-4071-9524-9207597a3f0a@arinc9.com> <20230913110404.co7earmnbzf6hhoe@skbuf> From: =?UTF-8?B?QXLEsW7DpyDDnE5BTA==?= In-Reply-To: <20230913110404.co7earmnbzf6hhoe@skbuf> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-GND-Sasl: arinc.unal@arinc9.com 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 (groat.vger.email [0.0.0.0]); Wed, 13 Sep 2023 04:36:02 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email On 13.09.2023 14:04, Vladimir Oltean wrote: > I don't think they're for switch ports only. Any driver which uses > phylink_fwnode_phy_connect() or its derivatives gets subject to the same > bindings. But putting the sub-schema in ethernet-controller.yaml makes > sense, just maybe not naming it "phylink-switch". Got it. Should we disallow managed altogether when fixed-link is also defined, or just with in-band-status value? Currently: diff --git a/Documentation/devicetree/bindings/net/ethernet-controller.yaml b/Documentation/devicetree/bindings/net/ethernet-controller.yaml index 9f6a5ccbcefe..3b5946a4be34 100644 --- a/Documentation/devicetree/bindings/net/ethernet-controller.yaml +++ b/Documentation/devicetree/bindings/net/ethernet-controller.yaml @@ -284,6 +284,21 @@ allOf: controllers that have configurable TX internal delays. If this property is present then the MAC applies the TX delay. +$defs: + phylink: + description: phylink bindings for ethernet controllers + allOf: + - anyOf: + - required: [ fixed-link ] + - required: [ phy-handle ] + - required: [ managed ] + + - if: + required: [ fixed-link ] + then: + properties: + managed: false + additionalProperties: true ... Arınç