From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 862BC405850; Mon, 18 May 2026 12:26:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.153.233 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779107207; cv=none; b=Xm+XgHxx4CuVMajuretzB5P1bVURMD5DqJ7sczK54zAX985HsJ8DR67TAwxll8NKugKbJQ+/+35bLISpieVP3lXi2sci4ISt5P64EBUAbxA1Psogn5MwQcbnMErSJIwJitnjmydanvIsRtWkOS8PTHiy2DBG896V/VotXwj8Um8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779107207; c=relaxed/simple; bh=iRXt0ejSxX2GAAgdGZDlvF+xigN/N0dxyFwoAePHlNA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=Q8t3ikq3Q4kYMz8hi00CYxKQ43DT13tkOgKHcMnOnXcngA2BoX3tfvL1zBCe6PwwYVn7oWOipJmPdt0iLImNXqllnn00RsFH+MHNdynr4ZNr7D5Wgso9nVs/gOxM7Rk246r4NUifPKLkMDOJmw+qJVV9mQsQTGYGxsepeFO0QNs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=XfNmc+3w; arc=none smtp.client-ip=68.232.153.233 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="XfNmc+3w" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1779107206; x=1810643206; h=from:date:subject:mime-version:content-transfer-encoding: message-id:references:in-reply-to:to:cc; bh=iRXt0ejSxX2GAAgdGZDlvF+xigN/N0dxyFwoAePHlNA=; b=XfNmc+3wah73hXz1MD70yL2NZ4MpEAkjfDVqlaR2U6S1wDwmcXfKzrgU 5B1KYjEQgrJ4f+W9+cNZx1QkghcTBc0XsDU/7BtcHIsTDVBH0HIBDPDRR m9YjgmN3oouhFbQRAnih9pv7Q/b3AUfWgBMj8GN19B3zUb3dBJ9K3GC+w e5Iak1fQ95XX6Mq2ETAb2ZtkB+ds/fhROCMvzBtH8dDhw5iYsbkvzBMIz qVNq0mL9LyXOmzHp6QUCqTLqNPYgAdf5uW9J/q3o5kYr1a9DodUgHd00N ZDOeKipr7I+0y1VlBAuGpsS9UOTEAl7JivNcbFyTRYrnBmUT99iMLpHtG Q==; X-CSE-ConnectionGUID: 7PAcBYqCTuWzvMkGX3MgJg== X-CSE-MsgGUID: 2g3j2A5BSsCECk6uGVq9gg== X-IronPort-AV: E=Sophos;i="6.23,241,1770620400"; d="scan'208";a="289027045" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa5.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 18 May 2026 05:26:45 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.58; Mon, 18 May 2026 05:26:44 -0700 Received: from [127.0.0.1] (10.10.85.11) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2507.58 via Frontend Transport; Mon, 18 May 2026 05:26:40 -0700 From: =?utf-8?q?Jens_Emil_Schulz_=C3=98stergaard?= Date: Mon, 18 May 2026 14:24:57 +0200 Subject: [PATCH net-next v5 2/9] dt-bindings: net: lan9645x: add LAN9645X switch bindings Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-ID: <20260518-dsa_lan9645x_switch_driver_base-v5-2-968fbf34ffa3@microchip.com> References: <20260518-dsa_lan9645x_switch_driver_base-v5-0-968fbf34ffa3@microchip.com> In-Reply-To: <20260518-dsa_lan9645x_switch_driver_base-v5-0-968fbf34ffa3@microchip.com> To: , Andrew Lunn , "Vladimir Oltean" , "David S. Miller" , "Eric Dumazet" , Jakub Kicinski , Paolo Abeni , Simon Horman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Woojung Huh , Russell King , Steen Hegelund , Daniel Machon CC: , , , =?utf-8?q?Jens_Emil_Schulz_=C3=98stergaard?= X-Mailer: b4 0.15-dev Add bindings for LAN9645X switch. We use a fallback compatible for the smallest SKU microchip,lan96455s-switch. Reviewed-by: Steen Hegelund Signed-off-by: Jens Emil Schulz Østergaard Reviewed-by: Rob Herring (Arm) --- Changes in v5: - No changes. Changes in v4: - No changes. Changes in v3: - remove additionalProperties: true - remove unnecessary | from description - change top level $ref to dsa.yaml#/$defs/ethernet-ports - use ethernet-ports and ethernet-port - move ethernet-ports under properties instead of patternProperties - move unevaluatedProperties: false after $ref - update example to use ethernet-ports and ethernet-port Changes in v2: - rename file to microchip,lan96455s-switch.yaml - remove led vendor property - add {rx,tx}-internal-delay-ps for rgmii delay - remove labels from example - remove container node from example --- .../net/dsa/microchip,lan96455s-switch.yaml | 111 +++++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 112 insertions(+) diff --git a/Documentation/devicetree/bindings/net/dsa/microchip,lan96455s-switch.yaml b/Documentation/devicetree/bindings/net/dsa/microchip,lan96455s-switch.yaml new file mode 100644 index 000000000000..043fb48922b4 --- /dev/null +++ b/Documentation/devicetree/bindings/net/dsa/microchip,lan96455s-switch.yaml @@ -0,0 +1,111 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/dsa/microchip,lan96455s-switch.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Microchip LAN9645x Ethernet switch + +maintainers: + - Jens Emil Schulz Østergaard + +description: + The LAN9645x switch is a multi-port Gigabit AVB/TSN Ethernet switch with + five integrated 10/100/1000Base-T PHYs. In addition to the integrated PHYs, + it supports up to 2 RGMII/RMII, up to 2 BASE-X/SERDES/2.5GBASE-X and one + Quad-SGMII interfaces. + +properties: + compatible: + oneOf: + - enum: + - microchip,lan96455s-switch + - items: + - enum: + - microchip,lan96455f-switch + - microchip,lan96457f-switch + - microchip,lan96459f-switch + - microchip,lan96457s-switch + - microchip,lan96459s-switch + - const: microchip,lan96455s-switch + + reg: + maxItems: 1 + + ethernet-ports: + type: object + patternProperties: + "^ethernet-port@[0-8]$": + type: object + description: Ethernet switch ports + + $ref: dsa-port.yaml# + unevaluatedProperties: false + + properties: + rx-internal-delay-ps: + const: 2000 + + tx-internal-delay-ps: + const: 2000 + +$ref: dsa.yaml#/$defs/ethernet-ports + +required: + - compatible + - reg + - ethernet-ports + +unevaluatedProperties: false + +examples: + - | + ethernet-switch@4000 { + compatible = "microchip,lan96459f-switch", "microchip,lan96455s-switch"; + reg = <0x4000 0x244>; + + ethernet-ports { + #address-cells = <1>; + #size-cells = <0>; + + ethernet-port@0 { + reg = <0>; + phy-mode = "gmii"; + phy-handle = <&cuphy0>; + }; + + ethernet-port@1 { + reg = <1>; + phy-mode = "gmii"; + phy-handle = <&cuphy1>; + }; + + ethernet-port@2 { + reg = <2>; + phy-mode = "gmii"; + phy-handle = <&cuphy2>; + }; + + ethernet-port@3 { + reg = <3>; + phy-mode = "gmii"; + phy-handle = <&cuphy3>; + }; + + ethernet-port@7 { + reg = <7>; + phy-mode = "rgmii"; + ethernet = <&cpu_host_port>; + rx-internal-delay-ps = <2000>; + tx-internal-delay-ps = <2000>; + + fixed-link { + speed = <1000>; + full-duplex; + pause; + }; + }; + }; + }; +... + diff --git a/MAINTAINERS b/MAINTAINERS index c0d8ab962f1b..f8406f447723 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -17423,6 +17423,7 @@ M: Jens Emil Schulz Østergaard M: UNGLinuxDriver@microchip.com L: netdev@vger.kernel.org S: Maintained +F: Documentation/devicetree/bindings/net/dsa/microchip,lan96455s-switch.yaml F: include/linux/dsa/lan9645x.h F: net/dsa/tag_lan9645x.c -- 2.52.0