@@ -30,7 +30,10 @@
#define IMX214_REG_FAST_STANDBY_CTRL CCI_REG8(0x0106)
+#define IMX214_CLK_FREQ_23880KHZ 23880000
#define IMX214_CLK_FREQ_24000KHZ 24000000
+
+#define IMX214_LINK_FREQ_597MHZ 597000000
#define IMX214_LINK_FREQ_600MHZ 600000000
/* Keep wrong link frequency for backward compatibility */
#define IMX214_DEFAULT_LINK_FREQ_LEGACY 480000000
@@ -233,6 +236,7 @@ static const char * const imx214_supply_name[] = {
#define IMX214_NUM_SUPPLIES ARRAY_SIZE(imx214_supply_name)
static const s64 link_freq[] = {
+ IMX214_LINK_FREQ_597MHZ,
IMX214_LINK_FREQ_600MHZ,
};
@@ -242,6 +246,10 @@ struct imx214_clk_params {
};
static const struct imx214_clk_params imx214_clk_params[] = {
+ {
+ .clk_freq = IMX214_CLK_FREQ_23880KHZ,
+ .link_freq = IMX214_LINK_FREQ_597MHZ,
+ },
{
.clk_freq = IMX214_CLK_FREQ_24000KHZ,
.link_freq = IMX214_LINK_FREQ_600MHZ,
@@ -1320,8 +1328,7 @@ static int imx214_parse_fwnode(struct device *dev, struct imx214 *imx214)
if (i == bus_cfg.nr_of_link_frequencies)
ret = dev_err_probe(dev, -EINVAL,
- "link-frequencies %d not supported, please review your DT\n",
- IMX214_LINK_FREQ_600MHZ);
+ "provided link-frequencies not supported, please review your DT\n");
done:
v4l2_fwnode_endpoint_free(&bus_cfg);
@@ -1359,6 +1366,7 @@ static int imx214_probe(struct i2c_client *client)
}
switch (xclk_freq) {
+ case IMX214_CLK_FREQ_23880KHZ:
case IMX214_CLK_FREQ_24000KHZ:
if (imx214->clk_params->clk_freq != xclk_freq)
return dev_err_probe(imx214->dev, -EINVAL,