Linux kernel and device drivers for NXP i.MX platforms
 help / color / mirror / Atom feed
* [PATCH v2 1/1] media: dt-bindings: video-interfaces: add video-interfaces.h information
@ 2025-10-21 15:49 Frank Li
  2025-10-21 20:17 ` Krzysztof Kozlowski
  2025-10-26 18:49 ` Laurent Pinchart
  0 siblings, 2 replies; 4+ messages in thread
From: Frank Li @ 2025-10-21 15:49 UTC (permalink / raw)
  To: Mauro Carvalho Chehab, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Sakari Ailus, Laurent Pinchart,
	open list:MEDIA INPUT INFRASTRUCTURE (V4L/DVB),
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	open list
  Cc: imx

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

Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
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(-)

diff --git a/Documentation/devicetree/bindings/media/video-interfaces.yaml b/Documentation/devicetree/bindings/media/video-interfaces.yaml
index 038e85b45befa..6ed4695cacf7e 100644
--- a/Documentation/devicetree/bindings/media/video-interfaces.yaml
+++ b/Documentation/devicetree/bindings/media/video-interfaces.yaml
@@ -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
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH v2 1/1] media: dt-bindings: video-interfaces: add video-interfaces.h information
  2025-10-21 15:49 [PATCH v2 1/1] media: dt-bindings: video-interfaces: add video-interfaces.h information Frank Li
@ 2025-10-21 20:17 ` Krzysztof Kozlowski
  2025-10-26 18:49 ` Laurent Pinchart
  1 sibling, 0 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2025-10-21 20:17 UTC (permalink / raw)
  To: Frank Li, Mauro Carvalho Chehab, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Sakari Ailus, Laurent Pinchart,
	open list:MEDIA INPUT INFRASTRUCTURE (V4L/DVB),
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	open list
  Cc: imx

On 21/10/2025 17:49, Frank Li wrote:
> Mention include/dt-bindings/media/video-interfaces.h in descriptions to
> help avoid use hardcode in dts.
> 
> Signed-off-by: Frank Li <Frank.Li@nxp.com>

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v2 1/1] media: dt-bindings: video-interfaces: add video-interfaces.h information
  2025-10-21 15:49 [PATCH v2 1/1] media: dt-bindings: video-interfaces: add video-interfaces.h information Frank Li
  2025-10-21 20:17 ` Krzysztof Kozlowski
@ 2025-10-26 18:49 ` Laurent Pinchart
  2025-10-27  8:08   ` Sakari Ailus
  1 sibling, 1 reply; 4+ messages in thread
From: Laurent Pinchart @ 2025-10-26 18:49 UTC (permalink / raw)
  To: Frank Li
  Cc: Mauro Carvalho Chehab, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Sakari Ailus,
	open list:MEDIA INPUT INFRASTRUCTURE (V4L/DVB),
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	open list, imx

Hi Frank,

Thank you for the patch.

On Tue, Oct 21, 2025 at 11:49:22AM -0400, Frank Li wrote:
> Mention include/dt-bindings/media/video-interfaces.h in descriptions to
> help avoid use hardcode in dts.
> 
> Signed-off-by: Frank Li <Frank.Li@nxp.com>
> ---
> 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(-)
> 
> diff --git a/Documentation/devicetree/bindings/media/video-interfaces.yaml b/Documentation/devicetree/bindings/media/video-interfaces.yaml
> index 038e85b45befa..6ed4695cacf7e 100644
> --- a/Documentation/devicetree/bindings/media/video-interfaces.yaml
> +++ b/Documentation/devicetree/bindings/media/video-interfaces.yaml
> @@ -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

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

>      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

-- 
Regards,

Laurent Pinchart

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v2 1/1] media: dt-bindings: video-interfaces: add video-interfaces.h information
  2025-10-26 18:49 ` Laurent Pinchart
@ 2025-10-27  8:08   ` Sakari Ailus
  0 siblings, 0 replies; 4+ messages in thread
From: Sakari Ailus @ 2025-10-27  8:08 UTC (permalink / raw)
  To: Laurent Pinchart
  Cc: Frank Li, Mauro Carvalho Chehab, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, open list:MEDIA INPUT INFRASTRUCTURE (V4L/DVB),
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	open list, imx

Hi Laurent,

On Sun, Oct 26, 2025 at 08:49:33PM +0200, Laurent Pinchart wrote:
> Hi Frank,
> 
> Thank you for the patch.
> 
> On Tue, Oct 21, 2025 at 11:49:22AM -0400, Frank Li wrote:
> > Mention include/dt-bindings/media/video-interfaces.h in descriptions to
> > help avoid use hardcode in dts.
> > 
> > Signed-off-by: Frank Li <Frank.Li@nxp.com>
> > ---
> > 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(-)
> > 
> > diff --git a/Documentation/devicetree/bindings/media/video-interfaces.yaml b/Documentation/devicetree/bindings/media/video-interfaces.yaml
> > index 038e85b45befa..6ed4695cacf7e 100644
> > --- a/Documentation/devicetree/bindings/media/video-interfaces.yaml
> > +++ b/Documentation/devicetree/bindings/media/video-interfaces.yaml
> > @@ -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.)

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.

> 
> This can be done separately if desired, so
> 
> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

Thanks!

-- 
Sakari Ailus

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-10-27  8:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-21 15:49 [PATCH v2 1/1] media: dt-bindings: video-interfaces: add video-interfaces.h information Frank Li
2025-10-21 20:17 ` Krzysztof Kozlowski
2025-10-26 18:49 ` Laurent Pinchart
2025-10-27  8:08   ` Sakari Ailus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox