From patchwork Tue Jun 6 17:09:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 2905 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 13F723F042 for ; Tue, 6 Jun 2023 19:09:59 +0200 (CEST) Received: by mail-pf1-f197.google.com with SMTP id d2e1a72fcca58-65592a7cb54sf3379388b3a.0 for ; Tue, 06 Jun 2023 10:09:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686071398; cv=pass; d=google.com; s=arc-20160816; b=BM3bik8u6NhVfief7W1VGNYxgKlYlkweakn4l4yIRiXaR8sY9xG4v8hI7f+GBWcnxz ou38Fk1oegxnBOP+XpYBHZqXEye+Gx4rvfSMicbfDxFDNIRNXmPpuDNsDvmab4eSUS2M ZImupji7gy7CIpGJ3UWF/OcJ6Bj0mClCtNvQBY1UAESFYWRSgKEPQZdGYuGRZE+MFOlb 3l9cCmJCg88zCzl+nRkPCy1lIb+vCt5xcna/VRUNcswIqFU7KrgpI9iAIqZqR7EYBHRa LtX7cspVO7KArKi3SJf+KVU7AAxHn7K3jiyAEwtMfAN/iUTP7xmjXpYjb3yLzS3RR/cs zvuQ== 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=l0/wcMCyYjTc2ggg2PuSYAUxMTGqo9YQtJVmN1On2+E=; b=ouQcEbwEYWFnOl5t8yXltURL8Myyrfl/z+noGpsHJU+XoJ8CPggezr8eULIysVuue6 4rw6KH9PwlXqnqUFADeLbTdntRD7y8Opq66umvY8KSaihFJIrmNy03RvvdKdMr+80bgT Q26jH0fUTMJgQAYGwZyR9CZbPNL2ukPKwHScsWpK4neyROaENwwTgLbGxN23zwFR5ZWm FFwCQtS0nueDtgbwh1XUil56KJaEXLuJwpi94MtksWRtg1dnkDxbmvAel/yRZJJfrK1S 91FzN5pfYh/m6ncyaNl9tvypz7AtZJphCcS3J3vfYQFe63U0ob5C54svosSq7lC3CUDJ clHg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=rJZbhvye; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1686071398; x=1688663398; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=l0/wcMCyYjTc2ggg2PuSYAUxMTGqo9YQtJVmN1On2+E=; b=P7ntePXTSe38cRdbhWEnN8ruPuYYTQWG4XlZm0v4b59HzZxbpLqmiqNNbn5fzLlMqT eFDX6oCtmVilL/nJqHV/SdaqUdPBstFfzAHyTILK6IVtO8r54OZ6vmoP6H20sU0HToI+ d9sjBZ4vyrRIo1SOeKJGZJMVBxPnT7MFhCHsk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686071398; x=1688663398; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=l0/wcMCyYjTc2ggg2PuSYAUxMTGqo9YQtJVmN1On2+E=; b=TR/+GjUM+fRbcT6wnitlPTV3RH8cboVgYwPlkRJmET8wAY8hJPk2d8dJvhHd3ihdyI D2uIM8GA+jV2Xm8A8G0Kp5U7I0/5uax5eN0fMvWRmnXDRpocnTujlNDnjitGuztZ5o8W w5fm6m5mXmUF1djzux3W6o8RUSNnnj4utIGrNxP3GYTWtqJVp7VqOxfSDg3ZRoD9njWY TRjlgjy9b7tZVm5sUaxyio/6RRadwYAjnVVKiAQ3o/ddomEEpBpC4ZOGpPq6TCZonTFw ibMe+mKmcD5ycC2MQqtPdq3sMpWYjWI6DaYgBVI59lHBhXyulfkE+uG4Dij2bG0rutQ9 JhAQ== X-Gm-Message-State: AC+VfDwbpNGnqDzOpqiYHgskemRp+Y3rvRBo2M9pGNACan28QJtGfgdL fpr6W6CyQOOmtwLFoJT+LuIGzcwc X-Google-Smtp-Source: ACHHUZ5LJkHBKl6OKCxq1pz3UHrGnuKFPq4Y8IiXEl/405fTVUUa+KNiDr5UF5J2Yzgx90U8gpenzg== X-Received: by 2002:a05:6a00:1143:b0:64d:4412:9923 with SMTP id b3-20020a056a00114300b0064d44129923mr3665932pfm.3.1686071397845; Tue, 06 Jun 2023 10:09:57 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:cdcb:0:b0:659:1fd1:a684 with SMTP id o194-20020a62cdcb000000b006591fd1a684ls322109pfg.1.-pod-prod-06-us; Tue, 06 Jun 2023 10:09:57 -0700 (PDT) X-Received: by 2002:a05:6a20:6714:b0:10a:e8c2:7227 with SMTP id q20-20020a056a20671400b0010ae8c27227mr282039pzh.45.1686071396676; Tue, 06 Jun 2023 10:09:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686071396; cv=none; d=google.com; s=arc-20160816; b=zK5h7YEk61XmZ2+uRX71aPC6ixkWAiwQ4H74rz7GiDqzGabJNQGPjOHq0NlVpdnewr utb2Br/x0glXe7xPvi1nWM6y7GQGY+Ycw8U5OjPt7oGAxOdmHhBJzxHbUMudt60mj8tE WURbVrb5F6+M16y5rc1o0ymxAV5yrnCwg/bnxJ5+er6XORScgIi6SX68AugRiRZzV050 UC2Y77GQBIJ8a5O/A5Tor71rcy/Uplvv2sascH+ILqByBJUyj90D4UpzO92+et6xPNPG CDk5ayq9UQa7Qdayir6Nzgv7chMqsnnEo97U7LZ/yH9chZsdfg3JHV3yQO6Xe75ijEF8 D95w== 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=1nyaUVsvBumEYHl2VNtMKQz3t4wk3ZrRYCr+MnIFQcQ=; b=a58nxgw9kaFxsNkZ5eOYESgmZh7aVHs7pWgUQNEiMFOaEX9e2zxDaj+dR1Q1lcwBYc unq0yNzN13o4K+9lyhshcZBpIpxH6BpxE1tnfUVN+70xHJ+mN/wByGt8ez8SARMieg4w izBoarb2aJ0Abg4xeDWjlq+ZpSYK8b3/rDdYgygCNa1nwzC6mCLi/Uh2PxsQ3WYSkDxK C/UiDu7spNihw6XvKKMRpqQ+ozZpGjzuukPg2Pn+4+qgf0AQZhXYL81giznJpJoxlfQk oq42z58eBwgfGPGDy3toqE7Ec/NsJYQwT3tccX5baITIunMiKVsm9ziXScPT6j67UJlR yfbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=rJZbhvye; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id j14-20020a633c0e000000b0051b84535458sor4441437pga.7.2023.06.06.10.09.56 for (Google Transport Security); Tue, 06 Jun 2023 10:09:56 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:902:bcc8:b0:1b0:122f:672b with SMTP id o8-20020a170902bcc800b001b0122f672bmr2782658pls.47.1686071396372; Tue, 06 Jun 2023 10:09:56 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:2001:f7d3:5b78:1d82:fb5f:608c]) by smtp.gmail.com with ESMTPSA id bc8-20020a170902930800b001ab0159b9edsm8695129plb.250.2023.06.06.10.09.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jun 2023 10:09:55 -0700 (PDT) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Cc: Jonas Karlman , u-boot@lists.denx.de, linux-amarula@amarulasolutions.com, Jagan Teki , Tianling Shen , David Bauer , Loic Devulder , Chen-Yu Tsai , Banglang Huang , "Matwey V . Kornilov" Subject: [PATCH v2 4/7] configs: Enable DWC3 USB 3.0 on RK3328 boards Date: Tue, 6 Jun 2023 22:39:15 +0530 Message-Id: <20230606170918.45581-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230606170918.45581-1-jagan@amarulasolutions.com> References: <20230606170918.45581-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=rJZbhvye; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 USB 3.0 in all RK3328 boards. => usb start starting USB... Bus usb@ff5c0000: ehci_generic usb@ff5c0000: Failed to get clocks (ret=-19) Port not available. Bus usb@ff5d0000: USB OHCI 1.0 Bus usb@ff600000: Register 2000140 NbrPorts 2 Starting the controller USB XHCI 1.10 Bus usb@ff580000: 1 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found => usb tree USB device tree: 1 Hub (12 Mb/s, 0mA) U-Boot Root Hub 1 Hub (5 Gb/s, 0mA) | U-Boot XHCI Host Controller | +-2 Mass Storage (5 Gb/s, 224mA) SanDisk Dual Drive 040130e3ee554b7078843f4eb331646 1 Hub (480 Mb/s, 0mA) U-Boot Root Hub Cc: Tianling Shen Cc: David Bauer Cc: Loic Devulder Cc: Chen-Yu Tsai Cc: Banglang Huang Cc: Matwey V. Kornilov Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- Changes for v2: - none configs/evb-rk3328_defconfig | 2 ++ configs/nanopi-r2c-rk3328_defconfig | 2 ++ configs/nanopi-r2s-rk3328_defconfig | 2 ++ configs/roc-cc-rk3328_defconfig | 2 ++ configs/rock-pi-e-rk3328_defconfig | 2 ++ configs/rock64-rk3328_defconfig | 2 ++ 6 files changed, 12 insertions(+) diff --git a/configs/evb-rk3328_defconfig b/configs/evb-rk3328_defconfig index 5ab7abff9e..5183d65451 100644 --- a/configs/evb-rk3328_defconfig +++ b/configs/evb-rk3328_defconfig @@ -69,6 +69,7 @@ CONFIG_FASTBOOT_BUF_ADDR=0x800800 CONFIG_FASTBOOT_CMD_OEM_FORMAT=y CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y +CONFIG_MISC=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_ETH_DESIGNWARE=y @@ -100,6 +101,7 @@ CONFIG_USB_OHCI_GENERIC=y CONFIG_USB_DWC2=y CONFIG_USB_DWC3=y # CONFIG_USB_DWC3_GADGET is not set +CONFIG_USB_DWC3_GENERIC=y CONFIG_USB_GADGET=y CONFIG_USB_GADGET_DWC2_OTG=y CONFIG_SPL_TINY_MEMSET=y diff --git a/configs/nanopi-r2c-rk3328_defconfig b/configs/nanopi-r2c-rk3328_defconfig index 6af874ca2c..fb0b8719fb 100644 --- a/configs/nanopi-r2c-rk3328_defconfig +++ b/configs/nanopi-r2c-rk3328_defconfig @@ -71,6 +71,7 @@ CONFIG_FASTBOOT_BUF_ADDR=0x800800 CONFIG_FASTBOOT_CMD_OEM_FORMAT=y CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y +CONFIG_MISC=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_ETH_DESIGNWARE=y @@ -104,6 +105,7 @@ CONFIG_USB_OHCI_GENERIC=y CONFIG_USB_DWC2=y CONFIG_USB_DWC3=y # CONFIG_USB_DWC3_GADGET is not set +CONFIG_USB_DWC3_GENERIC=y CONFIG_USB_GADGET=y CONFIG_USB_GADGET_DWC2_OTG=y CONFIG_SPL_TINY_MEMSET=y diff --git a/configs/nanopi-r2s-rk3328_defconfig b/configs/nanopi-r2s-rk3328_defconfig index 7b0fadbce9..79cb17d751 100644 --- a/configs/nanopi-r2s-rk3328_defconfig +++ b/configs/nanopi-r2s-rk3328_defconfig @@ -71,6 +71,7 @@ CONFIG_FASTBOOT_BUF_ADDR=0x800800 CONFIG_FASTBOOT_CMD_OEM_FORMAT=y CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y +CONFIG_MISC=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_ETH_DESIGNWARE=y @@ -104,6 +105,7 @@ CONFIG_USB_OHCI_GENERIC=y CONFIG_USB_DWC2=y CONFIG_USB_DWC3=y # CONFIG_USB_DWC3_GADGET is not set +CONFIG_USB_DWC3_GENERIC=y CONFIG_USB_GADGET=y CONFIG_USB_GADGET_DWC2_OTG=y CONFIG_SPL_TINY_MEMSET=y diff --git a/configs/roc-cc-rk3328_defconfig b/configs/roc-cc-rk3328_defconfig index 477179e80e..f5912ceca9 100644 --- a/configs/roc-cc-rk3328_defconfig +++ b/configs/roc-cc-rk3328_defconfig @@ -72,6 +72,7 @@ CONFIG_FASTBOOT_BUF_ADDR=0x800800 CONFIG_FASTBOOT_CMD_OEM_FORMAT=y CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y +CONFIG_MISC=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_PHY_REALTEK=y @@ -109,6 +110,7 @@ CONFIG_USB_OHCI_GENERIC=y CONFIG_USB_DWC2=y CONFIG_USB_DWC3=y # CONFIG_USB_DWC3_GADGET is not set +CONFIG_USB_DWC3_GENERIC=y CONFIG_USB_GADGET=y CONFIG_USB_GADGET_DWC2_OTG=y CONFIG_SPL_TINY_MEMSET=y diff --git a/configs/rock-pi-e-rk3328_defconfig b/configs/rock-pi-e-rk3328_defconfig index 633d5417a9..e86a6f7b1a 100644 --- a/configs/rock-pi-e-rk3328_defconfig +++ b/configs/rock-pi-e-rk3328_defconfig @@ -73,6 +73,7 @@ CONFIG_FASTBOOT_BUF_ADDR=0x800800 CONFIG_FASTBOOT_CMD_OEM_FORMAT=y CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y +CONFIG_MISC=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_ETH_DESIGNWARE=y @@ -101,6 +102,7 @@ CONFIG_SYSINFO=y CONFIG_SYSINFO_SMBIOS=y CONFIG_SYSRESET=y # CONFIG_TPL_SYSRESET is not set +CONFIG_USB_DWC3_GENERIC=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y CONFIG_USB_EHCI_HCD=y diff --git a/configs/rock64-rk3328_defconfig b/configs/rock64-rk3328_defconfig index ae761d08a1..4acbca0140 100644 --- a/configs/rock64-rk3328_defconfig +++ b/configs/rock64-rk3328_defconfig @@ -71,6 +71,7 @@ CONFIG_FASTBOOT_BUF_ADDR=0x800800 CONFIG_FASTBOOT_CMD_OEM_FORMAT=y CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y +CONFIG_MISC=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_SPI_FLASH_GIGADEVICE=y @@ -107,6 +108,7 @@ CONFIG_USB_OHCI_GENERIC=y CONFIG_USB_DWC2=y CONFIG_USB_DWC3=y # CONFIG_USB_DWC3_GADGET is not set +CONFIG_USB_DWC3_GENERIC=y CONFIG_USB_GADGET=y CONFIG_USB_GADGET_DWC2_OTG=y CONFIG_SPL_TINY_MEMSET=y