summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoao Paulo Goncalves <joao.goncalves@toradex.com>2023-09-04 16:16:29 -0300
committerJoao Paulo Goncalves <joao.goncalves@toradex.com>2023-09-04 18:19:47 -0300
commit01272a9f2a8c72a7f4e908c05f1588699160d5a8 (patch)
tree312e18ebefd2f8620a0c35351fd3d8171e4dd5f0
parent4c53a37ef6ec3de1d7115f39e57ac3af7e587a24 (diff)
toradex: verdin-imx8mm: Enable usb sdp support
Add necessary configuration options and device tree changes for usb sdp support. USB driver model disabled for SPL to reduce size as it is not needed for now for usb to works. Upstream-Status: Submitted [https://lore.kernel.org/all/20230822221726.8355-1-marcel@ziswiler.com] The changes are almost a backport from commit 1c2567a3f129 ("verdin-imx8mm: enable usb sdp spl recovery support") of u-boot-toradex next that was already submmited to upstream. The differences to the patch are device tree syntax and getting only the necessary configurations. Signed-off-by: Joao Paulo Goncalves <joao.goncalves@toradex.com>
-rw-r--r--arch/arm/dts/imx8mm-verdin-u-boot.dtsi16
-rw-r--r--configs/verdin-imx8mm_defconfig13
2 files changed, 26 insertions, 3 deletions
diff --git a/arch/arm/dts/imx8mm-verdin-u-boot.dtsi b/arch/arm/dts/imx8mm-verdin-u-boot.dtsi
index 36969eaf91..311aa39d4c 100644
--- a/arch/arm/dts/imx8mm-verdin-u-boot.dtsi
+++ b/arch/arm/dts/imx8mm-verdin-u-boot.dtsi
@@ -39,6 +39,10 @@
u-boot,dm-spl;
};
+&aips4 {
+ u-boot,dm-spl;
+};
+
&gpio1 {
u-boot,dm-spl;
};
@@ -99,6 +103,18 @@
u-boot,dm-spl;
};
+&usbmisc1 {
+ u-boot,dm-spl;
+};
+
+&usbotg1 {
+ u-boot,dm-spl;
+};
+
+&usbphynop1 {
+ u-boot,dm-spl;
+};
+
&usdhc1 {
u-boot,dm-spl;
};
diff --git a/configs/verdin-imx8mm_defconfig b/configs/verdin-imx8mm_defconfig
index cadfa43258..2e493daa88 100644
--- a/configs/verdin-imx8mm_defconfig
+++ b/configs/verdin-imx8mm_defconfig
@@ -40,6 +40,9 @@ CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR=y
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x300
CONFIG_SPL_I2C=y
CONFIG_SPL_POWER=y
+CONFIG_SPL_USB_HOST=y
+CONFIG_SPL_USB_GADGET=y
+CONFIG_SPL_USB_SDP_SUPPORT=y
CONFIG_SPL_WATCHDOG=y
CONFIG_SYS_PROMPT="Verdin iMX8MM # "
# CONFIG_BOOTM_NETBSD is not set
@@ -108,6 +111,8 @@ CONFIG_DM_ETH=y
CONFIG_DM_MDIO=y
CONFIG_FEC_MXC=y
CONFIG_MII=y
+CONFIG_SPL_PHY=y
+CONFIG_SPL_NOP_PHY=y
CONFIG_PINCTRL=y
CONFIG_SPL_PINCTRL=y
CONFIG_PINCTRL_IMX8M=y
@@ -127,13 +132,15 @@ CONFIG_SYSRESET_WATCHDOG=y
CONFIG_DM_THERMAL=y
CONFIG_IMX_TMU=y
CONFIG_USB=y
+# CONFIG_SPL_DM_USB is not set
CONFIG_USB_EHCI_HCD=y
+CONFIG_MXC_USB_OTG_HACTIVE=y
CONFIG_USB_KEYBOARD=y
CONFIG_USB_HOST_ETHER=y
CONFIG_USB_GADGET=y
-CONFIG_USB_GADGET_MANUFACTURER="FSL"
-CONFIG_USB_GADGET_VENDOR_NUM=0x0525
-CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
+CONFIG_USB_GADGET_MANUFACTURER="Toradex"
+CONFIG_USB_GADGET_VENDOR_NUM=0x1b67
+CONFIG_USB_GADGET_PRODUCT_NUM=0x4000
CONFIG_CI_UDC=y
CONFIG_SDP_LOADADDR=0x40400000
CONFIG_IMX_WATCHDOG=y