From patchwork Tue Jun 9 14:05:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1352 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f198.google.com (mail-pl1-f198.google.com [209.85.214.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 46AB03F06D for ; Tue, 9 Jun 2020 16:05:36 +0200 (CEST) Received: by mail-pl1-f198.google.com with SMTP id n20sf11047009plp.8 for ; Tue, 09 Jun 2020 07:05:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1591711534; cv=pass; d=google.com; s=arc-20160816; b=bSJyNts/BneaL8u4d+aNk29xxD/KV6BMqY3BfX2IAg5/+TUCQFJWdXNGqhmNt5VDJs aLD0P5YGjsOxpyO/QulP/ZkPU/98oI4l4McAS65A06idtOs/SYbk4PvjVHOGuLJFPv6s bCo8TN+VK1/IPyUzpoCoY1vFlpBnDwK/IOuPXsuslx35ghF3a7aeadqWmuaQyBu6Aqeq AfCKe6yfc3XFNwMr27FReOrL8CC/nJXRzJNaI8iXrsjdPjcHXiYwqAyZfhoqSccG/ABT iM/5kEnC6+N3jV6aDM16sC/mYPbf2FKE8uQNj6zZec7SpoMQtO5leqh57PCkf937THb1 LByQ== 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=Ut+rBrcX1OgU85ZAMxJwOSYfVw4aeNEWIveIG27EplY=; b=ks0Ho8WFeMdrkx3185+VVIA0XJItF96EDjj6jfKFEJA+QnGYnKftzzVais8TWubKB0 zFlU18fFtYkbGtrK7wIm8Br+a5j5VaLznGRCy3qUNDgnzjnNlg8l2EQ4QehOHGxfHfmr ailBy/pqFgINqwp6ad/14m08U1CaAyD7EM+M3ATy1CIdYdWqLQum3ozqKpXp5fNcP7p3 CaZtbRtxZ4Hj3ty4rbck2YWcti7ccrCZMb6Rmoarg/lMEgZuCkLK396V1RVkkLmrif9A KUBWW64wtwvu8fa/01795yHlu9Xir4TgO4DMrDukuDW2a7/kJ5QNE/6CQ+92UGwnGsJs uCWw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=gRuTPJoR; 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=Ut+rBrcX1OgU85ZAMxJwOSYfVw4aeNEWIveIG27EplY=; b=aJhra/D1HNhyTEskBOcpexd5YG6BgghkeqSY7cji44FA3bRsatYI7fk2DnDCqejYnG xquFNV7XgUE0BGF4CzgW0X6LjSlCc46LvOAyRm94OrTSsuyQFUyLvjXGtwBQojmTUESR ebKx3JnESMx5l3oDgytXXnbMOzSchFQriDyso= 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=Ut+rBrcX1OgU85ZAMxJwOSYfVw4aeNEWIveIG27EplY=; b=FYRUjfnknZqTGE3Ck2frosCTnFxmO2i47Tf0fxv3DfPSTG+xETMygcfRrbnKa8WvXr QNBtbXtcSGhtwio/9/4yhuuxuMUtZwJgWiS4RmrZDYU9SQ1ICvYBJi7BfmSOcD7p0o9Q 8iWEJPiHf6PM9rJWjChSy9GYHzfHSDwBD5aaQRoE5xtRYTAqJEmiHB4aZEltIZwyOAbK gEfvCtgCXoWCBLo9nUA45lZrmXP/50Mv7dfE5Qko++lcrGQe60IQ3xRKFsPlt7B4FtyA v+UN9Sa8uDwEiDu7LEMRHLQztpiOhlZUg+oa36DVliAerkOkTeP0D4mr69hQiGq/dH9m Z68Q== X-Gm-Message-State: AOAM533P8JGfC96nUyNHTXh7OehFrxdgdKhyHy0kGqHRD/kcVo9QCKUx daSED0CFX602PjrMHFv+ZMWJG42w X-Google-Smtp-Source: ABdhPJxLFRwOwp5gCnnrqwmQ5Vhf7ZsGJHwfFjgiRkzj9WTy6Op+oGnqwIojGuybgcfrmQ78NK/MZw== X-Received: by 2002:a17:902:d352:: with SMTP id l18mr3553959plk.68.1591711534046; Tue, 09 Jun 2020 07:05:34 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:c910:: with SMTP id o16ls5501215pgg.4.gmail; Tue, 09 Jun 2020 07:05:33 -0700 (PDT) X-Received: by 2002:a62:aa07:: with SMTP id e7mr24618862pff.87.1591711533476; Tue, 09 Jun 2020 07:05:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591711533; cv=none; d=google.com; s=arc-20160816; b=e3IykiXcbHFSxC2O81Z75596E1SH/1EBMlBa6WwXhVVVdA65yqyQiJl2RyOEmg1oTf 51C4IypcogNcpTQeXmGIkeldiJaT2NZY5LmpI1AHZVHqxTwtO/SLPAyUADQTC9mVhjH4 IKZ0zS2U5QPoZcemqVIv2Kte2zS09Mfi38GDkqh4vjMesgDd9iHMFwQWLSSAua7ZLtzZ uwwUtEReSm1COkjtnU0kBBIPwBwI2fFDrYxTfwNgUgXKGooIAO2Pd96XnNttfh/Bha9A ql58V7igimBk7mtUTWRirydtvjwG+N5qrhKEtdYsQs4+iIaQHDKc3u7oEJvp0RwrfujN hNMg== 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=ydfIA3jg12tx+Lzfbo4klwL95OwxMw4oe6fuWc3p+0U=; b=ZJJsjmj6YK2ycTZP6CAsvQn6qzOu/ASQASdva4kqPbtVYEzY15p4qqEmSsoJlplqt0 BR/kgSSYIYSr2dNbH8L+WzNzD8U33lIQyNLuFzBpTMiKH9YH2Bwrz2mzix2tCu8wIsFg BYuOWVAZJnbksNI5GIo8qwOFETKcW5rtIzevd7xJfLS8U0TrTOavgcHfqh5ZdAWaV772 5BLBRMZAZHzsk/24edQX9WmoDq7YcRk4Bhv9BID78A5jvcSPtci5iFPkYVHAAidpBaWp F4XP90fuZvkhpjA/YUVBYTty5Fz2ATNC1fitZj16Z69vcUuoFaeLNPd/gfqAFTdB00VO lhbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=gRuTPJoR; 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 n22sor13776203pfu.77.2020.06.09.07.05.33 for (Google Transport Security); Tue, 09 Jun 2020 07:05:33 -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:aa7:9052:: with SMTP id n18mr27072700pfo.319.1591711532581; Tue, 09 Jun 2020 07:05:32 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:6575:fcd2:e4d4:715a]) by smtp.gmail.com with ESMTPSA id e12sm8961817pgi.40.2020.06.09.07.05.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jun 2020 07:05:30 -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 1/3] rock-pi-4: Enable USB3 Host Date: Tue, 9 Jun 2020 19:35:12 +0530 Message-Id: <20200609140514.132579-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=gRuTPJoR; 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 --- 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