]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
usb: dwc2: Add support for 'maximum-speed' property
authorHerve Codina <herve.codina@bootlin.com>
Wed, 10 Sep 2025 16:07:30 +0000 (18:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Sep 2025 12:03:10 +0000 (14:03 +0200)
commite77ee1d2a8fa0f3179d4ac7b7d35b555da6a8cea
tree2128fcb69168ec8dcbcfbb71388c70bec64c32e5
parenta5d2edb2c9fa48382aec1673c709c2919899527c
usb: dwc2: Add support for 'maximum-speed' property

The DWC2 IP can be properly integrated in a SoC to work at high-speed
USB speed but some board issues, EMC constraints or any other reasons
can lead to the need to limit this USB speed at board level.

The device-tree 'maximum-speed' property already exists for this purpose
but is not handled by the DWC2 driver.

Fill this lack adding support for 'maximum-speed' property and so allow
to limit the USB speed in device-tree (board description).

Signed-off-by: Herve Codina <herve.codina@bootlin.com>
Link: https://lore.kernel.org/r/20250910160730.585303-1-herve.codina@bootlin.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc2/params.c