Skip to content

Commit 31de313

Browse files
XBurstvinodkoul
authored andcommitted
PHY: Ingenic: Add USB PHY driver using generic PHY framework.
Used the generic PHY framework API to create the PHY, this driver supoorts USB OTG PHY used in JZ4770 SoC, JZ4775 SoC, JZ4780 SoC, X1000 SoC, X1830 SoC and X2000 SoC. Co-developed-by: 漆鹏振 (Qi Pengzhen) <aric.pzqi@ingenic.com> Signed-off-by: 漆鹏振 (Qi Pengzhen) <aric.pzqi@ingenic.com> Signed-off-by: 周琰杰 (Zhou Yanjie) <zhouyanjie@wanyeetech.com> Tested-by: 周正 (Zhou Zheng) <sernia.zhou@foxmail.com> Tested-by: H. Nikolaus Schaller <hns@goldelico.com> Reviewed-by: Paul Cercueil <paul@crapouillou.net> Link: https://lore.kernel.org/r/20201116141906.11758-4-zhouyanjie@wanyeetech.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 4f6ecfa commit 31de313

5 files changed

Lines changed: 428 additions & 0 deletions

File tree

‎drivers/phy/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ source "drivers/phy/broadcom/Kconfig"
6666
source "drivers/phy/cadence/Kconfig"
6767
source "drivers/phy/freescale/Kconfig"
6868
source "drivers/phy/hisilicon/Kconfig"
69+
source "drivers/phy/ingenic/Kconfig"
6970
source "drivers/phy/lantiq/Kconfig"
7071
source "drivers/phy/marvell/Kconfig"
7172
source "drivers/phy/mediatek/Kconfig"

‎drivers/phy/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ obj-y += allwinner/ \
1515
cadence/ \
1616
freescale/ \
1717
hisilicon/ \
18+
ingenic/ \
1819
intel/ \
1920
lantiq/ \
2021
marvell/ \

‎drivers/phy/ingenic/Kconfig‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
#
3+
# Phy drivers for Ingenic platforms
4+
#
5+
config PHY_INGENIC_USB
6+
tristate "Ingenic SoCs USB PHY Driver"
7+
depends on MIPS || COMPILE_TEST
8+
depends on USB_SUPPORT
9+
select GENERIC_PHY
10+
help
11+
This driver provides USB PHY support for the USB controller found
12+
on the JZ-series and X-series SoCs from Ingenic.

‎drivers/phy/ingenic/Makefile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
obj-y += phy-ingenic-usb.o

0 commit comments

Comments
 (0)