[PATCH 0/3] phy: core, qcom-mipi-csi2: add generic MIPI C-PHY support
From: Anusha Arun Nandi
Date: Sat Oct 17 2026 - 00:17:59 EST
This series adds C-PHY (3-phase) support to the generic PHY framework
and to the Qualcomm MIPI CSI2 PHY driver, mirroring the existing MIPI
D-PHY generic configuration API.
Patch 1 adds the core API: PHY_MODE_MIPI_CPHY, struct
phy_configure_opts_mipi_cphy, and the
phy_mipi_cphy_get_default_config()/_for_hsclk()/config_validate()
helpers, following the MIPI Alliance C-PHY v1.0 timing spec. It has
no functional effect on its own, since no provider selects
GENERIC_PHY_MIPI_CPHY yet.
Patch 2 wires C-PHY mode into the qcom-mipi-csi2 driver for SA8775P:
the PHY mode is now derived from the devicetree endpoint's bus-type
property at probe time (D-PHY by default, C-PHY if
MEDIA_BUS_TYPE_CSI2_CPHY), phy_qcom_mipi_csi2_set_mode() validates a
consumer's phy_set_mode() call against that DT-derived mode, and the
configure/power_on/power_off/lanes_enable/lanes_disable paths dispatch
to the new C-PHY 3-phase hw ops accordingly.
Patch 3 extends the same C-PHY mode selection to SC7280, porting the
legacy in-tree driver's SM8250/SC7280 C-PHY lane-register sequence.
No dt-bindings changes are needed for either SoC: the existing
qcom,sa8775p-csi2-phy / qcom,sc7280-csi2-phy schemas already document
both D-PHY and C-PHY bus-type values.
Depends-on: https://lore.kernel.org/all/20261017040529.3832120-1-anusha.nandi@xxxxxxxxxxxxxxxx/
Jigarkumar Zala (3):
phy: core: add generic MIPI C-PHY configuration API
phy: qcom-mipi-csi2: Add sa8775p C-PHY support
phy: qcom-mipi-csi2: Add sc7280 C-PHY support
Anusha Arun Nandi (3):
phy: core: add generic MIPI C-PHY configuration API
phy: qcom-mipi-csi2: Add sa8775p C-PHY support
phy: qcom-mipi-csi2: Add sc7280 C-PHY support
drivers/phy/Kconfig | 9 +
drivers/phy/Makefile | 1 +
drivers/phy/phy-core-mipi-cphy.c | 129 ++++
drivers/phy/qualcomm/Kconfig | 1 +
drivers/phy/qualcomm/Makefile | 3 +-
.../qualcomm/phy-qcom-mipi-csi2-3ph-cphy.c | 561 ++++++++++++++++++
.../qualcomm/phy-qcom-mipi-csi2-3ph-dphy.c | 8 +-
.../phy/qualcomm/phy-qcom-mipi-csi2-core.c | 133 ++++-
drivers/phy/qualcomm/phy-qcom-mipi-csi2.h | 31 +
include/linux/phy/phy-mipi-cphy.h | 177 ++++++
include/linux/phy/phy.h | 5 +
11 files changed, 1029 insertions(+), 29 deletions(-)
create mode 100644 drivers/phy/phy-core-mipi-cphy.c
create mode 100644 drivers/phy/qualcomm/phy-qcom-mipi-csi2-3ph-cphy.c
create mode 100644 include/linux/phy/phy-mipi-cphy.h
Best regards,
--
Anusha Arun Nandi <anusha.nandi@xxxxxxxxxxxxxxxx>
--
2.34.1