Skip to content

Commit 2849c1f

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>
1 parent de0cc63 commit 2849c1f

File tree

4 files changed

+35
-0
lines changed

4 files changed

+35
-0
lines changed

boards/nxp/frdm_imx93/frdm_imx93_mimx9352_a55.dts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
zephyr,shell-uart = &lpuart2;
2727
zephyr,sram = &dram;
2828
zephyr,canbus = &flexcan2;
29+
zephyr,usb-device = &usb1;
2930
};
3031

3132
cpus {
@@ -149,3 +150,7 @@
149150
&wdog4 {
150151
status = "okay";
151152
};
153+
154+
zephyr_udc0: &usb1 {
155+
status = "okay";
156+
};

boards/nxp/frdm_imx93/frdm_imx93_mimx9352_a55.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ supported:
2020
- can
2121
- net
2222
- watchdog
23+
- usb_device
2324
testing:
2425
ignore_tags:
2526
- 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)