Try parsing the firmware also as C-PHY. Do this only after D-PHY as older firmware may not explicitly specify bus-type in which case D-PHY is the default.
Unified · Split
| @@ -2925,6 +2925,10 @@ static int ccs_get_hwconfig(struct ccs_sensor *sensor, struct device *dev) · 2924 unmodified lines | |||
| 2925 | hwcfg->csi_signalling_mode = CCS_CSI_SIGNALING_MODE_CSI_2_DPHY; | 2925 | hwcfg->csi_signalling_mode = CCS_CSI_SIGNALING_MODE_CSI_2_DPHY; |
| 2926 | hwcfg->lanes = bus_cfg.bus.mipi_csi2.num_data_lanes; | 2926 | hwcfg->lanes = bus_cfg.bus.mipi_csi2.num_data_lanes; |
| 2927 | break; | 2927 | break; |
| 2928 | case V4L2_MBUS_CSI2_CPHY: | ||
| 2929 | hwcfg->csi_signalling_mode = CCS_CSI_SIGNALING_MODE_CSI_2_CPHY; | ||
| 2930 | hwcfg->lanes = bus_cfg.bus.mipi_csi2.num_data_lanes; | ||
| 2931 | break; | ||
| 2928 | case V4L2_MBUS_CSI1: | 2932 | case V4L2_MBUS_CSI1: |
| 2929 | case V4L2_MBUS_CCP2: | 2933 | case V4L2_MBUS_CCP2: |
| 2930 | hwcfg->csi_signalling_mode = (bus_cfg.bus.mipi_csi1.strobe) ? | 2934 | hwcfg->csi_signalling_mode = (bus_cfg.bus.mipi_csi1.strobe) ? |