From patchwork Thu Mar 29 13:42:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 892789 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="nbfDTp9K"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 40BmCK2mqRz9s0m for ; Fri, 30 Mar 2018 00:42:35 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 70E11C21FDE; Thu, 29 Mar 2018 13:42:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id F208BC21E3E; Thu, 29 Mar 2018 13:42:27 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 25861C21E3E; Thu, 29 Mar 2018 13:42:27 +0000 (UTC) Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by lists.denx.de (Postfix) with ESMTPS id 761F8C21C93 for ; Thu, 29 Mar 2018 13:42:26 +0000 (UTC) Received: by mail-wm0-f66.google.com with SMTP id b127so10070319wmf.5 for ; Thu, 29 Mar 2018 06:42:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=0IfBnNKVJPIUN75fle72pFkVCSz3hGkGQMAEHchHzuQ=; b=nbfDTp9KB7IOldRwFDSfscgHbH2Ilt4IXxdH2EGvuYDoJSHtzTZLmAcbVeac4hD5WJ cwjY45ioZA5AISTzS3U0Zah7pjF7kxqcaCv74IXr6Lbp8PbTLEzxM1Z9I/T5kxHVpU3z 9In3mjEPEGAzn+q7/hS+6OidFHumJNT2+VdNMwavJBm00Z+zGB2r3/GjdlwwbGs3R73W 7qL3ZxQRRSYd07b16l5qf+CTcA76pwY5j5pzp8S83d5mWPgRW+BxZIZQC+C9mI8SKaOw pKijgLXxDRfal6LOJKLqtA5EIOJQH3xVIY4w9CkVLuN1GoCAg0lAJK9s/AJV6GuCdr2/ kFcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=0IfBnNKVJPIUN75fle72pFkVCSz3hGkGQMAEHchHzuQ=; b=APSvfXCAGO9VczALzWU+jjCwkoCoqBeKK4yI46jf7lDqDSz7uaLklVKyyCXzSfZfKn Nhjjcs9Xz0IyUy4Vsxm1YnLficvevZ1pLmgBQfQgabfD+641dX8tzDOMANrJKoo4RYvl XVmk/53/EwRUwBugaNKD+/4b5LBkQp8UYIw3PIa825b3MF/LRpHQgpxgriYBZvrl4V8n bSHLWv83itzu/R56CnmWL4JmDvkFq2GANA51J87JC7NJSE44nTNL5BOyM5I0KMTq8ch7 T/OHnaokT7JAeA0pWinIfTKuNIeI+m7E3Qo1t+z0oGsrLZ39rGSX8zZA9LGBBII/s86V MNUA== X-Gm-Message-State: AElRT7HIgUQz6naCn6Zv42ZA5TGyxNe+t/mVwHmpZ5Zh2b0HWEowIVA1 oe1JbX5NqsqMtap99Tyb6EF5UKmcPDY= X-Google-Smtp-Source: AIpwx49I4WTUuOR3V2Sy3PecM0fVp1vEenh2nk7N0VfEp92NNfciSnwtNJdV/zQAdZVZ2MKCzhp99w== X-Received: by 10.28.247.11 with SMTP id v11mr2213125wmh.31.1522330945495; Thu, 29 Mar 2018 06:42:25 -0700 (PDT) Received: from bender.home ([2a01:cb1d:4ce:ea00:35c7:f264:355a:6031]) by smtp.gmail.com with ESMTPSA id w74sm1220769wmd.27.2018.03.29.06.42.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 29 Mar 2018 06:42:24 -0700 (PDT) From: Neil Armstrong To: u-boot@lists.denx.de, marex@denx.de, bmeng.cn@gmail.com Date: Thu, 29 Mar 2018 15:42:17 +0200 Message-Id: <1522330940-25062-1-git-send-email-narmstrong@baylibre.com> X-Mailer: git-send-email 2.7.4 Cc: linux-amlogic@lists.infradead.org Subject: [U-Boot] [PATCH u-boot 0/3] Add USB Support for Amlogic Meson GXL SoCs X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This patchset adds support for USB for the Amlogic Meson GXL SoCs following the work done for Linux by Martin Blumenstingl at [1] [2] [3]. The support consist of : - A port of dwc3-of-simple from Linux to U-boot - A change to support more than 2 PHYs in the DWC3 DM driver - An USB2 PHY Driver and an USB3 PHY Driver The DWC3 Controller has up to 4 PHYs connected : - 2 USB2 PHYs and an USB3 PHY for GXL SoCs - 3 USB2 PHYs and an USB3 PHY for the GXM SoC Variant This is enabled by the "usb: host: dwc3: Add support for multiple PHYs" patch. This patch is based on the "xhci-dwc3: Couple of fixes for USB3 support" serie from Vignesh R, on the u-boot-usb tree. The DWC3 Controller glue is generic enough to use the dwc3-of-simple from Linux and can be easily ported to U-Boot as a Simple-Bus with Glue-Specific clocks and Reset lines setup. The USB PHY driver supports the standard generic PHY interface and supports the power-on/off calls and set the Host mode by default. They are based on the excellent work from Martin Blumenstingl merged in linux. [1] https://lkml.kernel.org/r/20180303184700.21480-1-martin.blumenstingl@googlemail.com [2] https://lkml.kernel.org/r/20180128202245.25021-1-martin.blumenstingl@googlemail.com [3] https://lkml.kernel.org/r/20180303214309.25643-1-martin.blumenstingl@googlemail.com Neil Armstrong (3): usb: host: Add simple of glue driver for DWC3 USB Controllers integration usb: host: dwc3: Add support for multiple PHYs phy: Add Amlogic Meson USB2 & USB3 Generic PHY drivers drivers/phy/Kconfig | 8 ++ drivers/phy/Makefile | 1 + drivers/phy/meson-gxl-usb2.c | 238 +++++++++++++++++++++++++++++++++++++++++++ drivers/phy/meson-gxl-usb3.c | 201 ++++++++++++++++++++++++++++++++++++ 4 files changed, 448 insertions(+) create mode 100644 drivers/phy/meson-gxl-usb2.c create mode 100644 drivers/phy/meson-gxl-usb3.c