From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=115.124.28.195 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796200837; b=MA1y5m4JUO4X4DCYdUG8Hdxm4L6Gn4ywOlhVnvV+SJ4PpJW28cl8eLUl0HWoyjv55Uhn Q7M6X5tALGPoJ/M8MlHeW44RLoE0kc9g//Nws1h/5YI7+XjRNbTSAdX83Suy00OCmmEB3 S9f608QCXece8GoYYFfr1pGSJFceTLqTz1oLaIc3lNZOmsxe5wsnrn6l7/5ztL3rbFOus /mtozDoEnZdFlHMo+Yc9nGAkIDPhFl7YcEbh1VT9QK01lT+LpZxqzI8hFK3H5RF0R4ZiC VjY/uPhQ5NMHAZ+n4QvFWku5h0izDPcdHHs8rSJOpo96Qxb1ffZkMGp/fWFlhPrcLVw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796200837; h=DMARC-Filter:X-Alimail-AntiSpam:Received:From:To:Cc:Subject:Date: Message-Id:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; bh=AVyam1C85iUjzYqMe+PNdzh0ODGWet3KFV1ekDU9u0Y=; b=sLdJCnYuOeRtXd5wxoXu1GcmwdG6cohibM53nIvtMLkBUjb97l+JW7PFOB3768w3mKf6 5WVHJl2GlYcTU0R4Y0n8vbFurzKtGz/yvd5F5GTAXPaTCgtTJByMb3BL74CuZ8h6mh0DH bJMRQ1cfnOOBSghG/0n0rnWq9U+49S0ukxHeDvtI3OCGsunmsuYvj5T6l33Dd4Wj1pldr WILtbUz8Hib+Sq9SiCkJ1KB5dsUZSATwPdSgTWI3JiQa6h15rfk5HgLVYc6T/e4fhn+uP IOEwfxP7Y3Dc2Fy/xQEQRam43iFEDwt9vXu7Q9mAK3G9Cms7oiYjbQj9362N7t+7XuA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=motor-comm.com; spf=pass smtp.mailfrom=motor-comm.com; arc=none smtp.remote-ip=115.124.28.195 Received: from out28-195.mail.aliyun.com (out28-195.mail.aliyun.com [115.124.28.195]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2015A606A33F; Wed, 2 Dec 2026 08:40:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2015A606A33F Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=motor-comm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=motor-comm.com X-Alimail-AntiSpam:AC=CONTINUE;BC=0.07451198|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_regular_dialog|0.0655199-0.00124981-0.93323;FP=14330895726043206833|0|0|0|0|-1|-1|-1;HT=maildocker-contentspam033037028158;MF=kyle.switch@motor-comm.com;NM=1;PH=DS;RN=20;RT=20;SR=0;TI=SMTPD_---.kEtRdjX_1796200831; Received: from motor-comm.com(mailfrom:kyle.switch@motor-comm.com fp:SMTPD_---.kEtRdjX_1796200831 cluster:ay29) by smtp.aliyun-inc.com; Wed, 02 Dec 2026 16:40:32 +0800 From: Kyle Switch To: andrew@lunn.ch, olteanv@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, mmyangfl@gmail.com, horms@kernel.org, linux@armlinux.org.uk, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: devicetree@vger.kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, david.laight.linux@gmail.com, ming.xu@motor-comm.com, xiaolin.xu@motor-comm.com, jianmin.wang@motor-comm.com, wei.zhang@gl-inet.com, sijia.huang@gl-inet.com Subject: [PATCH net-next v18 4/6] dt-bindings: net: dsa: add Motorcomm YT9224 Date: Wed, 2 Dec 2026 16:40:20 +0800 Message-Id: <20261202084022.3716891-5-kyle.switch@motor-comm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20261202084022.3716891-1-kyle.switch@motor-comm.com> References: <20261202084022.3716891-1-kyle.switch@motor-comm.com> X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add a device tree binding for the Motorcomm YT9224, a member of the YT922x Ethernet switch family. It has 4 internal GbE PHYs on ports 4-7 and 2 SerDes ports on ports 0 and 8. Any port can be used as the CPU port. The YT9224 port layout differs from the YT921x family described by motorcomm,yt921x.yaml (internal PHYs on ports 0-7, SerDes on 8-9), so give it its own binding instead of extending the existing one. This also avoids the dt_binding_check failure caused by yt921x.yaml declaring compatible as a const for motorcomm,yt9215. Also add the new binding file to the Motorcomm YT921x switch driver MAINTAINERS entry so that it is covered by get_maintainer.pl. Signed-off-by: Kyle Switch --- .../bindings/net/dsa/motorcomm,yt9224.yaml | 142 ++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 143 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/dsa/motorcomm,yt9224.yaml diff --git a/Documentation/devicetree/bindings/net/dsa/motorcomm,yt9224.yaml b/Documentation/devicetree/bindings/net/dsa/motorcomm,yt9224.yaml new file mode 100644 index 000000000000..01b61b47d372 --- /dev/null +++ b/Documentation/devicetree/bindings/net/dsa/motorcomm,yt9224.yaml @@ -0,0 +1,142 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/dsa/motorcomm,yt9224.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Motorcomm YT9224 Ethernet switch + +maintainers: + - Kyle Switch + +description: | + The Motorcomm YT9224 is a member of the YT922x Ethernet switch family, + with 4 internal GbE PHYs (Port 4-7) and 2 SerDes ports (Port 0 and 8). + + Any port can be used as the CPU port. + +properties: + compatible: + const: motorcomm,yt9224 + + reg: + enum: [0x0, 0x1d] + + mdio: + $ref: /schemas/net/mdio.yaml# + unevaluatedProperties: false + description: + Internal MDIO bus for the internal GbE PHYs. PHY 4-7 are used for + Port 4-7 respectively. + + mdio-external: + $ref: /schemas/net/mdio.yaml# + unevaluatedProperties: false + description: + External MDIO bus to access external components. External PHYs for + the SerDes ports (Port 0 and 8) are expected to be connected to the + external MDIO bus, but that is not a hard limitation from the chip. + +required: + - compatible + - reg + +allOf: + - $ref: dsa.yaml#/$defs/ethernet-ports + +unevaluatedProperties: false + +examples: + - | + #include + #include + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + switch@1d { + compatible = "motorcomm,yt9224"; + /* default 0x1d, alternate 0x0 */ + reg = <0x1d>; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + sw_phy4: phy@4 { + reg = <0x4>; + }; + + sw_phy5: phy@5 { + reg = <0x5>; + }; + + sw_phy6: phy@6 { + reg = <0x6>; + }; + + sw_phy7: phy@7 { + reg = <0x7>; + }; + }; + + ethernet-ports { + #address-cells = <1>; + #size-cells = <0>; + + /* SerDes port 0 */ + ethernet-port@0 { + reg = <0>; + label = "wan"; + phy-mode = "2500base-x"; + + fixed-link { + speed = <2500>; + full-duplex; + }; + }; + + /* Internal PHY ports 4-7 */ + ethernet-port@4 { + reg = <4>; + label = "lan1"; + phy-mode = "internal"; + phy-handle = <&sw_phy4>; + }; + + ethernet-port@5 { + reg = <5>; + label = "lan2"; + phy-mode = "internal"; + phy-handle = <&sw_phy5>; + }; + + ethernet-port@6 { + reg = <6>; + label = "lan3"; + phy-mode = "internal"; + phy-handle = <&sw_phy6>; + }; + + ethernet-port@7 { + reg = <7>; + label = "lan4"; + phy-mode = "internal"; + phy-handle = <&sw_phy7>; + }; + + /* SerDes port 8, CPU port */ + ethernet-port@8 { + reg = <8>; + phy-mode = "usxgmii"; + ethernet = <ð0>; + + fixed-link { + speed = <5000>; + full-duplex; + }; + }; + }; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 9336fa93ce38..864777388be6 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -18937,6 +18937,7 @@ M: David Yang L: netdev@vger.kernel.org S: Maintained F: Documentation/devicetree/bindings/net/dsa/motorcomm,yt921x.yaml +F: Documentation/devicetree/bindings/net/dsa/motorcomm,yt9224.yaml F: Documentation/networking/devlink/yt921x.rst F: drivers/net/dsa/motorcomm/ F: net/dsa/tag_yt921x.c -- 2.25.1