On Tue, 2022-06-07 at 14:40 +0100, Bryan O'Donoghue wrote: > The Sony IMX577 uses the same silicon enabling reference code from Sony in > the available examples provided. > > Add an imx577 compatible string and re-use the existing imx412 code. > > Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@xxxxxxxxxx> I've read the discussion following the cover letter and I also tend to agree that this change makes sense, at least for now. If in the future somebody wants to add IMX577-specific features, they can always create a separate driver for IMX577, if that's preferable. Reviewed-by: Daniele Alessandrelli <daniele.alessandrelli@xxxxxxxxx> > --- > 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 a1394d6c1432..3b7011ab0a8f 100644 > --- a/drivers/media/i2c/imx412.c > +++ b/drivers/media/i2c/imx412.c > @@ -1282,6 +1282,7 @@ static const struct dev_pm_ops imx412_pm_ops = { > > static const struct of_device_id imx412_of_match[] = { > { .compatible = "sony,imx412" }, > + { .compatible = "sony,imx577" }, > { } > }; >