From patchwork Mon Jul 20 18:51:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1525 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 9309B3F03F for ; Mon, 20 Jul 2020 20:52:54 +0200 (CEST) Received: by mail-pj1-f72.google.com with SMTP id k7sf386251pjw.2 for ; Mon, 20 Jul 2020 11:52:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1595271173; cv=pass; d=google.com; s=arc-20160816; b=AS0inmdn8AtWf6kbL559c/6wMwE1QqkNQUblKaelQl3Cy94N+LefE8pkOreqdQTHfJ IycwTOBippWOYhZiSi3ZG5mBqzLycSJNgvmO6w0tKutbnTn4OnBjTE1YxdOkJfay5r1l qh4SB2P4yJPfPvUMmwMC1BN0QNkFrBz1JQJ1bNtzDeWoVqwESpiN/OnnHoLKZMI0Izp5 FgLnsMz+nETYFXZmWQ0z+iZy3z+Eotlh10I3t3P8XpCYOF1NGxbSEHXaJhYhxLL5fOd5 rUHRfza0qyPqEt4WpCWVJqL8SqQPWIyyET7QpLeAD8NixMHlbTjBW6Kuq0vc1TcDcR84 o5oA== 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:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=o57sxfPplv08v4aAwKXmSA/cRKA3Xr5znJ5XOWGjhhg=; b=Aj8HdagY42HzIACfdG05ty5ugNEP6z4K/pJi2WJSYzSW79fxlHDX/5maXwE1NKDebl GzxpBilQX1mhpEw3+AV355yFXCnhvtubdItWXq4kl2qnwXsIcFmGsN0hLa4iAMCMNS7s JwT3Cv2+g2CnpJSoI3UYmHGDI5TeuoQAoH+4mObmhBICHtpsDHcNx0ghDCnqERBe86NV DBRYowBakUl+XLR5WbpRjUQB1zKlaxSQRexZN3RW343QucujfDqdHaDUsQXARuPEbwsS SiBE6DkekKuF57RsDqBjk2I8UktaP3IcyiPddY/XKHC5eyMqey/+mXViT0Ec0DcUDZko TNbg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Ril5p3N3; 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:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=o57sxfPplv08v4aAwKXmSA/cRKA3Xr5znJ5XOWGjhhg=; b=EGmto589h4ejGpXhY3jmJvU0G5EcKZ5aa5uaQGdqKKVeQt0bcF8SwE7tPz7FcjqetI XDl7pAow8bMwnz/VRbKSrAC3IiHH0bo2NyQhdoqyppMnMUy7XuQauO14l3I9ExjSBaTi ZJ87yx5EO6ZCFJ+p8zBmrOC4IPv9uqfiUvmHw= 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:in-reply-to :references: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=o57sxfPplv08v4aAwKXmSA/cRKA3Xr5znJ5XOWGjhhg=; b=GpIoPjoIKxe+NRh8Qcez+V2p0E3v/3uIzuEmnNYqrhNkqneNJcaMhutuZneat8mviM Y+0QToIjmclFmAg23fQ4Se0iQZ/C6QlAQeFBR2AAKe4DQc0eNugi7S33C6O41r359FhX KD0lJQf44oC8GzoIHunTAwsPaCGysIElE8ZThQ+xx/XA2UU5ZV9E6JED85K0wEndXT1v xEqbwJkYOVlLbAVEa1lLH07MDDTm1sjMhFYa7kFPSPEQsbTL/n5Yr8DT5S7iF4Nmch7n Mw6nY20hpVf39GEKfJhLs2yPyOfLnLIR1wmZOdGPzrr9nYCZImz2Ys398j+AeiLpcqyV wGoA== X-Gm-Message-State: AOAM533w/d67uvyU93J2YEnhknSjbWSSps+Lmzs2/9TlcpLO1xQl1vlF l+972BWhvbphHgwnrtyOFeyNAwTU X-Google-Smtp-Source: ABdhPJxIynWc9JfxjzpkaTE/ST3oLRf0hlWRy6lG48560cO7qnUL3JumBkEq0/bATThE0LgTeGhbKA== X-Received: by 2002:a63:7c5:: with SMTP id 188mr20277353pgh.48.1595271173116; Mon, 20 Jul 2020 11:52:53 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a65:684d:: with SMTP id q13ls2102620pgt.2.gmail; Mon, 20 Jul 2020 11:52:52 -0700 (PDT) X-Received: by 2002:a63:7313:: with SMTP id o19mr20290361pgc.307.1595271172674; Mon, 20 Jul 2020 11:52:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595271172; cv=none; d=google.com; s=arc-20160816; b=wA3/M30BiXqSQqY2w92xEN6H5ZVr8z9j5VKko0seaytMTBZcR/OcrdTq0DWv6RJd5q 6c8lPIhXe7KORLGS6snOUXTZU4fBt6cT/VmrkyY/GiID7TA02LbAAR8GZfLHB5MnOfrV Xy3v2N5sz2efnKgJUNbaxwonZta9X4RXTRObylEXyYrD6XOdIRQTID5qpTIs1lrGlYCl Y0wAH0KLUAwQrr9aly6xyFEXVWa/5pBeA9PmfE8y+/TvIoSTiAh77e/hNOJdw8QExfEb u47LTyI6d4Dfg2SAV6UB5L0bNycPAEAO7KHBfrrayerdkR+leWpGI7rBpJzuBm3o0EKv 9rOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=0HK4g7TYqmmHN/W0eIFzrv/EvYg0eoJ9dUqmdaOVvAY=; b=L8UrkBB2jh/Kf+CW6ewjwlQ1RjBvDf/sYMgjx15wUl2wBTxgWjEeca65S6SxaSi2hg XDVNWdwXY2TmcVZkygbnD1BONnLByaMY2VF7g8wGb/VS+Ne05v86QJnnax/fEYlJcWhe QzUWkUyKAH1iXonYMBVWeHu9oUCiaDi7QsZvWV0Oxoi3Voyn4rU6hVyX37NmwzPAJzz7 SOuLDyoh2YzYQhO6f8OwT6kXwgMCRjiLetpRxd+u2lYlq21Ozf0DgHVoG9fE0957q9bt 2wi0Slq9Oprj8q+d+lbLbJdQEKOf0m/jvP0TwsP02YcTPpVVoiG6LXQQioQ3k1CY7Jpc faxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Ril5p3N3; 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 t6sor23003248plq.18.2020.07.20.11.52.52 for (Google Transport Security); Mon, 20 Jul 2020 11:52:52 -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:902:b18b:: with SMTP id s11mr19508146plr.152.1595271172334; Mon, 20 Jul 2020 11:52:52 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:8c21:db7b:4558:fba3]) by smtp.gmail.com with ESMTPSA id m9sm306649pjs.18.2020.07.20.11.52.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jul 2020 11:52:51 -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 Subject: [PATCH 07/16] configs: Enable USB host on Rock-PI-N10 Date: Tue, 21 Jul 2020 00:21:11 +0530 Message-Id: <20200720185120.671064-8-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200720185120.671064-1-jagan@amarulasolutions.com> References: <20200720185120.671064-1-jagan@amarulasolutions.com> 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=Ril5p3N3; 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: , From: Suniel Mahesh Enable USB 3.0 and 2.0 and related configs for the Rock-PI-N10 target, which hosts RK3399Pro-VMARC-SOM. 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 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... 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 | +-2 Mass Storage (5 Gb/s, 224mA) SanDisk Dual Drive 04019c9b2e1a58f24ee318c3c123aa5 => usb tree USB device tree: 1 Hub (480 Mb/s, 0mA) | u-boot EHCI Host Controller | +-2 Mass Storage (480 Mb/s, 224mA) SanDisk Dual Drive 04019c9b2e1a58f24ee318c3c123aa5 1 Hub (480 Mb/s, 0mA) u-boot EHCI Host Controller Signed-off-by: Suniel Mahesh Signed-off-by: Jagan Teki --- configs/rock-pi-n10-rk3399pro_defconfig | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/configs/rock-pi-n10-rk3399pro_defconfig b/configs/rock-pi-n10-rk3399pro_defconfig index c705ce01ce..e09e656fbc 100644 --- a/configs/rock-pi-n10-rk3399pro_defconfig +++ b/configs/rock-pi-n10-rk3399pro_defconfig @@ -19,6 +19,7 @@ CONFIG_TPL=y CONFIG_CMD_BOOTZ=y CONFIG_CMD_GPT=y CONFIG_CMD_MMC=y +CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_TIME=y CONFIG_SPL_OF_CONTROL=y @@ -36,11 +37,23 @@ 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_DM_RESET=y CONFIG_BAUDRATE=1500000 CONFIG_DEBUG_UART_SHIFT=2 CONFIG_SYSRESET=y +CONFIG_USB=y +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_KEYBOARD_FN_KEYS is not set CONFIG_ERRNO_STR=y