Skip to content

Commit 958e77e

Browse files
JasonHe-nxpJonyZhang7
authored andcommitted
boards: frdm_imx93: enable usb support
Enable USB support on i.MX93 FRDM. Signed-off-by: Jason He <jason.he_1@nxp.com> Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com> Signed-off-by: Jony Zhang <jony.zhang@nxp.com>
1 parent 5da1db8 commit 958e77e

File tree

4 files changed

+34
-0
lines changed

4 files changed

+34
-0
lines changed

boards/nxp/frdm_imx93/frdm_imx93_mimx9352_a55.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,3 +192,7 @@
192192
&tpm2 {
193193
status = "okay";
194194
};
195+
196+
zephyr_udc0: &usb1 {
197+
status = "okay";
198+
};

boards/nxp/frdm_imx93/frdm_imx93_mimx9352_a55.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ supported:
2121
- can
2222
- net
2323
- watchdog
24+
- usbd
2425
testing:
2526
ignore_tags:
2627
- bluetooth

boards/nxp/frdm_imx93/frdm_imx93_mimx9352_a55_defconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,6 @@ CONFIG_CONSOLE=y
2828
CONFIG_UART_CONSOLE=y
2929

3030
CONFIG_CLOCK_CONTROL=y
31+
32+
# USB Except
33+
CONFIG_UDC_WORKQUEUE=n

dts/arm64/nxp/nxp_mimx93_a55.dtsi

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,32 @@
554554
prescaler = <1>;
555555
status = "disabled";
556556
};
557+
558+
usb1: usbd@4c100000 {
559+
compatible = "nxp,ehci";
560+
reg = <0x4c100000 DT_SIZE_K(4)>;
561+
interrupts = <GIC_SPI 187 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>;
562+
interrupt-names = "usb_0";
563+
interrupt-parent = <&gic>;
564+
clocks = <&ccm IMX_CCM_USB_CLK 2 3>,
565+
<&ccm IMX_CCM_USB_PHY_CLK 2 8>;
566+
clock-rates = <134000000 50000000>;
567+
num-bidir-endpoints = <8>;
568+
status = "disabled";
569+
};
570+
571+
usb2: usbd@4c200000 {
572+
compatible = "nxp,ehci";
573+
reg = <0x4c200000 DT_SIZE_K(4)>;
574+
interrupts = <GIC_SPI 188 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>;
575+
interrupt-names = "usb_1";
576+
interrupt-parent = <&gic>;
577+
clocks = <&ccm IMX_CCM_USB_CLK 2 3>,
578+
<&ccm IMX_CCM_USB_PHY_CLK 2 8>;
579+
clock-rates = <134000000 50000000>;
580+
num-bidir-endpoints = <8>;
581+
status = "disabled";
582+
};
557583
};
558584

559585
&gpio1 {

0 commit comments

Comments
 (0)