Skip to content

Commit

Permalink
USB: NXP LPC55S16 USB-HS support
Browse files Browse the repository at this point in the history
This adds USB-HS support for LPC55S16, much in the same way that
LPC55S28 support was added previously.

Signed-off-by: Maxime Vincent <[email protected]>
  • Loading branch information
maximevince authored and dleach02 committed Apr 13, 2023
1 parent b9f880a commit 006f16d
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
4 changes: 4 additions & 0 deletions boards/arm/lpcxpresso55s16/lpcxpresso55s16.dts
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@
model = "NXP LPCXpresso55S16 board";
compatible = "nxp,lpc55xxx", "nxp,lpc";
};

zephyr_udc0: &usbhs {
status = "okay";
};
1 change: 1 addition & 0 deletions boards/arm/lpcxpresso55s16/lpcxpresso55s16.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ supported:
- gpio
- i2c
- spi
- usb_device
14 changes: 12 additions & 2 deletions dts/arm/nxp/nxp_lpc55S1x_common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,12 @@
zephyr,memory-region = "SRAM2";
};

sram4: memory@20010000 {
usb_sram: memory@20010000 {
/* Connected to USB bus*/
compatible = "zephyr,memory-region", "mmio-sram";
reg = <0x20010000 DT_SIZE_K(16)>;
zephyr,memory-region = "SRAM4";
zephyr,memory-region = "USB_SRAM";
zephyr,memory-region-mpu = "RAM";
};
};

Expand Down Expand Up @@ -232,6 +233,15 @@
reg = <0x3a000 0x1000>;
status = "okay";
};

usbhs: usbhs@144000 {
compatible = "nxp,mcux-usbd";
reg = <0x94000 0x1000>;
interrupts = <47 1>;
num-bidir-endpoints = <6>;
usb-controller-index = "LpcIp3511Hs0";
status = "disabled";
};
};

&nvic {
Expand Down
4 changes: 4 additions & 0 deletions soc/arm/nxp_lpc/lpc55xxx/Kconfig.defconfig.lpc55S16
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,8 @@ config CAN_MCUX_MCAN
default y
depends on CAN

choice USB_MCUX_CONTROLLER_TYPE
default USB_DC_NXP_LPCIP3511
endchoice

endif # SOC_LPC55S16

0 comments on commit 006f16d

Please sign in to comment.