[PATCH 0/2] media: qcom: camss: track PHY type and scale link frequency for C-PHY
From: Anusha Arun Nandi
Date: Fri Oct 16 2026 - 23:52:36 EST
This series lays the CAMSS-side groundwork for MIPI C-PHY sensors.
Patch 1 records whether a CSIPHY endpoint is D-PHY or C-PHY from its
device-tree bus-type property (instead of rejecting anything that
isn't D-PHY), storing it in struct csiphy_lanes_cfg.
Patch 2 threads that PHY type through to link-frequency calculation:
camss_get_link_freq() gains a cphy parameter and scales its per-lane
divisor to match C-PHY's 16-bits-per-7-symbols encoding (vs. D-PHY's
1 bit/symbol), and the CSID gen3 RX front-end's CSI2_RX_CFG0 register
is programmed with the matching PHY_TYPE_SEL bit so C-PHY streams are
actually decoded as C-PHY instead of silently defaulting to D-PHY.
Referenced using David's C-PHY support(v9)
Link: https://lore.kernel.org/all/20260617-qcom-cphy-v9-0-83da8a8e4e44@xxxxxxx/
Depends-on: https://lore.kernel.org/all/20261017001116.2318647-1-anusha.nandi@xxxxxxxxxxxxxxxx/
Depends-on: https://lore.kernel.org/all/20261016235502.2274268-1-anusha.nandi@xxxxxxxxxxxxxxxx/
David Heidelberg (2):
media: qcom: camss: csiphy: record PHY type from device-tree bus-type
media: qcom: camss: account for C-PHY when calculating link frequency
Anusha Arun Nandi (2):
media: qcom: camss: csiphy: record PHY type from device-tree bus-type
media: qcom: camss: account for C-PHY when calculating link frequency
.../platform/qcom/camss/camss-csid-gen3.c | 2 ++
.../media/platform/qcom/camss/camss-csid.c | 4 ++-
.../media/platform/qcom/camss/camss-csid.h | 1 +
.../media/platform/qcom/camss/camss-csiphy.c | 8 +++---
.../media/platform/qcom/camss/camss-csiphy.h | 2 ++
drivers/media/platform/qcom/camss/camss.c | 25 +++++++++++++++----
drivers/media/platform/qcom/camss/camss.h | 2 +-
7 files changed, 34 insertions(+), 10 deletions(-)
Best regards,
--
Anusha Arun Nandi <anusha.nandi@xxxxxxxxxxxxxxxx>
--
2.34.1