From patchwork Thu Jun 18 14:12:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1403 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 84A363F0D3 for ; Thu, 18 Jun 2020 16:13:22 +0200 (CEST) Received: by mail-pg1-f198.google.com with SMTP id 16sf4110307pgz.2 for ; Thu, 18 Jun 2020 07:13:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1592489600; cv=pass; d=google.com; s=arc-20160816; b=cItop4k3JSf//MtWgwpg8Yfi8eWa1frtbvvb0Erpm2a7d4aZ119qIGOoP0UFHvaXNj aC9OlOyJayY49rcd/y+dqX+Mqr1lcBhyDXX1PaE3cUOpSQr6JCX9JZbfWEyWuMXgCCga xwJ27GtRewTZW95SQvpYauqh+CDfzgIUIKr5iJgri0A3PgLN2pz/lfLppQDfmeMs+pPX FdxwPirMtJzM61hHy/NfrUcbUhMGkHU2ZQlepuw120bNiSyjA+tXX+mHcZkSTV+Ke89H CUY9xnmmliTiyhjVrzyw+gBhzjgIefoIyWshZKvNFsUI71epmKKOk2V2sd9wTslfh4+b NHmg== 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=KUmV8k+Yxph11fNsf5N+WEEtbistldzz75XTCO4QXsw=; b=aJPHzWeKOi0WuvcewglbTA47NGaGFYHSmRIbTam5k5hlaEFGHVUGlXKkdiiVR6yWO0 98Ki+1twz0TNwurxkqgH19weqSGdFwNj5MpKGwF9X/IgGT+xrIsHP7784ZeN94YmLEfC iLGiOB81jtk0OAV/8nOAPt84AObOv7au608iNhyNXLj/bu+/+wY9nIRgD4+GD38Rd6FN bM6pKnpQNJirwlQZeZdy8ZoEWZTg+RkhuCo+4hFzGC7+0u+BxD8TZ8QSFvoItDj9syDw BIJpZ70yyEZrRxtpj7kacz70MDXysvIOEsBqEKgt1RepCjD1hzVP0+ZfVYJcFcmw/DlO F3Jw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ECVcj5vW; 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=KUmV8k+Yxph11fNsf5N+WEEtbistldzz75XTCO4QXsw=; b=bnyDVnQ5tGIho3jB+37Z1pVCTgzZOdTvibTxs92gvfdu7MDM6QoiMfG67YeD2m5A2S uTxvU+jRN/0rAesHssIG8I1KVi66chKwyeYydZAgZFI49+2xaIsR16AI3VmM4mr9bOMd bP6vNKVY8dfz8JIMFjw9E7tAvKoESl9cd3h+U= 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=KUmV8k+Yxph11fNsf5N+WEEtbistldzz75XTCO4QXsw=; b=QXM7D347jV8zRrMTQQ7dNoLMzQA5i3poMtfUfrhIPosPnCqQNtsCR6P3CBHAZZs408 IYUm/T6v/jxyf0bsY2o/o+2gutQs0n8pPjB3CrTYmdh4/thR4t/XBpmDmdmxdXsfLnET i8KKrYzByCPyUyUUHr7Ojdbz5ONXNw6TMiBSdCA1AO4UOmVwE6JCYwjLv7gg3ZA4OuhM jypw+FGEdpp8gIYaA8AsfnkxgmHf4J6LqwympiJaczbqfu/C8DG+XDm9nGHM7PKE7zie pjkBxT9358jdNweD6RbV1csKSykMaEUCgMhoWl4o2jXD5yBdTJwlQ5/efiwkqfMbi28F 3DXg== X-Gm-Message-State: AOAM533qCRRrAFhbdhKi4MSxy47922R+nKXJV7XlPkf+RW0K47rWM6Wg mnsIqNcz4Gc+fn6OCX4dI8AyQ6PE X-Google-Smtp-Source: ABdhPJy5IPhrBWW9VeS7hGl+uISalyvBGdvyJu2/jSJQSFi/EZheTyXjHOYbRRvE7zcMkerO0R5wrQ== X-Received: by 2002:a17:902:aa0a:: with SMTP id be10mr3901976plb.263.1592489600484; Thu, 18 Jun 2020 07:13:20 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:c910:: with SMTP id o16ls1598770pgg.4.gmail; Thu, 18 Jun 2020 07:13:20 -0700 (PDT) X-Received: by 2002:a63:5409:: with SMTP id i9mr3452387pgb.231.1592489600006; Thu, 18 Jun 2020 07:13:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592489600; cv=none; d=google.com; s=arc-20160816; b=Ze1nS2H35+d8mQF+41tvGFkvCmeozDXT6t0oPzzLanqcqOfhdxOrqJ9nzzBORb9k1W 0bEo5eqvZyFJfQEvDVVh35bsTxFV0ME/m9uuar0rO3afKv3pwuhcpA/jdh5ZyyMDU4Dk CYNrKLO9AP2mOOUxIGRwtIQgW/lgHaBZYqrM3wKn/Z1v2jFcJwjAFQF28FncQfT8ObWP hQBKkF9p4DRVl8Z2tC4mqt2gakDPohxgy7T6/G3mC1cOFRKtJHbkAdEXWf+WiCjnTU3w XfOnBE6+Nul9nSf8IWdjwoYPJ27X6fYzTIyn9S9CqtWTSJ295ML5KIPFAizi5ClicNfV zxrw== 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=vaMVqTd6Q7hkQ2VrkV31UikLUkol1PdHrK1DqBlVFmc=; b=RbdEhiQcQvsYw8LY9OfWnB8cq76wVGZ/mSDiJMPRWOjac1PkuXKMkKVwHxn8S3K8ft jBJIcB9jTZ7DmQXrN8CW2sLED1vufUPh2yhjPkkCY07VCm92g+9g6tQ/RLVdgH/isJ3v 0WdPu842Wt5d/Z+a7OY+2PC6mRpHGDDo9n6c4Mo5/yBxJiVEaJsIPul4oFUvmtWSYquH KHqZYUXPdpKtDupLTv2oDIdfLsVYcb3CGgvfH9QBLDD37JfzJoI+9Qm6jBmxyB6WUeT/ RhJXMsWZs3Z8adanqwAI2zfs3jUgpdSH/e3mPa/5llFZVA7o0LCl85WUXCMVnPPBxDes TvzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ECVcj5vW; 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 z196sor4072804pfc.18.2020.06.18.07.13.19 for (Google Transport Security); Thu, 18 Jun 2020 07:13:19 -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:a05:6a00:807:: with SMTP id m7mr3911953pfk.246.1592489599666; Thu, 18 Jun 2020 07:13:19 -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.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jun 2020 07:13:18 -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 3/6] rock-pi-4: Enable USB Gadget Date: Thu, 18 Jun 2020 19:42:56 +0530 Message-Id: <20200618141259.155581-3-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=ECVcj5vW; 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 USB gadget for rock-pi-4 boards. This would help to use fastboot by default. Note: Connect the Host USB cable (Port A or C) to rock-pi-4 Upper USB 3.0 port. 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(+) +# CONFIG_ANDROID_BOOT_IMAGE is not set CONFIG_DEFAULT_FDT_FILE="rockchip/rk3399-rock-pi-4.dtb" CONFIG_MISC_INIT_R=y CONFIG_DISPLAY_BOARDINFO_LATE=y @@ -57,6 +58,7 @@ CONFIG_USB_EHCI_HCD=y CONFIG_USB_EHCI_GENERIC=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GENERIC=y +CONFIG_USB_GADGET=y CONFIG_USB_HOST_ETHER=y CONFIG_USB_ETHER_ASIX=y CONFIG_USB_ETHER_ASIX88179=y 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/rock-pi-4-rk3399_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/rock-pi-4-rk3399_defconfig b/configs/rock-pi-4-rk3399_defconfig index f3eeef0293..a4b322074c 100644 --- a/configs/rock-pi-4-rk3399_defconfig +++ b/configs/rock-pi-4-rk3399_defconfig @@ -8,6 +8,7 @@ CONFIG_NR_DRAM_BANKS=1 CONFIG_DEBUG_UART_BASE=0xFF1A0000 CONFIG_DEBUG_UART_CLOCK=24000000 CONFIG_DEBUG_UART=y