Skip to contentSkip to conversation

media: dt-bindings: video-interfaces: add video-interfaces.h information

PATCH In review Frank Li 4 participants 4 messages Oct 21, 2025 – Oct 27, 2025

Subsystems (3)
lore
Share & tools
lore

Frank Li

author maintainer
#0 lore raw

PATCH v2 1/1 media: dt-bindings: video-interfaces: add video-interfaces.h information

Mention include/dt-bindings/media/video-interfaces.h in descriptions to help avoid use hardcode in dts.

---
changes in v2
- update commit message "mention ..."
- use full path include/dt-bindings/media/video-interfaces.h

---
 Documentation/devicetree/bindings/media/video-interfaces.yaml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/media/video-interfaces.yaml +2 -2
index 038e85b45befa..6ed4695cacf7e 100644
@@ -95,7 +95,7 @@ properties:
       - 6 # BT.656
       - 7 # DPI
     description:
-      Data bus type.
+      Data bus type. See include/dt-bindings/media/video-interfaces.h.
 
   bus-width:
     $ref: /schemas/types.yaml#/definitions/uint32
@@ -229,7 +229,7 @@ properties:
       Imaging. The length of the array must be the same length as the
       data-lanes property. If the line-orders property is omitted, the value
       shall be interpreted as 0 (ABC). This property is valid for CSI-2 C-PHY
-      busses only.
+      busses only. See include/dt-bindings/media/video-interfaces.h.
 
   strobe:
     $ref: /schemas/types.yaml#/definitions/uint32
Signature · 1 line
2.34.1
Reviewed-by on v2 1/1
#2 lore raw
In reply to Frank Li

Hi Frank,

Thank you for the patch.

Quoted 17 lines · Frank Li

Mention include/dt-bindings/media/video-interfaces.h in descriptions to help avoid use hardcode in dts.

---
changes in v2
- update commit message "mention ..."
- use full path include/dt-bindings/media/video-interfaces.h

---
 Documentation/devicetree/bindings/media/video-interfaces.yaml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/media/video-interfaces.yaml +0 -0
index 038e85b45befa..6ed4695cacf7e 100644

Documentation/devicetree/bindings/media/video-interfaces.yaml properties: · line 96

Quoted 2 lines
Documentation/devicetree/bindings/media/video-interfaces.yaml +0 -0
@@ -95,7 +95,7 @@ properties:
       - 6 # BT.656
       - 7 # DPI

I wondered if we should reference the macros here as well:

enum:
- 1 # MEDIA_BUS_TYPE_CSI2_CPHY
- 2 # MEDIA_BUS_TYPE_CSI1
- 3 # MEDIA_BUS_TYPE_CCP2
- 4 # MEDIA_BUS_TYPE_CSI2_DPHY
- 5 # MEDIA_BUS_TYPE_PARALLEL
- 6 # MEDIA_BUS_TYPE_BT656
- 7 # DPI

(Annoyingly we don't have a macro for DPI.)

This can be done separately if desired, so

Quoted 15 lines
Documentation/devicetree/bindings/media/video-interfaces.yaml +2 -2
     description:
-      Data bus type.
+      Data bus type. See include/dt-bindings/media/video-interfaces.h.
 
   bus-width:
     $ref: /schemas/types.yaml#/definitions/uint32
@@ -229,7 +229,7 @@ properties:
       Imaging. The length of the array must be the same length as the
       data-lanes property. If the line-orders property is omitted, the value
       shall be interpreted as 0 (ABC). This property is valid for CSI-2 C-PHY
-      busses only.
+      busses only. See include/dt-bindings/media/video-interfaces.h.
 
   strobe:
     $ref: /schemas/types.yaml#/definitions/uint32
Signature · 3 lines
Regards,

Laurent Pinchart
#3 lore raw

Hi Laurent,

Quoted 36 lines · Laurent Pinchart

Hi Frank,

Thank you for the patch.

Quoted 17 lines · Frank Li

Mention include/dt-bindings/media/video-interfaces.h in descriptions to help avoid use hardcode in dts.

---
changes in v2
- update commit message "mention ..."
- use full path include/dt-bindings/media/video-interfaces.h

---
 Documentation/devicetree/bindings/media/video-interfaces.yaml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/media/video-interfaces.yaml +0 -0
index 038e85b45befa..6ed4695cacf7e 100644

Documentation/devicetree/bindings/media/video-interfaces.yaml properties: · line 96

Quoted 2 lines
Documentation/devicetree/bindings/media/video-interfaces.yaml +0 -0
@@ -95,7 +95,7 @@ properties:
       - 6 # BT.656
       - 7 # DPI

I wondered if we should reference the macros here as well:

enum:
- 1 # MEDIA_BUS_TYPE_CSI2_CPHY
- 2 # MEDIA_BUS_TYPE_CSI1
- 3 # MEDIA_BUS_TYPE_CCP2
- 4 # MEDIA_BUS_TYPE_CSI2_DPHY
- 5 # MEDIA_BUS_TYPE_PARALLEL
- 6 # MEDIA_BUS_TYPE_BT656
- 7 # DPI

Quoted 1 line

(Annoyingly we don't have a macro for DPI.)

I'd actually add one: there's certainly no harm from doing so even though it's for display, not for cameras (or receivers alike).

This patch is already in my tree so the macro name comments should go to a new one.

Quoted 4 lines

This can be done separately if desired, so

Thanks!

Signature · 1 line
Sakari Ailus