From patchwork Tue Jul 7 13:50:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1444 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id B80953F062 for ; Tue, 7 Jul 2020 15:51:03 +0200 (CEST) Received: by mail-pf1-f199.google.com with SMTP id v25sf4751503pfm.15 for ; Tue, 07 Jul 2020 06:51:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1594129862; cv=pass; d=google.com; s=arc-20160816; b=udT/AgPLGtocvZIVuOfeEwPlDOFXU0q7YKYJtIxXV1f5utFQdajvWpaGRox/NHt7AF zRElSjbCl+BXNzXyQ3LXdGr2i5DTXVhbnBWtyXylvD5oVqZcdHW6Fe4DHWrPlHl79E+K UO1cLyg8kJ+STlpUJbGf4dymZJCfSYxkfwPfq8cIJJPkJ0AsJbkwsuUj6l819h//5T6O k4lgI5gA+snbOAsLPGCFP5ckNYNRfjnUaFrtiI3TDIIHRXHiYjFaUqqyJVL4rQ692L7C BhxNzNikfr4L1fdRJWsCyA5eWExNI3X89hO0S/80R0gn4BZMLYICt4+JYvIK4neVruym 6V6w== 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:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=LDKTlmw1B4Yv/rdr5hiQutpgJPmwKZD4eVZRCwhBx58=; b=urA2FAe7gOQ9NEfD0ZMTfoGgA2bOak53xkGeX514G4u+qGbmn2e71LatE7VKrNrdjr 8mYIpagSlWUcgidkygYdgveJLZjsOHYdYZFLf8QUy7oD6Inw6XNpbhKuakqRw6nXmqC6 KZT0aD/ylbIYp3I/CPNooVGQa9ZRvxwsOvbNIygkeoQ1j3Tlnzv+TylfuZZ+t/uE0cbn /nIjW4+U12TsRsXF6mhmIFhFGVp6Ul0MY6Znuwb9sC9lBn9PMn8sAt/VSceMEsS7uQA4 RZKOl49Jaw4RQW8NpVkfaxu0IZaZWGup1DXsaj3tXJKKho8kofHOegDNXPT+XaMSMbsu 5H9A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=fAqdBECC; 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=from:to:cc:subject:date:message-id:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=LDKTlmw1B4Yv/rdr5hiQutpgJPmwKZD4eVZRCwhBx58=; b=r5ncDyWkLKCgCsJG4/NPNRM9JdVaiBbxzd19FjWoK7kfrycCM7g2cYf4NIXO6puEKA UYx8eycmqT/E/Y+byO03tN/XBrboPHUMJ3VDhvJyb+kLSsZTrTYTlO4ht2fFsGgrkwcq ox0K/oLBsNimjztx3DX5BR54I96MlDyyrds4s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :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=LDKTlmw1B4Yv/rdr5hiQutpgJPmwKZD4eVZRCwhBx58=; b=QZ7TgNGWjJzKhlPa0T4Feok8JpSGQN+xCLPB5sWPB8FDGlyUJMrnUAXJOuyR7mdWum DAm6yrerx6Ex8FPvOG1lGFvgupwOLESNxzi6HWSuLKzbRnoK9cv0ewX764L1C4MmQOMK Ed9KwsC4R7f8i0TaGqNP5wgtSri14gumHQw8e65GpX6prHsUtz9RW9uCOy55T/9lfk5i AAQil/SMPg3ktnT4CK4igkJwBq+eAm3W4BXfVMXLw4c/dGzB4nTQIDB/7cUkK3HXiKoU IuAEANG4tu6autzLFizF+svgLNXJpTfaDMGA8qaId2NRe3xUiQh1QU+8JPVm+GsOOibt xqeA== X-Gm-Message-State: AOAM532pNUi94LmfaYoB3pkIcQoHUmjSGMHSqfLR2ry5sdYgRyA2BN/1 +1areZ4nhRRC3tAR1cCz7P0Jxodh X-Google-Smtp-Source: ABdhPJxAun7dAEDPGmfS3rhzIWIvyJg6FWXZiA8d/d7x6JdMf5AtQ/yiEagJJZeARTOZOK4+uefGCw== X-Received: by 2002:a62:64ce:: with SMTP id y197mr27307292pfb.19.1594129861824; Tue, 07 Jul 2020 06:51:01 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:d917:: with SMTP id c23ls1507922pjv.0.canary-gmail; Tue, 07 Jul 2020 06:51:01 -0700 (PDT) X-Received: by 2002:a17:90a:d104:: with SMTP id l4mr4499214pju.65.1594129861369; Tue, 07 Jul 2020 06:51:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594129861; cv=none; d=google.com; s=arc-20160816; b=WqGXPOpYS+USiA/MRKIDRYYOb0YyPhr1xk8qYkA1J/6TXv/pyl0uYqfKyVUGVM5SfR nOcZTq1sqniyPXFpjMpx/vm5YpynW0h9565QCwpTEEMF+7zXNLYm0M5+esuO8A3azE5T csNN69YvVqzXXk1xxbqW7y7p+7Tp75zMx5GTcw67NFeRHL+lB1W3tIHb5MoTI2+shE+K fn0ZfyEh6a/29AcyRVoRYds07N26X6O+sbR+fq048Ea22g06LzMVkuyd2edxWaAsmUdX 70kamHso1VnFyOS6k6m5Z3Lq2qMdiwKOEDcF3XHeIJCM0/4W5P6wJRcD3zXPMJuVmMLH LG9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=OcKDQszk38ybVOVud7KGyYFhi2Dy2zveOyRdVgXykZI=; b=H7y2HOXz2op4/R1XlT8UAI67OoA+csGCDwDkIglY98rB8HDlI9Pr9pTk+VvjuIoTt3 A7fNMuv2tCJ1RTWgvJ08MlumRMrsWJQx5PEGaCp0I4Ase6cxnRb5mJhdZbWBwEQaSj6A Ns2mig4t4GcnNytsj3KBKbrzyeAuf/eIBgDRf9S6lQffbwqaKfrXE9TnInnBfOFz+yPf EQ6eS4jtQoLYHCB6qQmeodnJl7m8SsSNyd14ft5gyvFaAO5yJ82XZLrGTChmnBA0u9xo OhPrr3IWRlss4PSzRXh7t0HRhXIMpKvAh0thioin7KxOIcn/6E1zvdjswZ26EnIgz6hj lHaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=fAqdBECC; 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 s26sor29712344pgn.20.2020.07.07.06.51.00 for (Google Transport Security); Tue, 07 Jul 2020 06:51:00 -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:a65:63ca:: with SMTP id n10mr45749455pgv.252.1594129860294; Tue, 07 Jul 2020 06:51:00 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:11b1:83c1:7d95:bab3]) by smtp.gmail.com with ESMTPSA id 73sm22980495pfy.24.2020.07.07.06.50.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jul 2020 06:50:59 -0700 (PDT) From: Jagan Teki To: Kever Yang , Philipp Tomsich , Simon Glass Cc: Suniel Mahesh , U-Boot-Denx , linux-rockchip@lists.infradead.org, linux-amarula , Jagan Teki , Tom Cubie Subject: [PATCH v3 1/6] rock-pi-4: Enable USB3 Host Date: Tue, 7 Jul 2020 19:20:44 +0530 Message-Id: <20200707135049.9521-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=fAqdBECC; 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 RockPI-4 boards. Note that the Upper USB3.0 port is marked as otg and lower USB3.0 port marked as host, so this below log capture when USB3.0 mass storage plug in at lower USB 3.0 port. Log: 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 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... 1 USB Device(s) found scanning bus dwc3 for devices... 1 USB Device(s) found scanning bus dwc3 for devices... cannot reset port 1!? 2 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 1 Hub (5 Gb/s, 0mA) U-Boot XHCI Host Controller 1 Hub (5 Gb/s, 0mA) | U-Boot XHCI Host Controller | +-2 Mass Storage (5 Gb/s, 224mA) SanDisk Dual Drive 040130e3ee554b7078843f4eb331646 Cc: Tom Cubie Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- Changes for v3: - collect kever review tag configs/rock-pi-4-rk3399_defconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configs/rock-pi-4-rk3399_defconfig b/configs/rock-pi-4-rk3399_defconfig index 0d86fdc895..2487872219 100644 --- a/configs/rock-pi-4-rk3399_defconfig +++ b/configs/rock-pi-4-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 @@ -35,11 +36,14 @@ CONFIG_MMC_SDHCI_ROCKCHIP=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_SYSRESET=y @@ -48,6 +52,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