From patchwork Sat Nov 26 14:56:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9448353 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B595D6071B for ; Sat, 26 Nov 2016 14:58:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A54B32624C for ; Sat, 26 Nov 2016 14:58:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9A32526C2F; Sat, 26 Nov 2016 14:58:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2AFAC2624C for ; Sat, 26 Nov 2016 14:58:05 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cAeQQ-0000mP-Oh; Sat, 26 Nov 2016 14:57:58 +0000 Received: from mail-wj0-x243.google.com ([2a00:1450:400c:c01::243]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cAePq-0000fR-HP; Sat, 26 Nov 2016 14:57:24 +0000 Received: by mail-wj0-x243.google.com with SMTP id kp2so8739430wjc.0; Sat, 26 Nov 2016 06:57:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=+7p3HkAvzhzmL2S55BmFsCs7BOd+h8ao+WGdOjIu+lo=; b=GRqaa4E4NfCuK3EwV7F+cE1KCTq6nlute3QmMCrTYRrhg5TuFMHXtoGCvS46Dg9tDD J+SoWi8lWI4GBoHHTHn25KLLTkJ6u7RPvR4NkjrzfFH+bPUFXBLCL/8OkvjUGj3LgpBN 6ATMxbDGoSAKQdl+OZ4Nc++JVy97PprG/sB5zGE48oXMS1m5L4C9blVCRpif6J2Yukyw 6Va2iIfRbptEahXX9ccRPPbmEPqvD2joJG0TuAXaM6TMG8j9WhKLcApvsFLfdb3Bld6E tSbF0iuprq3H1h3THhoySAYSkcub6BqMVjKMzKW8HKvlRur9TXTn3lHTU+7W3JfNdC2d q6yQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=+7p3HkAvzhzmL2S55BmFsCs7BOd+h8ao+WGdOjIu+lo=; b=PKuu8K3lZQNTpOktz8enOQ69xQ8OK4uctEN0Us0OIa+0DoUJkAMy6lsumOZqiaztVq 9djfV9NgJkfbDoqzPE0t56nQZ5gHKxRUmWqRj9BvoNzJ/xJh89Yt2p9gL0jyA+GX5HFo 6lZ3mlSOxo+R3SlkuNS44In5f4HnCBOGXecNJxZhLWoAPg9vCvml1IYbyXqxlvvZvqN3 brYGhpzhKAT6KbZoxrEUI7CxQxJM+vJHfuO7hYJHVAAAC+YOsfCh00EhYqqUvH4z0mAG HBSmYyLNXCdpOkC5AQvatVVKSSd8C5atI4mBxtvx8OYxe5W5KP9eGwZrM6ziu+nIg3ZP cQGA== X-Gm-Message-State: AKaTC00IsLsTyWy1kHLvn9XX10WyiY1k/Jh4BA2ZCG50feDv9SAPXbivdrqWTPJHwsiq4Q== X-Received: by 10.194.109.42 with SMTP id hp10mr11844957wjb.167.1480172221426; Sat, 26 Nov 2016 06:57:01 -0800 (PST) Received: from blackbox.darklights.net (p5DE384D0.dip0.t-ipconnect.de. [93.227.132.208]) by smtp.googlemail.com with ESMTPSA id yj10sm52654689wjb.3.2016.11.26.06.57.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 26 Nov 2016 06:57:00 -0800 (PST) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, kishon@ti.com, khilman@baylibre.com, carlo@caione.org, mark.rutland@arm.com, robh+dt@kernel.org Subject: [PATCH 3/5] arm64: dts: meson-gxl: add USB support Date: Sat, 26 Nov 2016 15:56:33 +0100 Message-Id: <20161126145635.24488-4-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161126145635.24488-1-martin.blumenstingl@googlemail.com> References: <20161126145635.24488-1-martin.blumenstingl@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161126_065722_819312_1004BBE1 X-CRM114-Status: GOOD ( 10.18 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Martin Blumenstingl , catalin.marinas@arm.com, will.deacon@arm.com, narmstrong@baylibre.com MIME-Version: 1.0 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This adds USB support the the Meson GXL SoC. On most devices only the dwc3 controller is used. It has an internal USB hub which provides two ports. The PHYs for these ports are defined through the USB3 PHY, which is ensures that all PHYs are using the same mode (because all of them are used by the same controller). Signed-off-by: Martin Blumenstingl --- arch/arm64/boot/dts/amlogic/meson-gxl.dtsi | 49 ++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi index 3af54dc..99ac900 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi @@ -44,9 +44,58 @@ #include "meson-gx.dtsi" #include #include +#include / { compatible = "amlogic,meson-gxl"; + + soc { + + usb0: usb@c9000000 { + compatible = "snps,dwc3"; + reg = <0x0 0xc9000000 0x0 0x100000>; + interrupts = ; + phys = <&usb3_phy0>; + phy-names = "usb3-phy"; + dr_mode = "host"; + maximum-speed = "high-speed"; + snps,dis_u2_susphy_quirk; + }; + + usb1: usb@c9100000 { + compatible = "snps,dwc2"; + reg = <0x0 0xc9100000 0x0 0x40000>; + interrupts = ; + clocks = <&clkc CLKID_USB>; + clock-names = "otg"; + dr_mode = "host"; + status = "disabled"; + }; + }; +}; + +&apb { + usb2_phys: phy@78000 { + compatible = "amlogic,meson-gxl-usb2-phy"; + #phy-cells = <1>; + reg = <0x0 0x78000 0x0 0x80>; + clocks = <&clkc CLKID_USB1>, <&clkc CLKID_USB1_DDR_BRIDGE>; + clock-names = "usb", "usb_ddr"; + resets = <&reset RESET_USB_OTG>; + status = "disabled"; + }; + + usb3_phy0: phy@78080 { + compatible = "amlogic,meson-gxl-usb3-phy"; + #phy-cells = <0>; + reg = <0x0 0x78080 0x0 0x20>; + interrupts = ; + + /* dwc3 on GXL enables 2 USB ports on the internal hub */ + phys = <&usb2_phys 0>, <&usb2_phys 1>; + + status = "disabled"; + }; }; ðmac {