drivers/phy/Kconfig

Source file repositories/reference/linux-study-clean/drivers/phy/Kconfig

File Facts

System
Linux kernel
Corpus path
drivers/phy/Kconfig
Extension
[no extension]
Size
5415 bytes
Lines
171
Domain
Driver Families
Bucket
drivers/phy
Inferred role
Driver Families: build/configuration rule
Status
atlas-only

Why This File Exists

Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.

Dependency Surface

Detected Declarations

Annotated Snippet

# SPDX-License-Identifier: GPL-2.0-only
#
# PHY
#

menu "PHY Subsystem"

config PHY_COMMON_PROPS
	bool "PHY common properties" if KUNIT_ALL_TESTS
	help
	  This parses properties common between generic PHYs and Ethernet PHYs.

	  Select this from consumer drivers to gain access to helpers for
	  parsing properties from the
	  Documentation/devicetree/bindings/phy/phy-common-props.yaml schema.

config PHY_COMMON_PROPS_TEST
	tristate "KUnit tests for PHY common props" if !KUNIT_ALL_TESTS
	depends on KUNIT && PHY_COMMON_PROPS
	default KUNIT_ALL_TESTS
	help
	  This builds KUnit tests for the PHY common property API.

	  For more information on KUnit and unit tests in general,
	  please refer to the KUnit documentation in Documentation/dev-tools/kunit/.

	  When in doubt, say N.

config GENERIC_PHY
	bool "PHY Core"
	help
	  Generic PHY support.

	  This framework is designed to provide a generic interface for PHY
	  devices present in the kernel. This layer will have the generic
	  API by which phy drivers can create PHY using the phy framework and
	  phy users can obtain reference to the PHY. All the users of this
	  framework should select this config.

config GENERIC_PHY_MIPI_DPHY
	bool
	select GENERIC_PHY
	help
	  Generic MIPI D-PHY support.

	  Provides a number of helpers a core functions for MIPI D-PHY
	  drivers to us.

config PHY_AIROHA_PCIE
	tristate "Airoha PCIe-PHY Driver"
	depends on ARCH_AIROHA || COMPILE_TEST
	depends on OF
	select GENERIC_PHY
	help
	  Say Y here to add support for Airoha PCIe PHY driver.
	  This driver create the basic PHY instance and provides initialize
	  callback for PCIe GEN3 port.

config PHY_CAN_TRANSCEIVER
	tristate "CAN transceiver PHY"
	select GENERIC_PHY
	select MULTIPLEXER
	help
	  This option enables support for CAN transceivers as a PHY. This
	  driver provides function for putting the transceivers in various
	  functional modes using gpios and sets the attribute max link
	  rate, for CAN drivers.

config PHY_GOOGLE_USB
	tristate "Google Tensor SoC USB PHY driver"

Annotation

Implementation Notes