media: dt-bindings: mt9p031: Add MT9P006 compatible string
Subsystems (4)
PATCH 1/2 media: dt-bindings: mt9p031: Add MT9P006 compatible string
Add compatible for MT9P006 sensor, which is older variant of MT9P031 and compatible with this driver.
Signed-off-by Marek Vasut <[email protected]>
Cc Laurent Pinchart <[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>
Cc Rob Herring <[email protected]>
Cc Sakari Ailus <[email protected]>
Cc Stefan Riedmueller <[email protected]>
--- Documentation/devicetree/bindings/media/i2c/aptina,mt9p031.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/media/i2c/aptina,mt9p031.yaml +1 -0
@@ -17,6 +17,7 @@ description: | properties: compatible: enum: + - aptina,mt9p006 - aptina,mt9p031 - aptina,mt9p031m
Signature · 1 line
2.35.1
PATCH 2/2 media: mt9p031: Add MT9P006 compatible
Add compatible for MT9P006 sensor, which is older variant of MT9P031 and compatible with this driver.
Signed-off-by Marek Vasut <[email protected]>
Cc Laurent Pinchart <[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>
Cc Sakari Ailus <[email protected]>
Cc Stefan Riedmueller <[email protected]>
--- drivers/media/i2c/mt9p031.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/media/i2c/mt9p031.c +2 -0
@@ -1234,6 +1234,7 @@ static int mt9p031_remove(struct i2c_client *client) }static const struct i2c_device_id mt9p031_id[] = { + {"mt9p006" ,MT9P031_MODEL_COLOR }, {"mt9p031" ,MT9P031_MODEL_COLOR }, {"mt9p031m" ,MT9P031_MODEL_MONOCHROME }, { }
@@ -1242,6 +1243,7 @@ MODULE_DEVICE_TABLE(i2c, mt9p031_id);#if IS_ENABLED (CONFIG_OF )static const struct of_device_id mt9p031_of_match[] = { + { .compatible ="aptina,mt9p006" , }, { .compatible ="aptina,mt9p031" , }, { .compatible ="aptina,mt9p031m" , }, { /* sentinel */ },
Signature · 1 line
2.35.1
Re: [PATCH 2/2] media: mt9p031: Add MT9P006 compatible
Hi Marek,
Thank you for the patch.
Quoted 8 lines · Marek Vasut
Add compatible for MT9P006 sensor, which is older variant of MT9P031 and compatible with this driver.
Signed-off-by Marek Vasut <[email protected]>Cc Laurent Pinchart <[email protected]>Cc Mauro Carvalho Chehab <[email protected]>Cc Sakari Ailus <[email protected]>Cc Stefan Riedmueller <[email protected]>
Reviewed-by Laurent Pinchart <[email protected]>
Quoted 24 lines
--- drivers/media/i2c/mt9p031.c | 2 ++ 1 file changed, 2 insertions(+)drivers/media/i2c/mt9p031.c +2
-0@@ -1234,6 +1234,7 @@ static int mt9p031_remove(struct i2c_client *client) }static const struct i2c_device_id mt9p031_id[] = { + {"mt9p006" ,MT9P031_MODEL_COLOR }, {"mt9p031" ,MT9P031_MODEL_COLOR }, {"mt9p031m" ,MT9P031_MODEL_MONOCHROME }, { }@@ -1242,6 +1243,7 @@ MODULE_DEVICE_TABLE(i2c, mt9p031_id);#if IS_ENABLED (CONFIG_OF )static const struct of_device_id mt9p031_of_match[] = { + { .compatible ="aptina,mt9p006" , }, { .compatible ="aptina,mt9p031" , }, { .compatible ="aptina,mt9p031m" , }, { /* sentinel */ },
Signature · 3 lines
Regards, Laurent Pinchart
Hi Marek,
Thank you for the patch.
Quoted 10 lines · Marek Vasut
Add compatible for MT9P006 sensor, which is older variant of MT9P031 and compatible with this driver.
Signed-off-by Marek Vasut <[email protected]>Cc Laurent Pinchart <[email protected]>Cc Mauro Carvalho Chehab <[email protected]>Cc Rob Herring <[email protected]>Cc Sakari Ailus <[email protected]>Cc Stefan Riedmueller <[email protected]>
Reviewed-by Laurent Pinchart <[email protected]>
Quoted 16 lines
--- Documentation/devicetree/bindings/media/i2c/aptina,mt9p031.yaml | 1 + 1 file changed, 1 insertion(+)Documentation/devicetree/bindings/media/i2c/aptina,mt9p031.yaml +1
-0@@ -17,6 +17,7 @@ description: | properties: compatible: enum: + - aptina,mt9p006 - aptina,mt9p031 - aptina,mt9p031m
Signature · 3 lines
Regards, Laurent Pinchart
Quoted 10 lines · Marek Vasut
Add compatible for MT9P006 sensor, which is older variant of MT9P031 and compatible with this driver.
Signed-off-by Marek Vasut <[email protected]>Cc Laurent Pinchart <[email protected]>Cc Mauro Carvalho Chehab <[email protected]>Cc Rob Herring <[email protected]>Cc Sakari Ailus <[email protected]>Cc Stefan Riedmueller <[email protected]>
Quoted 4 lines
--- Documentation/devicetree/bindings/media/i2c/aptina,mt9p031.yaml | 1 + 1 file changed, 1 insertion(+)
Acked-by Rob Herring <[email protected]>