Skip to contentSkip to conversation

media: dt-bindings: mt9p031: Add MT9P006 compatible string

PATCH In review Marek Vasut 3 participants 5 messages Jun 18, 2022 – Jun 27, 2022

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

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.

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
index c2ba78116dbbd..1d6af1bf9a6b6 100644
@@ -17,6 +17,7 @@ description: |
 properties:
   compatible:
     enum:
+      - aptina,mt9p006
       - aptina,mt9p031
       - aptina,mt9p031m
 
Signature · 1 line
2.35.1
#1 lore raw

PATCH 2/2 media: mt9p031: Add MT9P006 compatible

Add compatible for MT9P006 sensor, which is older variant of MT9P031 and compatible with this driver.

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
index d0706723e493c..a81d1ca058b9c 100644
@@ -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
maintainer Reviewed-by on v1 2/2
#2 lore raw

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.

Cc Laurent Pinchart <[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>
Cc Sakari Ailus <[email protected]>
Cc Stefan Riedmueller <[email protected]>
Quoted 24 lines
---
 drivers/media/i2c/mt9p031.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/media/i2c/mt9p031.c +2 -0
index d0706723e493c..a81d1ca058b9c 100644
@@ -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
maintainer Reviewed-by on v1 1/2
#3 lore raw
In reply to Marek Vasut

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.

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 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
index c2ba78116dbbd..1d6af1bf9a6b6 100644
@@ -17,6 +17,7 @@ description: |
 properties:
   compatible:
     enum:
+      - aptina,mt9p006
       - aptina,mt9p031
       - aptina,mt9p031m
 
Signature · 3 lines
Regards,

Laurent Pinchart
maintainer Acked-by on v1 1/2
#4 lore raw
In reply to Marek Vasut
Quoted 10 lines · Marek Vasut

Add compatible for MT9P006 sensor, which is older variant of MT9P031 and compatible with this driver.

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(+)