From patchwork Mon May 11 07:58:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wang X-Patchwork-Id: 1181 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 406D83F9E5 for ; Mon, 11 May 2020 09:58:38 +0200 (CEST) Received: by mail-pg1-f200.google.com with SMTP id 5sf7170761pgb.0 for ; Mon, 11 May 2020 00:58:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1589183917; cv=pass; d=google.com; s=arc-20160816; b=MRvSRIOTNa5oBSJosWHmw7QOUpDORnnb1zhFJ3B6OTFh5dfr/VT1kKKx96l+1Rldcj TexzDJUCz2x9P3YpA7JTs1v0LU54gbjJiv+ETpV2HEaxC0MtOD0bPHybwvGC0LsDf+Zf Bfj52R3ckk0VkvZA7n5CkkcLQewSRkqGKFOV9uTt0Dc/xugwRaA2DOb8oziEvqaKQ8DM vJ/jsfmR57sRYs7nKiXbT+nz9Q17hXWlPaTGeDd/BW9Y4iidWBqEQJLpf/Hi3h11vwDq 75quEQO4eSe512RlyBoim2CdYw3bbcTd+JP7/pt0JEXGbLRp2ggSolh+FQ1G+IxukWSL zqXQ== 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=z/PbltyGemmbHQ0yd5ec00KPyRjZ3OmpZBpRSWY/QpQWl4wgFam3/g1QE8TKy34V0m bwF3jjdpj1OB2JS4hidcYigYgp/KArvk2VEWJ6vweY2dhU7+VDG4cfGm5VRaIsMdHvzL w1SJ/S3QunqcUO12JJL9DMrsA3O0CM266NSQhQtYhADMwg8jq/iNFATksmEGu5tGnUMi ovIp6u/KFqOrIoVdEsbAEOrcEAkC7Fs6PTurefNzQyjHqcqlkMb13kFoHep+uiOjql8j bRiPzgjhFr9XdDX7BRINlsFm1mg9GSD1pQQqnH7CGw2m0xhojZO2cYupstGK8mZq0LBj M5ew== ARC-Authentication-Results: i=2; mx.google.com; spf=pass (google.com: domain of frank.wang@rock-chips.com designates 211.157.147.132 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=QChBML0P1xLNQk67qhFe1L7LD38BR5ZFiG4ABhfN034cJmy2wMlyfOT63liaDsuQ/h Hzvf6gs0sVFDuS936y8FSudSlwMTquZcPSwq7fcV/Y6CnftJkhI+F5za90hYiRPsbW23 /AVH3dA9MnQXqxDMr5vcvMCuqAMQq1HZwp+/M= 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=rqz+5Gee1/ZJjHpwRZWBfuVgAqf+JApNChC/4ijvC64gT0J8kcFbS7XzDbTgiPnJpF kCv0EmPXaFt9lJ/kVHf+vhEWq6vcn2AxEjce0nfBRNYa5Dc4dniYJT4PL+UX+VninV2e Ga+Xr47Rmb/l2/m7aps2jO6mKXxu7PHZ8IwFIKhcG5vqia6OcS0ytLOaINll/OSTjuFy PZxbnTs2ipNzcWo/uOhpgl6PS/BZ/8zyCWdmrksIdgHwsILbojcqxbzhBi2DvOwcrz5o KsM6pr+9MPKYWbsZdcb57qhJ0Kr2gzALsg/LTNpVdNwXxpsUI4szXO62D1agloS7nyX6 qrdg== Sender: linux-amarula@amarulasolutions.com X-Gm-Message-State: AGi0PuappiFfFeZL4uP2p3rHAs6ngjCkE4gwELbW20SnnXhQw7eEnSIA j53VPtxBF/PXe6C4yJk4+OsHYoiR X-Google-Smtp-Source: APiQypISDLuKeIp7FX2N6dJOBX+Z5GKbjDP3VB/RN0/OKahUDI7wxZIv5AK1M9muHfTGSU8AvRL4Fg== X-Received: by 2002:a17:902:b711:: with SMTP id d17mr14270443pls.333.1589183917037; Mon, 11 May 2020 00:58:37 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:d68d:: with SMTP id v13ls4666539ply.2.gmail; Mon, 11 May 2020 00:58:36 -0700 (PDT) X-Received: by 2002:a17:902:bd81:: with SMTP id q1mr14157448pls.46.1589183916412; Mon, 11 May 2020 00:58:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589183916; cv=none; d=google.com; s=arc-20160816; b=mk49HlKulUgIyRaH73xTcaYOhyBPv0TnQrOZZUa8u9kYUdtGO79+pbAl9e+0N22WJ8 NyNUqlJ8rfxQMqjgCQQhg1HfdZuhNHYEfK/h4vXr0Gr+YIbCBtt06wCIEXVYkyquyDGn EA+miiyn07tEdXFiuE8M6+7cmqy7dji0e39wYTBCGIddovi3ChlInl4jVHU376wepo+t TKSDBR8d67PPzwfhdIh8vt0KrET5273hfnVyONEOiqfFEadNWOshWsemNhDvcl++Oz9R hA8f6S49OaOGsRE3zOQBL25hvlj/4aKs45KGkr1KQPchn6L/fwiNAaWgkC0SkFbOZD7A 0cgw== 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=UpqrNmU2krg5l/bN6bh1t0bIPBL1Dxl63IOjXvhcOBJnE6j7gULf4MiGX6NsRWXUb7 QxegFpokCMUn6EN/bV6qo5nHBo0gCcrWwqxNjNgGpCnnURrUvmc5ySrBR6fFXbrOraUK E4yfCx9K09Ap+6f8c64B9JB/uatNcokFf6QtfchK2xdYIgXo4WvZllagk4EPrLvJL/KL XhbZ1GGFA96dV+rI2Ka27JiioAe4HIAwv9Unp73TFAiRYFZ0CQczVJlHgOk6R65IEdI9 DbmiIh1LOMCGvu+SQFOhIbkHd3I7//P4nsIyQWB/rEx2Vs1iVl4Wov2xdmXcji9IA4ac Rp0Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of frank.wang@rock-chips.com designates 211.157.147.132 as permitted sender) smtp.mailfrom=frank.wang@rock-chips.com Received: from lucky1.263xmail.com (lucky1.263xmail.com. [211.157.147.132]) by mx.google.com with ESMTPS id w12si7101463pgr.97.2020.05.11.00.58.36 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 May 2020 00:58:36 -0700 (PDT) Received-SPF: pass (google.com: domain of frank.wang@rock-chips.com designates 211.157.147.132 as permitted sender) client-ip=211.157.147.132; Received: from localhost (unknown [192.168.167.13]) by lucky1.263xmail.com (Postfix) with ESMTP id DFCB0CD5AE; Mon, 11 May 2020 15:58:34 +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 P7429T140153204791040S1589183912455749_; Mon, 11 May 2020 15:58:35 +0800 (CST) X-IP-DOMAINF: 1 X-UNIQUE-TAG: <6db34b28beb8ddaa1a30bb965a6d8750> 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 v4 16/16] roc-rk3399-pc: Enable USB3.0 Host Date: Mon, 11 May 2020 15:58:30 +0800 Message-Id: <20200511075830.26754-2-frank.wang@rock-chips.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200511075830.26754-1-frank.wang@rock-chips.com> References: <20200511075330.26462-1-frank.wang@rock-chips.com> <20200511075830.26754-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.132 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 --- 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