From patchwork Sat May 9 16:09:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1157 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 877D73F08E for ; Sat, 9 May 2020 18:10:01 +0200 (CEST) Received: by mail-pj1-f70.google.com with SMTP id x6sf12507937pjg.5 for ; Sat, 09 May 2020 09:10:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1589040600; cv=pass; d=google.com; s=arc-20160816; b=i1N8HlTXDLW7dY8fYUFBTVCrE+cygqUUfuZ0A0nAED/GcI6dZWNXkO1q0CZ+nBK322 HfDrf+LA66pZ+X3A+QqWDwNErkovahsCFeYqzPFrPPQ1roH6dlXDnXSIFS/xtzULTYO7 taKvXaHlHcmfCA6NyjRnSTE7yfuRDzQ4hPr0QOkziE9PC4RP9gftjAkvZ+1NOKvIFQY1 ejK5EcsNnZhJx6+iTKyuMVNiCz4JCpDGMhhoM1683O0ZmB463PJKH4FgWjCVVNWsTnLm 1+uOF6oKWpX9qzrTbd6Tzw78ytGg6ZXJ1Q8GjPI4WKZc0iAZemGajRnlIBs7L2Vh6tX7 s38A== 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:message-id:date:subject:cc:to:from :mime-version:dkim-signature; bh=UtqeEr+lf7ep2cNpVhZ6MljBlZ7mmqQalKaB6orZQSU=; b=twDsbK92BPt/OABGru6CRAz7HZhC+bFfCyTUS0EP3Wbbk+LBTh67k4QSPO6atux6PP IwkGz+1rGiNFlqNGLfgwRvhmsi0LYEY1uiHY+H6FOa/2navrZV7vpjMGJ+VxUARoNFEz +4JNuOW97/+Wf4JpvKrWSJ0WDzj6ufS3Hv8v+tDKXniDUdvclYwvwoeMHc5mjzcvd++R ntVkpAhZS+B+AV9nGeh4sHPIbr6PGJGQvHIrzEGKX6cojLICpjd8p5bIxELqq+TMUnZ0 rbz3YZXF+LF3rPF9SMi9rxep5pGZCVh6Cd8gATxB4fiJTdfcZjCMIL+EmNYmpI0wK+MG SWlw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="oOAM/jLn"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=mime-version:from:to:cc:subject:date:message-id:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=UtqeEr+lf7ep2cNpVhZ6MljBlZ7mmqQalKaB6orZQSU=; b=ndO0IkSzuBXiU0fOxAwQekyATG1jxri0sDh3Xwct1IneIWseR1qoKVj7/ABhVvIV28 X0jCCRKTpnaJFDJJ4/olIzWHkE15GrtFdVYy6kXCNRLOA/f5CHBhWmLkDG0U1v+hqwkc awA+c97B3ZNJgBPOPCmB/qdBQN7OcVbcfZKoQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:to:cc:subject:date:message-id :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=UtqeEr+lf7ep2cNpVhZ6MljBlZ7mmqQalKaB6orZQSU=; b=YS0uOyaR7hviSvKFON+PQ4T4X0fkHsgwRyIaXnJ6EKLcJPXXpdvbAW7T7fu4lgmIXr 4MebS2C51M3LwZMcGHNe5HyAsxIdxS1vWMdlSDqmCFPWJjuW0wgj9Oa3TKxbaWPr4blt ILSs5eRmhInmW6aASL5WafwyIkSOYVSA8Piksx3qeSuiwzI73wtqRfS00vg6NXa5y8J9 TESU/u3psE/re/vxCopzsZIAw6OA8r3vawhnkGViwnSTjSm64mMAgFpCOeGcl6qWKTd5 ZLkTVvh7CjONZJwuJ8gJKXsIWRE3OT2OtMEbzYhC2Mnv0EDEPM8HUZlHhBp+54TeyNFT p9CQ== X-Gm-Message-State: AGi0PuaW8RbOe6/9EBlhKzI57yv+hf9kKVyUdL4FRgkHjko8a89XTkTo +GEI5YcbbdcB0WvP/9FXCyDTTbdT X-Google-Smtp-Source: APiQypK3xk0s4SVB7n58E8aPqqIW7H3X8aAt9EnvWxYpQOWeVh24TeYM6gYnuCiTMdIg6LgNBz8EEg== X-Received: by 2002:a17:90a:f418:: with SMTP id ch24mr12067956pjb.68.1589040599513; Sat, 09 May 2020 09:09:59 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:8f8f:: with SMTP id z15ls3285951plo.8.gmail; Sat, 09 May 2020 09:09:59 -0700 (PDT) X-Received: by 2002:a17:90a:d245:: with SMTP id o5mr12993713pjw.213.1589040599063; Sat, 09 May 2020 09:09:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589040599; cv=none; d=google.com; s=arc-20160816; b=s+lji1QLYfcGgLnzjQ0CnfGs1wQleubkvAQaTFq0UIxeDVang8rr9C0GvQldQHdrOE jk6lwLm/Mx0F3R25bxH+H+TrnYrKUHppEqFIN5BLqivdRuosKjBx4o7Bd2OxmD4EVUKv fqQUfBuuU/RdjtUdISy9RSRL8tLfri/lQ4UdLOuxLBiMSB5JOduUFgn8eNPlOpq6N2oD npzdFVc1RXZXTP5gIFH7SsUZVJdwQafvtdg/aBSoobaHqjQwn9GNex8tS1NbMS+7+vZ0 pppZVRIVgfW6FB9c3DQ1ghfVLYgEMt96X2AeK89Fomw+pLxxH4PdG76d00Mwj9HE8Xh+ 76aA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature; bh=NGcNuSJxohOpzKMH/jp6wGAdtR/w+IDW3kH7bePsiH8=; b=XmkK1jM1oP4YDtagr42tob75ALhDLaTGlqdONbmuKUfHiUNzdBA05B+mgeu//U6qST G/Yo00zx7+XngK4n5UUJcDqJNufIFvN0RYDCRPjBfLa9VlLk0dbL0DBg4Q+Ksk9MybVK XinGXWD30lZV4skSKlbkjP4pcgZOU4cucFjJsJcpulrjif9qmv7/eE5StMsg68fRBjeo 6CPh5pAekFisVTJF/7j9UkJJYYJsFzjgk5dvHlJ6zLAsNW3gRd8bGRiu/UIWs3Za+eLQ vgogXyUKWEnMnp0YM11AOsqLZ1v+BrGpIWK93IslVvhYo6DCqY+voIM+sCpsUAs2RSRO r9kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="oOAM/jLn"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id my3sor9009411pjb.0.2020.05.09.09.09.58 for (Google Transport Security); Sat, 09 May 2020 09:09:58 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:90a:730a:: with SMTP id m10mr12983400pjk.9.1589040597229; Sat, 09 May 2020 09:09:57 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:21f6:1c8f:ae94:fb04]) by smtp.gmail.com with ESMTPSA id t23sm5227997pji.32.2020.05.09.09.09.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 May 2020 09:09:55 -0700 (PDT) From: Jagan Teki To: linux-amarula@amarulasolutions.com Cc: Jagan Teki Subject: [PATCH] roc-rk3399-pc: Enable USB3.0 Host Date: Sat, 9 May 2020 21:39:48 +0530 Message-Id: <20200509160948.16207-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.17.1 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="oOAM/jLn"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.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: , 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