From patchwork Tue May 26 03:35:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wang X-Patchwork-Id: 1241 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 D4C143F06D for ; Tue, 26 May 2020 05:35:23 +0200 (CEST) Received: by mail-pg1-f200.google.com with SMTP id k124sf4303331pgc.0 for ; Mon, 25 May 2020 20:35:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1590464122; cv=pass; d=google.com; s=arc-20160816; b=m2Et2cV2U685DlVo8B0BXiOaas238Qkelj4G5iqPEDx+9kdy9ZFhxtlhiMUEfkVFgx 37sGKV2j1pE8QmRlBbdGtvXM3gNzxGJ1AboPFlKamylnPoRSfFEU2aZGfS/GPuPBWu3O N8fR9GgEEcrPqLem8PIYW+9VR36/VDSM/xQEBTBaBu5iayeNnHzLKoaqr9uuLeBpYGdW 2SNTsPzTZvbdhoLcevVSawJkPMwomtesvap43ANF0OV49K/zmN5Yy/i0iVJDUKYJPb0y +8ko7GpLI1pKaWc617mUjI5ebgtvFIoWcMLJBxwFz8qMOcwnc8gPliGhKdKLDS97teo4 /gxA== 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=EXkkLqQeMjGHTUXwPRfHCBB76rjkzBgsb2dTwvAK/Cg=; b=ANWy71nEMWL5e/dH4SzQRhvKuwleVgjpC7zIKYf9oSqNUIgscxRJKgkfnRg6bgqiPK NoCd5gJIZ1BbVMy6ZVQ3rujjT60ztIsb+lao/adBlhfSY41ont+xVhNOzk+p2BM7Jivj GbXWwBf4D+b9IhdLhvHE5+USzuLfvE9phMAEfVZ4Psgx8zrAHe5bdWIKvxR7pZSZ4hOc SpCGiuKeaIK5ejFhi5NjGdI79lpfu3/J7ujGaf4r8pwoYEvcJzhdwD3vSLGnwDLrjD5I sK4UxPBPBJrN0gVnX99Hhao6S1fJWUj/JfIiT2N2K2TI/DBwyS8WYoRSeRyqmkIUF0Ja f/Fw== ARC-Authentication-Results: i=2; mx.google.com; spf=pass (google.com: domain of frank.wang@rock-chips.com designates 211.157.147.133 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=EXkkLqQeMjGHTUXwPRfHCBB76rjkzBgsb2dTwvAK/Cg=; b=RThQgNhW7r46TNUi+0YDMcMsr77VgerO1RmGXZaecpSmpGPSFnMqz1xgumyFKRd9SY L5OaCCfAJae0I/4oR40FutaJsoQFJDtDhX2B0PU2lrVzsxLwZhGT/8u1sNHpqEuQO2sG L7Nkzz0mUGvdNl8bZZTtgImATdJsKAPkhOIFA= 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=EXkkLqQeMjGHTUXwPRfHCBB76rjkzBgsb2dTwvAK/Cg=; b=EgZpefyUcQmY3lWXYY7kHOMkTQSEljX9K4J5D2BE1YS4J/7yG+MzI9GE4PXU0hjXpu q7Dr22l+Rh9Gl2JcbujzjWL618PJM8q0x48nA1F/YKxjYEcJGtdTkoFcA/g1XRmjsOVE YpLhwLHbNCCXR4osf4Iy5SdWsvG/YFgJ+VCEeabgALb4AYvk2ShGGWebKcHTAhP30chn QcOQqVICDWFSESqT8xiR+o9wFrmlH+B2izxlcFzGoh9WjUBThlOPBdl0g8lOD7JMQmUs +KIMjMpofgL5So2ufk3TFfNMpnurTpf/bd9c3yGJ5iFfm0XN3TLEBdcLZwxZt5PuvpYo E3iQ== Sender: linux-amarula@amarulasolutions.com X-Gm-Message-State: AOAM531tbKwN8Nuzyv0EDgZvrOf0Bg1KjOXVgpwkImRcBwD87UV3zPuV 3Vn1B58VAX/mJV9ZRGng6DVNgdNA X-Google-Smtp-Source: ABdhPJx4rhnSUwQGv7j1mgPc6jEOWTgqYPql+q2IIBJSOWnplySkfjtNONBs3Sx2CnmjpFTHOpUSGw== X-Received: by 2002:a17:90a:21cf:: with SMTP id q73mr24146132pjc.230.1590464122614; Mon, 25 May 2020 20:35:22 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:a605:: with SMTP id u5ls1185417plq.9.gmail; Mon, 25 May 2020 20:35:22 -0700 (PDT) X-Received: by 2002:a17:902:7045:: with SMTP id h5mr31194088plt.108.1590464122157; Mon, 25 May 2020 20:35:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590464122; cv=none; d=google.com; s=arc-20160816; b=wHwSiag6n5P9SEUAjjheTo7M4DDoKAuqMHE8ZbCNSn17AdvoacbsohpWBBD2/qKowK fCEDLKqW4qjoz3f9+NQjiPJxfF/YQWEF7nCsO1ohlHrO5ljbHS20N4+16hiwy9Eh3iCI uOFgK1eRkW6CxE8r7GaTKk5sKLJjGNcbGC0usL2e6p0yBSgqnflSYRRzwe/yc4DFCBC/ A+IIw+kw31/wvDP7czcKxuuuZjZboFgKnULIB3XO/RO3JQ3MN4KBAoliixTKJA28RDYD qFdS1AsGDVgYgM/P5bC7e9Q9WTSe52G1E1To+vvr6+/WGodxR3G51iKDTP4cy61eJqsj qLXg== 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=lpaFrIMayRB4Y5t58qHx+8oJXUd9J6dfGxe71wR5wtE=; b=X1stuL8I/SfYo2TgwISO05Vz2m/nrSLn0AZrPwzYVQzN7m3w44LSUNBtFGoZmjprjC 4it5/vUku7GuumMLTsWb2bce5jw0pgOT+plaJfNn3hF9UesRnYu5+Ig1DJMqc7QqCMV9 nhOShg2dVT8vJmmJe551Uvbw5YoGjxYLpiLDnwMtXR/3FHc7GbSKSW+1Zb7iA/JbRBsV e/JvyJw5SZgMzQ5l+BBTRPDYVOnJEKabBIoEL68wIudntHmn7wZSiIaA05ChP9gsDN6S ona0EOG1MlrYOG1WGMicSAhZDbWPGA2ZJFqK1KzVVyPFusYbDiDbTNpiVsv42tpHXDsP 2CgA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of frank.wang@rock-chips.com designates 211.157.147.133 as permitted sender) smtp.mailfrom=frank.wang@rock-chips.com Received: from lucky1.263xmail.com (lucky1.263xmail.com. [211.157.147.133]) by mx.google.com with ESMTPS id t17si15728602ply.304.2020.05.25.20.35.21 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 May 2020 20:35:22 -0700 (PDT) Received-SPF: pass (google.com: domain of frank.wang@rock-chips.com designates 211.157.147.133 as permitted sender) client-ip=211.157.147.133; Received: from localhost (unknown [192.168.167.32]) by lucky1.263xmail.com (Postfix) with ESMTP id 850BEB7721; Tue, 26 May 2020 11:35:20 +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 P3328T139696428545792S1590464117472063_; Tue, 26 May 2020 11:35:19 +0800 (CST) X-IP-DOMAINF: 1 X-UNIQUE-TAG: 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 v6 16/16] roc-rk3399-pc: Enable USB3.0 Host Date: Tue, 26 May 2020 11:35:16 +0800 Message-Id: <20200526033516.20325-2-frank.wang@rock-chips.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200526033516.20325-1-frank.wang@rock-chips.com> References: <20200526033220.20047-1-frank.wang@rock-chips.com> <20200526033516.20325-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.133 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