* [PATCH v2 0/3] imx93-phyboard-segin: Add USB support.
@ 2024-03-21 6:57 Mathieu Othacehe
2024-03-21 6:57 ` [PATCH v2 1/3] arm: dts: " Mathieu Othacehe
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Mathieu Othacehe @ 2024-03-21 6:57 UTC (permalink / raw)
To: Tom Rini, Marek Vasut, Peng Fan, Shiji Yang, Ye Li, Alice Guo,
Stefano Babic, Sébastien Szymanski, Fabio Estevam,
Simon Glass, Mathieu Othacehe, Yannic Moog, Primoz Fiser,
Christoph Stoidner, Wadim Egorov
Cc: u-boot, Mathieu Othacehe
Hello,
This series adds USB support to imx93-phyboard-segin, in the same way as it
has been done for imx93_var_som here:
https://lists.denx.de/pipermail/u-boot/2024-February/546301.html
Thanks,
Mathieu
Changelog:
v1: https://lists.denx.de/pipermail/u-boot/2024-March/548613.html
Mathieu Othacehe (3):
arm: dts: imx93-phyboard-segin: Add USB support
configs: imx93-phyboard-segin: Add USB support
configs: imx93-phyboard-segin: Add fastboot support
arch/arm/dts/imx93-phyboard-segin.dts | 13 +++++++++++++
configs/imx93-phyboard-segin_defconfig | 14 ++++++++++++++
2 files changed, 27 insertions(+)
--
2.41.0
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 1/3] arm: dts: imx93-phyboard-segin: Add USB support
2024-03-21 6:57 [PATCH v2 0/3] imx93-phyboard-segin: Add USB support Mathieu Othacehe
@ 2024-03-21 6:57 ` Mathieu Othacehe
2024-03-21 6:57 ` [PATCH v2 2/3] configs: " Mathieu Othacehe
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Mathieu Othacehe @ 2024-03-21 6:57 UTC (permalink / raw)
To: Tom Rini, Marek Vasut, Peng Fan, Shiji Yang, Ye Li, Alice Guo,
Stefano Babic, Sébastien Szymanski, Fabio Estevam,
Simon Glass, Mathieu Othacehe, Yannic Moog, Primoz Fiser,
Christoph Stoidner, Wadim Egorov
Cc: u-boot, Mathieu Othacehe
Enable both usbotg1 and usbotg2 ports. Disable over-current as OC pins are
not connected to the SoC.
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
---
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;
--
2.41.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH v2 2/3] configs: imx93-phyboard-segin: Add USB support
2024-03-21 6:57 [PATCH v2 0/3] imx93-phyboard-segin: Add USB support Mathieu Othacehe
2024-03-21 6:57 ` [PATCH v2 1/3] arm: dts: " Mathieu Othacehe
@ 2024-03-21 6:57 ` Mathieu Othacehe
2024-03-21 6:57 ` [PATCH v2 3/3] configs: imx93-phyboard-segin: Add fastboot support Mathieu Othacehe
2024-03-21 12:01 ` [PATCH v2 0/3] imx93-phyboard-segin: Add USB support Fabio Estevam
3 siblings, 0 replies; 5+ messages in thread
From: Mathieu Othacehe @ 2024-03-21 6:57 UTC (permalink / raw)
To: Tom Rini, Marek Vasut, Peng Fan, Shiji Yang, Ye Li, Alice Guo,
Stefano Babic, Sébastien Szymanski, Fabio Estevam,
Simon Glass, Mathieu Othacehe, Yannic Moog, Primoz Fiser,
Christoph Stoidner, Wadim Egorov
Cc: u-boot, Mathieu Othacehe
Add USB support by enabling `usb` command and required USB drivers.
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
---
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
--
2.41.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH v2 3/3] configs: imx93-phyboard-segin: Add fastboot support
2024-03-21 6:57 [PATCH v2 0/3] imx93-phyboard-segin: Add USB support Mathieu Othacehe
2024-03-21 6:57 ` [PATCH v2 1/3] arm: dts: " Mathieu Othacehe
2024-03-21 6:57 ` [PATCH v2 2/3] configs: " Mathieu Othacehe
@ 2024-03-21 6:57 ` Mathieu Othacehe
2024-03-21 12:01 ` [PATCH v2 0/3] imx93-phyboard-segin: Add USB support Fabio Estevam
3 siblings, 0 replies; 5+ messages in thread
From: Mathieu Othacehe @ 2024-03-21 6:57 UTC (permalink / raw)
To: Tom Rini, Marek Vasut, Peng Fan, Shiji Yang, Ye Li, Alice Guo,
Stefano Babic, Sébastien Szymanski, Fabio Estevam,
Simon Glass, Mathieu Othacehe, Yannic Moog, Primoz Fiser,
Christoph Stoidner, Wadim Egorov
Cc: u-boot, Mathieu Othacehe
Enable the `fastboot` command.
Reviewed-by: Marek Vasut <marex@denx.de>
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
---
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
--
2.41.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v2 0/3] imx93-phyboard-segin: Add USB support.
2024-03-21 6:57 [PATCH v2 0/3] imx93-phyboard-segin: Add USB support Mathieu Othacehe
` (2 preceding siblings ...)
2024-03-21 6:57 ` [PATCH v2 3/3] configs: imx93-phyboard-segin: Add fastboot support Mathieu Othacehe
@ 2024-03-21 12:01 ` Fabio Estevam
3 siblings, 0 replies; 5+ messages in thread
From: Fabio Estevam @ 2024-03-21 12:01 UTC (permalink / raw)
To: Mathieu Othacehe
Cc: Tom Rini, Marek Vasut, Peng Fan, Shiji Yang, Ye Li, Alice Guo,
Stefano Babic, Sébastien Szymanski, Simon Glass,
Mathieu Othacehe, Yannic Moog, Primoz Fiser, Christoph Stoidner,
Wadim Egorov, u-boot
Hi Mathieu,
On Thu, Mar 21, 2024 at 3:57 AM Mathieu Othacehe <othacehe@gnu.org> wrote:
> Mathieu Othacehe (3):
> arm: dts: imx93-phyboard-segin: Add USB support
> configs: imx93-phyboard-segin: Add USB support
> configs: imx93-phyboard-segin: Add fastboot support
>
> arch/arm/dts/imx93-phyboard-segin.dts | 13 +++++++++++++
The addition of the i.MX93 USB support in the kernel devicetree is
taking longer than expected:
https://lore.kernel.org/linux-arm-kernel/20240321081439.541799-8-xu.yang_2@nxp.com/T/#u
To avoid getting out of sync with the upstream dts, please add the USB
nodes inside imx93-phyboard-segin-u-boot.dtsi
for now.
Thanks
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-03-21 12:07 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-21 6:57 [PATCH v2 0/3] imx93-phyboard-segin: Add USB support Mathieu Othacehe
2024-03-21 6:57 ` [PATCH v2 1/3] arm: dts: " Mathieu Othacehe
2024-03-21 6:57 ` [PATCH v2 2/3] configs: " Mathieu Othacehe
2024-03-21 6:57 ` [PATCH v2 3/3] configs: imx93-phyboard-segin: Add fastboot support Mathieu Othacehe
2024-03-21 12:01 ` [PATCH v2 0/3] imx93-phyboard-segin: Add USB support Fabio Estevam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox