[PATCH 23/25] usb: dwc2: add support for Metanoia MT2824

Krzysztof Kozlowski krzk at kernel.org
Fri Nov 6 03:52:10 PST 2026


On Fri, Nov 06, 2026 at 10:30:20AM +0100, Benoît Monin wrote:
> Add core parameters for the Metanoia MT2824 DWC2 controller: high-speed
> UTMI PHY, no host DMA, and no OTG HNP/SRP support.
> 
> Originally-by: Jun Chang <jun.chang at metanoia-comm.com>
> Signed-off-by: Benoît Monin <benoit.monin at bootlin.com>
> ---
>  drivers/usb/dwc2/params.c | 13 +++++++++++++
>  1 file changed, 13 insertions(+)
> 
> diff --git a/drivers/usb/dwc2/params.c b/drivers/usb/dwc2/params.c
> index 091bfcfef753..d6a6a581d021 100644
> --- a/drivers/usb/dwc2/params.c
> +++ b/drivers/usb/dwc2/params.c
> @@ -303,6 +303,17 @@ static void dwc2_set_stm32mp15_hsotg_params(struct dwc2_hsotg *hsotg)
>  	p->hird_threshold_en = false;
>  }
>  
> +static void dwc2_set_metanoia_mt2824_params(struct dwc2_hsotg *hsotg)
> +{
> +	struct dwc2_core_params *p = &hsotg->params;
> +
> +	p->otg_caps.hnp_support = false;
> +	p->otg_caps.srp_support = false;
> +	p->speed = DWC2_SPEED_PARAM_HIGH;
> +	p->host_dma = false;
> +	p->phy_type = DWC2_PHY_TYPE_PARAM_UTMI;
> +}
> +
>  const struct of_device_id dwc2_of_match_table[] = {
>  	{ .compatible = "brcm,bcm2835-usb", .data = dwc2_set_bcm_params },
>  	{ .compatible = "hisilicon,hi6220-usb", .data = dwc2_set_his_params },
> @@ -347,6 +358,8 @@ const struct of_device_id dwc2_of_match_table[] = {
>  	  .data = dwc2_set_stm32mp15_hsotg_params },
>  	{ .compatible = "intel,socfpga-agilex-hsotg",
>  	  .data = dwc2_set_socfpga_agilex_params },
> +	{ .compatible = "metanoia,mt2824-usb",

Please organize the patch documenting the compatible (DT bindings)
before the patch using that compatible.
See also: https://elixir.bootlin.com/linux/v6.14-rc6/source/Documentation/devicetree/bindings/submitting-patches.rst#L46


Best regards,
Krzysztof




More information about the linux-riscv mailing list