[PATCH 22/25] phy: metanoia: add USB2 PHY driver
Philipp Zabel
p.zabel at pengutronix.de
Fri Nov 6 01:56:15 PST 2026
On Fr, 2026-11-06 at 10:30 +0100, Benoît Monin wrote:
> Add a minimal reset-only PHY provider for the Metanoia MT2824 USB2 PHY.
> It deasserts the PHY reset required by the DWC2 USB controller on init
> and asserts it again on exit.
>
> Originally-by: Jun Chang <jun.chang at metanoia-comm.com>
> Signed-off-by: Benoît Monin <benoit.monin at bootlin.com>
> ---
> drivers/phy/Kconfig | 1 +
> drivers/phy/Makefile | 1 +
> drivers/phy/metanoia/Kconfig | 16 ++++++++
> drivers/phy/metanoia/Makefile | 3 ++
> drivers/phy/metanoia/phy-usb2.c | 88 +++++++++++++++++++++++++++++++++++++++++
> 5 files changed, 109 insertions(+)
>
> diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig
> index 105fbe408aa2..73ef61f1f53d 100644
> --- a/drivers/phy/Kconfig
> +++ b/drivers/phy/Kconfig
> @@ -184,6 +184,7 @@ source "drivers/phy/intel/Kconfig"
> source "drivers/phy/lantiq/Kconfig"
> source "drivers/phy/marvell/Kconfig"
> source "drivers/phy/mediatek/Kconfig"
> +source "drivers/phy/metanoia/Kconfig"
> source "drivers/phy/microchip/Kconfig"
> source "drivers/phy/motorola/Kconfig"
> source "drivers/phy/mscc/Kconfig"
> diff --git a/drivers/phy/Makefile b/drivers/phy/Makefile
> index c6dd02003bbe..57991b50978c 100644
> --- a/drivers/phy/Makefile
> +++ b/drivers/phy/Makefile
> @@ -36,6 +36,7 @@ obj-$(CONFIG_GENERIC_PHY) += allwinner/ \
> lantiq/ \
> marvell/ \
> mediatek/ \
> + metanoia/ \
> microchip/ \
> motorola/ \
> mscc/ \
> diff --git a/drivers/phy/metanoia/Kconfig b/drivers/phy/metanoia/Kconfig
> new file mode 100644
> index 000000000000..b8a49085bb95
> --- /dev/null
> +++ b/drivers/phy/metanoia/Kconfig
> @@ -0,0 +1,16 @@
> +# SPDX-License-Identifier: GPL-2.0-only
> +#
> +# Phy drivers for Metanoia platforms
> +#
> +
> +config PHY_METANOIA_USB2
> + tristate "Metanoia USB2 PHY reset support"
> + depends on OF && (ARCH_METANOIA || COMPILE_TEST)
> + depends on RESET_CONTROLLER
No, it doesn't. This is only required for reset controller drivers.
The reset control API is stubbed out when RESET_CONTROLLER is not set.
regards
Philipp
More information about the linux-riscv
mailing list