Commit 7a343c8b authored by Maxime Ripard's avatar Maxime Ripard Committed by Kishon Vijay Abraham I

phy: Add Cadence D-PHY support

Cadence has designed a D-PHY that can be used by the, currently in tree,
DSI bridge (DRM), CSI Transceiver and CSI Receiver (v4l2) drivers.

Only the DSI driver has an ad-hoc driver for that phy at the moment, while
the v4l2 drivers are completely missing any phy support. In order to make
that phy support available to all these drivers, without having to
duplicate that code three times, let's create a generic phy framework
driver.
Acked-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: default avatarKishon Vijay Abraham I <kishon@ti.com>
parent df687341
# #
# Phy drivers for Cadence PHYs # Phy drivers for Cadence PHYs
# #
config PHY_CADENCE_DP config PHY_CADENCE_DP
tristate "Cadence MHDP DisplayPort PHY driver" tristate "Cadence MHDP DisplayPort PHY driver"
depends on OF depends on OF
...@@ -9,9 +10,19 @@ config PHY_CADENCE_DP ...@@ -9,9 +10,19 @@ config PHY_CADENCE_DP
help help
Support for Cadence MHDP DisplayPort PHY. Support for Cadence MHDP DisplayPort PHY.
config PHY_CADENCE_DPHY
tristate "Cadence D-PHY Support"
depends on HAS_IOMEM && OF
select GENERIC_PHY
select GENERIC_PHY_MIPI_DPHY
help
Choose this option if you have a Cadence D-PHY in your
system. If M is selected, the module will be called
cdns-dphy.
config PHY_CADENCE_SIERRA config PHY_CADENCE_SIERRA
tristate "Cadence Sierra PHY Driver" tristate "Cadence Sierra PHY Driver"
depends on OF && HAS_IOMEM && RESET_CONTROLLER depends on OF && HAS_IOMEM && RESET_CONTROLLER
select GENERIC_PHY select GENERIC_PHY
help help
Enable this to support the Cadence Sierra PHY driver Enable this to support the Cadence Sierra PHY driver
\ No newline at end of file
obj-$(CONFIG_PHY_CADENCE_DP) += phy-cadence-dp.o obj-$(CONFIG_PHY_CADENCE_DP) += phy-cadence-dp.o
obj-$(CONFIG_PHY_CADENCE_DPHY) += cdns-dphy.o
obj-$(CONFIG_PHY_CADENCE_SIERRA) += phy-cadence-sierra.o obj-$(CONFIG_PHY_CADENCE_SIERRA) += phy-cadence-sierra.o
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment