From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=80.241.56.172 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796084426; b=C5XLq0esSQ+Ixrkf6Q9fwv86PVXze17f8izO6u5xF9e/0b7STGHIIdzwGgH6Y/OgrUTM PSp5AXo6gDGvBkQZRiYs/K6640zrAEu+jJ6gnSdBpbUXyK5/hTK5h1i+kvEHd/pW8cPzs aeUqZ27Mt4jmYBcsKC9VeR/g2J8r9GLiIjDVYt8HeV0v5O78cfDPP08PgGlo1cNhTvc5Y dwZWytETqzDnr9pgtsTq9LF6tm/KbAkUxA4x5VTD9Ck7nhYCUJHGIOd6zUb69jbHYxMEt xiEKhRXlrvblRmcwbzA3keYV/F5MqCqop6VeDXNi770HiojVcHLFujPOHED83N1RVhA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796084426; h=DMARC-Filter:Received:DKIM-Signature:From:To:Cc:Subject:Date: Message-ID:X-Mailer:MIME-Version:Content-Transfer-Encoding: X-MBO-RS-ID:X-MBO-RS-META; bh=0gPpT/EAZOiBDWIb+BqVonCX9cER9ebV8Yam2a1TuOI=; b=c0j735vYB1ur3851wQveopVWmnu8exdF2zqnbBdY1JVZoFoHDwgS1a9+IHYDiJ3sdqxD eCSxar8Yw1abGVtXtmnbejy2CTHubB3iqBU8g4kvW66rq4j8pFBBzon+RWbJQSytqDnXx 6S3QVbSqEFDI3Xl3Yf1uWHdV01Gq8m6bZuXb6VwfCGCY25jtPURDf/xFEWojmvt5R323E FUpb3mLqu5hT8jWMRU4KjlA3UW4Lm7KsFZnYiECUY1hWs6NWaZwfJtRFvS7zVD0tEd0C3 14cBvyIc8SJgK04ZDC+R+tvkWXZ6kBnoQUDdEBTTbdaw9yX2kJUBIB1c1jwA/uuoVcw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=mailbox.org; spf=pass smtp.mailfrom=mailbox.org; dkim=pass header.d=mailbox.org header.i=@mailbox.org header.a=rsa-sha256 header.s=mail20150812 header.b=BbX0Lj1x; arc=none smtp.remote-ip=80.241.56.172 Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [80.241.56.172]) (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 B4BA7606A682; Tue, 1 Dec 2026 00:20:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B4BA7606A682 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=mailbox.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mailbox.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.a=rsa-sha256 header.s=mail20150812 header.b=BbX0Lj1x Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519MLKEM768 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4jdhNv3mpZzMlF5; Tue, 01 Dec 2026 01:20:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1796084415; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=0gPpT/EAZOiBDWIb+BqVonCX9cER9ebV8Yam2a1TuOI=; b=BbX0Lj1xD5F/gXW3OOqzR5YqBNFhw8Ow+SEGarLI5nNISnfKLflM3TeNJNeQ7OLka6Sffy 2pHagklVWfgyOYjXXM3qrtsDzLOl1pAplaui01I1iYaxP7pw2fvoH1t1LvY25hw2EBqr9i JlcGLcfmlA17iAWidHel6R3/qizEbke73azp6mteWh/c2FzQp0mnLR59+T6P5oEITKfPSM o8gLuX4FX7YLaCsfFM88Q+JfJbdNaMIOIyBBCzFKayY0RL2ebcKnm1eaSSUFoZhQphvU4O odjGiAiVReP/BszRkfI7ja8jUc7cSdUHDK3TDFNvdKD/fPzQlonPBaS9ybgt7g== From: Marek Vasut To: linux-phy@lists.infradead.org Cc: Marek Vasut , Arnd Bergmann , Biju Das , Conor Dooley , Geert Uytterhoeven , Hai Pham , Krzysztof Kozlowski , Magnus Damm , Manivannan Sadhasivam , Neil Armstrong , Phong Hoang , Rob Herring , Tam Nguyen , Thanh Quan , Tommaso Merciai , Vinh Nguyen , Vinod Koul , Yoshihiro Shimoda , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org Subject: [PATCH v3 1/3] dt-bindings: phy: Document Renesas Multi-Protocol PHY driver for R-Car X5H Date: Tue, 1 Dec 2026 01:19:31 +0100 Message-ID: <20261201002008.413380-1-marek.vasut+renesas@mailbox.org> X-Mailer: git-send-email 2.53.0 X-Mailing-List: linux-kernel@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 X-MBO-RS-ID: 3037475ae2e17246072 X-MBO-RS-META: z3chtb6ijb8frm6igjdpqmgzzuy5h3hj Document Renesas Multi-Protocol PHY present in R-Car X5H (R8A78000) SoC. This is a multiplexing PHY block with inputs from five IPs, and outputs to four separate IO blocks. The five inputs are two PCIe4, two USB 3.2, and ethernet PCS, each connected into the PHY with up to 4 times 2 lanes. The inputs can be multiplexed to the four IO blocks as needed. Signed-off-by: Marek Vasut --- Cc: Arnd Bergmann Cc: Biju Das Cc: Conor Dooley Cc: Geert Uytterhoeven Cc: Hai Pham Cc: Krzysztof Kozlowski Cc: Magnus Damm Cc: Manivannan Sadhasivam Cc: Neil Armstrong Cc: Phong Hoang Cc: Rob Herring Cc: Tam Nguyen Cc: Thanh Quan Cc: Tommaso Merciai Cc: Vinh Nguyen Cc: Vinod Koul Cc: Yoshihiro Shimoda Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-phy@lists.infradead.org Cc: linux-renesas-soc@vger.kernel.org --- V2: - Clarify clocks, power-domains, resets, which part of the PHY they control - Drop no longer necessary renesas,num-lanes, the lane count for the PHY purposes could be inferred from the PHY mode - Increase #phy-cells to 2, to discern lanes in ethernet mode V3: - Reorder phy-cells below reg - Add description: to phy-cells - Switch renesas,phy-type to uint32-matrix, document and constraint its fields - Expand renesas,external-ref-clock description and add constraints - Expand renesas,output-repeat-ref-clock description and add constraints --- .../bindings/phy/renesas,rcar-gen5-mpphy.yaml | 151 ++++++++++++++++++ 1 file changed, 151 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/renesas,rcar-gen5-mpphy.yaml diff --git a/Documentation/devicetree/bindings/phy/renesas,rcar-gen5-mpphy.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 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/renesas,rcar-gen5-mpphy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas R-Car Generation 5 Multi-Protocol PHY + +maintainers: + - Marek Vasut + - Yoshihiro Shimoda + +properties: + compatible: + items: + - const: renesas,r8a78000-mpphy # R-Car X5H MPPHY + - const: renesas,rcar-gen5-mpphy # R-Car Gen5 MPPHY + + reg: + maxItems: 1 + + '#phy-cells': + const: 2 + description: + The first cell is the PHY ID within the MP-PHY, the second cell is the lane + within the PHY (applicable only to Ethernet). + + 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 + + resets: + items: + - description: PHY0 phy0_phy_reset, and if Ethernet mode also XPCS 0-1 reset + - description: PHY1 phy1_phy_reset, and if Ethernet mode also XPCS 2-3 reset + - description: PHY2 phy2_phy_reset, and if Ethernet mode also XPCS 4-5 reset + - description: PHY3 phy3_phy_reset, and if Ethernet mode also XPCS 6-7 reset + - description: MPPHY common part module reset + + reset-names: + items: + - const: mpphy01 + - const: mpphy11 + - const: mpphy21 + - const: mpphy31 + - const: mpphy02 + + 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 position + 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] + +required: + - compatible + - reg + - '#phy-cells' + - clocks + - clock-names + - power-domains + - power-domain-names + - resets + - reset-names + - renesas,phy-type + - renesas,external-ref-clock + - renesas,output-repeat-ref-clock + +additionalProperties: false + +examples: + - | + #include + + phy@c9a00000 { + compatible = "renesas,r8a78000-mpphy", "renesas,rcar-gen5-mpphy"; + reg = <0xc9a00000 0x100000>; + #phy-cells = <2>; + + clocks = <&scmi_clk 340>, <&scmi_clk 341>, <&scmi_clk 342>, + <&scmi_clk 343>, <&scmi_clk 344>; + clock-names = "mpphy01", "mpphy11", "mpphy21", "mpphy31", "mpphy02"; + power-domains = <&scmi_devpd 17>, <&scmi_devpd 18>, + <&scmi_devpd 19>, <&scmi_devpd 20>; + power-domain-names = "mpp0", "mpp1", "mpp2", "mpp3"; + resets = <&scmi_reset 340>, <&scmi_reset 341>, <&scmi_reset 342>, + <&scmi_reset 343>, <&scmi_reset 344>; + reset-names = "mpphy01", "mpphy11", "mpphy21", "mpphy31", "mpphy02"; + + renesas,phy-type = , , + , ; + renesas,external-ref-clock = <1 1 1 1>; + renesas,output-repeat-ref-clock = <0 0 0 0>; + }; -- 2.53.0