From patchwork Thu Mar 21 06:57:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Othacehe X-Patchwork-Id: 1914386 X-Patchwork-Delegate: festevam@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gnu.org header.i=@gnu.org header.a=rsa-sha256 header.s=fencepost-gnu-org header.b=Ar2cAE4L; dkim-atps=neutral Authentication-Results: legolas.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=patchwork.ozlabs.org) 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 ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4V0jx72S0Wz1yWs for ; Thu, 21 Mar 2024 22:32:27 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 545858800B; Thu, 21 Mar 2024 12:32:13 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gnu.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gnu.org header.i=@gnu.org header.b="Ar2cAE4L"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E1C7C8808A; Thu, 21 Mar 2024 07:58:00 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id D41C58809C for ; Thu, 21 Mar 2024 07:57:54 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gnu.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=othacehe@gnu.org Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rnCN5-0006FP-Hd; Thu, 21 Mar 2024 02:57:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=wrpqsZD4fvHuWmp+1TCLpnnMJz6Jfw/Z7SzxOhzD42Y=; b=Ar2cAE4LL+b7++ClH3XM HwxHEi8mbkk62EsG8pSidraW1Gn3j2F79KB7jA+BgAAB6JD1yHs8orH/fEkwQOhkq1sSVgqjc0t9C fIGYcT2XvvfDozRM6lzQSS0vFsYL0m/H0H8FC9pwYvSXK0jsNLgNkrh3+X8ZCDwt/8nNS4rLlwVgJ yC5CeSaDv+D9yFroo8OFwNRVlEkFWhZZRIjdr29NJ/hnedUv89xNMSprerkx2vRFyTV4q+H30MjX4 IQiFP1s7iuXtDWrWW0JrIo79gbQbiglrOvXWH45vFEUtH3uaS/pubbmp0fCk1K15LKVw6pxhKn6Zt QheTzqG9Y9aDDQ==; From: Mathieu Othacehe To: Tom Rini , Marek Vasut , Peng Fan , Shiji Yang , Ye Li , Alice Guo , Stefano Babic , =?utf-8?q?S=C3=A9bastien_Szymanski?= , Fabio Estevam , Simon Glass , Mathieu Othacehe , Yannic Moog , Primoz Fiser , Christoph Stoidner , Wadim Egorov Cc: u-boot@lists.denx.de, Mathieu Othacehe Subject: [PATCH v2 1/3] arm: dts: imx93-phyboard-segin: Add USB support Date: Thu, 21 Mar 2024 07:57:40 +0100 Message-ID: <20240321065742.32441-2-othacehe@gnu.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240321065742.32441-1-othacehe@gnu.org> References: <20240321065742.32441-1-othacehe@gnu.org> MIME-Version: 1.0 X-Mailman-Approved-At: Thu, 21 Mar 2024 12:32:10 +0100 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.8 at phobos.denx.de X-Virus-Status: Clean Enable both usbotg1 and usbotg2 ports. Disable over-current as OC pins are not connected to the SoC. Signed-off-by: Mathieu Othacehe --- arch/arm/dts/imx93-phyboard-segin.dts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm/dts/imx93-phyboard-segin.dts b/arch/arm/dts/imx93-phyboard-segin.dts index 85fb188b057..acf307a3192 100644 --- a/arch/arm/dts/imx93-phyboard-segin.dts +++ b/arch/arm/dts/imx93-phyboard-segin.dts @@ -40,6 +40,19 @@ status = "okay"; }; +/* USB */ +&usbotg1 { + disable-over-current; + dr_mode = "otg"; + status = "okay"; +}; + +&usbotg2 { + disable-over-current; + dr_mode = "host"; + status = "okay"; +}; + /* eMMC */ &usdhc1 { no-1-8-v; From patchwork Thu Mar 21 06:57:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Othacehe X-Patchwork-Id: 1914387 X-Patchwork-Delegate: festevam@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gnu.org header.i=@gnu.org header.a=rsa-sha256 header.s=fencepost-gnu-org header.b=MYl/uqtv; dkim-atps=neutral Authentication-Results: legolas.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=patchwork.ozlabs.org) 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 ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4V0jxL4vJlz1yWs for ; Thu, 21 Mar 2024 22:32:38 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3D4DD87EE6; Thu, 21 Mar 2024 12:32:16 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gnu.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gnu.org header.i=@gnu.org header.b="MYl/uqtv"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EAAA58809C; Thu, 21 Mar 2024 07:58:00 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 6CDAA880B2 for ; Thu, 21 Mar 2024 07:57:55 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gnu.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=othacehe@gnu.org Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rnCN7-0006Fc-4Z; Thu, 21 Mar 2024 02:57:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=dHyU4EBl8z/95+bA57+mzu5odvca1EaaK6T09dpLRwg=; b=MYl/uqtv+nh1cyvkKrnj s+I9/phgyWzBxGJw9qZdxrlZgWzakoVAI4OLwKIl07VAOePuPefav9hSuhSWKIGvzx4CScs+vovws gYBO3x59PbBvtai4k5VAUPKbKbjukE6FhtwfiI1jSDV4z3VwA3Jx3KiSQ1xIBddkjnumGoGJ0eSH2 psLVnSy6U5NQ496fsepU0bFuUcE6RdrKfcUBUZw8EEzgxiGD+/FEViBNixoUGDooFyaEpkdmBNIjg v1nenXOQgIqZIbIZuck2Lg3MSI2zhTgDqGoVM/aQqOmTtp7Rcf04nys0B8BL3z8t9txYzACHvohQr NrTGKOcuXovtpA==; From: Mathieu Othacehe To: Tom Rini , Marek Vasut , Peng Fan , Shiji Yang , Ye Li , Alice Guo , Stefano Babic , =?utf-8?q?S=C3=A9bastien_Szymanski?= , Fabio Estevam , Simon Glass , Mathieu Othacehe , Yannic Moog , Primoz Fiser , Christoph Stoidner , Wadim Egorov Cc: u-boot@lists.denx.de, Mathieu Othacehe Subject: [PATCH v2 2/3] configs: imx93-phyboard-segin: Add USB support Date: Thu, 21 Mar 2024 07:57:41 +0100 Message-ID: <20240321065742.32441-3-othacehe@gnu.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240321065742.32441-1-othacehe@gnu.org> References: <20240321065742.32441-1-othacehe@gnu.org> MIME-Version: 1.0 X-Mailman-Approved-At: Thu, 21 Mar 2024 12:32:10 +0100 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.8 at phobos.denx.de X-Virus-Status: Clean Add USB support by enabling `usb` command and required USB drivers. Signed-off-by: Mathieu Othacehe --- configs/imx93-phyboard-segin_defconfig | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configs/imx93-phyboard-segin_defconfig b/configs/imx93-phyboard-segin_defconfig index 24f9bd553aa..0345e7deeab 100644 --- a/configs/imx93-phyboard-segin_defconfig +++ b/configs/imx93-phyboard-segin_defconfig @@ -67,6 +67,7 @@ CONFIG_CMD_GPIO=y CONFIG_CMD_I2C=y CONFIG_CMD_MMC=y CONFIG_CMD_POWEROFF=y +CONFIG_CMD_USB=y CONFIG_CMD_SNTP=y CONFIG_CMD_CACHE=y CONFIG_CMD_EFIDEBUG=y @@ -132,6 +133,13 @@ CONFIG_SPL_SYSRESET=y CONFIG_SYSRESET_WATCHDOG=y CONFIG_DM_THERMAL=y CONFIG_IMX_TMU=y +CONFIG_USB=y +CONFIG_USB_EHCI_HCD=y +CONFIG_USB_GADGET=y +CONFIG_USB_GADGET_MANUFACTURER="PHYTEC" +CONFIG_USB_GADGET_VENDOR_NUM=0x1fc9 +CONFIG_USB_GADGET_PRODUCT_NUM=0x0152 +CONFIG_CI_UDC=y CONFIG_ULP_WATCHDOG=y CONFIG_LZO=y CONFIG_BZIP2=y From patchwork Thu Mar 21 06:57:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Othacehe X-Patchwork-Id: 1914388 X-Patchwork-Delegate: festevam@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gnu.org header.i=@gnu.org header.a=rsa-sha256 header.s=fencepost-gnu-org header.b=Btu5jTyU; dkim-atps=neutral Authentication-Results: legolas.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=patchwork.ozlabs.org) 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 ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4V0jxY25r4z1yWs for ; Thu, 21 Mar 2024 22:32:49 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2058188047; Thu, 21 Mar 2024 12:32:17 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gnu.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gnu.org header.i=@gnu.org header.b="Btu5jTyU"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3355A8809C; Thu, 21 Mar 2024 07:58:06 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.2 Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 607E2880BF for ; Thu, 21 Mar 2024 07:57:56 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gnu.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=othacehe@gnu.org Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rnCN9-0006GY-1J; Thu, 21 Mar 2024 02:57:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=3rJkn90Ud0M9/jeFir4Or+zAvffnOM2Up/YugEsUMaM=; b=Btu5jTyU5PU6pX7TmN0d FZNnVFuUnhAhsv/sNxbNY6VHtW6weoGj2k4paFlPOQOJRBi6h8qt89MmAwGBrKteg56d9wsq+Htb9 Mrsy0ZG+4nObTlDKWvzM4jhtdw+R0YNZAy3SbsKoD1Fa46Z1bWwrMu/Pm3gzs0LCq3dGfXpw6N3f5 uJYGAXfOJzEf42QEE6978uzh4k6mgBaBqFIPIzxTJLHijeWMva1YoDFVbkLuPdSPdwdTY0GKw9HsS yXZtNAwo1bRy5KbIlILq3PmW51sFw/sqYXQYKpxlZhY4NpuPuEJqsLw7INE1Im4YVdME/MUerFiF9 iDuS1C1JKzkYmw==; From: Mathieu Othacehe To: Tom Rini , Marek Vasut , Peng Fan , Shiji Yang , Ye Li , Alice Guo , Stefano Babic , =?utf-8?q?S=C3=A9bastien_Szymanski?= , Fabio Estevam , Simon Glass , Mathieu Othacehe , Yannic Moog , Primoz Fiser , Christoph Stoidner , Wadim Egorov Cc: u-boot@lists.denx.de, Mathieu Othacehe Subject: [PATCH v2 3/3] configs: imx93-phyboard-segin: Add fastboot support Date: Thu, 21 Mar 2024 07:57:42 +0100 Message-ID: <20240321065742.32441-4-othacehe@gnu.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240321065742.32441-1-othacehe@gnu.org> References: <20240321065742.32441-1-othacehe@gnu.org> MIME-Version: 1.0 X-Mailman-Approved-At: Thu, 21 Mar 2024 12:32:10 +0100 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.8 at phobos.denx.de X-Virus-Status: Clean Enable the `fastboot` command. Reviewed-by: Marek Vasut Signed-off-by: Mathieu Othacehe --- configs/imx93-phyboard-segin_defconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configs/imx93-phyboard-segin_defconfig b/configs/imx93-phyboard-segin_defconfig index 0345e7deeab..54215c51c08 100644 --- a/configs/imx93-phyboard-segin_defconfig +++ b/configs/imx93-phyboard-segin_defconfig @@ -94,6 +94,12 @@ CONFIG_SPL_CLK_IMX93=y CONFIG_CLK_IMX93=y CONFIG_DFU_MMC=y CONFIG_DFU_RAM=y +CONFIG_USB_FUNCTION_FASTBOOT=y +CONFIG_FASTBOOT_BUF_ADDR=0x82800000 +CONFIG_FASTBOOT_BUF_SIZE=0x20000000 +CONFIG_FASTBOOT_FLASH=y +CONFIG_FASTBOOT_UUU_SUPPORT=y +CONFIG_FASTBOOT_FLASH_MMC_DEV=0 CONFIG_GPIO_HOG=y CONFIG_IMX_RGPIO2P=y CONFIG_DM_I2C=y