From ba6e8a32d3fc84c5e664ad0dc4f216df4deb6bc5 Mon Sep 17 00:00:00 2001 From: Pete Johanson Date: Mon, 27 Apr 2026 15:33:57 -0600 Subject: [PATCH 1/2] manifest: hal_adi: Pull in ADI HAL for MAX32666 USB fix Update the ADI HAL to bring in small fixes for defines on several MAX32 targets to ensure the MAX32 UDC driver builds as expected. Signed-off-by: Pete Johanson --- west.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/west.yml b/west.yml index 9621518dde73c..ea115d094388d 100644 --- a/west.yml +++ b/west.yml @@ -147,7 +147,7 @@ manifest: groups: - fs - name: hal_adi - revision: 1da695cbfbbaefcf166a22165702a7442d5e39c0 + revision: b93ba93f7a9f915a5833d735281c1dba1ad1f026 path: modules/hal/adi groups: - hal From 5bc4e663561274582164d356d3ba318701b6b978 Mon Sep 17 00:00:00 2001 From: Pete Johanson Date: Mon, 27 Apr 2026 15:30:51 -0600 Subject: [PATCH 2/2] soc: adi: max32: Add MAX32666 USB support Add the necessary USB node for the max32666.dtsi and enable the device on the MAX32666EVKIT which exposes a USB connector that works as expected. Signed-off-by: Pete Johanson --- .../max32666evkit/max32666evkit_max32666_cpu0.dts | 4 ++++ dts/arm/adi/max32/max32666.dtsi | 12 ++++++++++++ 2 files changed, 16 insertions(+) diff --git a/boards/adi/max32666evkit/max32666evkit_max32666_cpu0.dts b/boards/adi/max32666evkit/max32666evkit_max32666_cpu0.dts index 9ede0bc942ac0..918c1718e07a8 100644 --- a/boards/adi/max32666evkit/max32666evkit_max32666_cpu0.dts +++ b/boards/adi/max32666evkit/max32666evkit_max32666_cpu0.dts @@ -86,6 +86,10 @@ status = "okay"; }; +zephyr_udc0: &usbhs { + status = "okay"; +}; + /* Ensure we don't attempt to access flash instance used by CPU1 */ &flash1 { status = "disabled"; diff --git a/dts/arm/adi/max32/max32666.dtsi b/dts/arm/adi/max32/max32666.dtsi index cd63a390141d6..ea543a570c20a 100644 --- a/dts/arm/adi/max32/max32666.dtsi +++ b/dts/arm/adi/max32/max32666.dtsi @@ -226,5 +226,17 @@ status = "disabled"; }; }; + + usbhs: usbhs@400b1000 { + compatible = "adi,max32-usbhs"; + reg = <0x400b1000 0x1000>; + clocks = <&gcr ADI_MAX32_CLOCK_BUS0 3>; + interrupts = <2 0>; + num-bidir-endpoints = <1>; + num-in-endpoints = <6>; + num-out-endpoints = <7>; + maximum-speed = "high-speed"; + status = "disabled"; + }; }; };