From patchwork Mon Jun 21 09:39:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Biju Das X-Patchwork-Id: 464746 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2B92EC49EA3 for ; Mon, 21 Jun 2021 09:40:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 19F1A611BD for ; Mon, 21 Jun 2021 09:40:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230367AbhFUJmU (ORCPT ); Mon, 21 Jun 2021 05:42:20 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:12185 "EHLO relmlie6.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230292AbhFUJmT (ORCPT ); Mon, 21 Jun 2021 05:42:19 -0400 X-IronPort-AV: E=Sophos;i="5.83,289,1616425200"; d="scan'208";a="84924677" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie6.idc.renesas.com with ESMTP; 21 Jun 2021 18:40:05 +0900 Received: from localhost.localdomain (unknown [10.226.92.241]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 0FC3F400C4E6; Mon, 21 Jun 2021 18:40:02 +0900 (JST) From: Biju Das To: Rob Herring Cc: Biju Das , Kishon Vijay Abraham I , Vinod Koul , Yoshihiro Shimoda , linux-phy@lists.infradead.org, devicetree@vger.kernel.org, Geert Uytterhoeven , Chris Paterson , Biju Das , Prabhakar Mahadev Lad , linux-renesas-soc@vger.kernel.org Subject: [PATCH v2 05/11] dt-bindings: phy: renesas, usb2-phy: Document RZ/G2L phy bindings Date: Mon, 21 Jun 2021 10:39:37 +0100 Message-Id: <20210621093943.12143-6-biju.das.jz@bp.renesas.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210621093943.12143-1-biju.das.jz@bp.renesas.com> References: <20210621093943.12143-1-biju.das.jz@bp.renesas.com> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Document USB phy bindings for RZ/G2L SoC. Signed-off-by: Biju Das Reviewed-by: Lad Prabhakar --- .../bindings/phy/renesas,usb2-phy.yaml | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/Documentation/devicetree/bindings/phy/renesas,usb2-phy.yaml b/Documentation/devicetree/bindings/phy/renesas,usb2-phy.yaml index 0f358d5b84ef..eebba6c83aec 100644 --- a/Documentation/devicetree/bindings/phy/renesas,usb2-phy.yaml +++ b/Documentation/devicetree/bindings/phy/renesas,usb2-phy.yaml @@ -17,17 +17,18 @@ properties: - items: - enum: - - renesas,usb2-phy-r7s9210 # RZ/A2 - - renesas,usb2-phy-r8a774a1 # RZ/G2M - - renesas,usb2-phy-r8a774b1 # RZ/G2N - - renesas,usb2-phy-r8a774c0 # RZ/G2E - - renesas,usb2-phy-r8a774e1 # RZ/G2H - - renesas,usb2-phy-r8a7795 # R-Car H3 - - renesas,usb2-phy-r8a7796 # R-Car M3-W - - renesas,usb2-phy-r8a77961 # R-Car M3-W+ - - renesas,usb2-phy-r8a77965 # R-Car M3-N - - renesas,usb2-phy-r8a77990 # R-Car E3 - - renesas,usb2-phy-r8a77995 # R-Car D3 + - renesas,usb2-phy-r7s9210 # RZ/A2 + - renesas,usb2-phy-r8a774a1 # RZ/G2M + - renesas,usb2-phy-r8a774b1 # RZ/G2N + - renesas,usb2-phy-r8a774c0 # RZ/G2E + - renesas,usb2-phy-r8a774e1 # RZ/G2H + - renesas,usb2-phy-r8a7795 # R-Car H3 + - renesas,usb2-phy-r8a7796 # R-Car M3-W + - renesas,usb2-phy-r8a77961 # R-Car M3-W+ + - renesas,usb2-phy-r8a77965 # R-Car M3-N + - renesas,usb2-phy-r8a77990 # R-Car E3 + - renesas,usb2-phy-r8a77995 # R-Car D3 + - renesas,usb2-phy-r9a07g044 # RZ/G2{L,LC} - const: renesas,rcar-gen3-usb2-phy reg: From patchwork Mon Jun 21 09:39:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Biju Das X-Patchwork-Id: 464745 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4283EC49EA3 for ; Mon, 21 Jun 2021 09:40:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2FE16611BD for ; Mon, 21 Jun 2021 09:40:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230411AbhFUJm0 (ORCPT ); Mon, 21 Jun 2021 05:42:26 -0400 Received: from relmlor1.renesas.com ([210.160.252.171]:3143 "EHLO relmlie5.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229641AbhFUJm0 (ORCPT ); Mon, 21 Jun 2021 05:42:26 -0400 X-IronPort-AV: E=Sophos;i="5.83,289,1616425200"; d="scan'208";a="85045918" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 21 Jun 2021 18:40:11 +0900 Received: from localhost.localdomain (unknown [10.226.92.241]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 4D8A2400C4E6; Mon, 21 Jun 2021 18:40:09 +0900 (JST) From: Biju Das To: Rob Herring Cc: Biju Das , Greg Kroah-Hartman , Yoshihiro Shimoda , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, Geert Uytterhoeven , Chris Paterson , Biju Das , Prabhakar Mahadev Lad , linux-renesas-soc@vger.kernel.org Subject: [PATCH v2 07/11] dt-bindings: usb: generic-ehci: Document RZ/G2L SoC bindings Date: Mon, 21 Jun 2021 10:39:39 +0100 Message-Id: <20210621093943.12143-8-biju.das.jz@bp.renesas.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210621093943.12143-1-biju.das.jz@bp.renesas.com> References: <20210621093943.12143-1-biju.das.jz@bp.renesas.com> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Renesas RZ/G2L SoC has USBPHY Control and USB2.0 PHY module. We need to turn on both these phy modules before accessing host registers. Apart from this, document the optional property dr_mode present on both RZ/G2 and R-Car Gen3 SoCs. Signed-off-by: Biju Das Reviewed-by: Lad Prabhakar --- .../devicetree/bindings/usb/generic-ehci.yaml | 33 +++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/generic-ehci.yaml b/Documentation/devicetree/bindings/usb/generic-ehci.yaml index 8089dc956ba3..822e667e28a5 100644 --- a/Documentation/devicetree/bindings/usb/generic-ehci.yaml +++ b/Documentation/devicetree/bindings/usb/generic-ehci.yaml @@ -22,6 +22,27 @@ allOf: reg: maxItems: 1 + - if: + properties: + compatible: + contains: + const: renesas,r9a07g044-ehci + then: + properties: + phys: + maxItems: 2 + phy-names: + items: + - const: usbphyctrl + - const: usb + else: + properties: + phys: + maxItems: 1 + phy-names: + items: + - const: usb + properties: compatible: oneOf: @@ -57,6 +78,7 @@ properties: - ibm,476gtr-ehci - nxp,lpc1850-ehci - qca,ar7100-ehci + - renesas,r9a07g044-ehci - snps,hsdk-v1.0-ehci - socionext,uniphier-ehci - const: generic-ehci @@ -134,14 +156,21 @@ properties: Phandle of a companion. phys: - maxItems: 1 + minItems: 1 + maxItems: 2 phy-names: - const: usb + minItems: 1 + maxItems: 2 iommus: maxItems: 1 + dr_mode: + enum: + - host + - otg + required: - compatible - reg From patchwork Mon Jun 21 09:39:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Biju Das X-Patchwork-Id: 464744 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A863EC49EA3 for ; Mon, 21 Jun 2021 09:40:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8CA0761002 for ; Mon, 21 Jun 2021 09:40:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229747AbhFUJmb (ORCPT ); Mon, 21 Jun 2021 05:42:31 -0400 Received: from relmlor1.renesas.com ([210.160.252.171]:3143 "EHLO relmlie5.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230429AbhFUJmb (ORCPT ); Mon, 21 Jun 2021 05:42:31 -0400 X-IronPort-AV: E=Sophos;i="5.83,289,1616425200"; d="scan'208";a="85045934" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 21 Jun 2021 18:40:17 +0900 Received: from localhost.localdomain (unknown [10.226.92.241]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 9FAB9400C75A; Mon, 21 Jun 2021 18:40:14 +0900 (JST) From: Biju Das To: Rob Herring Cc: Biju Das , Greg Kroah-Hartman , Yoshihiro Shimoda , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, Geert Uytterhoeven , Chris Paterson , Biju Das , Prabhakar Mahadev Lad , linux-renesas-soc@vger.kernel.org Subject: [PATCH v2 09/11] dt-bindings: usb: renesas, usbhs: Document RZ/G2L bindings Date: Mon, 21 Jun 2021 10:39:41 +0100 Message-Id: <20210621093943.12143-10-biju.das.jz@bp.renesas.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210621093943.12143-1-biju.das.jz@bp.renesas.com> References: <20210621093943.12143-1-biju.das.jz@bp.renesas.com> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Document RZ/G2L (R9A07G044L) SoC bindings. Signed-off-by: Biju Das Reviewed-by: Lad Prabhakar --- .../bindings/usb/renesas,usbhs.yaml | 44 ++++++++++++++++--- 1 file changed, 39 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/renesas,usbhs.yaml b/Documentation/devicetree/bindings/usb/renesas,usbhs.yaml index e67223d90bb7..d1f4bbf774c6 100644 --- a/Documentation/devicetree/bindings/usb/renesas,usbhs.yaml +++ b/Documentation/devicetree/bindings/usb/renesas,usbhs.yaml @@ -17,7 +17,9 @@ properties: - const: renesas,rza1-usbhs - items: - - const: renesas,usbhs-r7s9210 # RZ/A2 + - enum: + - renesas,usbhs-r7s9210 # RZ/A2 + - renesas,usbhs-r9a07g044 # RZ/G2{L,LC} - const: renesas,rza2-usbhs - items: @@ -60,7 +62,8 @@ properties: - description: USB 2.0 clock selector interrupts: - maxItems: 1 + minItems: 1 + maxItems: 4 renesas,buswait: $ref: /schemas/types.yaml#/definitions/uint32 @@ -74,11 +77,12 @@ properties: enabled. phys: - maxItems: 1 + minItems: 1 + maxItems: 2 phy-names: - items: - - const: usb + minItems: 1 + maxItems: 2 dmas: minItems: 2 @@ -111,6 +115,36 @@ required: - clocks - interrupts +allOf: + - if: + properties: + compatible: + contains: + const: renesas,usbhs-r9a07g044 + then: + properties: + interrupts: + items: + - description: U2P_IXL_INT + - description: U2P_INT_DMA[0] + - description: U2P_INT_DMA[1] + - description: U2P_INT_DMAERR + phys: + maxItems: 2 + phy-names: + items: + - const: usbphyctrl + - const: usb + else: + properties: + interrupts: + maxItems: 1 + phys: + maxItems: 1 + phy-names: + items: + - const: usb + additionalProperties: false examples: