From mboxrd@z Thu Jan 1 00:00:00 1970 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=1796085144; b=lzyNHQr7k8DaLKdo1WdNyTc1o1/HePfad3JRqtln0cFMW2iS7VaSevRfF0oy4sSFPIbb MZzeDkEvbdrJQzQiX4ZNvS9++G9Vsl6HJFHcsSihhqpWzcgLYlgN0/edojD8QIk1X2ebp W1CZHhhOC5d4PJY8Upq4eW2PfEY203phA61E6fiDf7Lq90TOQs19KdKHHWepTyPw2hmIW sIlMv5uTXOSMH0/NvIhQ0LfQE34ctICvHPxS9mIQmaLj72rtdHgrASIO/bq42KAZCSeno td/cv3+Rh5l+s4BIfAvfsmn2aH+ONYEhSOupfwuZBaZ4zSkJ1bmdfSQfo0vWqqxwm0Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796085144; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=WuNikEpXSpgSuRlBrrnKNgMJDJZOWH9S0joCm+kmdpg=; b=TJZ8JJks0VRcRyxk14N7vpqQaDAohlUdsEOJOq9D2RYOVxDM47OBSw/7SZ+HpTeUzV7Q 1H+3jGydJyDyYmPqJBKVQmuj87Nw18U8T5oVxwIn/jm2FKTCEQYL3T6fxk+yP8J7BAWzV kyla4z6lI9fst4vdT2elpkgkfYwhsXTXavMwjbQMSvred6WOXVL7y3tGReHMCygvLqLVf OI6AZkwMQlCdu/vDpSLT2WygZk4Ws2LbmVqukRYxfmFvGvfQgxhSVnOINowey0wxLQbIc xeuAbJwq6aLi+cfSs7Qi8yEm0kesPYPg3SjUbNLphRdYkK8qi1wQuMMHLe1n2u9idAQ== 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=G0UAvKMo; 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 9AC9D606A31A for ; Tue, 1 Dec 2026 00:32:24 +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=G0UAvKMo Received: by smtp.kernel.org (Postfix) with ESMTPSA id BB12D1F00893; Tue, 1 Dec 2026 00:32:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796085144; bh=WuNikEpXSpgSuRlBrrnKNgMJDJZOWH9S0joCm+kmdpg=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=G0UAvKMokd6LTDZXMlY440YTA7yMBDt2WV/jMgRdCNQ7aYSapIlQjRS5kGyP4bOa2 3mA9M4aDkaj0/76RWmwI61/LzkLiXEiEhyITVMckTsUTHr9QsFUYPFd32o4OI8yiA/ MAOcmLGR0lU7P3XntogRo+YZyZI74IrXEbBLnCjfNe7YepeJ3ac/t7rqOZ6Fck5wN1 J4V2tzhjoHD9Xudb3B3f1z8XPnxubuGP/MLSv2fzGfbyOeZRnCC1M9wdZiZJ5AXbKa ux3KhsDQtDboy8c58YTm8n4Z8CSWvaOCz2l+BYS6PwTzwDvAg7Km2DpUpFbZ9N7rDU s/WC3ZUoCloDw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v3 1/3] dt-bindings: phy: Document Renesas Multi-Protocol PHY driver for R-Car X5H Reply-To: sashiko-reviews@lists.linux.dev To: "Marek Vasut" , linux-phy@lists.infradead.org Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org, vkoul@kernel.org, neil.armstrong@linaro.org, olteanv@gmail.com, wsa+renesas@sang-engineering.com In-Reply-To: <20261201002008.413380-1-marek.vasut+renesas@mailbox.org> References: <20261201002008.413380-1-marek.vasut+renesas@mailbox.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Tue, 01 Dec 2026 00:32:23 +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: phy: rcar-gen5-mpphy clocks and power-domains mismatch MDLC - [Low] dt-bindings: phy: rcar-gen5-mpphy redundant ref-clock and rigid phy-type -- commit 88d7d44bbf37b3514c5bb6530abe54d77b9d4d8a Author: Marek Vasut dt-bindings: phy: Document Renesas Multi-Protocol PHY driver for R-Car X5H This commit adds the Device Tree binding schema for the Renesas Multi-Proto= col PHY (MP-PHY) present in the R-Car X5H (R8A78000) SoC. > diff --git a/Documentation/devicetree/bindings/phy/renesas,rcar-gen5-mpph= y.yaml b/Documentation/devicetree/bindings/phy/renesas,rcar-gen5-mpphy.yaml > new file mode 100644 > index 0000000000000..7aa8fe18e151c > --- /dev/null > +++ b/Documentation/devicetree/bindings/phy/renesas,rcar-gen5-mpphy.yaml > @@ -0,0 +1,151 @@ [ ... ] > + clocks: > + items: > + - description: PHY0 module STOP clock gating > + - description: PHY1 module STOP clock gating > + - description: PHY2 module STOP clock gating > + - description: PHY3 module STOP clock gating > + - description: MPPHY common part module STOP clock gating > + > + clock-names: > + items: > + - const: mpphy01 > + - const: mpphy11 > + - const: mpphy21 > + - const: mpphy31 > + - const: mpphy02 > + > + power-domains: > + items: > + - description: PD_MPP0 power domain > + - description: PD_MPP1 power domain > + - description: PD_MPP2 power domain > + - description: PD_MPP3 power domain > + > + power-domain-names: > + items: > + - const: mpp0 > + - const: mpp1 > + - const: mpp2 > + - const: mpp3 [Severity: Medium] How does this clocks and power-domains layout fit the R-Car X5H Module Controller (renesas,r8a78000-mdlc)? In upstream r8a78000.dtsi and renesas,r8a78000-mdlc.yaml, the Module Controller (such as mdlc_hscn) is not a clock provider and has no #clock-cells. Instead, it exposes #power-domain-cells =3D <2>, where the first cell selects the power domain (MPDG index or always-on R8A78000_MDLC_= PD_* domain) and the second cell selects the module standby (module STOP clock gating) index. Requiring five clocks for module STOP gating while limiting power-domains to four entries (omitting the fifth module standby domain for the mpphy02 common part) prevents an r8a78000.dtsi MP-PHY node from using mdlc_hscn without failing schema validation. The example below also references scmi_clk, scmi_devpd, and scmi_reset rather than the MDLC provider. [ ... ] > + renesas,phy-type: > + description: PHY multiplexing configuration for each PHY within the = MP-PHY. > + $ref: /schemas/types.yaml#/definitions/uint32-matrix > + minItems: 4 > + maxItems: 4 > + items: > + items: > + - description: PHY mode (PCIe, USB, Ethernet) > + enum: [2, 4, 7] > + - description: PHY mode index (PCIe 0 or 1, USB 0 or 1, Ethernet= 0..3) > + minimum: 0 > + maximum: 3 > + > + renesas,external-ref-clock: > + description: | > + PHY external reference clock select for each PHY within the MP-PHY. > + In case PHYn clock input is supplied from external pad, set positi= on > + n to 1. In case PHYn clock input is supplied from repeated PHY(n+1) > + clock inside the MP-PHY, set position n to 0. > + $ref: /schemas/types.yaml#/definitions/uint32-array > + minItems: 4 > + maxItems: 4 > + items: > + enum: [0, 1] > + > + renesas,output-repeat-ref-clock: > + description: | > + PHY repeat reference clock select for each PHY within the MP-PHY. > + In case PHYn clock input is tied to ground, and PHYn clock should > + be supplied from repeated PHY(n+1) clock inside the MP-PHY, then > + set position (n+1) to 1 make PHY(n+1) repeat clock toward PHYn > + inside the MP-PHY. > + $ref: /schemas/types.yaml#/definitions/uint32-array > + minItems: 4 > + maxItems: 4 > + items: > + enum: [0, 1] [Severity: Low] Are both renesas,external-ref-clock and renesas,output-repeat-ref-clock needed, and how should an unused PHY sub-block be represented in renesas,phy-type? Setting renesas,external-ref-clock at index n to 0 already states that PHYn takes its reference clock repeated from PHY(n+1), which implies renesas,output-repeat-ref-clock at index (n+1) must be 1. Requiring both arrays duplicates the same clock routing information and allows contradicto= ry DT configurations. In addition, requiring four entries in renesas,phy-type with the mode restricted to enum: [2, 4, 7] leaves no valid value (such as PHY_NONE) for boards that leave one or more of the four IO blocks unpopulated. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261201002008.4133= 80-1-marek.vasut+renesas@mailbox.org?part=3D1