Article View: linux.kernel.netdev
Article #15776Re: [PATCH net-next v4 1/8] dt-bindings: net: add Xilinx TSN Endpoint Ethernet MAC
From: Andrew Lunn
Date: Fri, 13 Nov 2026 13:20
Date: Fri, 13 Nov 2026 13:20
96 lines
12122 bytes
12122 bytes
> + xlnx,max-learning-entries:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + minimum: 256
> + maximum: 1920
> + default: 1920
> + description:
> + Maximum number of addresses the hardware address learning engine
> + can learn on each network port (MAC1 and MAC2). This is the
> + MAX_LEARNING_ENTRIES IP configuration parameter, and no register
> + reports it. The endpoint port does not take part in hardware
> + address learning.
Is this a synthesis parameter? No other switch that i know of has it
in DT. The driver hard codes the value based on the compatible. Why
does that not work for you?
> + mdio-1:
> + $ref: /schemas/net/mdio.yaml#
> + description:
> + MDIO bus controller for MAC1. Registers reside inside the mac1
> + reg-names window.
> + unevaluatedProperties: false
> +
> + mdio-2:
> + $ref: /schemas/net/mdio.yaml#
> + description:
> + MDIO bus controller for MAC2. Registers reside inside the mac2
> + reg-names window.
> + unevaluatedProperties: false
How hard coded into the design is the number of ports? The way the DT
is structured, it does not seem easy to add another port. It is more
normal to put all port properties within one node, so you just need to
cookie cutter that node, not add new nodes all other the place.
> + switch@38000 {
> + compatible = "xlnx,tsn-switch";
> + reg = <0x38000 0x8000>,
> + <0x00000 0x14000>,
> + <0x20000 0x14000>;
> + reg-names = "switch", "mac1", "mac2";
> + mdio-1 {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + phy0: ethernet-phy@0 {
> + reg = <0>;
> + };
> + };
> +
> + mdio-2 {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + phy1: ethernet-phy@1 {
> + reg = <1>;
> + };
> + };
Interesting that this is address 1, where as the other is address 0.
Just to be sure, there are two fully independent MDIO bus masters?
This
> +
> + ethernet-ports {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + ethernet-port@0 {
> + reg = <0>;
> + ethernet = <&ep_mac>;
> + phy-mode = "internal";
> +
> + fixed-link {
> + speed = <1000>;
> + full-duplex;
> + };
> + };
> +
> + ethernet-port@1 {
> + reg = <1>;
> + phy-handle = <&phy0>;
> + phy-mode = "rgmii-id";
> + };
> +
> + ethernet-port@2 {
> + reg = <2>;
> + phy-handle = <&phy1>;
> + phy-mode = "rgmii-id";
Are these two PHY internal or external? Using rgmii internally is O.K,
but odd. Normally 'GMII' or 'internal' would be used.
Andrew
Technical Details
Message-ID:
<13864fbe-6cd1-4d70-afee-bd3d3be163f3@lunn.ch>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-362668-linux-kernel-netdev=dewy.ruReferences:
<20261113-patches_v2_external-v4-0-56bb26f042a4@amd.com> <20261113-patches_v2_external-v4-1-56bb26f042a4@amd.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-362668-linux-kernel-netdev=dewy.ru From: andrew@lunn.ch (Andrew Lunn) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v4 1/8] dt-bindings: net: add Xilinx TSN Endpoint Ethernet MAC Date: Fri, 13 Nov 2026 14:20:20 +0100 Organization: Usenet Network Message-ID: <13864fbe-6cd1-4d70-afee-bd3d3be163f3@lunn.ch> References: <20261113-patches_v2_external-v4-0-56bb26f042a4@amd.com> <20261113-patches_v2_external-v4-1-56bb26f042a4@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="1361730"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:40UkT7p9w2EJD+0vycePiFVl8wk= sha256:ha0DEo8ed58ExyBskRiGDc7iurDLsaBwU5YtxBGacyo= sha1:WaeOrWdZgBOPEgUMlc7bTu1x8jk= sha256:t0kCKSNSEAxvhgcfkHjNmA9pH1TR+wUvrVt+aYWRf5I= Content-Disposition: inline List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id D4A9D114569; Fri, 13 Nov 2026 17:35:09 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -1.95 X-Spam-Status: No, score=-1.95 tagged_above=-9999 required=6.31 tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key) header.d=lunn.ch X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LaJKqmttge1r; Fri, 13 Nov 2026 17:35:06 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-362668-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lunn.ch X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id E608F114564; Fri, 13 Nov 2026 17:34:57 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id BF1232268AE; Fri, 13 Nov 2026 13:24:15 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794576038; b=whcmstX+dCQke3uZ8e2/OjFAy08TlKnQNKfsYDCVdOz65pqvCfOITaUluBr2cypI+lXR QYh6CdAd26mNgfXAvL6CWho5eWaCcabd0rUs9TC3XX7ZX41g7jf9ieeKWrcLjS1uy+Wiv Fmxyv5OCZecBR0w777yI7Cs6NdyILHgCGGJIe2kR2mMEkf9MIZbsmDngs96DCK4f/ovIx JoFljoeR9FHEOYlXPv7vmHX01mmdXxkeMYwO+d+zHBj16XnFb++WlegNdjNjFF8mApy1C sUyaRd2bJmC4JYjNwzHCv+cW1aKExo0yyrVAdIV5frHS0Kv+2r/OnM1wPUzMFbn+bqA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794576038; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date: From:To:Cc:Subject:Message-ID:References:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=j0OFUyWGFsnHOx/jru7yE6httZZaLm6I3BJksdA09jw=; b=c658nl1K0RFmjUDMzrFp88Dlu6BwUU3If7hIW6NYxwPvYT7EvLPRjQWIp3ywyfbdWavU ailFpogWbUAc+2BJiPEqntq0GG4eMsFO86RSjD3xvaSe/6jFgFpxERcTAkEABMAlCee2m LWdkjKXEtlWfjpLWCX0ZoK4tr63FhSchqIxkeKKmfmvt0b9K5XmomYbheLlx+6x9iaFTH 7DuOU7qyAOr6Jzxrv3tD86Z3WpjnZe21hM52FMJLT1ZseVzDNX/CznufCPWgLFOnPbRiW fGbq2yGV71kSi5dqot099GdSjZOMYJiY7/i8MGnO+B+j6am7wSRL84D4C7x/NmpEZFg== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=KX4t3g0e; dmarc=pass header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4CC4F60A260C; Fri, 13 Nov 2026 13:20:38 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=KX4t3g0e X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794576037; b=fhKLOpyu2y2TDA3LhidQ+YvYIxYrtET6jToENoQVfUv2lxc9i5uH6yfUsv6ETAJEXmym 2xxFfaNvCzhIshaMtwkXUlBUQi7wQq/1xExpHcEhNPepW7sPn0+RNr4hwBp0+ZdlSNXym en3HtSKD71khjT/rm/Vv5aVMzaORU4aS7O09pQf/+gwcm+sou6XYptk/hsGAqGLTxaMYb JEeN2EffQfqKOLcs28xmT/fhNp7IcA9DaX2X410cSiTyJR8XKfqgKcmCNuLwgh0mrZmwS tSaBuJlMTdrwhkN8Xii8NSY/tQ48OWuCH6NrSBXb4Mlq4sYiulfPYKoQo1o8n4l9Q4g== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794576037; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=j0OFUyWGFsnHOx/jru7yE6httZZaLm6I3BJksdA09jw=; b=sSAuAuctM7Z2SzyIlC2skSupohZK8rtUFyZhfN3t84Y3P/bARta6DA30gCfgbNCyN0ie qoO5LydJx96e99FEJXPGTPJfeooN4gHYmCilmRrTkzn4g8qAEGyRDt0wm6YInsmx9+xif rd8O3rkmX8ysfc4zFHq4wA/m0J4f/7YfynzRHCiIEJaUptPs5dAg6HA8Orde5yumIXsly vUbVXB7ruxXdV1bGmA4eDJ2AUwrnS0fgQPJ47DHyRLuPmWaktd8ZjQ+Z9oF7cJzQiNfDw JrelyBhE0LsIKVO4on0dLyFnOXkbzLD4vwYHp5OcHlA87DzfeopVreQyXXbdiMzzckg== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=KX4t3g0e; arc=none smtp.remote-ip=156.67.10.101 X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D18F9606A8A3; Fri, 13 Nov 2026 13:20:36 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D18F9606A8A3 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=j0OFUyWGFsnHOx/jru7yE6httZZaLm6I3BJksdA09jw=; b=KX4t3g0eJVWmTu/lZOhr4WiZLw eBCvGBf9DJXjnXkHFtAmz0vu18yN+3KV/Se0HIulgfV06weLz1jv7ZUHlf2oDwl9J5A49sy5d9kYk wg7lMUpxFrBxFhcq2GNdITdVQdaX47/esrDXL42b/tHRDOJoxFpOj4ja46nxokezBufI=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xRrCW-00GHU2-1L; Fri, 13 Nov 2026 14:20:20 +0100 X-Cc: Nagadheeraj Rottela <nagadheeraj.rottela@amd.com>, Andrew Lunn <andrew+netdev@lunn.ch>, "David S. Miller" <davem@davemloft.net>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>, Conor Dooley <conor+dt@kernel.org>, Richard Cochran <richardcochran@gmail.com>, Michal Simek <michal.simek@amd.com>, Sebastian Andrzej Siewior <bigeasy@linutronix.de>, Clark Williams <clrkwllms@kernel.org>, Steven Rostedt <rostedt@goodmis.org>, Eric Dumazet <edumazet@kernel.org>, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rt-devel@lists.linux.dev, git@amd.com, neelisrinivas18@gmail.com X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <20261113-patches_v2_external-v4-1-56bb26f042a4@amd.com>