Skip to content

Conversation

@ccli8
Copy link
Contributor

@ccli8 ccli8 commented May 13, 2025

This adds nuvoton numaker m55m1x series soc into usbd_next support. It involves relevant modifications, including:

  1. Fix failure to enable HICR48M, which is to clock usbd and phy
  2. Support HWINFO for USB device serial number
  3. Add BTN0/BTN1 buttons on numaker_m55m1 board for hid-mouse sample test

Test samples:

  • samples/subsys/usb/cdc_acm
  • samples/subsys/usb/hid-mouse
  • samples/subsys/usb/mass

fabiobaltieri
fabiobaltieri previously approved these changes May 14, 2025
@fabiobaltieri
Copy link
Member

@ccli8 can you rebase? merge conflict

@ccli8
Copy link
Contributor Author

ccli8 commented May 15, 2025

Rebase on main branch

};
};

gpio_keys {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

split button changes to separate commit

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

ccli8 added 2 commits May 15, 2025 13:19
This supports nuvoton numaker m55m1x series soc. Besides, it also
has relevant modifications, including:
1. Fix failure to enable HICR48M, which is to clock usbd and phy
2. Support HWINFO for USB device serial number

Signed-off-by: Chun-Chieh Li <ccli8@nuvoton.com>
Add BTN0/BTN1 buttons on numaker_m55m1 board for e.g. hid-mouse
sample test

Signed-off-by: Chun-Chieh Li <ccli8@nuvoton.com>
@ccli8 ccli8 force-pushed the nvt_m55m1_usbd_next branch from 31ebe90 to a358b8a Compare May 15, 2025 05:24
@sonarqubecloud

This comment was marked as off-topic.

NUMAKER_CLK_USBDIV_USBDIV(1)>;
dma-buffer-size = <1536>;
status = "disabled";
num-bidir-endpoints = <25>;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is it possible to have more than 16 bidir endpoints?

Copy link
Contributor Author

@ccli8 ccli8 May 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is hardware endpoint number in total. It will suppress to at most 16 for each IN/OUT.

@kartben kartben merged commit 2a7ffe5 into zephyrproject-rtos:main May 16, 2025
27 checks passed
@ccli8 ccli8 deleted the nvt_m55m1_usbd_next branch May 19, 2025 01:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: HWINFO Hardware Information Driver area: USB Universal Serial Bus platform: Nuvoton NPCM platform: Nuvoton NPCX Nuvoton NPCX platform: Nuvoton Numicro Numaker Nuvoton Technology Corporation, Numicro Numaker

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants