imx93_var_som: Add USB support.
Subsystems (2)
cover imx93_var_som: Add USB support.
Hello,
This series adds USB support for the imx93_var_som board. It depends on:
https://lists.denx.de/pipermail/u-boot/2024-February/546203.html
It also adds support for fastboot and EFI partitions.
Thanks,
Mathieu
Mathieu Othacehe (5):
arm: dts: imx93: Add USB support.
arm: dts: imx93-var-som-symphony: Add USB support.
configs: imx93_var_som: Add USB support.
configs: imx93_var_som: Add fastboot support.
configs: imx93_var_som: Add EFI support.
arch/arm/dts/imx93-var-som-symphony.dts | 18 ++++++++ arch/arm/dts/imx93.dtsi | 58 +++++++++++++++++++++++++ configs/imx93_var_som_defconfig | 19 +++++++- 3 files changed, 94 insertions(+), 1 deletion(-)
Signature · 1 line
2.41.0
PATCH 1/5 arm: dts: imx93: Add USB support.
Copied from:
https://lore.kernel.org/linux-devicetree/[email protected]/
--- arch/arm/dts/imx93.dtsi | 58 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+)
arch/arm/dts/imx93.dtsi +58 -0
@@ -149,6 +149,20 @@ }; }; + usbphynop1: usbphynop1 { + compatible = "usb-nop-xceiv"; + #phy-cells = <0>; + clocks = <&clk IMX93_CLK_USB_PHY_BURUNIN>; + clock-names = "main_clk"; + }; + + usbphynop2: usbphynop2 { + compatible = "usb-nop-xceiv"; + #phy-cells = <0>; + clocks = <&clk IMX93_CLK_USB_PHY_BURUNIN>; + clock-names = "main_clk"; + }; + soc@0 { compatible = "simple-bus"; #address-cells = <1>;
@@ -844,5 +858,49 @@ #power-domain-cells = <1>; status = "disabled"; }; + + usbotg1: usb@4c100000 { + compatible = "fsl,imx93-usb", "fsl,imx7d-usb", "fsl,imx27-usb"; + reg = <0x4c100000 0x200>; + interrupts = <GIC_SPI 187 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&clk IMX93_CLK_USB_CONTROLLER_GATE>, + <&clk IMX93_CLK_HSIO_32K_GATE>; + clock-names = "usb_ctrl_root_clk", "usb_wakeup"; + assigned-clocks = <&clk IMX93_CLK_HSIO>; + assigned-clock-parents = <&clk IMX93_CLK_SYS_PLL_PFD1_DIV2>; + assigned-clock-rates = <133000000>; + phys = <&usbphynop1>; + fsl,usbmisc = <&usbmisc1 0>; + status = "disabled"; + }; + + usbmisc1: usbmisc@4c100200 { + compatible = "fsl,imx8mm-usbmisc", "fsl,imx7d-usbmisc", + "fsl,imx6q-usbmisc"; + reg = <0x4c100200 0x200>; + #index-cells = <1>; + }; + + usbotg2: usb@4c200000 { + compatible = "fsl,imx93-usb", "fsl,imx7d-usb", "fsl,imx27-usb"; + reg = <0x4c200000 0x200>; + interrupts = <GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&clk IMX93_CLK_USB_CONTROLLER_GATE>, + <&clk IMX93_CLK_HSIO_32K_GATE>; + clock-names = "usb_ctrl_root_clk", "usb_wakeup"; + assigned-clocks = <&clk IMX93_CLK_HSIO>; + assigned-clock-parents = <&clk IMX93_CLK_SYS_PLL_PFD1_DIV2>; + assigned-clock-rates = <133000000>; + phys = <&usbphynop2>; + fsl,usbmisc = <&usbmisc2 0>; + status = "disabled"; + }; + + usbmisc2: usbmisc@4c200200 { + compatible = "fsl,imx8mm-usbmisc", "fsl,imx7d-usbmisc", + "fsl,imx6q-usbmisc"; + reg = <0x4c200200 0x200>; + #index-cells = <1>; + }; }; };
Signature · 1 line
2.41.0
PATCH 2/5 arm: dts: imx93-var-som-symphony: Add USB support.
In reply to Mathieu OthaceheEnable both usbotg1 and usbotg2 ports.
--- arch/arm/dts/imx93-var-som-symphony.dts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)
arch/arm/dts/imx93-var-som-symphony.dts +18 -0
@@ -285,6 +285,24 @@ status = "okay"; }; +&usbotg1 { + dr_mode = "otg"; + hnp-disable; + srp-disable; + adp-disable; + disable-over-current; + status = "okay"; +}; + +&usbotg2 { + dr_mode = "host"; + hnp-disable; + srp-disable; + adp-disable; + disable-over-current; + status = "okay"; +}; + /* SD */ &usdhc2 { pinctrl-names = "default", "state_100mhz", "state_200mhz";
Signature · 1 line
2.41.0
PATCH 3/5 configs: imx93_var_som: Add USB support.
In reply to Mathieu OthaceheEnable the usb command and some USB drivers.
--- configs/imx93_var_som_defconfig | 9 +++++++++ 1 file changed, 9 insertions(+)
configs/imx93_var_som_defconfig +9 -0
@@ -70,6 +70,7 @@ CONFIG_CMD_I2C=y CONFIG_CMD_MMC=y CONFIG_CMD_POWEROFF=y CONFIG_CMD_READ=y +CONFIG_CMD_USB=y CONFIG_CMD_WDT=y CONFIG_BOOTP_PREFER_SERVERIP=y CONFIG_CMD_SNTP=y
@@ -132,6 +133,14 @@ CONFIG_DM_SERIAL=y CONFIG_FSL_LPUART=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="FSL" +CONFIG_USB_GADGET_VENDOR_NUM=0x1fc9 +CONFIG_USB_GADGET_PRODUCT_NUM=0x0152 +CONFIG_CI_UDC=y +CONFIG_USB_PORT_AUTO=y CONFIG_ULP_WATCHDOG=y CONFIG_WDT=y CONFIG_LZO=y
Signature · 1 line
2.41.0
PATCH 4/5 configs: imx93_var_som: Add fastboot support.
In reply to Mathieu OthaceheEnable the fastboot command.
--- configs/imx93_var_som_defconfig | 6 ++++++ 1 file changed, 6 insertions(+)
configs/imx93_var_som_defconfig +6 -0
@@ -97,6 +97,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_PCA953X=y
Signature · 1 line
2.41.0
PATCH 5/5 configs: imx93_var_som: Add EFI support.
In reply to Mathieu OthaceheEnable the gpt command and EFI partitions support.
--- configs/imx93_var_som_defconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
configs/imx93_var_som_defconfig +3 -1
@@ -78,6 +78,7 @@ CONFIG_CMD_CACHE=y CONFIG_CMD_EFIDEBUG=y CONFIG_CMD_RTC=y CONFIG_CMD_TIME=y +CONFIG_CMD_GPT=y CONFIG_CMD_GETTIME=y CONFIG_CMD_TIMER=y CONFIG_CMD_REGULATOR=y
@@ -151,4 +152,5 @@ CONFIG_ULP_WATCHDOG=y CONFIG_WDT=y CONFIG_LZO=y CONFIG_BZIP2=y -CONFIG_RSA=y +CONFIG_RSA=y +CONFIG_EFI_PARTITION=y
Signature · 1 line
2.41.0
Fabio Estevam
reviewerQuoted 10 lines · Mathieu Othacehe
Hello,
This series adds USB support for the
imx93_var_somboard. It depends on:
https://lists.denx.de/pipermail/u-boot/2024-February/546203.htmlIt also adds support for fastboot and EFI partitions.
Thanks,
Quoted 8 lines
Mathieu
Mathieu Othacehe (5):
arm: dts: imx93: Add USB support.
arm: dts: imx93-var-som-symphony: Add USB support.
configs:imx93_var_som: Add USB support.
configs:imx93_var_som: Add fastboot support.
configs:imx93_var_som: Add EFI support.
This last one did not apply against master.
I checked and the two options are already enabled, so I dropped the patch 5/5 and applied the others, thanks.