From patchwork Wed Nov 19 16:21:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suriyan Ramasami X-Patchwork-Id: 412453 X-Patchwork-Delegate: promsoft@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 047AB14010B for ; Thu, 20 Nov 2014 03:21:59 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B47354B63A; Wed, 19 Nov 2014 17:21:54 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oqIdZSeEAW9y; Wed, 19 Nov 2014 17:21:54 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3A5914B61F; Wed, 19 Nov 2014 17:21:54 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7D1BE4B624 for ; Wed, 19 Nov 2014 17:21:45 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IXY8o55mL84f for ; Wed, 19 Nov 2014 17:21:44 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-pd0-f177.google.com (mail-pd0-f177.google.com [209.85.192.177]) by theia.denx.de (Postfix) with ESMTPS id 3F9F94B60F for ; Wed, 19 Nov 2014 17:21:40 +0100 (CET) Received: by mail-pd0-f177.google.com with SMTP id ft15so1130773pdb.36 for ; Wed, 19 Nov 2014 08:21:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=VhHwzy+0+l8cih2cMXayZ3CQEVDDCvv5sEj1Or8Ak6c=; b=lM1g6P7ymSnsIh51Iey5ZlAznj+zSrxxwdKl/KzLIowUjZbyfSdpHqhqYlf3k3xaC5 FiZWUyBP4U207ngURhiJ5d2K7f7hfScOu7O8UtCH6pLSxgoNpklM+P937l+HJ7qtJPgq jA39XnWEVn/FcpFPuAZfis4ZCXjzKLk+DojpxPfd6bpkBpFZkhcvvU3DOQ2uss+PR3Z2 fZxqDn+fsBIOjWHCfPZ77rCgDflkLPPfkFNklu+QhpSt8dVCR5xGdza7GcZkSaTrkePm stkgixrpFQvRJYcBcJobd8fQ7o7O3EbGeQjC0MP9kJprXcVYEl8GtkiSoJ5HdxlAZBHb X6CQ== X-Received: by 10.70.5.130 with SMTP id s2mr48354224pds.17.1416414097059; Wed, 19 Nov 2014 08:21:37 -0800 (PST) Received: from Stealth.localdomain ([73.170.223.86]) by mx.google.com with ESMTPSA id m5sm2221823pdi.24.2014.11.19.08.21.35 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Nov 2014 08:21:36 -0800 (PST) From: Suriyan Ramasami To: Przemyslaw Marczak Date: Wed, 19 Nov 2014 08:21:29 -0800 Message-Id: <1416414090-4058-1-git-send-email-suriyan.r@gmail.com> X-Mailer: git-send-email 1.8.3.1 Cc: Suriyan Ramasami , u-boot@lists.denx.de Subject: [U-Boot] [PATCH v1 1/2] odroid: Update README with USB host information X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.13 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Add information wrt the USB host side of things for the Odroid-U2/U3 and the Odroid-X/X2 Signed-off-by: Suriyan Ramasami --- Changes in v1: - Add USB host notes for the Odroid doc/README.odroid | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/doc/README.odroid b/doc/README.odroid index 528bb95..0eaf3ff 100644 --- a/doc/README.odroid +++ b/doc/README.odroid @@ -141,3 +141,51 @@ And the boot sequence is: - boot_fit - if "Image.itb" exists - boot_zimg - if "zImage" exists - boot_uimg - if "uImage" exists + +11. USB host support +==================== +The Odroid-X/X2 have the below schematics wrt USB: + +Exynos USB_HOST1 -> USB3503 HUB ----> LAN9514 USB HUB -----> LAN9514 Ethernet + | | + | +-------Host1---------> USB port + | | + | +-------Host2---------> USB port + | | + | +-------Host3---------> USB port + | | + | +-------Host4---------> USB port + | + +-------------------------------------> USB port + | + +-------------------------------------> USB port + +The Odroid-U2/U3 have the below schematics wrt USB: + +Exynos HSIC1 -----------------------------------------------> LAN9514 Ethernet + +Exynos HSIC2 -----> USB3503A HUB ---------------Host1---------> USB port + | + +-----------------------Host2---------> USB port + | + +-----------------------HOst3---------> USB port (U3) + +The HSICs are used in the case of the Odroid-Us and the USB Host in the SoC +is used in the case of the Odroid-Xs. + +In drivers/usb/host/ehci-exynos.c, function names starting with exysno4412* +have been added to initialize the HSICs and the PHYs. + +In board/samsung/odroid/odroid.c, function board_usb_init() adds code to +initialize the USB3503 hub. +The initializing of the USB3503 hub is as defined in the USB3503A spec sheet. +Please refer to Figure 4.1 in the Datasheet. +a) Set the INT_N (X30) low (Odroid-Us) or high (Odroid-Xs). This is so that the +correct REFCLK frequency is selected. 24MHz for Odroid Us and 26MHz for Odroid +Xs. +b) Disconnect the HUB (Set HUB_CONNECT (X34) to 0) +c) Reset the HUB (Set RESET_N (X35) to 0 and then to 1) +d) HUB waits for REF_CLK (which we have set appropriately) +e) Timeout waiting for HUB configuration stage +f) Connect the HUB (Set HUB_CONNECT (X34) to 1) +g) Power recycle the LAN9730 which is connected to BUCK8 (Odroid Us)