[PATCH v5 3/3] media: i2c: imx412: Add new compatible strings

From: Bryan O'Donoghue
Date: Thu Oct 13 2022 - 08:52:06 EST


The Sony imx577 uses the same silicon enabling reference code in the
available examples provided as the imx412.

Add in compatible strings to enable and differentiate the parts.

Cc: sakari.ailus@xxxxxx
Cc: dave.stevenson@xxxxxxxxxxxxxxx
Cc: jacopo@xxxxxxxxxx
Cc: "Paul J. Murphy" <paul.j.murphy@xxxxxxxxx>
Cc: Daniele Alessandrelli <daniele.alessandrelli@xxxxxxxxx>
Cc: Mauro Carvalho Chehab <mchehab@xxxxxxxxxx>
Cc: Rob Herring <robh+dt@xxxxxxxxxx>
Cc: Krzysztof Kozlowski <krzysztof.kozlowski+dt@xxxxxxxxxx>
Cc: linux-media@xxxxxxxxxxxxxxx
Cc: devicetree@xxxxxxxxxxxxxxx
Cc: linux-kernel@xxxxxxxxxxxxxxx
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@xxxxxxxxxx>
---
drivers/media/i2c/imx412.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/media/i2c/imx412.c b/drivers/media/i2c/imx412.c
index 9f854a1a4c2f..88e6fc78106b 100644
--- a/drivers/media/i2c/imx412.c
+++ b/drivers/media/i2c/imx412.c
@@ -1288,6 +1288,7 @@ static const struct dev_pm_ops imx412_pm_ops = {

static const struct of_device_id imx412_of_match[] = {
{ .compatible = "sony,imx412", .data = "imx412" },
+ { .compatible = "sony,imx577", .data = "imx577" },
{ }
};

--
2.34.1