Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=115.124.28.147 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796367510; b=fQdc4tUkPg7kguY2nI7w7HuTA0tsBz0xhX+0BJlPvDdUVGR2UBmfLe3lgZLW3T1S/vXR nn7ZRHnYBmBMKpCJ3tk79PRAonW89d8VYktntLFJ2f/kkMJH+2NOew1W4b5QbqgW0pv2W k7gY28NX4jczhe574fNENHwHaXQ+qVoYq05zxg/5gIT+Oqqg2VIzmMJzE/3g6Zh30ca9p LfVGuyiDmMe9EtDnTuYFy9MdLUEpY0TC1jB39RJ0bzE02A7wVRP1LPPqrI1W/mU9lX2qW ElObYi8av13uq2HdM3gfDyuD4G4ByXkr86HIW9PCAJWtzv5DhjQM6I5PzOFxjWpbH3g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796367510; h=DMARC-Filter:X-Alimail-AntiSpam:Received:Message-ID:Date: MIME-Version:User-Agent:Subject:To:Cc:References:Content-Language: From:In-Reply-To:Content-Type:Content-Transfer-Encoding; bh=CXprd4M7mBHQZle1AR5C69YkV08bCUk4oO8oC8MY5AY=; b=HFNmiT0cQi8GBuxJVuAfRpl0qSRc3TvvEntBFfUEWXTgdKkkhRfKcCgeIYWMokNQzvvb V2IePPqlQUQwjjyQU7wuqJ6YZcplM87BSoRZgMaUfIJ2hdcz6aFPs3EiMZuhfd1Njlw4p kAS8EaKocvONg4jmttoSUrpu0aQWzPSdbp/+3JkCT0e0ZBaNyLOsa9ycWTJEd84QMvMRi tgpxHrL2VXnoMzYGugWyyQI9zWAfq9xnz7aRaAvlT19bleMRHmK481sYejYt+IgRn7s7V sXC+jgRgEnhWglsyYixbHYd7cL5CeXLo3lLHjw4Lxmp+6q8fDHzwjeQKi/i6SuxWBMQ== 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.147 Received: from out28-147.mail.aliyun.com (out28-147.mail.aliyun.com [115.124.28.147]) (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 B28FC606A322 for ; Fri, 4 Dec 2026 06:58:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B28FC606A322 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.07559776|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_system_inform|0.00374891-0.000600122-0.995651;FP=16492525596354348273|0|0|0|0|-1|-1|-1;HT=maildocker-contentspam033037026024;MF=kyle.switch@motor-comm.com;NM=1;PH=DS;RN=4;RT=4;SR=0;TI=SMTPD_---.kGU5jWK_1796367496; Received: from 10.10.26.192(mailfrom:kyle.switch@motor-comm.com fp:SMTPD_---.kGU5jWK_1796367496 cluster:ay29) by smtp.aliyun-inc.com; Fri, 04 Dec 2026 14:58:18 +0800 Message-ID: Date: Fri, 4 Dec 2026 14:58:15 +0800 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v29 RESEND 1/3] dt-bindings: net: Document Motorcomm YT8824 PHY package To: sashiko-reviews@lists.linux.dev, devicetree@vger.kernel.org Cc: robh@kernel.org, conor+dt@kernel.org References: <20261202105259.3767612-1-kyle.switch@motor-comm.com> <20261202105259.3767612-2-kyle.switch@motor-comm.com> Content-Language: en-US From: Kyle Switch In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 12/3/26 18:53, sashiko-bot@kernel.org wrote: > 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. thanks for review, will be fixed in next patch. >> + >> +unevaluatedProperties: false >> + >> +examples: >> + - | >> + mdio { >> + #address-cells = <1>; >> + #size-cells = <0>; >> + >> + ethernet-phy-package@9 { >> + #address-cells = <1>; >> + #size-cells = <0>; >> + compatible = "motorcomm,yt8824-package"; >> + reg = <9>; >> + >> + motorcomm,package-mode = "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 will be fixed in next patch.