Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions boards/nxp/mimxrt595_evk/mimxrt595_evk_mimxrt595s_cm33.dts
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,14 @@ arduino_serial: &flexcomm12 {

zephyr_udc0: &usbhs {
status = "okay";
phy-handle = <&usbphy>;
};

&usbphy {
status = "okay";
tx-d-cal = <12>;
tx-cal-45-dp-ohms = <6>;
tx-cal-45-dm-ohms = <6>;
};

&ctimer0 {
Expand Down
6 changes: 6 additions & 0 deletions dts/arm/nxp/nxp_rt5xx_common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,12 @@
status = "disabled";
};

usbphy: usbphy@13b000 {
compatible = "nxp,usbphy";
reg = <0x13b000 0x1000>;
status = "disabled";
};

hs_lspi: spi@126000 {
compatible = "nxp,lpc-spi";
reg = <0x126000 0x1000>;
Expand Down
8 changes: 4 additions & 4 deletions soc/nxp/imxrt/imxrt5xx/cm33/soc.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ LOG_MODULE_REGISTER(soc, CONFIG_SOC_LOG_LEVEL);
#include "flash_clock_setup.h"
#endif

#if CONFIG_USB_DC_NXP_LPCIP3511
#if CONFIG_USB_DC_NXP_LPCIP3511 || CONFIG_UDC_NXP_IP3511
#include "usb_phy.h"
#include "usb.h"
#endif
Expand Down Expand Up @@ -71,7 +71,7 @@ const clock_frg_clk_config_t g_frg0Config_clock_init = {
const clock_frg_clk_config_t g_frg12Config_clock_init = {
.num = 12, .sfg_clock_src = kCLOCK_FrgMainClk, .divider = 255U, .mult = 167};

#if CONFIG_USB_DC_NXP_LPCIP3511
#if CONFIG_USB_DC_NXP_LPCIP3511 || CONFIG_UDC_NXP_IP3511
/* USB PHY configuration */
#define BOARD_USB_PHY_D_CAL (0x0CU)
#define BOARD_USB_PHY_TXCAL45DP (0x06U)
Expand Down Expand Up @@ -127,7 +127,7 @@ __imx_boot_ivt_section void (*const image_vector_table[])(void) = {
};
#endif /* CONFIG_NXP_IMXRT_BOOT_HEADER */

#if CONFIG_USB_DC_NXP_LPCIP3511
#if CONFIG_USB_DC_NXP_LPCIP3511 || CONFIG_UDC_NXP_IP3511

static void usb_device_clock_init(void)
{
Expand Down Expand Up @@ -280,7 +280,7 @@ void __weak rt5xx_clock_init(void)
CLOCK_AttachClk(kFRO_DIV4_to_FLEXCOMM0);
#endif
#endif
#if CONFIG_USB_DC_NXP_LPCIP3511
#if CONFIG_USB_DC_NXP_LPCIP3511 || CONFIG_UDC_NXP_IP3511
usb_device_clock_init();
#endif

Expand Down