Skip to content

Commit 4f5b8aa

Browse files
svenpeter42jannau
authored andcommitted
WIP: phy: apple: Add Apple Type-C PHY
Signed-off-by: Sven Peter <sven@svenpeter.dev>
1 parent 2654eed commit 4f5b8aa

8 files changed

Lines changed: 2713 additions & 0 deletions

File tree

drivers/phy/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ config PHY_AIROHA_PCIE
8484

8585
source "drivers/phy/allwinner/Kconfig"
8686
source "drivers/phy/amlogic/Kconfig"
87+
source "drivers/phy/apple/Kconfig"
8788
source "drivers/phy/broadcom/Kconfig"
8889
source "drivers/phy/cadence/Kconfig"
8990
source "drivers/phy/freescale/Kconfig"

drivers/phy/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ obj-$(CONFIG_USB_LGM_PHY) += phy-lgm-usb.o
1313
obj-$(CONFIG_PHY_AIROHA_PCIE) += phy-airoha-pcie.o
1414
obj-y += allwinner/ \
1515
amlogic/ \
16+
apple/ \
1617
broadcom/ \
1718
cadence/ \
1819
freescale/ \

drivers/phy/apple/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
2+
config PHY_APPLE_ATC
3+
tristate "Apple Type-C PHY"
4+
depends on ARCH_APPLE || COMPILE_TEST
5+
default ARCH_APPLE
6+
select GENERIC_PHY
7+
select TYPEC
8+
help
9+
Enable this to add support for the Apple Type-C PHY, switch
10+
and mux found in Apple SoCs such as the M1.
11+
This driver currently provides support for USB2 and USB3.

drivers/phy/apple/Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
2+
CFLAGS_trace.o := -I$(src)
3+
4+
obj-$(CONFIG_PHY_APPLE_ATC) += phy-apple-atc.o
5+
phy-apple-atc-y := atc.o
6+
phy-apple-atc-$(CONFIG_TRACING) += trace.o

0 commit comments

Comments
 (0)