msm: camera: sensor: Add PHY support for cliffs

Add PHY driver support for cliffs (PHY version 2.2.1).

CRs-Fixed: 3618770
Change-Id: I0cec1b62e827a6c0413ec9f79612507eaaa62724
Signed-off-by: Shravan Nevatia <quic_snevatia@quicinc.com>
This commit is contained in:
Shravan Nevatia
2023-08-16 06:44:41 +05:30
parent 8a04130f3b
commit 855f371ebb
3 changed files with 2225 additions and 0 deletions

View File

@@ -11,6 +11,7 @@
#include "include/cam_csiphy_2_1_2_hwreg.h"
#include "include/cam_csiphy_2_1_3_hwreg.h"
#include "include/cam_csiphy_2_2_0_hwreg.h"
#include "include/cam_csiphy_2_2_1_hwreg.h"
#include "include/cam_csiphy_2_3_0_hwreg.h"
/* Clock divide factor for CPHY spec v1.0 */
@@ -332,6 +333,11 @@ int32_t cam_csiphy_parse_dt_info(struct platform_device *pdev,
csiphy_dev->hw_version = CSIPHY_VERSION_V220;
csiphy_dev->is_divisor_32_comp = true;
csiphy_dev->clk_lane = 0;
} else if (of_device_is_compatible(soc_info->dev->of_node, "qcom,csiphy-v2.2.1")) {
csiphy_dev->ctrl_reg = &ctrl_reg_2_2_1;
csiphy_dev->hw_version = CSIPHY_VERSION_V221;
csiphy_dev->is_divisor_32_comp = true;
csiphy_dev->clk_lane = 0;
} else if (of_device_is_compatible(soc_info->dev->of_node, "qcom,csiphy-v2.3.0")) {
csiphy_dev->ctrl_reg = &ctrl_reg_2_3_0;
csiphy_dev->hw_version = CSIPHY_VERSION_V230;

View File

@@ -36,6 +36,7 @@
#define CSIPHY_VERSION_V212 0x212
#define CSIPHY_VERSION_V213 0x213
#define CSIPHY_VERSION_V220 0x220
#define CSIPHY_VERSION_V221 0x221
#define CSIPHY_VERSION_V230 0x230
/**

File diff suppressed because it is too large Load Diff