Skip to contentSkip to conversation

dt-bindings: media: imx219: Rename to include vendor prefix

PATCH In review David Heidelberg 2 participants 5 messages Dec 17, 2024

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

PATCH 1/2 dt-bindings: media: imx219: Rename to include vendor prefix

imx219.yaml doesn't include the vendor prefix of sony, so rename to add it.

Update the id entry and MAINTAINERS to match.

---
 .../bindings/media/i2c/{imx219.yaml => sony,imx219.yaml}        | 2 +-
 MAINTAINERS                                                     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
 rename Documentation/devicetree/bindings/media/i2c/{imx219.yaml => sony,imx219.yaml} (97%)
Documentation/devicetree/bindings/media/i2c/sony,imx219.yaml renamed from Documentation/devicetree/bindings/media/i2c/imx219.yaml +1 -1
similarity index 97%
rename from Documentation/devicetree/bindings/media/i2c/imx219.yaml
rename to Documentation/devicetree/bindings/media/i2c/sony,imx219.yaml
index 07d088cf66e0..8b23e5fc6a24 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
 %YAML 1.2
 ---
-$id: http://devicetree.org/schemas/media/i2c/imx219.yaml#
+$id: http://devicetree.org/schemas/media/i2c/sony,imx219.yaml#
 $schema: http://devicetree.org/meta-schemas/core.yaml#
 
 title: Sony 1/4.0-Inch 8Mpixel CMOS Digital Image Sensor
MAINTAINERS +1 -1
index 453ba75fce3b..32a4d057a559 100644
@@ -21796,7 +21796,7 @@ M:	Dave Stevenson <[email protected]>
 L:	[email protected]
 S:	Maintained
 T:	git git://linuxtv.org/media.git
-F:	Documentation/devicetree/bindings/media/i2c/imx219.yaml
+F:	Documentation/devicetree/bindings/media/i2c/sony,imx219.yaml
 F:	drivers/media/i2c/imx219.c
 
 SONY IMX258 SENSOR DRIVER
Signature · 1 line
2.45.2
#1 lore raw

PATCH 2/2 dt-bindings: media: imx219: Describe sensor address using the reg property

Use the reg property instead of text in the description. Drop useless description of reg property.

---
 Documentation/devicetree/bindings/media/i2c/sony,imx219.yaml | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/media/i2c/sony,imx219.yaml +2 -3
index 8b23e5fc6a24..066eeb7af5e3 100644
@@ -12,7 +12,7 @@ maintainers:
 description: |-
   The Sony imx219 is a 1/4.0-inch CMOS active pixel digital image sensor
   with an active array size of 3280H x 2464V. It is programmable through
-  I2C interface. The I2C address is fixed to 0x10 as per sensor data sheet.
+  I2C interface.
   Image data is sent through MIPI CSI-2, which is configured as either 2 or
   4 data lanes.
 
@@ -21,8 +21,7 @@ properties:
     const: sony,imx219
 
   reg:
-    description: I2C device address
-    maxItems: 1
+    const: 0x10
 
   clocks:
     maxItems: 1
Signature · 1 line
2.45.2
Acked-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] dt-bindings: media: imx219: Describe sensor address using the reg property

./Documentation/devicetree/bindings/media/i2c/sony,imx219.yaml

Quoted 9 lines · David Heidelberg

Use the reg property instead of text in the description. Drop useless description of reg property.

---
 Documentation/devicetree/bindings/media/i2c/sony,imx219.yaml | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
./Documentation/devicetree/bindings/media/i2c/sony,imx219.yaml +0 -0

You are using non-standard tools to generate patches. See checkpatch warnings.

Best regards,
Krzysztof

#3 lore raw

Re: [PATCH 2/2] dt-bindings: media: imx219: Describe sensor address using the reg property

Oh, the checkpatch script keeps warning me every time I commit—I guess it needs to be addressed.

I currently use:

[diff]
srcprefix = ./
dstprefix = ./

Originally, my intention was to use:

[diff]
noprefix = true

This was to make it easier to copy-paste directly into the shell (git log -p, etc.). However, it ended up breaking too many applications. Setting srcprefix and dstprefix instead keeps everything working properly.

Is there any chance a patch allowing a ./ prefix could make it into checkpatch? What do you think, Krzysztof?

Thank you,
David

Quoted 19 lines · Krzysztof Kozlowski

./Documentation/devicetree/bindings/media/i2c/sony,imx219.yaml

Quoted 9 lines · David Heidelberg

Use the reg property instead of text in the description. Drop useless description of reg property.

---
  Documentation/devicetree/bindings/media/i2c/sony,imx219.yaml | 5 ++---
  1 file changed, 2 insertions(+), 3 deletions(-)
./Documentation/devicetree/bindings/media/i2c/sony,imx219.yaml +0 -0

You are using non-standard tools to generate patches. See checkpatch warnings.

Best regards,
Krzysztof

Signature · 1 line
David Heidelberg
#4 lore raw
In reply to David Heidelberg
Quoted 11 lines · David Heidelberg

imx219.yaml doesn't include the vendor prefix of sony, so rename to add it.

Update the id entry and MAINTAINERS to match.

---
 .../bindings/media/i2c/{imx219.yaml => sony,imx219.yaml}        | 2 +-
 MAINTAINERS                                                     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
 rename Documentation/devicetree/bindings/media/i2c/{imx219.yaml => sony,imx219.yaml} (97%)

If you are doing changes like this, fix entire subsystem so all bindings there. Not one file.

Best regards,
Krzysztof