From patchwork Wed May 13 07:18:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wang X-Patchwork-Id: 1199 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-il1-f197.google.com (mail-il1-f197.google.com [209.85.166.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 268233F066 for ; Wed, 13 May 2020 09:18:43 +0200 (CEST) Received: by mail-il1-f197.google.com with SMTP id t10sf15526428ilf.12 for ; Wed, 13 May 2020 00:18:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1589354321; cv=pass; d=google.com; s=arc-20160816; b=sh29oPtMCm3RyMthK/2oLOcwqKww2Fk9JPu0AWs5Y8ZHI3OBbc5BA8M3vTP7zzoA0e IhXJ0w/fPMSPKdJJ1TnfACsk1aezxUzZSe+sAmgBWzr8xwbKrTz1UFn4YNpdghKTRaOn 2ZVwmJN21dRiXkoHl4Re00tFxlJ9Z31zoE403MTr3vUGl1MyokfGGOAjlJA5ZLGUFOQQ m1KjXl6dg/hXVC/t89RVbmWO9HLp6bW7wUOAUbtiDfmdH78hpAin1hAtKxnbeWUxPVvR 69MP4aVMy7jfDJxtW4skNqSQndZJxzyihvX2SISzpXXjRYJ6ZixZ7k2tK0NCM5naVBf2 N/nQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:references:in-reply-to:message-id:date :subject:cc:to:from:mime-version:sender:dkim-signature; bh=OVZpmL9bTXg4O43fb/EQrtsw3smLAOlQV7MiPBXDBlk=; b=Ucx+lp1LdKZlLRV8SqtxIiReKcQ55iCditXiFTY4ajrN5yliyXZrPvy4fCLaYK8ymh r58ciVBdEPBLYWsVEkjXLS3lWphajSLLF1D5fLH94e4izeHTzNr04XY+AStBXqvpCtrP NZqmmoqEwJQQ1OogX/zkAr/dAkN5wFKGV8owa+WF+rI+6FlriA2quSJ0cMSk4YK+K4k1 TPmzbaOiz60g7N6mLQ4Aw01QhApgLCTWBWA+4rHdf7csuwzU67h3EfH7Bm1FHB7HJoqQ ysDjkbNHMl2AxGi1z/0RXGhlfWv7jehVYNVsPuCGWeTb2ZXSNtnT4PJFApGBC6NGjgN5 bL4g== ARC-Authentication-Results: i=2; mx.google.com; spf=pass (google.com: domain of frank.wang@rock-chips.com designates 211.157.147.134 as permitted sender) smtp.mailfrom=frank.wang@rock-chips.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=sender:mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=OVZpmL9bTXg4O43fb/EQrtsw3smLAOlQV7MiPBXDBlk=; b=BkIB5iqF56cUIHGVvylxb5vYbQbgW/5q6LM1myIgZLi1wpNwRgYcyl+oIsj2bVpunx Ij435CkVwgC4p307V7/3xK1T6tUfqSCwvgAHAw0udrJI8tBvpmQvaDPxhXfqUz7ZuwT6 WLxPqqQQ/9TAql4kYM4mSVkGDoAN6cuUpWWpE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:from:to:cc:subject:date :message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=OVZpmL9bTXg4O43fb/EQrtsw3smLAOlQV7MiPBXDBlk=; b=GX2DSGNhJqnkJPWeW0FvPseMcDaItBZUmpEmr/o299JYGJJAf3R/aSTocBZYxsVLQi uQ+esCzrD21cJmWiKrA20Iqss1TnwAophsfOk1jHhG81RYEs0B+iRsECmZYv2mzZGnso 46TvAaHGbdJclfALl+qLUSr+Kx5I2faoxxqVE1/WfvnvNyh66SFQQKbN0m/2yhDrq1gh +A+9uHaAaqKoOlLFdTKVRBFI3HTscq9fVCJZIsUmmTwWCsf+0PIzyjWVZxcZUqbsytY3 LSIqyXGHdIxZN7Tj02VUlkU32obV9LERQyFwbeS3GUcQEzOellN3BzVg/X3koI6wKwXn kwaQ== Sender: linux-amarula@amarulasolutions.com X-Gm-Message-State: AOAM530S6b/bklRGi6EZ0D6BvxzEG3vBS8fKxnD9Wl9pa+AymFNS5M/f 31/3xCSYdsBhlQvlrSZ9N8xjgMR6 X-Google-Smtp-Source: ABdhPJyvsXaFOymMLij4Ej9S93A1FzAW87wmw8zhv7vIL5sPPvK3RUrLbUViaaTMFN2vfHvtR/dh2A== X-Received: by 2002:a92:2c03:: with SMTP id t3mr267807ile.130.1589354321397; Wed, 13 May 2020 00:18:41 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a92:1b96:: with SMTP id f22ls338925ill.3.gmail; Wed, 13 May 2020 00:18:40 -0700 (PDT) X-Received: by 2002:a05:6e02:4c4:: with SMTP id f4mr20834906ils.278.1589354320775; Wed, 13 May 2020 00:18:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589354320; cv=none; d=google.com; s=arc-20160816; b=sVCopQ7YQyuLWdgoFZ/snvJDjRGc5ywa6iIViS5fWXQtbBBZMfUdKF8s5neFBhf5gT FMzc8WHQQiRMdNu0Mkki38pbquRKZcekd++Pg/OlH+8VRtlNMPtrp1ghwWLvj5FWwF0x 5LlPGf6TwKo8x5aHOpWQ0ZjQa2+rtmMhRElYSEiEVTUezzyVnrOP+8QoagZS2GHh5rVI hPh7zfeCdgiqfim5PQ+S4hlLWB4cquUin/WxMjjL6rv/bpnPVQv1z6OCNEsBh0EsOwio 97U3Y91yrkqpPHrwRt0cF2DJW8VwmYpj1LdIcfMOw27nek/pPMBV9s6caA9EzQ3Ufzki yiaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from; bh=jI3eKSEQV0u6U2mwNLoq6qDd3UCMEw1DJpn2gbTzb7U=; b=ta/PgHvvQQlM4bQPQz95IuYh9G5u1cDnCQd6TWn/k/2memOMmgw+hDyk2aum3O4l4y quDyd/btPcqevS+efJlXPe6Ma0WLzexnsg3eEaxevnmKQ4zczgQmV/zRJkMlsKPfC4Y5 iR/FeLb71pCTtwpePNJs4MJzsm43h7KsFx1/L6oosnh396YKeo/+CK0Hq4InQ+ra2NJm OCXEW4ichT0fsxM0YWK1aDfQzA0GMUsRfzIePL3TrW5H+vV1dW84iS5X/ClNwWNSuTQ4 0+00TD9JlLnKS1VJ5eJp9NRkvDFnKFkv5xedbS3Sw+yF7LRox+M3WAUFw7bZjbPy+j+6 hHBA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of frank.wang@rock-chips.com designates 211.157.147.134 as permitted sender) smtp.mailfrom=frank.wang@rock-chips.com Received: from lucky1.263xmail.com (lucky1.263xmail.com. [211.157.147.134]) by mx.google.com with ESMTPS id k10si9861944iow.93.2020.05.13.00.18.40 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 May 2020 00:18:40 -0700 (PDT) Received-SPF: pass (google.com: domain of frank.wang@rock-chips.com designates 211.157.147.134 as permitted sender) client-ip=211.157.147.134; Received: from localhost (unknown [192.168.167.209]) by lucky1.263xmail.com (Postfix) with ESMTP id 4F244A50C8; Wed, 13 May 2020 15:18:06 +0800 (CST) X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-ADDR-CHECKED4: 1 X-ANTISPAM-LEVEL: 2 X-ABS-CHECKED: 0 Received: from localhost.localdomain (unknown [58.22.7.114]) by smtp.263.net (postfix) whith ESMTP id P21665T139938758653696S1589354284745427_; Wed, 13 May 2020 15:18:06 +0800 (CST) X-IP-DOMAINF: 1 X-UNIQUE-TAG: <388cc3502defd8890569081d8ad8ee2c> X-RL-SENDER: frank.wang@rock-chips.com X-SENDER: wmc@rock-chips.com X-LOGIN-NAME: frank.wang@rock-chips.com X-FST-TO: heiko@sntech.de X-SENDER-IP: 58.22.7.114 X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 X-System-Flag: 0 From: Frank Wang To: heiko@sntech.de, marex@denx.de, bmeng.cn@gmail.com, philipp.tomsich@theobroma-systems.com, klaus.goger@theobroma-systems.com, jagan@amarulasolutions.com, sjg@chromium.org, kever.yang@rock-chips.com Cc: u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, marek.belisko@gmail.com, william.wu@rock-chips.com, jianing.ren@rock-chips.com, chenjh@rock-chips.com, wmc@rock-chips.com Subject: [PATCH v5 16/16] roc-rk3399-pc: Enable USB3.0 Host Date: Wed, 13 May 2020 15:18:03 +0800 Message-Id: <20200513071803.5781-1-frank.wang@rock-chips.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200513071344.5430-1-frank.wang@rock-chips.com> References: <20200513071344.5430-1-frank.wang@rock-chips.com> X-Original-Sender: frank.wang@rock-chips.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of frank.wang@rock-chips.com designates 211.157.147.134 as permitted sender) smtp.mailfrom=frank.wang@rock-chips.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Jagan Teki Enable USB3.0 Host support for ROC-RK3399-PC boards. Tested USB3.0 SSD on Type C1 port on board. => usb start starting USB... Bus usb@fe380000: USB EHCI 1.00 Bus usb@fe3c0000: USB EHCI 1.00 Bus dwc3: usb maximum-speed not found Register 2000140 NbrPorts 2 Starting the controller USB XHCI 1.10 scanning bus usb@fe380000 for devices... 1 USB Device(s) found scanning bus usb@fe3c0000 for devices... 2 USB Device(s) found scanning bus dwc3 for devices... 6 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found => usb tree USB device tree: 1 Hub (480 Mb/s, 0mA) u-boot EHCI Host Controller 1 Hub (480 Mb/s, 0mA) | u-boot EHCI Host Controller | +-2 Hub (480 Mb/s, 100mA) USB 2.0 Hub [MTT] 1 Hub (5 Gb/s, 0mA) | U-Boot XHCI Host Controller | +-2 Hub (480 Mb/s, 0mA) | | VIA Labs, Inc. USB2.0 Hub | | | +-4 Hub (480 Mb/s, 100mA) | | USB 2.0 Hub | | | +-5 (480 Mb/s, 100mA) | VIA Technologies Inc. USB 2.0 BILLBOARD 0000000000000001 | +-3 Hub (5 Gb/s, 0mA) | VIA Labs, Inc. USB3.0 Hub | +-6 Mass Storage (5 Gb/s, 224mA) JMicron External Disk 3.0 DB12345678A2 => usb reset resetting USB... Bus usb@fe380000: USB EHCI 1.00 Bus usb@fe3c0000: USB EHCI 1.00 Bus dwc3: usb maximum-speed not found Register 2000140 NbrPorts 2 Starting the controller USB XHCI 1.10 scanning bus usb@fe380000 for devices... 1 USB Device(s) found scanning bus usb@fe3c0000 for devices... 2 USB Device(s) found scanning bus dwc3 for devices... 6 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- configs/roc-pc-mezzanine-rk3399_defconfig | 5 +++++ configs/roc-pc-rk3399_defconfig | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/configs/roc-pc-mezzanine-rk3399_defconfig b/configs/roc-pc-mezzanine-rk3399_defconfig index 0b853805f3..1f10856caa 100644 --- a/configs/roc-pc-mezzanine-rk3399_defconfig +++ b/configs/roc-pc-mezzanine-rk3399_defconfig @@ -29,6 +29,7 @@ CONFIG_ENV_IS_IN_MMC=y CONFIG_SYS_RELOC_GD_ENV_ADDR=y CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y +CONFIG_MISC=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=y @@ -39,6 +40,8 @@ CONFIG_ETH_DESIGNWARE=y CONFIG_GMAC_ROCKCHIP=y CONFIG_NVME=y CONFIG_PCI=y +CONFIG_PHY_ROCKCHIP_INNO_USB2=y +CONFIG_PHY_ROCKCHIP_TYPEC=y CONFIG_PMIC_RK8XX=y CONFIG_REGULATOR_PWM=y CONFIG_REGULATOR_RK8XX=y @@ -54,6 +57,8 @@ CONFIG_USB_XHCI_HCD=y CONFIG_USB_XHCI_DWC3=y CONFIG_USB_EHCI_HCD=y CONFIG_USB_EHCI_GENERIC=y +CONFIG_USB_DWC3=y +CONFIG_USB_DWC3_GENERIC=y CONFIG_USB_HOST_ETHER=y CONFIG_USB_ETHER_ASIX=y CONFIG_USB_ETHER_ASIX88179=y diff --git a/configs/roc-pc-rk3399_defconfig b/configs/roc-pc-rk3399_defconfig index aff690f039..76e76c160e 100644 --- a/configs/roc-pc-rk3399_defconfig +++ b/configs/roc-pc-rk3399_defconfig @@ -28,6 +28,7 @@ CONFIG_ENV_IS_IN_MMC=y CONFIG_SYS_RELOC_GD_ENV_ADDR=y CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y +CONFIG_MISC=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=y @@ -36,11 +37,14 @@ CONFIG_SPI_FLASH_WINBOND=y CONFIG_DM_ETH=y CONFIG_ETH_DESIGNWARE=y CONFIG_GMAC_ROCKCHIP=y +CONFIG_PHY_ROCKCHIP_INNO_USB2=y +CONFIG_PHY_ROCKCHIP_TYPEC=y CONFIG_PMIC_RK8XX=y CONFIG_REGULATOR_PWM=y CONFIG_REGULATOR_RK8XX=y CONFIG_PWM_ROCKCHIP=y CONFIG_RAM_RK3399_LPDDR4=y +CONFIG_DM_RESET=y CONFIG_BAUDRATE=1500000 CONFIG_DEBUG_UART_SHIFT=2 CONFIG_ROCKCHIP_SPI=y @@ -50,6 +54,8 @@ CONFIG_USB_XHCI_HCD=y CONFIG_USB_XHCI_DWC3=y CONFIG_USB_EHCI_HCD=y CONFIG_USB_EHCI_GENERIC=y +CONFIG_USB_DWC3=y +CONFIG_USB_DWC3_GENERIC=y CONFIG_USB_KEYBOARD=y CONFIG_USB_HOST_ETHER=y CONFIG_USB_ETHER_ASIX=y