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=1795974676; b=mKhbuUJgfW6F5mGx6GhyX3rgy3uqV2g/4SYTYzuK0qcVRBu5VH7Y8CwCQ6Pd6N8MvTC2 i/mD/vnvmiAQpq9lbTP3DyeJbRDFLLgJ/10FLikWbS3LqkQj3/4cYFcmtzR3ABSUO5DqC pwdnHmpqe82yc1wGCgaoD6nIeyuj1BFIQc00m78tP+ngrsRjfQ0vdOVYPbocwYQmrbDSi A+9RNtSnwOg9tVmB6/+mWNaJAFOL0K+RzwylC+BzXt7Sg7UxSg468ashMQoOa2Gl1zmp1 ioY5lRBDCVt5gbBBHLi9y/qkTafFYiTeEDutQtFNI0Cp9qMADLJmpS3wTWiCcLPhXrA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795974676; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=/Bhd/ruuuzOXYSttGe4fn9IbNETkyoYJ2A5TXGPWK8M=; b=wGw32zlmvqYc0BLUuIRAKmu0Y7TwIwDiGDJGfXfwgNulxLLAlMD0JmMQPRH4itCuMXVu URQ8patUqX6Gvrjq0UXx4kc+4dMwWgMBRQAaoDdRuVOYaLdXUXetCEH9zyqE0PTrjNfGJ 8TMkpgAdPF6Gx3biy/cNAFXXcDPhLxGc6gYEJJXwQwX5bXUE94LPGRvwo7rO8v2DwfBw2 Fiu38u+W7cpRAnwdpU54UK74Nczks6dePD3yJO/vxSFTggosq85raSX9sK/cyRURO3aDp yX65w0dxNeo0x0/ZrH/3b77pVF7yt2wOEcPZ1bAcy4NmxAtASGIfT1+jvsrYInGFcIg== 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=old60naP; 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 C2E51606A323 for ; Sun, 29 Nov 2026 17:51:16 +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=old60naP Received: by smtp.kernel.org (Postfix) with ESMTPSA id E56F51F00896; Sun, 29 Nov 2026 17:51:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795974676; bh=/Bhd/ruuuzOXYSttGe4fn9IbNETkyoYJ2A5TXGPWK8M=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=old60naPnZsGsYYIuWjMgQTGMkxx5PxDLQh3ftU8+l2ihqgSjBu0f3CImu8rYnYFD Wmso3ao1TP0NHMfwYcr1XRBvbJ/S/abIG0fykhU17o1r0EDjheZUZx1vOp2WmJE8oX AlXi2c/gpcMjJufmN105FBxZ7UkzYVqxqlYPTa3ou9c7JnGJ3wNd6sBHc7u0g6XhYt cnFWFpq6o0fy7BLQjReBLrhlanUzeTFgk94ZJh72Iz8l/K4aXWPeOGDr93odWRsOsB e9E2wyhvW/PjLHyttOLfXmPQ8k+Wq4jTbOmyyw4zFzke5mUq9J44qunlSiA4IM19Yl XlPgJvpB1J9RA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2 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: <20261129173739.282027-1-marek.vasut+renesas@mailbox.org> References: <20261129173739.282027-1-marek.vasut+renesas@mailbox.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sun, 29 Nov 2026 17:51:14 +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 5 potential issues to consider: - [Medium] dt-bindings: phy: renesas,phy-type uint32-array mismatches 4x2 tuple example - [Medium] dt-bindings: phy: clocks and power-domains mismatch upstream r8a78000 MDLC/CPG - [Low] dt-bindings: phy: missing description of specifier cells on #phy-cells - [Low] dt-bindings: phy: unconstrained and undocumented ref-clock vendor arrays - [Low] dt-bindings: phy: subject mentions driver and example property order/indent -- commit e528bb3b019038b1410864451cd8d7e2fe68cd8c 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 R-Car Generation 5 Multi-Protocol 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..f0271eef3e2e8 > --- /dev/null > +++ b/Documentation/devicetree/bindings/phy/renesas,rcar-gen5-mpphy.yaml > @@ -0,0 +1,128 @@ [ ... ] > + 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] Do clocks and power-domains match the upstream R8A78000 CPG and MDLC bindings? In Documentation/devicetree/bindings/power/renesas,r8a78000-mdlc.yaml and arch/arm64/boot/dts/renesas/r8a78000.dtsi, module standby (STOP) gating is controlled by the Module Controller (renesas,r8a78000-mdlc) via 2-cell power-domains specifiers rather than CPG clocks. Modeling the five module STOP gates as clocks and restricting power-domains to four items (following the downstream SCMI providers used in the example below) makes this schema incompatible with the upstream R8A78000 DT architecture, where power-domains needs the five MDLC entries (including the common mpphy02 domain) and clocks should describe the functional or reference clocks. [ ... ] > + '#phy-cells': > + const: 2 [Severity: Low] Could '#phy-cells' include a description explaining what each of the two specifier cells represents (such as the output channel index and lane or mode argument) so consumers know how to populate phys properties? > + > + renesas,phy-type: > + description: PHY multiplexing configuration for each output. > + $ref: /schemas/types.yaml#/definitions/uint32-array > + minItems: 8 > + maxItems: 8 [Severity: Medium] Does renesas,phy-type fail dt_binding_check against the example below? The schema types renesas,phy-type as a flat 8-element uint32-array, whereas the example encodes four 2-cell tuples (, , , ), which requires uint32-matrix with fo= ur outer items of two inner items each. The schema also leaves the meaning and valid values of the two cells in each tuple (the PHY_TYPE_* constant and controller instance index) undocumented and unconstrained, and hardcodes protocol mode selection in a vendor property on the PHY provider instead of passing it from consumers via '#phy-cells' phandle arguments or per-output child nodes. > + > + renesas,external-ref-clock: > + description: PHY external reference clock select for each output. > + $ref: /schemas/types.yaml#/definitions/uint32-array > + minItems: 4 > + maxItems: 4 > + > + renesas,output-repeat-ref-clock: > + description: PHY repeat reference clock select for each output. > + $ref: /schemas/types.yaml#/definitions/uint32-array > + minItems: 4 > + maxItems: 4 [Severity: Low] What values are valid for each entry in renesas,external-ref-clock and renesas,output-repeat-ref-clock? Neither property documents what its array elements represent or constrains them in the schema (for example with enum: [0, 1]), nor are standard DT clock properties used to describe the external reference clock inputs and outputs. [ ... ] > +examples: > + - | > + #include > + > + phy@c9a00000 { > + compatible =3D "renesas,r8a78000-mpphy", "renesas,rcar-gen5-mpphy"; > + reg =3D <0xc9a00000 0x100000>; > + #phy-cells =3D <2>; > + > + clocks =3D <&scmi_clk 340>, <&scmi_clk 341>, <&scmi_clk 342>, > + <&scmi_clk 343>, <&scmi_clk 344>; > + clock-names =3D "mpphy01", "mpphy11", "mpphy21", "mpphy31", "mpphy= 02"; > + power-domains =3D <&scmi_devpd 17>, <&scmi_devpd 18>, > + <&scmi_devpd 19>, <&scmi_devpd 20>; > + power-domain-names =3D "mpp0", "mpp1", "mpp2", "mpp3"; > + resets =3D <&scmi_reset 340>, <&scmi_reset 341>, <&scmi_reset 342>, > + <&scmi_reset 343>, <&scmi_reset 344>; > + reset-names =3D "mpphy01", "mpphy11", "mpphy21", "mpphy31", "mpphy= 02"; > + > + renesas,phy-type =3D , , > + , ; > + renesas,external-ref-clock =3D <1 1 1 1>; > + renesas,output-repeat-ref-clock =3D <0 0 0 0>; > + }; [Severity: Low] This isn't a bug, but in the example node '#phy-cells' is placed before clocks, power-domains and resets instead of after reset-names as in properties: and required:, and the node body uses 2-space indentation instead of the standard 4-space indentation. Also, the commit subject mentions "PHY driver", whereas DT bindings describe hardware rather than drivers. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261129173739.2820= 27-1-marek.vasut+renesas@mailbox.org?part=3D1