From patchwork Wed Jun 16 02:33:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: qianfan X-Patchwork-Id: 1492625 X-Patchwork-Delegate: andre.przywara@arm.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=163.com header.i=@163.com header.a=rsa-sha256 header.s=s110527 header.b=KYxiTSyy; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4G4Vhw3bQWz9sTD for ; Wed, 16 Jun 2021 13:16:48 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id ED8D28296B; Wed, 16 Jun 2021 05:16:15 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=163.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=163.com header.i=@163.com header.b="KYxiTSyy"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A1A3C82903; Wed, 16 Jun 2021 04:34:40 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.2 Received: from m12-14.163.com (m12-14.163.com [220.181.12.14]) by phobos.denx.de (Postfix) with ESMTP id 8FD6680412 for ; Wed, 16 Jun 2021 04:34:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=163.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=qianfanguijin@163.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=CovTFgnpv6ktqcnYdN 5EbLOwV1VYuvEQ/qrvkivbuzc=; b=KYxiTSyyqSbrWEpWkKiUG2pna5MYzgXUTR svgVD4l8sn6U6SBcB+vyWXdZ1i5Df0dFJwSer5/hvKSbMGFoW2C0ysuKTI6+ro8i 5YCXC9vO+VckqZXlK4hZUA1GUiBSKCcdnHTxN/zE9N3sKG9VfuiBi+dsG8FJrRVi va/uM9aG0= Received: from localhost.localdomain (unknown [218.201.129.20]) by smtp10 (Coremail) with SMTP id DsCowAAHTGv8YslgG32ePA--.36067S4; Wed, 16 Jun 2021 10:33:34 +0800 (CST) From: qianfanguijin@163.com To: u-boot@lists.denx.de Cc: wens@csie.org, jagan@amarulasolutions.com, andre.przywara@arm.com, marex@denx.de, qianfan Zhao Subject: [PATCH 1/4] phy-sun4i-usb: Fix sun8i_r40_cfg Date: Wed, 16 Jun 2021 10:33:23 +0800 Message-Id: <20210616023326.18135-1-qianfanguijin@163.com> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: DsCowAAHTGv8YslgG32ePA--.36067S4 X-Coremail-Antispam: 1Uf129KBjvdXoWruFykZryxZryrWw4rJrW8Zwb_yoWDJwb_ur W8Xrs7JFZ8ur98XF12yr43X3yFya1Fv3WkWw1vqFy5A3WIqana9rnrtrZrury5GFWakFn8 A345ZF13CwsF9jkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUb5l1JUUUUU== X-Originating-IP: [218.201.129.20] X-CM-SenderInfo: htld0w5dqj3xxmlqqiywtou0bp/xtbBRwez7VPADE9xOAAAsH X-Mailman-Approved-At: Wed, 16 Jun 2021 05:16:06 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean From: qianfan Zhao The address of sun8i_r40's phyctrl is 0x01c13404, also fixed enable_pmu and dual_route. Signed-off-by: qianfan Zhao --- drivers/phy/allwinner/phy-sun4i-usb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/phy/allwinner/phy-sun4i-usb.c b/drivers/phy/allwinner/phy-sun4i-usb.c index 5723c98032..608ba46242 100644 --- a/drivers/phy/allwinner/phy-sun4i-usb.c +++ b/drivers/phy/allwinner/phy-sun4i-usb.c @@ -587,10 +587,10 @@ static const struct sun4i_usb_phy_cfg sun8i_r40_cfg = { .num_phys = 3, .type = sun8i_r40_phy, .disc_thresh = 3, - .phyctl_offset = REG_PHYCTL_A33, + .phyctl_offset = REG_PHYCTL_A10, .dedicated_clocks = true, - .enable_pmu_unk1 = true, - .phy0_dual_route = true, + .enable_pmu_unk1 = false, + .phy0_dual_route = false, }; static const struct sun4i_usb_phy_cfg sun8i_v3s_cfg = { From patchwork Wed Jun 16 02:33:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: qianfan X-Patchwork-Id: 1492623 X-Patchwork-Delegate: andre.przywara@arm.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=163.com header.i=@163.com header.a=rsa-sha256 header.s=s110527 header.b=GilJEp8z; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4G4Vhc6Lrbz9sTD for ; Wed, 16 Jun 2021 13:16:32 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 967D182948; Wed, 16 Jun 2021 05:16:11 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=163.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=163.com header.i=@163.com header.b="GilJEp8z"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6FD2782024; Wed, 16 Jun 2021 04:34:17 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.2 Received: from m12-14.163.com (m12-14.163.com [220.181.12.14]) by phobos.denx.de (Postfix) with ESMTP id EE0BD808A2 for ; Wed, 16 Jun 2021 04:34:13 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=163.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=qianfanguijin@163.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=Xm9wn6TdwaBP/bj27u y/IqhYOWyAr4NDw6oxd4fRe40=; b=GilJEp8zIlTuVxhOMxK3M6A38kzaPzW/ph RqJEwORIyHKMUfDgOyfwiHuq7icc6Yhs9cZ35Dpqm5QJzU5xy/JHrK+jww0mXH2g NnunV8vpdiwA3wqagQo0baD5ujSLHnNRaLCmcU5vBFuPrIsPn0Qi77UUItv55EmL bFActvlks= Received: from localhost.localdomain (unknown [218.201.129.20]) by smtp10 (Coremail) with SMTP id DsCowAAHTGv8YslgG32ePA--.36067S5; Wed, 16 Jun 2021 10:33:35 +0800 (CST) From: qianfanguijin@163.com To: u-boot@lists.denx.de Cc: wens@csie.org, jagan@amarulasolutions.com, andre.przywara@arm.com, marex@denx.de, qianfan Zhao Subject: [PATCH 2/4] sunxi_musb: Add musb configurations of sun8i-r40 Date: Wed, 16 Jun 2021 10:33:24 +0800 Message-Id: <20210616023326.18135-2-qianfanguijin@163.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210616023326.18135-1-qianfanguijin@163.com> References: <20210616023326.18135-1-qianfanguijin@163.com> X-CM-TRANSID: DsCowAAHTGv8YslgG32ePA--.36067S5 X-Coremail-Antispam: 1Uf129KBjvJXoW7Zr4rXw48Zr13AF18Kr4fAFb_yoW8Kr1xpF 45Xry5Cr4rGF1akFs3JaykCF1fG3Z3Wa4UKrnrG343XF9xGa45Za1UKa4akFn5G3s8WrW5 KF4xJ3W7Wan7AwUanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07UQ18QUUUUU= X-Originating-IP: [218.201.129.20] X-CM-SenderInfo: htld0w5dqj3xxmlqqiywtou0bp/xtbBdh+z7VUMRRxMhwAAs8 X-Mailman-Approved-At: Wed, 16 Jun 2021 05:16:06 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean From: qianfan Zhao R40 has 8 user-configurable endpoints and 8KB FIFO for EPs. Signed-off-by: qianfan Zhao --- drivers/usb/musb-new/sunxi.c | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/drivers/usb/musb-new/sunxi.c b/drivers/usb/musb-new/sunxi.c index fea4105f3d..e03299ea5b 100644 --- a/drivers/usb/musb-new/sunxi.c +++ b/drivers/usb/musb-new/sunxi.c @@ -263,7 +263,6 @@ static int sunxi_musb_enable(struct musb *musb) } USBC_ForceVbusValidToHigh(musb->mregs); - enabled = true; return 0; } @@ -438,6 +437,30 @@ static struct musb_hdrc_config musb_config_h3 = { .ram_bits = SUNXI_MUSB_RAM_BITS, }; +/* R40/A40 OTG supports only 4 endpoints */ +#define SUNXI_MUSB_MAX_EP_NUM_R40 5 + +static struct musb_fifo_cfg sunxi_musb_mode_cfg_r40[] = { + MUSB_EP_FIFO_SINGLE(1, FIFO_TX, 512), + MUSB_EP_FIFO_SINGLE(1, FIFO_RX, 512), + MUSB_EP_FIFO_SINGLE(2, FIFO_TX, 512), + MUSB_EP_FIFO_SINGLE(2, FIFO_RX, 512), + MUSB_EP_FIFO_SINGLE(3, FIFO_TX, 512), + MUSB_EP_FIFO_SINGLE(3, FIFO_RX, 512), + MUSB_EP_FIFO_SINGLE(4, FIFO_TX, 512), + MUSB_EP_FIFO_SINGLE(4, FIFO_RX, 512), +}; + +static struct musb_hdrc_config musb_config_r40 = { + .fifo_cfg = sunxi_musb_mode_cfg_r40, + .fifo_cfg_size = ARRAY_SIZE(sunxi_musb_mode_cfg_r40), + .multipoint = true, + .dyn_fifo = true, + .soft_con = true, + .num_eps = SUNXI_MUSB_MAX_EP_NUM_R40, + .ram_bits = SUNXI_MUSB_RAM_BITS, +}; + static int musb_usb_probe(struct udevice *dev) { struct sunxi_glue *glue = dev_get_priv(dev); @@ -527,6 +550,10 @@ static const struct sunxi_musb_config sun8i_h3_cfg = { .config = &musb_config_h3, }; +static const struct sunxi_musb_config sun8i_r40_cfg = { + .config = &musb_config_r40, +}; + static const struct udevice_id sunxi_musb_ids[] = { { .compatible = "allwinner,sun4i-a10-musb", .data = (ulong)&sun4i_a10_cfg }, @@ -536,6 +563,8 @@ static const struct udevice_id sunxi_musb_ids[] = { .data = (ulong)&sun6i_a31_cfg }, { .compatible = "allwinner,sun8i-h3-musb", .data = (ulong)&sun8i_h3_cfg }, + { .compatible = "allwinner,sun8i-r40-musb", + .data = (ulong)&sun8i_r40_cfg }, { } }; From patchwork Wed Jun 16 02:33:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: qianfan X-Patchwork-Id: 1492624 X-Patchwork-Delegate: andre.przywara@arm.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=163.com header.i=@163.com header.a=rsa-sha256 header.s=s110527 header.b=RwyRh9jY; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4G4Vhk69BSz9sTD for ; Wed, 16 Jun 2021 13:16:38 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id ACBCC82959; Wed, 16 Jun 2021 05:16:13 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=163.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=163.com header.i=@163.com header.b="RwyRh9jY"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B8CF081019; Wed, 16 Jun 2021 04:34:30 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.2 Received: from m12-14.163.com (m12-14.163.com [220.181.12.14]) by phobos.denx.de (Postfix) with ESMTP id 02DF582916 for ; Wed, 16 Jun 2021 04:34:26 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=163.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=qianfanguijin@163.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=uYrwybw2/x4kPeVcqT MAxWqgVHS249eJggDlK3X/aC0=; b=RwyRh9jYATPfC5lRS//CAYLxhQVJCe3oNQ AeejPm53DhufSL0M6aYmEwWiuMhXKpMSu2U5VUse9/kGjyEEAkbpjQDP55KHvTQ+ jRB38NrdFZuYPWNXWUrDFIBHDAz0Ym8QwLRCkNlJk1Ma8fJkPCNeO+ruSYRU+yCx XhuMMh6a4= Received: from localhost.localdomain (unknown [218.201.129.20]) by smtp10 (Coremail) with SMTP id DsCowAAHTGv8YslgG32ePA--.36067S6; Wed, 16 Jun 2021 10:33:35 +0800 (CST) From: qianfanguijin@163.com To: u-boot@lists.denx.de Cc: wens@csie.org, jagan@amarulasolutions.com, andre.przywara@arm.com, marex@denx.de, qianfan Zhao Subject: [PATCH 3/4] dts: bpi-m2u: Enable USB_OTG by default Date: Wed, 16 Jun 2021 10:33:25 +0800 Message-Id: <20210616023326.18135-3-qianfanguijin@163.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210616023326.18135-1-qianfanguijin@163.com> References: <20210616023326.18135-1-qianfanguijin@163.com> X-CM-TRANSID: DsCowAAHTGv8YslgG32ePA--.36067S6 X-Coremail-Antispam: 1Uf129KBjvJXoW7tw17uw4kur4xWF47ZrW7XFb_yoW8GF1Up3 4UurWkJrW5Ww15tw12gFWkXa45CFyvgrZrtrn3C34rJF1kWw1jq34ftwnakrZ8Xw43Zw4S vanxJry3Xw1DAwUanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07jnTmhUUUUU= X-Originating-IP: [218.201.129.20] X-CM-SenderInfo: htld0w5dqj3xxmlqqiywtou0bp/1tbiGhSz7VaD+IJINwAAsA X-Mailman-Approved-At: Wed, 16 Jun 2021 05:16:06 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean From: qianfan Zhao bpi-m2u has a hardware usb_otg, let's enable it in dts. Signed-off-by: qianfan Zhao --- arch/arm/dts/sun8i-r40-bananapi-m2-ultra.dts | 4 ++++ arch/arm/dts/sun8i-r40.dtsi | 13 +++++++++++++ 2 files changed, 17 insertions(+) diff --git a/arch/arm/dts/sun8i-r40-bananapi-m2-ultra.dts b/arch/arm/dts/sun8i-r40-bananapi-m2-ultra.dts index a6a1087a0c..828ddc63ae 100644 --- a/arch/arm/dts/sun8i-r40-bananapi-m2-ultra.dts +++ b/arch/arm/dts/sun8i-r40-bananapi-m2-ultra.dts @@ -117,6 +117,10 @@ status = "okay"; }; +&usb_otg { + status = "okay"; +}; + &ehci1 { status = "okay"; }; diff --git a/arch/arm/dts/sun8i-r40.dtsi b/arch/arm/dts/sun8i-r40.dtsi index d5ad3b9efd..7c7a9cd9f8 100644 --- a/arch/arm/dts/sun8i-r40.dtsi +++ b/arch/arm/dts/sun8i-r40.dtsi @@ -363,6 +363,19 @@ #size-cells = <0>; }; + usb_otg: usb@1c13000 { + compatible = "allwinner,sun8i-r40-musb"; + reg = <0x01c13000 0x0400>; + clocks = <&ccu CLK_BUS_OTG>; + resets = <&ccu RST_BUS_OTG>; + interrupts = ; + interrupt-names = "mc"; + phys = <&usbphy 0>; + phy-names = "usb"; + extcon = <&usbphy 0>; + status = "disabled"; + }; + usbphy: phy@1c13400 { compatible = "allwinner,sun8i-r40-usb-phy"; reg = <0x01c13400 0x14>, From patchwork Wed Jun 16 02:33:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: qianfan X-Patchwork-Id: 1492622 X-Patchwork-Delegate: andre.przywara@arm.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=163.com header.i=@163.com header.a=rsa-sha256 header.s=s110527 header.b=B6LDFx8/; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4G4VhT3LyTz9sTD for ; Wed, 16 Jun 2021 13:16:17 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8C21882928; Wed, 16 Jun 2021 05:16:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=163.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=163.com header.i=@163.com header.b="B6LDFx8/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7BEF5808A2; Wed, 16 Jun 2021 04:34:17 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.2 Received: from m12-14.163.com (m12-14.163.com [220.181.12.14]) by phobos.denx.de (Postfix) with ESMTP id F162881019 for ; Wed, 16 Jun 2021 04:34:13 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=163.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=qianfanguijin@163.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=tm73F0sG9ZuuQNLhsw 9/d+9GszILoNzFNGxd540LvIc=; b=B6LDFx8/lxQ6/V2hGdsJXNbeNeCG3GC4Vx NK/axKj4AyM0kBsiPP4XF929AFDHfPAhwBVuaroFfqG1FgVk1UuRAu9FE7CgbPPs 80aLsvwSR6EFbRs+mPmP5MCLEHJ5cF+hOWVlD4aC8CshSAVtvtLJlRnmmdpvrnYW 3ITcAbl2c= Received: from localhost.localdomain (unknown [218.201.129.20]) by smtp10 (Coremail) with SMTP id DsCowAAHTGv8YslgG32ePA--.36067S7; Wed, 16 Jun 2021 10:33:36 +0800 (CST) From: qianfanguijin@163.com To: u-boot@lists.denx.de Cc: wens@csie.org, jagan@amarulasolutions.com, andre.przywara@arm.com, marex@denx.de, qianfan Zhao Subject: [PATCH 4/4] sunxi: defconfig: bpi-m2u: Enable usb gadget and ums by default Date: Wed, 16 Jun 2021 10:33:26 +0800 Message-Id: <20210616023326.18135-4-qianfanguijin@163.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210616023326.18135-1-qianfanguijin@163.com> References: <20210616023326.18135-1-qianfanguijin@163.com> X-CM-TRANSID: DsCowAAHTGv8YslgG32ePA--.36067S7 X-Coremail-Antispam: 1Uf129KBjvJXoW7Xw18CF48ZrWrXw1fKrWUtwb_yoW8Jr43pr 95CF4UGFy8XryYyFW29rWkKF90qan8GrWUKFWUZw1UJry8Aw47XrsIqrnrJa9rXrZxuw4S yF93Gwn3A3ZrAwUanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07jv7KsUUUUU= X-Originating-IP: [218.201.129.20] X-CM-SenderInfo: htld0w5dqj3xxmlqqiywtou0bp/xtbBzhSz7VQHM6Lm0wAAsz X-Mailman-Approved-At: Wed, 16 Jun 2021 05:16:06 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean From: qianfan Zhao Since the usb otg driver support R40 device, we enable usb gadget functions and ums. Signed-off-by: qianfan Zhao --- configs/Bananapi_M2_Ultra_defconfig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configs/Bananapi_M2_Ultra_defconfig b/configs/Bananapi_M2_Ultra_defconfig index 37bcb3d7bf..a0869d56ae 100644 --- a/configs/Bananapi_M2_Ultra_defconfig +++ b/configs/Bananapi_M2_Ultra_defconfig @@ -7,12 +7,13 @@ CONFIG_MACPWR="PA17" CONFIG_MMC0_CD_PIN="PH13" CONFIG_MMC_SUNXI_SLOT_EXTRA=2 CONFIG_USB1_VBUS_PIN="PH23" -CONFIG_USB2_VBUS_PIN="PH23" CONFIG_DEFAULT_DEVICE_TREE="sun8i-r40-bananapi-m2-ultra" CONFIG_AHCI=y # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set CONFIG_SPL_I2C_SUPPORT=y +CONFIG_CMD_USB_MASS_STORAGE=y CONFIG_SCSI_AHCI=y +# CONFIG_USB_FUNCTION_FASTBOOT is not set CONFIG_RGMII=y CONFIG_SUN8I_EMAC=y CONFIG_AXP_DLDO4_VOLT=2500 @@ -20,3 +21,5 @@ CONFIG_AXP_ELDO3_VOLT=1200 CONFIG_SCSI=y CONFIG_USB_EHCI_HCD=y CONFIG_USB_OHCI_HCD=y +CONFIG_USB_MUSB_GADGET=y +CONFIG_USB_GADGET_DOWNLOAD=y