Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1650345rdg; Sat, 12 Aug 2023 09:58:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF/SvSmmX8eklFYk02SwBvz/yicbnrjYFgdW7GEjES6AJGBvln2vgbPubT46OjZSPSnj59a X-Received: by 2002:ac2:465c:0:b0:4fb:780d:2a49 with SMTP id s28-20020ac2465c000000b004fb780d2a49mr3215876lfo.5.1691859529874; Sat, 12 Aug 2023 09:58:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691859529; cv=none; d=google.com; s=arc-20160816; b=qgix7x2/9nJk3MC2j3ft2FNfZR2odzBfuSP+YWCLsxZvs3i0hCAxDDTE+68ZzIn7jm 1fewn0PFQyN9RjjqrDc4XFp1y4v5VOruDDdHhZ9sY3lk5zKIYs+ZQyltAdY4a2ltCsY+ J99HmW6j4HhDtwG34UUs1xYr3PHG/oNcqfUWszlLB0vxoftYrkyLNouAPbFkWzHJahFA sA+iFXdHBQIka1DUOxDjuUCTSuIqmLVJeOS24DS/ZTaRVuhKpRjVIsfY4Zf0Er5o+1+y ucE1PuU/U0zmWC9Z2AkHzhlocUNp6KOn573F4dnA5DxqheDdtshiSRuzZaNAPx/5RVpR m13w== 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=38WNKp1tIHZuWDWyB1VGwPuC9C9gEwniYXC3BCan83U=; fh=Z5cLtctD0K3HAjcQ0H9CRALzyIvIY2Nxa/lcMYB+Kdc=; b=NDtcQpkHXdp3k4CmGT6Ur5Q991fiI9V+xfPGYOl4Z4Wbku7FRCu/xZUUoUGvcWDfck 0plpbmyaAlB5Gr9f/f0o2t7IHZ3qdwwaLFgYOAWgOhu8CT2gRLASUtmmOwTldq054t/x 4J5QZH4erPUsZ6K2GZvNIhVCmDzf0ifhF/jLI6TlzW73O8Pvq8ueMCWuHMdaf46L3NPQ Mwkx3JS6WvYa01HP74Jdn+jkWk9OsbrBIwD8gXlGS3zm6p7QDs+lyciC3+7/Jywybzhu gVWYxUJjBw27DTZmIXqHLqEAaGZ5K8RsmihRQQn7s2pjpTQiz8PXUVnBASlCKXLDcVn2 2JiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arinc9.com header.s=gm1 header.b=btMVtgRq; 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=arinc9.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t16-20020a17090616d000b0099bce4aa77esi4862001ejd.941.2023.08.12.09.58.25; Sat, 12 Aug 2023 09:58:49 -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; dkim=pass header.i=@arinc9.com header.s=gm1 header.b=btMVtgRq; 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=arinc9.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229785AbjHLQ2M (ORCPT + 99 others); Sat, 12 Aug 2023 12:28:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229451AbjHLQ2L (ORCPT ); Sat, 12 Aug 2023 12:28:11 -0400 Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AA121BEE; Sat, 12 Aug 2023 09:28:13 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id 3A51C20002; Sat, 12 Aug 2023 16:28:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arinc9.com; s=gm1; t=1691857692; 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=38WNKp1tIHZuWDWyB1VGwPuC9C9gEwniYXC3BCan83U=; b=btMVtgRqMyn/AKspRKynx1G2Dg6YT82EWik4KPC2lQZOo2oqPltopNdfNbwNV0UyqDhE57 rr5W7V6PXFcb21pzwX6pidCTc59c5yFAQEzbd8HiPS7Qlt5c47y5gwn3qqmcymz1ZBFWLb gn4zfwmCj73tskoy7Zo0DZ7YEWXa1l7EMjaYIeF1/yHKlzXmNEbthAZb2fuGS4ne+9fhuP vRxUE52SRldB0IBCiLxjw2eC3p4o39sQD0Us2JJ8zo5aCkBeFtuqkoYz36g9U20Ew+zYxD DQuA9Serq/WreUiX/0ilFqR/G95g9WzbLkrtZKdjy+lnp/sBSEB27QOHtuPoAA== Message-ID: Date: Sat, 12 Aug 2023 19:28:02 +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: Andrew Lunn , Florian Fainelli , Vladimir Oltean , "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 Cc: 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: <20230812091708.34665-1-arinc.unal@arinc9.com> <20230812091708.34665-3-arinc.unal@arinc9.com> From: =?UTF-8?B?QXLEsW7DpyDDnE5BTA==?= In-Reply-To: <20230812091708.34665-3-arinc.unal@arinc9.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-GND-Sasl: arinc.unal@arinc9.com X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS,URIBL_BLOCKED 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 I changed this to below. I will wait for reviews before submitting v2. The realtek.yaml schema extends the mdio.yaml schema. The mdio.yaml schema is also being referred to through dsa.yaml#/$defs/ethernet-ports now which means we cannot disallow additional properties by 'unevaluatedProperties: false' on the dsa.yaml schema. On the realtek.yaml schema, refer to dsa.yaml#/properties/mdio instead to point the human readers to the description on the dsa.yaml schema. diff --git a/Documentation/devicetree/bindings/net/dsa/dsa.yaml b/Documentation/devicetree/bindings/net/dsa/dsa.yaml index ec74a660beda..03ccedbc49dc 100644 --- a/Documentation/devicetree/bindings/net/dsa/dsa.yaml +++ b/Documentation/devicetree/bindings/net/dsa/dsa.yaml @@ -31,6 +31,24 @@ properties: (single device hanging off a CPU port) must not specify this property $ref: /schemas/types.yaml#/definitions/uint32-array + mdio: + description: The internal MDIO bus of the switch + $ref: /schemas/net/mdio.yaml# + +if: + required: [ mdio ] +then: + patternProperties: + "^(ethernet-)?ports$": + patternProperties: + "^(ethernet-)?port@[0-9]+$": + if: + not: + required: [ ethernet ] + then: + required: + - phy-handle + additionalProperties: true $defs: diff --git a/Documentation/devicetree/bindings/net/dsa/realtek.yaml b/Documentation/devicetree/bindings/net/dsa/realtek.yaml index cfd69c2604ea..f4b4fe0509a0 100644 --- a/Documentation/devicetree/bindings/net/dsa/realtek.yaml +++ b/Documentation/devicetree/bindings/net/dsa/realtek.yaml @@ -96,7 +96,7 @@ properties: - '#interrupt-cells' mdio: - $ref: /schemas/net/mdio.yaml# + $ref: dsa.yaml#/properties/mdio unevaluatedProperties: false properties: Arınç