[PATCH 3/6] usb: chipidea: usb2: add SpacemiT K1 support
Peter Chen
peter.chen at kernel.org
Thu Aug 13 02:49:37 PDT 2026
On 26-08-12 17:26:14, Junzhong Pan wrote:
> Add a compatible for SpacemiT K1, and add platform data with correct
> flag since the hardware doesn't have internal otg register support.
>
> Signed-off-by: Junzhong Pan <panjunzhong at linux.spacemit.com>
Acked-by: Peter Chen <peter.chen at kernel.org>
Peter
> ---
> drivers/usb/chipidea/ci_hdrc_usb2.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/drivers/usb/chipidea/ci_hdrc_usb2.c b/drivers/usb/chipidea/ci_hdrc_usb2.c
> index 00d575cd2955..70c5ce750519 100644
> --- a/drivers/usb/chipidea/ci_hdrc_usb2.c
> +++ b/drivers/usb/chipidea/ci_hdrc_usb2.c
> @@ -40,10 +40,18 @@ static const struct ci_hdrc_platform_data ci_zevio_pdata = {
> .flags = CI_HDRC_REGS_SHARED | CI_HDRC_FORCE_FULLSPEED,
> };
>
> +static const struct ci_hdrc_platform_data ci_k1_pdata = {
> + .capoffset = DEF_CAPOFFSET,
> + .flags = CI_HDRC_DISABLE_STREAMING |
> + CI_HDRC_FORCE_VBUS_ACTIVE_ALWAYS |
> + CI_HDRC_DUAL_ROLE_NOT_OTG,
> +};
> +
> static const struct of_device_id ci_hdrc_usb2_of_match[] = {
> { .compatible = "chipidea,usb2" },
> { .compatible = "xlnx,zynq-usb-2.20a", .data = &ci_zynq_pdata },
> { .compatible = "lsi,zevio-usb", .data = &ci_zevio_pdata },
> + { .compatible = "spacemit,k1-usb2", .data = &ci_k1_pdata },
> { }
> };
> MODULE_DEVICE_TABLE(of, ci_hdrc_usb2_of_match);
>
> --
> 2.34.1
>
--
Thanks,
Peter Chen
More information about the linux-riscv
mailing list