From patchwork Thu Jun 18 14:12:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1405 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 809F23F0D3 for ; Thu, 18 Jun 2020 16:13:29 +0200 (CEST) Received: by mail-pg1-f199.google.com with SMTP id a19sf4101028pgl.8 for ; Thu, 18 Jun 2020 07:13:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1592489608; cv=pass; d=google.com; s=arc-20160816; b=NKFyUaWjho6Tzef0Yd36IX5tkX1to6313OLPENu874DXX18qojtjx1mKDfZJJ44vJq go94L7wW+udRbSnOkJ6rlcw2um7dpsPmj3DcCvz4FdvSB4nLPIY2rhW8LuDdTXpBdKJg kl+sVPRIJBkvqUZOiEX2UhjtAI660b3mdXvzrPTST8oPMtJNZIaUiJ6mz2Nla0lyQZaf SXWrMH9Z7/tzwXQkXx8NvaG9+ONuy32E4N1LEwBsSfbW8MqndF3sLUdkBciCRLa2DgW/ D/AnT1JytHwu+01VhXm8r4Q7UKwxEROBtEnZgn/pKXvu/68yOucMXDUJQz5/qb8W8yBh nMHw== 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=bpbCjyj6L0S1CE7KeESnB6o6XPZ2SA7w0qbR0TWqhZc=; b=dPXXk+fStRN+OrSsP/ZBE2q/0pCE0HMKlLVU9eS4Po/MTyCTuagtpiVAfKo9wPjLtC qSFcKeAqpfQOgiQuFxV5hlUQMzR7aR1yHHxwJRxkg+997hckrHbKcOy0+eP9lPYusito IV4hbrB/+7iIoIMi98/FDMBtOKIvd5SHVZdf7XlF30UjiBS8QZYlKPr9w0WYWYkJPGsz 77pmFq7H/qE5b+mx7tIMhi7uohZ35z4xm6uiT2SE5YrpBkbdTCPQRmqKZO/9+XIpqd2m xZZSDoazxWnlqbXXJZzyOJPB08ifL87cL0qsdVn7ebIhEn4T+q8rzoEM8Fw9Q8M0Z5fA CfSw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="RH/08qro"; 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=bpbCjyj6L0S1CE7KeESnB6o6XPZ2SA7w0qbR0TWqhZc=; b=cDx2onIjqDqamgOMKtlAey2B4LOYgJgi45ghcEkQMGkDmX/hn0UfM2WVkWJtfz9IzH fFmfwvGeWrLF6gRHihSlqf1wk4BrGG7ygrDU0dro6e8V+I4yb8DN7qqoEux0EjEWOGdl MiGr1iYu/7qHJzXUvvYpprmUbvRZDHmlXuEAU= 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=bpbCjyj6L0S1CE7KeESnB6o6XPZ2SA7w0qbR0TWqhZc=; b=VmI0ElK2I/AiVQXwPA+2PvjXrC1FEL37i2NM+EWfWGRoTtUDOBg8dxF5cRfISSxZQs 5ssWQTt89mDYVb0oK8xN/N6a1a5qLc+zSrh6h5T0IJNErk3CwmfW09vIcxqUBrRBz/Fl Vayx9cokIFKTVsH4yYUnUpgXJOONpkChMvh8Rlom+UAXqxek1ExU68ijUVBlZz0mkABC o9LFDgO8yaY5iNiRtfE/h9xHPM978pEYKduA1VT8atmNHOFoXojidoWdxJUwLlY0+U2W SONDxE9YiVl/gRp/x5oLU6/HtHQ6O1vg0RyzGNLbuGkXD1fnQmw2ZcKvbBZxsq94O3lV r9CA== X-Gm-Message-State: AOAM533SMtk5IsuynndhpFBLw0SxI0AZqaSBcwA1zOTL+mr1x32+iRLr y9ROMLqM80AkbsvdP8ebG30XDnx8 X-Google-Smtp-Source: ABdhPJzgs2qktkEWPFJyJ1Sz2qLfj++LJpznFxfJVrMJOrcijlbz8zu4b+g2SnwNedD0KV/TM6xIbg== X-Received: by 2002:a63:924c:: with SMTP id s12mr3519941pgn.431.1592489608253; Thu, 18 Jun 2020 07:13:28 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:d34b:: with SMTP id l11ls2279485plk.6.gmail; Thu, 18 Jun 2020 07:13:28 -0700 (PDT) X-Received: by 2002:a17:902:8607:: with SMTP id f7mr1850856plo.9.1592489607753; Thu, 18 Jun 2020 07:13:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592489607; cv=none; d=google.com; s=arc-20160816; b=hO7VNOgqZ+WPnUBCB/k+Wn/0fzbMgsmtkeW+/obenj0Tdqq3mhen4vs+bdziyf6dlF 2HvxS5MfOeHJVxw3NAubEBQCj8MDry5kPMX/LmE8/gVKA8bX22Rp9+Dv+RBThSbOsctV sxNqU5DF8sNJAVCvd9oR2LClqGOlEeOeY8DV0k+7qKb/qHnAThgWSO9KXm2L0lA8jVzr 7fxnnAmuDv1Kmp9iuX+EbL8U80YKrLai6c0ON0gN0qKbnbyWc0eKXwSojm+GsFkBnAJv b0kKukkQ5BT/3tj+Y8BkrdWkM2buMUd8Iz7DNoXbIVwjp0d03zna3TGleEdetdeNmdGZ 3oUw== 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=3f7gYn6jD9fjt6ff1Ev21D9MzGvrCJFMXPDuvBapbgI=; b=0e/DEUAOaNZdhSr4eW6UQgScspmkGxaCMH+Lsu+/Pr+t1G2M7JfzuTbjX4q1Z7mgoX /B1SxWNVpoOTKn7pKfzm0j1PJd1q0dYNadDJHMiQb5mZ9ww+ibJMIoLnbXGjJxBlDGnJ 3361AalU9l4usK81LplK9jHQP04yJOQgE3QS7T/id7Cbkh2YfGtchycN7KOnKlPmUQK9 UfnBtDpjBXZaOqmiB2REna3GAjYlGlBfRVvAMWzjWqk8zjuEJwzotpZ/2fcSuBv8xhut 8yS1rQpzKBTcSh3jCRw5fdrhrF2H4hUIh9xAE7vzDfzd9Xi0EoIewon1rgDndnhMvcuH 9X2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="RH/08qro"; 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 z23sor3736104pgv.57.2020.06.18.07.13.27 for (Google Transport Security); Thu, 18 Jun 2020 07:13:27 -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:a63:f1a:: with SMTP id e26mr996586pgl.80.1592489607416; Thu, 18 Jun 2020 07:13:27 -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.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jun 2020 07:13:26 -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 v2 5/6] roc-rk3399-pc: Enable USB Gadget Date: Thu, 18 Jun 2020 19:42:58 +0530 Message-Id: <20200618141259.155581-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200618141259.155581-1-jagan@amarulasolutions.com> References: <20200618141259.155581-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="RH/08qro"; 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 DWC3 core, gadget for roc-rk3399-pc board. This would help to use fastboot by default. 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 configs/roc-pc-mezzanine-rk3399_defconfig | 3 +++ configs/roc-pc-rk3399_defconfig | 3 +++ 2 files changed, 6 insertions(+) diff --git a/configs/roc-pc-mezzanine-rk3399_defconfig b/configs/roc-pc-mezzanine-rk3399_defconfig index fd1b85c1e4..7906948374 100644 --- a/configs/roc-pc-mezzanine-rk3399_defconfig +++ b/configs/roc-pc-mezzanine-rk3399_defconfig @@ -12,6 +12,7 @@ CONFIG_DEBUG_UART_CLOCK=24000000 CONFIG_SPL_SPI_FLASH_SUPPORT=y CONFIG_SPL_SPI_SUPPORT=y CONFIG_DEBUG_UART=y +# CONFIG_ANDROID_BOOT_IMAGE is not set CONFIG_DEFAULT_FDT_FILE="rockchip/rk3399-roc-pc-mezzanine.dtb" CONFIG_DISPLAY_BOARDINFO_LATE=y # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set @@ -64,7 +65,9 @@ CONFIG_USB_EHCI_HCD=y CONFIG_USB_EHCI_GENERIC=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GENERIC=y +CONFIG_ROCKCHIP_USB2_PHY=y CONFIG_USB_KEYBOARD=y +CONFIG_USB_GADGET=y CONFIG_USB_HOST_ETHER=y CONFIG_USB_ETHER_ASIX=y CONFIG_USB_ETHER_ASIX88179=y diff --git a/configs/roc-pc-rk3399_defconfig b/configs/roc-pc-rk3399_defconfig index 80e7001481..046fb73858 100644 --- a/configs/roc-pc-rk3399_defconfig +++ b/configs/roc-pc-rk3399_defconfig @@ -12,6 +12,7 @@ CONFIG_DEBUG_UART_CLOCK=24000000 CONFIG_SPL_SPI_FLASH_SUPPORT=y CONFIG_SPL_SPI_SUPPORT=y CONFIG_DEBUG_UART=y +# CONFIG_ANDROID_BOOT_IMAGE is not set CONFIG_DEFAULT_FDT_FILE="rockchip/rk3399-roc-pc.dtb" CONFIG_DISPLAY_BOARDINFO_LATE=y # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set @@ -61,7 +62,9 @@ CONFIG_USB_EHCI_HCD=y CONFIG_USB_EHCI_GENERIC=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GENERIC=y +CONFIG_ROCKCHIP_USB2_PHY=y CONFIG_USB_KEYBOARD=y +CONFIG_USB_GADGET=y CONFIG_USB_HOST_ETHER=y CONFIG_USB_ETHER_ASIX=y CONFIG_USB_ETHER_ASIX88179=y