Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796295205; b=lGOKtwvoclmBKt2vr07TLUXeXaTU6J0qvn4plUbP/3glt1xlBbSW+VdqqNE/1zSmTSbn lzHGbNjENzuYE4NUVd7lb9+fnONFv5u2EQhafZSBCHplBZwksbWJntbFCnHdIpL8M5uOA eSpUwVf/OLXaFdqv+yEomr0LDpYTdDjrpOY7qZbRZ0ulhutitKO/Rsco5bquVMrxT8nNv 1MwFEqkq4+xC4iwaXF1i9LYGSJ2yWyFCsmWwaHEOpW8X5gsLhFj09OsbEtx+7LvL26Nbp PbPY+3VeELKLRLownFW2rt9JKYyVJL5aMeUCvauCIU02eRz8WY5vn2LIeMMM2sW1bbw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796295205; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=nOBxj8D/Q1UUrEDTzPUWNgD2jd2DbXcE23lYXf13mTA=; b=rnM6fL4aYQ5ZEiOjvgLZaDZBhrZlYOZ7f8Wj0OBIxA83WXAfatWxHoY70EhmMzFe6Gz+ gsTSnyTdDvcgDlMAN9/m9JgpPFsuXonej9/aVIm2CAF/eqbP/BWpKCfZhqHkatlHuP2n/ B5oKCeR3MVHkI9IEQa2juArtiolHT0f0uwt0g7kK6B3alVQG/84myCzfWvhaYrQFM5QMy W7/9piHMT49TEZja3hr8Upnz2YrytL0+MFdRh4V9ZD8KhxKJBRu6WA2athfOfuH03qisT 2cV8/upYbEilcKm5cAPeEEhGpkTIvJB/26wNLbAD2mU9LDtJOcJNlzWGCXbsexcEKlQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Si4iIoTh; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B4B14606A337 for ; Thu, 3 Dec 2026 10:53:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Si4iIoTh Received: by smtp.kernel.org (Postfix) with ESMTPSA id 29F5E1F00923; Thu, 3 Dec 2026 10:53:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796295205; bh=nOBxj8D/Q1UUrEDTzPUWNgD2jd2DbXcE23lYXf13mTA=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=Si4iIoThchT6t9bFvcas9lgj6+lnSoLJLucVDT1X7gbuUbvERav30q3yS3tRZPzLT jfNZ0tWjbzUUBMnwv6Jae6IrX+s45pVUrLuH1P3Fl+UOXvAXVBvSPfyjmWZRyO33fT MwOnLAhCAitJ1QKMcGLT/1vSXAvq28APcjfnsMkB3S2e2tHlNHre+oA2kDeUXZHnZu 72wt5MQAAYrL2yiC/Xjfr3D2bQAun0dp+weQdh9StXN23/gjYZJpTj2OqMi25lQwyx WuQDTorWuVZm9VvWPUwDqeKMwjCxFnDW2E9tTC44C88xNUub/n2SYen9xeeUdes8Wa IVCu4Dhf9iwCA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH net-next v29 RESEND 1/3] dt-bindings: net: Document Motorcomm YT8824 PHY package Reply-To: sashiko-reviews@lists.linux.dev To: "Kyle Switch" , devicetree@vger.kernel.org Cc: robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261202105259.3767612-2-kyle.switch@motor-comm.com> References: <20261202105259.3767612-1-kyle.switch@motor-comm.com> <20261202105259.3767612-2-kyle.switch@motor-comm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 10:53:24 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 2 potential issues to consider: - [Medium] dt-bindings: net: motorcomm,yt8824 hardcodes reg to 4 in 10g-qxgmii mode - [Low] dt-bindings: net: non-canonical property ordering in motorcomm,yt8824.yaml -- commit a6fe4858104e023d2f9d8f0b8962a9e062f5996e Author: Kyle Switch dt-bindings: net: Document Motorcomm YT8824 PHY package This commit adds the Device Tree binding schema for the Motorcomm YT8824 quad Ethernet PHY package and updates MAINTAINERS. > diff --git a/Documentation/devicetree/bindings/net/motorcomm,yt8824.yaml = b/Documentation/devicetree/bindings/net/motorcomm,yt8824.yaml > new file mode 100644 > index 0000000000000..1065e5382670f > --- /dev/null > +++ b/Documentation/devicetree/bindings/net/motorcomm,yt8824.yaml > @@ -0,0 +1,100 @@ [ ... ] > +properties: > + compatible: > + enum: > + - motorcomm,yt8824-package > + > + motorcomm,package-mode: > + description: | > + PHY package can be configured in 2 modes: > + - internal: YT8824 is embedded in the switch, using > + an internal interface to the MAC. The member PHYs are > + fixed at MDIO addresses 4..7 and the shared top > + extended register block is at address 9. > + - 10g-qxgmii: YT8824 is a standalone external PHY, > + connected via 10G QXGMII. The member PHYs start at > + the base MDIO address and the shared top extended > + register block is at base + 4. > + $ref: /schemas/types.yaml#/definitions/string > + enum: [ internal, 10g-qxgmii ] > + > + reg: > + description: > + The absolute MDIO address of the YT8824 shared top extended > + register block. > + For internal mode, this is fixed at 9; > + For external mode, it is the base MDIO address of the four > + member PHYs plus 4, where base is typically 0x0. > + Note that this is NOT the reg of the first member PHY. > + > +required: > + - compatible > + - motorcomm,package-mode > + - reg > + > +allOf: > + - if: > + properties: > + motorcomm,package-mode: > + const: internal > + then: > + properties: > + reg: > + const: 9 > + - if: > + properties: > + motorcomm,package-mode: > + const: 10g-qxgmii > + then: > + properties: > + reg: > + const: 4 [Severity: Medium] Does constraining reg to const: 4 when motorcomm,package-mode is 10g-qxgmii reject valid non-zero base MDIO addresses during dtbs_check? The descriptions of motorcomm,package-mode and reg state that in external 10g-qxgmii mode, reg is the base MDIO address plus 4 and that a base of 0x0 is only typical rather than fixed. > + > +unevaluatedProperties: false > + > +examples: > + - | > + mdio { > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + > + ethernet-phy-package@9 { > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + compatible =3D "motorcomm,yt8824-package"; > + reg =3D <9>; > + > + motorcomm,package-mode =3D "internal"; [Severity: Low] As reported by Conor Dooley on v21 [1], the property ordering here does not follow canonical DT schema conventions: reg should precede the vendor-specific motorcomm,package-mode property in both properties and required, and compatible and reg should come before #address-cells and #size-cells in the ethernet-phy-package@9 example node. [1] https://lore.kernel.org/r/20260924-vowed-roulette-abda42cec444@spud --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261202105259.3767= 612-1-kyle.switch@motor-comm.com?part=3D1