From patchwork Tue Nov 24 17:09:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Biju Das X-Patchwork-Id: 11929419 X-Patchwork-Delegate: iwamatsu@nigauri.org 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=-13.6 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MIME_HEADER_CTYPE_ONLY,SPF_HELO_NONE,SPF_PASS, T_TVD_MIME_NO_HEADERS,URIBL_BLOCKED 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 4344BC64E7A for ; Tue, 24 Nov 2020 17:11:36 +0000 (UTC) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A8B0F20715 for ; Tue, 24 Nov 2020 17:11:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=lists.cip-project.org header.i=@lists.cip-project.org header.b="aFgMG48y" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A8B0F20715 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bp.renesas.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=bounce+64572+5841+4520388+8129055@lists.cip-project.org X-Received: by 127.0.0.2 with SMTP id EHVKYY4521723xIBzMmhhVQ3; Tue, 24 Nov 2020 09:11:35 -0800 X-Received: from relmlie5.idc.renesas.com (relmlie5.idc.renesas.com [210.160.252.171]) by mx.groups.io with SMTP id smtpd.web09.20.1606237777285940741 for ; Tue, 24 Nov 2020 09:09:37 -0800 X-IronPort-AV: E=Sophos;i="5.78,366,1599490800"; d="scan'208";a="63738816" X-Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 25 Nov 2020 02:09:36 +0900 X-Received: from localhost.localdomain (unknown [172.29.53.254]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id E95F940AC3B2; Wed, 25 Nov 2020 02:09:34 +0900 (JST) From: Biju Das To: cip-dev@lists.cip-project.org, Nobuhiro Iwamatsu , Pavel Machek Cc: Chris Paterson , Biju Das , Prabhakar Mahadev Lad Subject: [cip-dev] [PATCH 4.4.y-cip 1/9] dt-bindings: phy: rcar-gen2: Add r8a7742 support Date: Tue, 24 Nov 2020 17:09:24 +0000 Message-Id: <20201124170932.13588-2-biju.das.jz@bp.renesas.com> In-Reply-To: <20201124170932.13588-1-biju.das.jz@bp.renesas.com> References: <20201124170932.13588-1-biju.das.jz@bp.renesas.com> Precedence: Bulk List-Unsubscribe: Sender: cip-dev@lists.cip-project.org List-Id: Mailing-List: list cip-dev@lists.cip-project.org; contact cip-dev+owner@lists.cip-project.org Reply-To: cip-dev@lists.cip-project.org X-Gm-Message-State: DzkRIjeN145fO7BKXUeE5c2Xx4520388AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.cip-project.org; q=dns/txt; s=20140610; t=1606237895; bh=ZzDpTA97+SpJLOUoOATCIu5JB1MHstFpgACWEBnO3UE=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=aFgMG48y57fufAHI5B6P6ytCcmsA6CylAb1F4xrqQgNNhpykM3rU0mm5Eauyu47Trma Jqoucz5uMQ5UJwU7cDZ9DVkuQRg7W1aHJ0OozxV2fVRVdQKHtFg1X+cI7XlFcylXPrnKu 3/L5PnoLv43uEjtrvbNKa1grr0yJCMkP4oY= From: Lad Prabhakar commit 9184450a95f6f446dc435cad9c5409c06373eaf1 upstream. Add USB PHY support for r8a7742 SoC. Renesas RZ/G1H (R8A7742) USB PHY is identical to the R-Car Gen2 family. Signed-off-by: Lad Prabhakar Reviewed-by: Marian-Cristian Rotariu Reviewed-by: Geert Uytterhoeven Signed-off-by: Rob Herring Signed-off-by: Biju Das --- Documentation/devicetree/bindings/phy/rcar-gen2-phy.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/phy/rcar-gen2-phy.txt b/Documentation/devicetree/bindings/phy/rcar-gen2-phy.txt index 35c51d8bcd56..7b1672fb360f 100644 --- a/Documentation/devicetree/bindings/phy/rcar-gen2-phy.txt +++ b/Documentation/devicetree/bindings/phy/rcar-gen2-phy.txt @@ -4,7 +4,8 @@ This file provides information on what the device node for the R-Car generation 2 USB PHY contains. Required properties: -- compatible: "renesas,usb-phy-r8a7743" if the device is a part of R8A7743 SoC. +- compatible: "renesas,usb-phy-r8a7742" if the device is a part of R8A7742 SoC. + "renesas,usb-phy-r8a7743" if the device is a part of R8A7743 SoC. "renesas,usb-phy-r8a7744" if the device is a part of R8A7744 SoC. "renesas,usb-phy-r8a7745" if the device is a part of R8A7745 SoC. "renesas,usb-phy-r8a77470" if the device is a part of R8A77470 SoC. From patchwork Tue Nov 24 17:09:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Biju Das X-Patchwork-Id: 11929411 X-Patchwork-Delegate: iwamatsu@nigauri.org 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=-13.6 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MIME_HEADER_CTYPE_ONLY,SPF_HELO_NONE,SPF_PASS, T_TVD_MIME_NO_HEADERS,URIBL_BLOCKED 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 3ACEBC2D0E4 for ; Tue, 24 Nov 2020 17:11:34 +0000 (UTC) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3591620857 for ; Tue, 24 Nov 2020 17:11:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=lists.cip-project.org header.i=@lists.cip-project.org header.b="FDl39wRb" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3591620857 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bp.renesas.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=bounce+64572+5842+4520388+8129055@lists.cip-project.org X-Received: by 127.0.0.2 with SMTP id XyGiYY4521723xXIdqZgQO9v; Tue, 24 Nov 2020 09:11:32 -0800 X-Received: from relmlie5.idc.renesas.com (relmlie5.idc.renesas.com []) by mx.groups.io with SMTP id smtpd.web09.20.1606237777285940741 for ; Tue, 24 Nov 2020 09:09:38 -0800 X-IronPort-AV: E=Sophos;i="5.78,366,1599490800"; d="scan'208";a="63738819" X-Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 25 Nov 2020 02:09:38 +0900 X-Received: from localhost.localdomain (unknown [172.29.53.254]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id EB0B440ABFEE; Wed, 25 Nov 2020 02:09:36 +0900 (JST) From: Biju Das To: cip-dev@lists.cip-project.org, Nobuhiro Iwamatsu , Pavel Machek Cc: Chris Paterson , Biju Das , Prabhakar Mahadev Lad Subject: [cip-dev] [PATCH 4.4.y-cip 2/9] ARM: dts: r8a7742: Add USB 2.0 host support Date: Tue, 24 Nov 2020 17:09:25 +0000 Message-Id: <20201124170932.13588-3-biju.das.jz@bp.renesas.com> In-Reply-To: <20201124170932.13588-1-biju.das.jz@bp.renesas.com> References: <20201124170932.13588-1-biju.das.jz@bp.renesas.com> Precedence: Bulk List-Unsubscribe: Sender: cip-dev@lists.cip-project.org List-Id: Mailing-List: list cip-dev@lists.cip-project.org; contact cip-dev+owner@lists.cip-project.org Reply-To: cip-dev@lists.cip-project.org X-Gm-Message-State: VLTQ4eZe3bdDxiIidg8tuyoNx4520388AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.cip-project.org; q=dns/txt; s=20140610; t=1606237892; bh=MFFJs+oJbGoRa4dXYw2TAFp5hfnNUU7Bj252kg2iEvo=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=FDl39wRbhfABfCu/2eNN+hLdItOkT7Yp8qVXRGb9WfO5Ed6XcudXKoUA3KIc3bfKjLd kAelXfLgqw/tZ2GAbBpV9C5wFmu7fJd5y3pUJTluWLP4IIaAUR94HVWcvF0SQZ1OTFm7A Old46DSKz5yqWoefCCboMzPYLvOBXNYfKok= From: Lad Prabhakar commit 4bb19c91d38e36b81e92de3d9b4e61d9b8928b54 upstream. Describe internal PCI bridge devices, USB phy device and link PCI USB devices to USB phy. Signed-off-by: Lad Prabhakar Reviewed-by: Marian-Cristian Rotariu Link: https://lore.kernel.org/r/1590356277-19993-7-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com Signed-off-by: Geert Uytterhoeven [biju: changed clocks and power-domain properties, removed resets property] Signed-off-by: Biju Das --- arch/arm/boot/dts/r8a7742.dtsi | 111 +++++++++++++++++++++++++++++++++ 1 file changed, 111 insertions(+) diff --git a/arch/arm/boot/dts/r8a7742.dtsi b/arch/arm/boot/dts/r8a7742.dtsi index d326602bee3f..b25b719fbd2b 100644 --- a/arch/arm/boot/dts/r8a7742.dtsi +++ b/arch/arm/boot/dts/r8a7742.dtsi @@ -964,6 +964,27 @@ status = "disabled"; }; + usbphy: usb-phy@e6590100 { + compatible = "renesas,usb-phy-r8a7742", + "renesas,rcar-gen2-usb-phy"; + reg = <0 0xe6590100 0 0x100>; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&mstp7_clks R8A7742_CLK_HSUSB>; + clock-names = "usbhs"; + power-domains = <&cpg_clocks>; + status = "disabled"; + + usb0: usb-channel@0 { + reg = <0>; + #phy-cells = <1>; + }; + usb2: usb-channel@2 { + reg = <2>; + #phy-cells = <1>; + }; + }; + dmac0: dma-controller@e6700000 { compatible = "renesas,dmac-r8a7742", "renesas,rcar-dmac"; @@ -1549,6 +1570,96 @@ dma-channels = <13>; }; + pci0: pci@ee090000 { + compatible = "renesas,pci-r8a7742", + "renesas,pci-rcar-gen2"; + device_type = "pci"; + reg = <0 0xee090000 0 0xc00>, + <0 0xee080000 0 0x1100>; + interrupts = ; + clocks = <&mstp7_clks R8A7742_CLK_EHCI>; + power-domains = <&cpg_clocks>; + status = "disabled"; + + bus-range = <0 0>; + #address-cells = <3>; + #size-cells = <2>; + #interrupt-cells = <1>; + ranges = <0x02000000 0 0xee080000 0 0xee080000 0 0x00010000>; + interrupt-map-mask = <0xf800 0 0 0x7>; + interrupt-map = <0x0000 0 0 1 &gic GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>, + <0x0800 0 0 1 &gic GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>, + <0x1000 0 0 2 &gic GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>; + + usb@1,0 { + reg = <0x800 0 0 0 0>; + phys = <&usb0 0>; + phy-names = "usb"; + }; + + usb@2,0 { + reg = <0x1000 0 0 0 0>; + phys = <&usb0 0>; + phy-names = "usb"; + }; + }; + + pci1: pci@ee0b0000 { + compatible = "renesas,pci-r8a7742", + "renesas,pci-rcar-gen2"; + device_type = "pci"; + reg = <0 0xee0b0000 0 0xc00>, + <0 0xee0a0000 0 0x1100>; + interrupts = ; + clocks = <&mstp7_clks R8A7742_CLK_EHCI>; + power-domains = <&cpg_clocks>; + status = "disabled"; + + bus-range = <1 1>; + #address-cells = <3>; + #size-cells = <2>; + #interrupt-cells = <1>; + ranges = <0x02000000 0 0xee0a0000 0 0xee0a0000 0 0x00010000>; + interrupt-map-mask = <0xf800 0 0 0x7>; + interrupt-map = <0x0000 0 0 1 &gic GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>, + <0x0800 0 0 1 &gic GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>, + <0x1000 0 0 2 &gic GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>; + }; + + pci2: pci@ee0d0000 { + compatible = "renesas,pci-r8a7742", + "renesas,pci-rcar-gen2"; + device_type = "pci"; + clocks = <&mstp7_clks R8A7742_CLK_EHCI>; + power-domains = <&cpg_clocks>; + reg = <0 0xee0d0000 0 0xc00>, + <0 0xee0c0000 0 0x1100>; + interrupts = ; + status = "disabled"; + + bus-range = <2 2>; + #address-cells = <3>; + #size-cells = <2>; + #interrupt-cells = <1>; + ranges = <0x02000000 0 0xee0c0000 0 0xee0c0000 0 0x00010000>; + interrupt-map-mask = <0xf800 0 0 0x7>; + interrupt-map = <0x0000 0 0 1 &gic GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>, + <0x0800 0 0 1 &gic GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>, + <0x1000 0 0 2 &gic GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>; + + usb@1,0 { + reg = <0x20800 0 0 0 0>; + phys = <&usb2 0>; + phy-names = "usb"; + }; + + usb@2,0 { + reg = <0x21000 0 0 0 0>; + phys = <&usb2 0>; + phy-names = "usb"; + }; + }; + sdhi0: mmc@ee100000 { compatible = "renesas,sdhi-r8a7742", "renesas,rcar-gen2-sdhi"; From patchwork Tue Nov 24 17:09:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Biju Das X-Patchwork-Id: 11929415 X-Patchwork-Delegate: iwamatsu@nigauri.org 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=-13.6 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MIME_HEADER_CTYPE_ONLY,SPF_HELO_NONE,SPF_PASS, T_TVD_MIME_NO_HEADERS,URIBL_BLOCKED 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 949F5C6379D for ; Tue, 24 Nov 2020 17:11:35 +0000 (UTC) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B6D6420715 for ; Tue, 24 Nov 2020 17:11:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=lists.cip-project.org header.i=@lists.cip-project.org header.b="WB9+GDar" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B6D6420715 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bp.renesas.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=bounce+64572+5843+4520388+8129055@lists.cip-project.org X-Received: by 127.0.0.2 with SMTP id q5XOYY4521723x9fmISfvJgS; Tue, 24 Nov 2020 09:11:34 -0800 X-Received: from relmlie5.idc.renesas.com (relmlie5.idc.renesas.com []) by mx.groups.io with SMTP id smtpd.web09.20.1606237777285940741 for ; Tue, 24 Nov 2020 09:09:40 -0800 X-IronPort-AV: E=Sophos;i="5.78,366,1599490800"; d="scan'208";a="63738822" X-Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 25 Nov 2020 02:09:40 +0900 X-Received: from localhost.localdomain (unknown [172.29.53.254]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id C5F4A40AC3B2; Wed, 25 Nov 2020 02:09:38 +0900 (JST) From: Biju Das To: cip-dev@lists.cip-project.org, Nobuhiro Iwamatsu , Pavel Machek Cc: Chris Paterson , Biju Das , Prabhakar Mahadev Lad Subject: [cip-dev] [PATCH 4.4.y-cip 3/9] dt-bindings: usb: renesas,usbhs: Add support for r8a7742 Date: Tue, 24 Nov 2020 17:09:26 +0000 Message-Id: <20201124170932.13588-4-biju.das.jz@bp.renesas.com> In-Reply-To: <20201124170932.13588-1-biju.das.jz@bp.renesas.com> References: <20201124170932.13588-1-biju.das.jz@bp.renesas.com> Precedence: Bulk List-Unsubscribe: Sender: cip-dev@lists.cip-project.org List-Id: Mailing-List: list cip-dev@lists.cip-project.org; contact cip-dev+owner@lists.cip-project.org Reply-To: cip-dev@lists.cip-project.org X-Gm-Message-State: qUL9Iy3vL0HBq3iNsVwaclwyx4520388AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.cip-project.org; q=dns/txt; s=20140610; t=1606237894; bh=6gu99DlsZeBFncJrrWWn4KTTToAJ3f8iQtITQMkLkfI=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=WB9+GDarwnN6h2mlv/oY0raOYqy5DLrpQwHqhYXTdcTdoMGvM/t6QWilAMXATPK4Q/P T4GjT+BaV9bVP/pLNEiaW+5yqZGRGo7bIIRSNP6UaQb/ygwGd1lh7sPGb5IFywEVUuDxM d2epc2ckGTRr81oC2ks4jUPGCachYxqj+Pg= From: Lad Prabhakar commit c092e1356b378e8567f9d6404ac27b57a4f47ae6 upstream. Document support for RZ/G1H (R8A7742) SoC. Signed-off-by: Lad Prabhakar Reviewed-by: Marian-Cristian Rotariu Reviewed-by: Geert Uytterhoeven Signed-off-by: Rob Herring [biju: Patched text version of bindings file] Signed-off-by: Biju Das --- Documentation/devicetree/bindings/usb/renesas_usbhs.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/usb/renesas_usbhs.txt b/Documentation/devicetree/bindings/usb/renesas_usbhs.txt index 5a26deea5b97..d0516953b9d2 100644 --- a/Documentation/devicetree/bindings/usb/renesas_usbhs.txt +++ b/Documentation/devicetree/bindings/usb/renesas_usbhs.txt @@ -3,6 +3,7 @@ Renesas Electronics USBHS driver Required properties: - compatible: Must contain one or more of the following: + - "renesas,usbhs-r8a7742" for r8a7742 (RZ/G1H) compatible device - "renesas,usbhs-r8a7743" for r8a7743 (RZ/G1M) compatible device - "renesas,usbhs-r8a7744" for r8a7744 (RZ/G1N) compatible device - "renesas,usbhs-r8a7745" for r8a7745 (RZ/G1E) compatible device From patchwork Tue Nov 24 17:09:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Biju Das X-Patchwork-Id: 11929413 X-Patchwork-Delegate: iwamatsu@nigauri.org 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=-13.6 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MIME_HEADER_CTYPE_ONLY,SPF_HELO_NONE,SPF_PASS, T_TVD_MIME_NO_HEADERS,URIBL_BLOCKED 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 75A7CC63777 for ; Tue, 24 Nov 2020 17:11:34 +0000 (UTC) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3784F2086A for ; Tue, 24 Nov 2020 17:11:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=lists.cip-project.org header.i=@lists.cip-project.org header.b="CjUavLfX" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3784F2086A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bp.renesas.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=bounce+64572+5844+4520388+8129055@lists.cip-project.org X-Received: by 127.0.0.2 with SMTP id 0W3WYY4521723xVG0a6bzUKJ; Tue, 24 Nov 2020 09:11:32 -0800 X-Received: from relmlie5.idc.renesas.com (relmlie5.idc.renesas.com []) by mx.groups.io with SMTP id smtpd.web09.20.1606237777285940741 for ; Tue, 24 Nov 2020 09:09:42 -0800 X-IronPort-AV: E=Sophos;i="5.78,366,1599490800"; d="scan'208";a="63738825" X-Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 25 Nov 2020 02:09:42 +0900 X-Received: from localhost.localdomain (unknown [172.29.53.254]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id AD3D340ABFEE; Wed, 25 Nov 2020 02:09:40 +0900 (JST) From: Biju Das To: cip-dev@lists.cip-project.org, Nobuhiro Iwamatsu , Pavel Machek Cc: Chris Paterson , Biju Das , Prabhakar Mahadev Lad Subject: [cip-dev] [PATCH 4.4.y-cip 4/9] ARM: dts: r8a7742: Add USB-DMAC and HSUSB device nodes Date: Tue, 24 Nov 2020 17:09:27 +0000 Message-Id: <20201124170932.13588-5-biju.das.jz@bp.renesas.com> In-Reply-To: <20201124170932.13588-1-biju.das.jz@bp.renesas.com> References: <20201124170932.13588-1-biju.das.jz@bp.renesas.com> Precedence: Bulk List-Unsubscribe: Sender: cip-dev@lists.cip-project.org List-Id: Mailing-List: list cip-dev@lists.cip-project.org; contact cip-dev+owner@lists.cip-project.org Reply-To: cip-dev@lists.cip-project.org X-Gm-Message-State: wDoF7XJJGYsIoPnf889k28X5x4520388AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.cip-project.org; q=dns/txt; s=20140610; t=1606237892; bh=5F8YDx+gHyL8Ofd+KP8jHrqWBIcjk4Y4yXY96pGUaFU=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=CjUavLfX8SQqPkOrP74BwopGhJn9BaSV1mOaCBf+n/lYMZxRVYE/hiPj3UsYBsXCPrT q711P8EYZlmSXZUYhu+CeKvxl4ZsQj/qAlV451upgqFR4n+xeJ+Y3kXYJ5+CaBMftEziR bDyS69F+w1+4TJe3Op40xZmMA4+eX1eD+gs= From: Lad Prabhakar commit b8618745829de50563470cd1e58c7ea10d6481b6 upstream. Add USB DMAC and HSUSB device nodes on RZ/G1H SoC dtsi. Signed-off-by: Lad Prabhakar Reviewed-by: Marian-Cristian Rotariu Link: https://lore.kernel.org/r/1590356277-19993-8-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com Signed-off-by: Geert Uytterhoeven [biju: changed clocks and power-domain properties, removed resets property] Signed-off-by: Biju Das --- arch/arm/boot/dts/r8a7742.dtsi | 42 ++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/arch/arm/boot/dts/r8a7742.dtsi b/arch/arm/boot/dts/r8a7742.dtsi index b25b719fbd2b..5c516e17ca54 100644 --- a/arch/arm/boot/dts/r8a7742.dtsi +++ b/arch/arm/boot/dts/r8a7742.dtsi @@ -964,6 +964,22 @@ status = "disabled"; }; + hsusb: usb@e6590000 { + compatible = "renesas,usbhs-r8a7742", + "renesas,rcar-gen2-usbhs"; + reg = <0 0xe6590000 0 0x100>; + interrupts = ; + clocks = <&mstp7_clks R8A7742_CLK_HSUSB>; + dmas = <&usb_dmac0 0>, <&usb_dmac0 1>, + <&usb_dmac1 0>, <&usb_dmac1 1>; + dma-names = "ch0", "ch1", "ch2", "ch3"; + power-domains = <&cpg_clocks>; + renesas,buswait = <4>; + phys = <&usb0 1>; + phy-names = "usb"; + status = "disabled"; + }; + usbphy: usb-phy@e6590100 { compatible = "renesas,usb-phy-r8a7742", "renesas,rcar-gen2-usb-phy"; @@ -985,6 +1001,32 @@ }; }; + usb_dmac0: dma-controller@e65a0000 { + compatible = "renesas,r8a7742-usb-dmac", + "renesas,usb-dmac"; + reg = <0 0xe65a0000 0 0x100>; + interrupts = , + ; + interrupt-names = "ch0", "ch1"; + clocks = <&mstp3_clks R8A7742_CLK_USBDMAC0>; + power-domains = <&cpg_clocks>; + #dma-cells = <1>; + dma-channels = <2>; + }; + + usb_dmac1: dma-controller@e65b0000 { + compatible = "renesas,r8a7742-usb-dmac", + "renesas,usb-dmac"; + reg = <0 0xe65b0000 0 0x100>; + interrupts = , + ; + interrupt-names = "ch0", "ch1"; + clocks = <&mstp3_clks R8A7742_CLK_USBDMAC1>; + power-domains = <&cpg_clocks>; + #dma-cells = <1>; + dma-channels = <2>; + }; + dmac0: dma-controller@e6700000 { compatible = "renesas,dmac-r8a7742", "renesas,rcar-dmac"; From patchwork Tue Nov 24 17:09:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Biju Das X-Patchwork-Id: 11929429 X-Patchwork-Delegate: iwamatsu@nigauri.org 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=-13.6 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MIME_HEADER_CTYPE_ONLY,SPF_HELO_NONE,SPF_PASS, T_TVD_MIME_NO_HEADERS,URIBL_BLOCKED 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 B1ADFC63798 for ; Tue, 24 Nov 2020 17:11:38 +0000 (UTC) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 07E8720857 for ; Tue, 24 Nov 2020 17:11:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=lists.cip-project.org header.i=@lists.cip-project.org header.b="mlDSyR3K" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 07E8720857 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bp.renesas.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=bounce+64572+5845+4520388+8129055@lists.cip-project.org X-Received: by 127.0.0.2 with SMTP id cpGHYY4521723xqUPstGls9c; Tue, 24 Nov 2020 09:11:37 -0800 X-Received: from relmlie6.idc.renesas.com (relmlie6.idc.renesas.com [210.160.252.172]) by mx.groups.io with SMTP id smtpd.web11.15.1606237784446827976 for ; Tue, 24 Nov 2020 09:09:44 -0800 X-IronPort-AV: E=Sophos;i="5.78,366,1599490800"; d="scan'208";a="63522777" X-Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 25 Nov 2020 02:09:43 +0900 X-Received: from localhost.localdomain (unknown [172.29.53.254]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 7FA4F40ABFEE; Wed, 25 Nov 2020 02:09:42 +0900 (JST) From: Biju Das To: cip-dev@lists.cip-project.org, Nobuhiro Iwamatsu , Pavel Machek Cc: Chris Paterson , Biju Das , Prabhakar Mahadev Lad Subject: [cip-dev] [PATCH 4.4.y-cip 5/9] dt-bindings: usb: usb-xhci: Document r8a7742 support Date: Tue, 24 Nov 2020 17:09:28 +0000 Message-Id: <20201124170932.13588-6-biju.das.jz@bp.renesas.com> In-Reply-To: <20201124170932.13588-1-biju.das.jz@bp.renesas.com> References: <20201124170932.13588-1-biju.das.jz@bp.renesas.com> Precedence: Bulk List-Unsubscribe: Sender: cip-dev@lists.cip-project.org List-Id: Mailing-List: list cip-dev@lists.cip-project.org; contact cip-dev+owner@lists.cip-project.org Reply-To: cip-dev@lists.cip-project.org X-Gm-Message-State: k03DJzOHahObx65RmZoR08wEx4520388AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.cip-project.org; q=dns/txt; s=20140610; t=1606237897; bh=h6Q+2ch5iwwrf9tA0LL9KxJbvGvKzySrC8XI+wzuGXw=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=mlDSyR3KW1F5n6Nf44BBBF/td/8qH41j+Vk3t2MJ3h+j/pdS2L6Juot9I3X8v0za7fv b1b4rJ6nD1s78AGl9ONuQzTXKZZbqLyQ/y5ha6t27E9ON8DlWlamqUjewe4OV19eMHwLl XqyZsnoyC0hx8Q58Bs7u0AJ7KiEIdCbbKyU= From: Lad Prabhakar commit 935796968ff8b69cb0c9f18c427899ebafd83509 upstream. Document r8a7742 xhci support. The driver will use the fallback compatible string "renesas,rcar-gen2-xhci", therefore no driver change is needed. Signed-off-by: Lad Prabhakar Reviewed-by: Marian-Cristian Rotariu Reviewed-by: Geert Uytterhoeven Signed-off-by: Rob Herring Signed-off-by: Biju Das --- Documentation/devicetree/bindings/usb/usb-xhci.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/usb-xhci.txt b/Documentation/devicetree/bindings/usb/usb-xhci.txt index bf5192b7348e..2cd959287fe9 100644 --- a/Documentation/devicetree/bindings/usb/usb-xhci.txt +++ b/Documentation/devicetree/bindings/usb/usb-xhci.txt @@ -3,8 +3,8 @@ USB xHCI controllers Required properties: - compatible: should be one of "generic-xhci", "marvell,armada-375-xhci", "marvell,armada-380-xhci", - "renesas,xhci-r8a7790", "renesas,xhci-r8a7791", "renesas,xhci-r8a7743", - "renesas,xhci-r8a7744" + "renesas,xhci-r8a7790", "renesas,xhci-r8a7791", "renesas,xhci-r8a7742" + "renesas,xhci-r8a7743", "renesas,xhci-r8a7744" (deprecated: "xhci-platform"). - reg: should contain address and length of the standard XHCI register set for the device. From patchwork Tue Nov 24 17:09:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Biju Das X-Patchwork-Id: 11929421 X-Patchwork-Delegate: iwamatsu@nigauri.org 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=-13.6 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MIME_HEADER_CTYPE_ONLY,SPF_HELO_NONE,SPF_PASS, T_TVD_MIME_NO_HEADERS,URIBL_BLOCKED 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 84C68C2D0E4 for ; Tue, 24 Nov 2020 17:11:36 +0000 (UTC) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BC7FB20857 for ; Tue, 24 Nov 2020 17:11:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=lists.cip-project.org header.i=@lists.cip-project.org header.b="qULPqOjm" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BC7FB20857 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bp.renesas.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=bounce+64572+5846+4520388+8129055@lists.cip-project.org X-Received: by 127.0.0.2 with SMTP id b2mIYY4521723xQZmmENry9g; Tue, 24 Nov 2020 09:11:35 -0800 X-Received: from relmlie6.idc.renesas.com (relmlie6.idc.renesas.com []) by mx.groups.io with SMTP id smtpd.web11.15.1606237784446827976 for ; Tue, 24 Nov 2020 09:09:46 -0800 X-IronPort-AV: E=Sophos;i="5.78,366,1599490800"; d="scan'208";a="63522780" X-Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 25 Nov 2020 02:09:45 +0900 X-Received: from localhost.localdomain (unknown [172.29.53.254]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 4B74540ABFEE; Wed, 25 Nov 2020 02:09:44 +0900 (JST) From: Biju Das To: cip-dev@lists.cip-project.org, Nobuhiro Iwamatsu , Pavel Machek Cc: Chris Paterson , Biju Das , Prabhakar Mahadev Lad Subject: [cip-dev] [PATCH 4.4.y-cip 6/9] usb: host: xhci-plat: Add r8a7742 support Date: Tue, 24 Nov 2020 17:09:29 +0000 Message-Id: <20201124170932.13588-7-biju.das.jz@bp.renesas.com> In-Reply-To: <20201124170932.13588-1-biju.das.jz@bp.renesas.com> References: <20201124170932.13588-1-biju.das.jz@bp.renesas.com> Precedence: Bulk List-Unsubscribe: Sender: cip-dev@lists.cip-project.org List-Id: Mailing-List: list cip-dev@lists.cip-project.org; contact cip-dev+owner@lists.cip-project.org Reply-To: cip-dev@lists.cip-project.org X-Gm-Message-State: KkfCdTO1jqz5pf2hhjw4jLvox4520388AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.cip-project.org; q=dns/txt; s=20140610; t=1606237895; bh=R8nR1+YhXy5q5oWM40BTXVKZ8tgHDeTFjlf5sp39Ymc=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=qULPqOjmPrq/kGwZPfmvhV1qcC4meewl9asDQKYq18L8BECeX3ml02IJbcPaeCAdpiz 2elHPgbr9hs7DpVNiFu2rjtcHoQ8wY7mXN2wuA1PHzRkX124JOKW/HwIT/6YK0jcAzdOb IVeKDy3wYY8Ch86/GLrxT5PbX+qvctvPD0w= This patch adds xhci r8a7742 driver support. There are lot of changes between upstream and 4.4 kernel and we cannot cleanly backport the changes from upstream. This patch is similar to commit d09ccbb73386 ("usb: host: xhci-plat: Add r8a7743 support") present in cip kernel. Signed-off-by: Biju Das --- drivers/usb/host/xhci-plat.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c index 26e0cd535deb..46e69e2db1fa 100644 --- a/drivers/usb/host/xhci-plat.c +++ b/drivers/usb/host/xhci-plat.c @@ -54,6 +54,7 @@ static int xhci_plat_setup(struct usb_hcd *hcd) if (of_device_is_compatible(of_node, "renesas,xhci-r8a7790") || of_device_is_compatible(of_node, "renesas,xhci-r8a7791") || + of_device_is_compatible(of_node, "renesas,xhci-r8a7742") || of_device_is_compatible(of_node, "renesas,xhci-r8a7743") || of_device_is_compatible(of_node, "renesas,xhci-r8a7744")) { ret = xhci_rcar_init_quirk(hcd); @@ -70,6 +71,7 @@ static int xhci_plat_start(struct usb_hcd *hcd) if (of_device_is_compatible(of_node, "renesas,xhci-r8a7790") || of_device_is_compatible(of_node, "renesas,xhci-r8a7791") || + of_device_is_compatible(of_node, "renesas,xhci-r8a7742") || of_device_is_compatible(of_node, "renesas,xhci-r8a7743") || of_device_is_compatible(of_node, "renesas,xhci-r8a7744")) xhci_rcar_start(hcd); @@ -271,6 +273,7 @@ static const struct of_device_id usb_xhci_of_match[] = { { .compatible = "xhci-platform" }, { .compatible = "marvell,armada-375-xhci"}, { .compatible = "marvell,armada-380-xhci"}, + { .compatible = "renesas,xhci-r8a7742"}, { .compatible = "renesas,xhci-r8a7743"}, { .compatible = "renesas,xhci-r8a7744"}, { .compatible = "renesas,xhci-r8a7790"}, From patchwork Tue Nov 24 17:09:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Biju Das X-Patchwork-Id: 11929423 X-Patchwork-Delegate: iwamatsu@nigauri.org 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=-13.6 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MIME_HEADER_CTYPE_ONLY,SPF_HELO_NONE,SPF_PASS, T_TVD_MIME_NO_HEADERS,URIBL_BLOCKED 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 7705FC64E7C for ; Tue, 24 Nov 2020 17:11:37 +0000 (UTC) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D4DC320857 for ; Tue, 24 Nov 2020 17:11:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=lists.cip-project.org header.i=@lists.cip-project.org header.b="Vt3Lm6sY" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D4DC320857 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bp.renesas.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=bounce+64572+5847+4520388+8129055@lists.cip-project.org X-Received: by 127.0.0.2 with SMTP id aF1dYY4521723xO4RoOZVBFG; Tue, 24 Nov 2020 09:11:36 -0800 X-Received: from relmlie6.idc.renesas.com (relmlie6.idc.renesas.com []) by mx.groups.io with SMTP id smtpd.web11.15.1606237784446827976 for ; Tue, 24 Nov 2020 09:09:48 -0800 X-IronPort-AV: E=Sophos;i="5.78,366,1599490800"; d="scan'208";a="63522783" X-Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 25 Nov 2020 02:09:47 +0900 X-Received: from localhost.localdomain (unknown [172.29.53.254]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 1C6F540AC3B2; Wed, 25 Nov 2020 02:09:45 +0900 (JST) From: Biju Das To: cip-dev@lists.cip-project.org, Nobuhiro Iwamatsu , Pavel Machek Cc: Chris Paterson , Biju Das , Prabhakar Mahadev Lad Subject: [cip-dev] [PATCH 4.4.y-cip 7/9] ARM: dts: r8a7742: Add XHCI support Date: Tue, 24 Nov 2020 17:09:30 +0000 Message-Id: <20201124170932.13588-8-biju.das.jz@bp.renesas.com> In-Reply-To: <20201124170932.13588-1-biju.das.jz@bp.renesas.com> References: <20201124170932.13588-1-biju.das.jz@bp.renesas.com> Precedence: Bulk List-Unsubscribe: Sender: cip-dev@lists.cip-project.org List-Id: Mailing-List: list cip-dev@lists.cip-project.org; contact cip-dev+owner@lists.cip-project.org Reply-To: cip-dev@lists.cip-project.org X-Gm-Message-State: WlNeG5VvRHtuLj2t0bOpbFL8x4520388AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.cip-project.org; q=dns/txt; s=20140610; t=1606237896; bh=VJL/X7doULzGznbE9gnFc66l76hw6pWqBql/o9ovt3Y=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=Vt3Lm6sYwfuFtVpKD8m5yYm0W7M7LwI8ZHWBGBrHg2NlpBBB7WiDfz+2OdgJiKyIEnW PYqvq5niL9rJjQ5O3MNxdP7vlYuON9p+TpEJCcwVSwGO/GqLr2kBsCbvl075Ytf3/Aftp j+kUIJu55793ExJQihQ6NMEBlgT/se+q3+A= From: Lad Prabhakar commit ab586be87ed2cc94701b1ae70956ae1fad6ae992 upstream. Add XHCI support to R8A7742 SoC DT. Signed-off-by: Lad Prabhakar Reviewed-by: Marian-Cristian Rotariu Link: https://lore.kernel.org/r/1590356277-19993-9-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com Signed-off-by: Geert Uytterhoeven [biju: changed clocks and power-domain properties, removed resets property] Signed-off-by: Biju Das --- arch/arm/boot/dts/r8a7742.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/r8a7742.dtsi b/arch/arm/boot/dts/r8a7742.dtsi index 5c516e17ca54..0da46a2edddd 100644 --- a/arch/arm/boot/dts/r8a7742.dtsi +++ b/arch/arm/boot/dts/r8a7742.dtsi @@ -1612,6 +1612,18 @@ dma-channels = <13>; }; + xhci: usb@ee000000 { + compatible = "renesas,xhci-r8a7742", + "renesas,rcar-gen2-xhci"; + reg = <0 0xee000000 0 0xc00>; + interrupts = ; + clocks = <&mstp3_clks R8A7742_CLK_SSUSB>; + power-domains = <&cpg_clocks>; + phys = <&usb2 1>; + phy-names = "usb"; + status = "disabled"; + }; + pci0: pci@ee090000 { compatible = "renesas,pci-r8a7742", "renesas,pci-rcar-gen2"; From patchwork Tue Nov 24 17:09:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Biju Das X-Patchwork-Id: 11929427 X-Patchwork-Delegate: iwamatsu@nigauri.org 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=-13.6 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MIME_HEADER_CTYPE_ONLY,SPF_HELO_NONE,SPF_PASS, T_TVD_MIME_NO_HEADERS,URIBL_BLOCKED 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 8CB5DC6379D for ; Tue, 24 Nov 2020 17:11:38 +0000 (UTC) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E13FE20715 for ; Tue, 24 Nov 2020 17:11:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=lists.cip-project.org header.i=@lists.cip-project.org header.b="oT2MvYee" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E13FE20715 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bp.renesas.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=bounce+64572+5848+4520388+8129055@lists.cip-project.org X-Received: by 127.0.0.2 with SMTP id fBY0YY4521723xghn6zQqlIh; Tue, 24 Nov 2020 09:11:37 -0800 X-Received: from relmlie5.idc.renesas.com (relmlie5.idc.renesas.com [210.160.252.171]) by mx.groups.io with SMTP id smtpd.web12.27.1606237790034661248 for ; Tue, 24 Nov 2020 09:09:50 -0800 X-IronPort-AV: E=Sophos;i="5.78,366,1599490800"; d="scan'208";a="63738831" X-Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 25 Nov 2020 02:09:49 +0900 X-Received: from localhost.localdomain (unknown [172.29.53.254]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 1ED8B40ABFEE; Wed, 25 Nov 2020 02:09:47 +0900 (JST) From: Biju Das To: cip-dev@lists.cip-project.org, Nobuhiro Iwamatsu , Pavel Machek Cc: Chris Paterson , Biju Das , Prabhakar Mahadev Lad Subject: [cip-dev] [PATCH 4.4.y-cip 8/9] pinctrl: sh-pfc: r8a7790: Add USB1 PWEN pin and group Date: Tue, 24 Nov 2020 17:09:31 +0000 Message-Id: <20201124170932.13588-9-biju.das.jz@bp.renesas.com> In-Reply-To: <20201124170932.13588-1-biju.das.jz@bp.renesas.com> References: <20201124170932.13588-1-biju.das.jz@bp.renesas.com> Precedence: Bulk List-Unsubscribe: Sender: cip-dev@lists.cip-project.org List-Id: Mailing-List: list cip-dev@lists.cip-project.org; contact cip-dev+owner@lists.cip-project.org Reply-To: cip-dev@lists.cip-project.org X-Gm-Message-State: jPyeToJPz66kXhWEt9gzbzlTx4520388AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.cip-project.org; q=dns/txt; s=20140610; t=1606237897; bh=Pn9Ew5/wyKCzoFOF/JmaLKJPlSETx3sSnM/64XtBcSA=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=oT2MvYeeqnsRhWg0am9dEPHyYTLi3bVVODUIb0ELAMzNhJrlTpnIwXx038O9DM7OhEY QT0sl2Pr++hM84sULmIjGu4ZoPpjZ5Pvk6Yz/B4W0dKk0mxPK9qj/EtttrvugXZpSvjwL 6/7tH5mIzPmOEBV/puFux68Te2a4AFpQWKY= From: Lad Prabhakar commit 417e24986935f6bd6afa38010cc981cf4d7a7bef upstream. Add USB1 PWEN pin and group for USB1 interface. Signed-off-by: Lad Prabhakar Reviewed-by: Biju Das Link: https://lore.kernel.org/r/1595005225-11519-2-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com Signed-off-by: Geert Uytterhoeven [biju: updated pin group common index] Signed-off-by: Biju Das --- drivers/pinctrl/sh-pfc/pfc-r8a7790.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7790.c b/drivers/pinctrl/sh-pfc/pfc-r8a7790.c index d87f9dbbb302..f85bd1623d46 100644 --- a/drivers/pinctrl/sh-pfc/pfc-r8a7790.c +++ b/drivers/pinctrl/sh-pfc/pfc-r8a7790.c @@ -3710,6 +3710,13 @@ static const unsigned int usb1_pins[] = { static const unsigned int usb1_mux[] = { USB1_PWEN_MARK, USB1_OVC_MARK, }; +static const unsigned int usb1_pwen_pins[] = { + /* PWEN */ + RCAR_GP_PIN(5, 20), +}; +static const unsigned int usb1_pwen_mux[] = { + USB1_PWEN_MARK, +}; /* - USB2 ------------------------------------------------------------------- */ static const unsigned int usb2_pins[] = { /* PWEN, OVC */ @@ -4038,7 +4045,7 @@ static const unsigned int vin3_clk_mux[] = { }; static const struct { - struct sh_pfc_pin_group common[297]; + struct sh_pfc_pin_group common[298]; struct sh_pfc_pin_group automotive[1]; } pinmux_groups = { .common = { @@ -4300,6 +4307,7 @@ static const struct { SH_PFC_PIN_GROUP(usb0), SH_PFC_PIN_GROUP(usb0_ovc_vbus), SH_PFC_PIN_GROUP(usb1), + SH_PFC_PIN_GROUP(usb1_pwen), SH_PFC_PIN_GROUP(usb2), VIN_DATA_PIN_GROUP(vin0_data, 24), VIN_DATA_PIN_GROUP(vin0_data, 20), @@ -4764,6 +4772,7 @@ static const char * const usb0_groups[] = { static const char * const usb1_groups[] = { "usb1", + "usb1_pwen", }; static const char * const usb2_groups[] = { From patchwork Tue Nov 24 17:09:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Biju Das X-Patchwork-Id: 11929425 X-Patchwork-Delegate: iwamatsu@nigauri.org 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=-13.6 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MIME_HEADER_CTYPE_ONLY,SPF_HELO_NONE,SPF_PASS, T_TVD_MIME_NO_HEADERS,URIBL_BLOCKED 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 C5CB2C64E7D for ; Tue, 24 Nov 2020 17:11:37 +0000 (UTC) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1A21F20715 for ; Tue, 24 Nov 2020 17:11:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=lists.cip-project.org header.i=@lists.cip-project.org header.b="C2Ea1KnI" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1A21F20715 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bp.renesas.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=bounce+64572+5849+4520388+8129055@lists.cip-project.org X-Received: by 127.0.0.2 with SMTP id HGuQYY4521723xiGOnDQgjdi; Tue, 24 Nov 2020 09:11:36 -0800 X-Received: from relmlie6.idc.renesas.com (relmlie6.idc.renesas.com []) by mx.groups.io with SMTP id smtpd.web11.15.1606237784446827976 for ; Tue, 24 Nov 2020 09:09:51 -0800 X-IronPort-AV: E=Sophos;i="5.78,366,1599490800"; d="scan'208";a="63522786" X-Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 25 Nov 2020 02:09:51 +0900 X-Received: from localhost.localdomain (unknown [172.29.53.254]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id DEECC40ABFEE; Wed, 25 Nov 2020 02:09:49 +0900 (JST) From: Biju Das To: cip-dev@lists.cip-project.org, Nobuhiro Iwamatsu , Pavel Machek Cc: Chris Paterson , Biju Das , Prabhakar Mahadev Lad Subject: [cip-dev] [PATCH 4.4.y-cip 9/9] ARM: dts: r8a7742-iwg21d-q7: Enable HSUSB, USB2.0 and xHCI Date: Tue, 24 Nov 2020 17:09:32 +0000 Message-Id: <20201124170932.13588-10-biju.das.jz@bp.renesas.com> In-Reply-To: <20201124170932.13588-1-biju.das.jz@bp.renesas.com> References: <20201124170932.13588-1-biju.das.jz@bp.renesas.com> Precedence: Bulk List-Unsubscribe: Sender: cip-dev@lists.cip-project.org List-Id: Mailing-List: list cip-dev@lists.cip-project.org; contact cip-dev+owner@lists.cip-project.org Reply-To: cip-dev@lists.cip-project.org X-Gm-Message-State: FknaZFw4fcaaKzkpRXdvoWC8x4520388AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.cip-project.org; q=dns/txt; s=20140610; t=1606237896; bh=bF1P9YnRLbQ/S91X6vXvRSCnABsAKnu1BYiY7slwh/I=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=C2Ea1KnIik168yRf37OZYJsWiV0xEz49zCjFQiKeiZt239WfK1ef57D4EWj7ogqp9sY cdBIUFePWMw+HHFE09MtemTjhaqeldZiLvU43V79yrFrVPnIXiV0avidX6WueMXZU6ye3 NtrAUFAp1S5KxyORjcgkGzR+iRJTH1/N+GI= From: Lad Prabhakar commit eb302bb9c7ab9bbf8358b97b5f8b1c363af48239 upstream. Enable support for HSUSB, USB2.0 and xHCI on iWave RZ/G1H carrier board. Signed-off-by: Lad Prabhakar Reviewed-by: Marian-Cristian Rotariu Reviewed-by: Biju Das Link: https://lore.kernel.org/r/1595005225-11519-3-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com Signed-off-by: Geert Uytterhoeven [biju: sorted the nodes as per mainline] Signed-off-by: Biju Das --- arch/arm/boot/dts/r8a7742-iwg21d-q7.dts | 42 +++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/arch/arm/boot/dts/r8a7742-iwg21d-q7.dts b/arch/arm/boot/dts/r8a7742-iwg21d-q7.dts index 4adcf97ae7c4..958edef2004c 100644 --- a/arch/arm/boot/dts/r8a7742-iwg21d-q7.dts +++ b/arch/arm/boot/dts/r8a7742-iwg21d-q7.dts @@ -150,6 +150,12 @@ }; }; +&hsusb { + pinctrl-0 = <&usb0_pins>; + pinctrl-names = "default"; + status = "okay"; +}; + &msiof0 { pinctrl-0 = <&msiof0_pins>; pinctrl-names = "default"; @@ -176,6 +182,24 @@ }; }; +&pci0 { + pinctrl-0 = <&usb0_pins>; + pinctrl-names = "default"; + /* Disable hsusb to enable USB2.0 host mode support on J2 */ + /* status = "okay"; */ +}; + +&pci1 { + pinctrl-0 = <&usb1_pins>; + pinctrl-names = "default"; + status = "okay"; +}; + +&pci2 { + /* Disable xhci to enable USB2.0 host mode support on J23 bottom port */ + /* status = "okay"; */ +}; + &pcie_bus_clk { clock-frequency = <100000000>; }; @@ -224,6 +248,16 @@ groups = "ssi34_ctrl", "ssi3_data", "ssi4_data"; function = "ssi"; }; + + usb0_pins: usb0 { + groups = "usb0"; + function = "usb0"; + }; + + usb1_pins: usb1 { + groups = "usb1_pwen"; + function = "usb1"; + }; }; &rcar_sound { @@ -268,3 +302,11 @@ &ssi4 { shared-pin; }; + +&usbphy { + status = "okay"; +}; + +&xhci { + status = "okay"; +};