From patchwork Thu Jun 18 14:12:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1401 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 10F8D3F0D3 for ; Thu, 18 Jun 2020 16:13:15 +0200 (CEST) Received: by mail-pj1-f69.google.com with SMTP id m63sf4170035pje.8 for ; Thu, 18 Jun 2020 07:13:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1592489593; cv=pass; d=google.com; s=arc-20160816; b=fCLBi8bNSbihpjIxLkdS61fTKHZcML+DSazzk11l9gM4f4O0XLu0s2V07gW0MdFYf1 HB4fuEZEvk7EVohWXrN5W7c5J43Knmsr7yZRzoJqorl3Rr+n9W/jfQNNwlpwivKjO62H FL3biE/uWlwM1ELrCaKYKrqcm0oSb85//8uyLFbp7aGJxLhXQIH6lRz9k61VJBs1MJEK Qkp/QtLJp2sbHi/ABfm4Kzo3PcivgB9qJOunez8JwlVFx36Hq7Rpqbis46nlDXTGcH6U aYuxmxEIgi2P0qDeeN3Di6Khyy0mUV5mR24CkMnGIRZpvBxrbJGS02VoJ6GDx1ll7263 YATg== 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=0VtqPi6FveuzCAGiYwdQ4JdDzwuhpqW67IJ5h0qfHHg=; b=VDN7R4ptzMNJIMhBnfhS55sWvDA4UpT+6qyO8JhF6XrDSXu45ttxsX509pQLprR96u S/LOB4gsQgKLuKRyHIcFyM719Cwu63/y3CBeHw8rrpt6AY0ac/AEFWoahG4Crc2h7k12 eUH+CZxMhz+I831WJ9QDeCrDBYH495R6hRvcYFtMfjIKohSa/IHGwGv+XLqwAhZMZlrx oOmTefZyM6apz+JO7AFJ+whJlRJUczGd2SNqGJyX+AUIjA2bC5HQa+PYLnyLfTbOkvGV 3I+BBAMDnZsf5cRvNVvmuOjvW/iH5qtTKCkYy/KCt53cq6aSKBCuQk2CX00YpPRQwwvC QDQQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="N/kjHZ5E"; 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=0VtqPi6FveuzCAGiYwdQ4JdDzwuhpqW67IJ5h0qfHHg=; b=ACqmv9UZj1Fk0z5eUuSnYpXR07eBE7G1nb5w6+WOGulaT+yAgRgbt+QDSEZdu1kDd7 cfPJXQDwI7eEDITA3WtP5iQ81hfD0albAcb0xr0iq5Z7xZAAwmTuQNImeZOoLeQiyFXf yrQTfLh+5brdcAG+OJ7g4D04++6xL7O/odQlM= 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=0VtqPi6FveuzCAGiYwdQ4JdDzwuhpqW67IJ5h0qfHHg=; b=pN0sFmiAyLWebnkpp6w++CuWrTw8LHDEq9tgVr+cLdgbRKkA/x0fw8HGeDe6OBN/6t djuVILZ8DTAZ6Ta/hKv1wde2Q1TncYxVDq+noEdXIvgjjN9D6HT8thWITCCTC24NfhFS 2Mpul8J8+6yCNzGu0l/OSbd6myl80jtlWco+VLJXYXERdU0lvX4kkWBeMXl3Di9QK1Cq NoOVJ4nUX+cqWnf7VbnBWCrbMHCmEjJ32oEX2C1QrmDfgKGlg7XEukSUTrk6clW8itfR mclE9on9+wS4jhfmtDYU/jdNF3BJKqoKUQ3/pF80lINKGP8+dpRyDeLcIIRgVsWhZhKX 4MhA== X-Gm-Message-State: AOAM532/Vru5L0kw/FQq1dy+JeETQgddEbr9Bl4VvR00X7Ys6rUTErG0 rowyGsQyGksEZMSPlLtFRnmGC+3Z X-Google-Smtp-Source: ABdhPJyuKvTXZ0Wb0lnvr+C+wOj21pOueLIkfQfB/FWsjjBwpUKa0whXzeK0ucgMV4PjTbwpwzyEZg== X-Received: by 2002:a62:c105:: with SMTP id i5mr3856322pfg.250.1592489592665; Thu, 18 Jun 2020 07:13:12 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90b:104a:: with SMTP id gq10ls2481929pjb.0.canary-gmail; Thu, 18 Jun 2020 07:13:12 -0700 (PDT) X-Received: by 2002:a17:90a:d250:: with SMTP id o16mr4551870pjw.199.1592489592112; Thu, 18 Jun 2020 07:13:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592489592; cv=none; d=google.com; s=arc-20160816; b=DsziZOr1ZLxc3bA4wmjmbJUg5YcViEZwbLcHwDf4uZyk9s8yd363w/odUSsAWgluCU RjTPzqC9KdxSD5tEdiZ68e9HqA7h/ZbBnjfO6ltOBBhOYYdpk5Dxa5Zqk3YdfbsLnQ16 10Tdyv21rYsTTl3gCD81Wq6CTMGOGJDMjKL7DD9iOm/ycKkrRhEgFw/vnl/VMoYHHKK2 6fwzjYiJFmx6kAsQTZbCu+ggKRIZtlAYYUCNHJwRbgR+4A9RlcYG8yYq6k8t3eWCTpKP VqjJU9VTqAx4jDBouKiu3PXaQRJ+NaZ31VUblo9S9tI1JxjQC9t/Ooi4Q+U/zPqvDoRj uD5g== 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=3oGKs23a93g8dSTZ3PSJDUOIgDA5dI03hvG0yMAmu9c=; b=u4pU3lQGx/je3A8CT22dghJcyTbxFPj0n3yiCqMITK/Avisuz4DkXrXiXh2wly2FV7 YQE0wmZGGCpBiA101RXy4qA4xqY+UkpIA76c/zePVVunn62ct7HqNVJPzBWq7zZZF/Qj NTXLpytwjCLzeFLYJ4WKPHNXrMdw1ZffAgGGIV4682EB6WukhAGljrNb/4DNY43sWloB mx46qvziRBSPli/vIyhuFgKXA3g6yTmZphHAL7TOyrwuKFKRrKF/nEVzrbl5261nzt7e JHSmKJeispEtJ0ga4NT/LiZPyqfMUdfcpy93bkTJ2EpStUs6f8FXe2MQn/nGB4logjW8 9JUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="N/kjHZ5E"; 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 65sor972784pjo.32.2020.06.18.07.13.11 for (Google Transport Security); Thu, 18 Jun 2020 07:13:11 -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:90b:4c0f:: with SMTP id na15mr4473249pjb.112.1592489591483; Thu, 18 Jun 2020 07:13:11 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:b0c7:f192:869b:df87]) by smtp.gmail.com with ESMTPSA id p6sm3340540pfb.152.2020.06.18.07.13.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jun 2020 07:13:10 -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 v2 1/6] rock-pi-4: Enable USB3 Host Date: Thu, 18 Jun 2020 19:42:54 +0530 Message-Id: <20200618141259.155581-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="N/kjHZ5E"; 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 v2: - rebase on master 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