From patchwork Sat Nov 26 14:56:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9448355 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 652346071B for ; Sat, 26 Nov 2016 14:58:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5501E2624C for ; Sat, 26 Nov 2016 14:58:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 49E5226C2F; Sat, 26 Nov 2016 14:58:07 +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 147502624C for ; Sat, 26 Nov 2016 14:58:06 +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 1cAeQR-0000mi-Sq; Sat, 26 Nov 2016 14:57:59 +0000 Received: from mail-wj0-x242.google.com ([2a00:1450:400c:c01::242]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cAePs-0000fS-U8; Sat, 26 Nov 2016 14:57:27 +0000 Received: by mail-wj0-x242.google.com with SMTP id o2so4861270wje.2; Sat, 26 Nov 2016 06:57:04 -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=wcoSjQ2oQbOGTfmjLj8UqD+Yhn6MWVVRZqz9fE6T7oc=; b=oBxTJiMNfLg3Sk8cRfqlUKpfhbpLD7BM7ORe2ZqM112ImmpwSy++TmFcz3uPDt9xfS 7PmJzdbMV2RQGNyDTSTJ0jeQKh4hOedDGyEXyNUMO1VZXswQJpL//qtXKo89Gus6cFTP DxpGCDsnijVWZsxpewqDe6N7ZUsfxT0BZE+yleqTeIdCBOd0/fAFELzIApxXuH8Wdb4E cfcFFRv6LT1JKnGoYf1/s5N4jpcedLhL7UN/kamXfKd0wFfKCoJULfPoW/BY7IbuRUT0 YNiEHyZdwwInEAV1tORaybMnJa93O3mDdq5F/FtFVU0C7rK0MO9GpUAg1F1/5N29UCDR m5hg== 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=wcoSjQ2oQbOGTfmjLj8UqD+Yhn6MWVVRZqz9fE6T7oc=; b=A8reFrnm+6NTUoc3/n4oZ8JyyFGtqEODpRzgTNmEd3ai0Q8z//flRXQ48bRyXE0XM7 8zeW+DL8nn8henXsPpKPDAXl6/ZYnFIHsav4RDuxa+iCkxku3GIHlieGpCsGC9+6PkVP qhir5Bh9+g0HwgKacXJsQBY8BwRBl5a39EEWxkmo0P1trBnfzpM32Puy+wZxX8+LERg9 g4YP54hfHU4uTLkBohwZ2U7S3dcSA3eQ1ITfas2uRhvgw7mRzSnvii16sxZu6OVrOY8k kLq83HUZq8fRHKUQu1dtjU/2nAD14eoIvmZzS5qGCfocdPueU+KwD/YfqR/hvqyGLRR1 D67g== X-Gm-Message-State: AKaTC02S1X1gFO0b7X0hZ16a6NB8MMzNsjMT/LqWzPHoo7n0c2Rnma9R4FdV29ElFFVI/Q== X-Received: by 10.194.171.200 with SMTP id aw8mr11447862wjc.79.1480172222726; Sat, 26 Nov 2016 06:57:02 -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.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 26 Nov 2016 06:57:02 -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 4/5] ARM64: dts: meson-gxm: add GXM specific USB configuration Date: Sat, 26 Nov 2016 15:56:34 +0100 Message-Id: <20161126145635.24488-5-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_065725_307041_B6EB7392 X-CRM114-Status: UNSURE ( 8.03 ) X-CRM114-Notice: Please train this message. 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 The USB configuration on GXM is slightly different than on GXL. On GXM the dwc2 controller is limited (via GHWCFG2_OP_MODE_MASK) to "device mode". The dwc3 controller's internal hub has 3 ports (instead of 2 on GXL) enabled. It's hardware configuration limits it (via DWC3_GHWPARAMS0) to host mode only. Signed-off-by: Martin Blumenstingl --- arch/arm64/boot/dts/amlogic/meson-gxm.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxm.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxm.dtsi index 2b1d276e..0a6b224 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxm.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxm.dtsi @@ -121,3 +121,13 @@ clock-indices = <0 1>; clock-output-names = "vbig", "vlittle"; }; + +&usb3_phy0 { + /* dwc3 on GXM enables 3 USB ports on the internal hub */ + phys = <&usb2_phys 0>, <&usb2_phys 1>, <&usb2_phys 2>; +}; + +&usb1 { + /* the dwc2 hardware configuration on GXM only allows device mode */ + dr_mode = "device"; +};