[PATCH v5 3/3] phy: qcom-mipi-csi2: Add Hawi support
Konrad Dybcio
konrad.dybcio at oss.qualcomm.com
Wed Nov 25 02:53:02 PST 2026
On 11/25/26 7:25 AM, Nihal Kumar Gupta wrote:
> From: Hangxiang Ma <hangxiang.ma at oss.qualcomm.com>
>
> Add support for the Hawi 2nm CSI-2 D-PHY.
>
> Reuse the Kaanapali lane table and adjust the data-lane CTRL0 value
> from 0x8e to 0x8c for Hawi-specific tuning. This prevents potential
> stream stalls and SMMU faults.
>
> Signed-off-by: Hangxiang Ma <hangxiang.ma at oss.qualcomm.com>
> Reviewed-by: Bryan O'Donoghue <bryan.odonoghue at linaro.org>
> Reviewed-by: Loic Poulain <loic.poulain at oss.qualcomm.com>
> Signed-off-by: Nihal Kumar Gupta <nihal.gupta at oss.qualcomm.com>
> ---
> drivers/phy/qualcomm/phy-qcom-mipi-csi2-3ph-dphy.c | 136 +++++++++++++++++++++
> drivers/phy/qualcomm/phy-qcom-mipi-csi2-core.c | 1 +
> drivers/phy/qualcomm/phy-qcom-mipi-csi2.h | 1 +
> 3 files changed, 138 insertions(+)
>
> diff --git a/drivers/phy/qualcomm/phy-qcom-mipi-csi2-3ph-dphy.c b/drivers/phy/qualcomm/phy-qcom-mipi-csi2-3ph-dphy.c
> index ed40934d67eaeba0c6ac7ac75324ac6292fe7d9e..5d91303e0df2e8c5bca3ea8fa2bb831429a8f1ff 100644
> --- a/drivers/phy/qualcomm/phy-qcom-mipi-csi2-3ph-dphy.c
> +++ b/drivers/phy/qualcomm/phy-qcom-mipi-csi2-3ph-dphy.c
> @@ -162,6 +162,126 @@ mipi_csi2phy_lane_regs lane_regs_x1e80100[] = {
> {.reg_addr = 0x0c64, .reg_data = 0x7f, .param_type = CSIPHY_SKEW_CAL},
> };
>
> +/* 2nm 2PH 2p5Gbps 4 lane DPHY mode, Kaanapali table with data-lane CTRL0 0x8c */
nit: 2ph and DPHY are synonymous, if you rename the struct to something
like lane_regs_hawi_dphy, we no longer need this comment.
As for the override, if its meaning is well-known (the difference is bit1
being set or not), we can add some sort of a booelan override instead of
duplicating the table, maybe
Konrad
More information about the linux-phy
mailing list