devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/7] media: bindings: Fix handling of video-interface-device
@ 2023-09-30 14:59 Jacopo Mondi
  2023-09-30 14:59 ` [PATCH v3 1/7] media: dt-bindings: hynix,hi846: Add video-interface-device properties Jacopo Mondi
                   ` (6 more replies)
  0 siblings, 7 replies; 17+ messages in thread
From: Jacopo Mondi @ 2023-09-30 14:59 UTC (permalink / raw)
  To: linux-media, devicetree
  Cc: Jacopo Mondi, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Sakari Ailus, Laurent Pinchart, Fabio Estevam, martink

v2->v3:
- s/bindings/dt-bindings/ in $SUBJECT

v1->v2:
- Fix a typo in the ov5640 bindings

As discussed in
https://patchwork.linuxtv.org/project/linux-media/patch/20230928121424.388019-1-festevam@gmail.com/

all properties specified in video-interface-device.yaml are valid for
image sensors.

Some schema however either allow only some of them one by one, or restrict
the supported values for no specific reason.

Fix this by allowing all properties from video-interface-device.yaml
and removing restrictions on the accepted values.

Jacopo Mondi (7):
  media: dt-bindings: hynix,hi846: Add video-interface-device properties
  media: dt-bindings: hynix,hi846: Restrict endpoint properties
  media: dt-bindings: ovti,ov02a10: Fix handling of
    video-interface-device
  media: dt-bindings: ovti,ov4689: Fix handling of
    video-interface-device
  media: dt-bindings: ovti,ov5640: Fix handling of
    video-interface-device
  media: dt-bindings: sony,imx214: Fix handling of
    video-interface-device
  media: dt-bindings: sony,imx415: Fix handling of
    video-interface-device

 .../devicetree/bindings/media/i2c/hynix,hi846.yaml     | 10 ++++++++--
 .../devicetree/bindings/media/i2c/ovti,ov02a10.yaml    |  8 +-------
 .../devicetree/bindings/media/i2c/ovti,ov4689.yaml     |  6 +-----
 .../devicetree/bindings/media/i2c/ovti,ov5640.yaml     |  7 +------
 .../devicetree/bindings/media/i2c/sony,imx214.yaml     |  2 +-
 .../devicetree/bindings/media/i2c/sony,imx415.yaml     | 10 +---------
 6 files changed, 13 insertions(+), 30 deletions(-)

--
2.42.0


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

* [PATCH v3 1/7] media: dt-bindings: hynix,hi846: Add video-interface-device properties
  2023-09-30 14:59 [PATCH v3 0/7] media: bindings: Fix handling of video-interface-device Jacopo Mondi
@ 2023-09-30 14:59 ` Jacopo Mondi
  2023-10-02 19:17   ` Rob Herring
  2023-10-03  8:27   ` Sakari Ailus
  2023-09-30 14:59 ` [PATCH v3 2/7] media: dt-bindings: hynix,hi846: Restrict endpoint properties Jacopo Mondi
                   ` (5 subsequent siblings)
  6 siblings, 2 replies; 17+ messages in thread
From: Jacopo Mondi @ 2023-09-30 14:59 UTC (permalink / raw)
  To: linux-media, devicetree
  Cc: Jacopo Mondi, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Sakari Ailus, Laurent Pinchart, Fabio Estevam, martink

Allow properties from video-interface-device.yaml for the SK Hynix Hi-846
sensor.

All properties specified in video-interface-device.yaml schema are
valid, so make them accepted by changing "additionalProperties: false"
to "unevaluatedProperties: false" at the schema top-level.

Add two properties from video-interface-device.yaml to the example
to validate the new schema.

Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
---
 .../devicetree/bindings/media/i2c/hynix,hi846.yaml         | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/media/i2c/hynix,hi846.yaml b/Documentation/devicetree/bindings/media/i2c/hynix,hi846.yaml
index 1e2df8cf2937..60f19e1152b3 100644
--- a/Documentation/devicetree/bindings/media/i2c/hynix,hi846.yaml
+++ b/Documentation/devicetree/bindings/media/i2c/hynix,hi846.yaml
@@ -14,6 +14,9 @@ description: |-
   interface and CCI (I2C compatible) control bus. The output format
   is raw Bayer.
 
+allOf:
+  - $ref: /schemas/media/video-interface-devices.yaml#
+
 properties:
   compatible:
     const: hynix,hi846
@@ -86,7 +89,7 @@ required:
   - vddd-supply
   - port
 
-additionalProperties: false
+unevaluatedProperties: false
 
 examples:
   - |
@@ -109,6 +112,8 @@ examples:
             vddio-supply = <&reg_camera_vddio>;
             reset-gpios = <&gpio1 25 GPIO_ACTIVE_LOW>;
             shutdown-gpios = <&gpio5 4 GPIO_ACTIVE_LOW>;
+            orientation = <0>;
+            rotation = <0>;
 
             port {
                 camera_out: endpoint {
-- 
2.42.0


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

* [PATCH v3 2/7] media: dt-bindings: hynix,hi846: Restrict endpoint properties
  2023-09-30 14:59 [PATCH v3 0/7] media: bindings: Fix handling of video-interface-device Jacopo Mondi
  2023-09-30 14:59 ` [PATCH v3 1/7] media: dt-bindings: hynix,hi846: Add video-interface-device properties Jacopo Mondi
@ 2023-09-30 14:59 ` Jacopo Mondi
  2023-10-02 19:17   ` Rob Herring
  2023-09-30 14:59 ` [PATCH v3 3/7] media: dt-bindings: ovti,ov02a10: Fix handling of video-interface-device Jacopo Mondi
                   ` (4 subsequent siblings)
  6 siblings, 1 reply; 17+ messages in thread
From: Jacopo Mondi @ 2023-09-30 14:59 UTC (permalink / raw)
  To: linux-media, devicetree
  Cc: Jacopo Mondi, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Sakari Ailus, Laurent Pinchart, Fabio Estevam, martink

Only properties explicitly listed in the schema are accepted as
endpoint properties.

Make sure this is actually enforced by setting 'additionalProperties'
to false and explicitly allow 'remote-endpoint' in the list of
endpoint properties.

Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
---
 Documentation/devicetree/bindings/media/i2c/hynix,hi846.yaml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/media/i2c/hynix,hi846.yaml b/Documentation/devicetree/bindings/media/i2c/hynix,hi846.yaml
index 60f19e1152b3..f2ca86501d3c 100644
--- a/Documentation/devicetree/bindings/media/i2c/hynix,hi846.yaml
+++ b/Documentation/devicetree/bindings/media/i2c/hynix,hi846.yaml
@@ -58,7 +58,7 @@ properties:
     properties:
       endpoint:
         $ref: /schemas/media/video-interfaces.yaml#
-        unevaluatedProperties: false
+        additionalProperties: false
 
         properties:
           data-lanes:
@@ -73,6 +73,7 @@ properties:
                   - const: 2
 
           link-frequencies: true
+          remote-endpoint: true
 
         required:
           - data-lanes
-- 
2.42.0


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

* [PATCH v3 3/7] media: dt-bindings: ovti,ov02a10: Fix handling of video-interface-device
  2023-09-30 14:59 [PATCH v3 0/7] media: bindings: Fix handling of video-interface-device Jacopo Mondi
  2023-09-30 14:59 ` [PATCH v3 1/7] media: dt-bindings: hynix,hi846: Add video-interface-device properties Jacopo Mondi
  2023-09-30 14:59 ` [PATCH v3 2/7] media: dt-bindings: hynix,hi846: Restrict endpoint properties Jacopo Mondi
@ 2023-09-30 14:59 ` Jacopo Mondi
  2023-10-02 19:17   ` Rob Herring
  2023-09-30 14:59 ` [PATCH v3 4/7] media: dt-bindings: ovti,ov4689: " Jacopo Mondi
                   ` (3 subsequent siblings)
  6 siblings, 1 reply; 17+ messages in thread
From: Jacopo Mondi @ 2023-09-30 14:59 UTC (permalink / raw)
  To: linux-media, devicetree
  Cc: Jacopo Mondi, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Sakari Ailus, Laurent Pinchart, Fabio Estevam, martink

Fix handling of properties from video-interface-device.yaml for
Omnivision OV02A10 sensor.

There is no reason to restrict the allowed rotation degrees to 0 and 180,
as the sensor can be mounted with any rotation.

Also, as all the properties described by video-interface-device.yaml are
allowed for the image sensor, make them accepted by changing
"additionalProperties: false" to "unevaluatedProperties: false" at the
schema top-level.

Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
---
 .../devicetree/bindings/media/i2c/ovti,ov02a10.yaml       | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/Documentation/devicetree/bindings/media/i2c/ovti,ov02a10.yaml b/Documentation/devicetree/bindings/media/i2c/ovti,ov02a10.yaml
index 763cebe03dc2..67c1c291327b 100644
--- a/Documentation/devicetree/bindings/media/i2c/ovti,ov02a10.yaml
+++ b/Documentation/devicetree/bindings/media/i2c/ovti,ov02a10.yaml
@@ -68,12 +68,6 @@ properties:
       marked GPIO_ACTIVE_LOW.
     maxItems: 1
 
-  rotation:
-    enum:
-      - 0    # Sensor Mounted Upright
-      - 180  # Sensor Mounted Upside Down
-    default: 0
-
   port:
     $ref: /schemas/graph.yaml#/$defs/port-base
     additionalProperties: false
@@ -114,7 +108,7 @@ required:
   - reset-gpios
   - port
 
-additionalProperties: false
+unevaluatedProperties: false
 
 examples:
   - |
-- 
2.42.0


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

* [PATCH v3 4/7] media: dt-bindings: ovti,ov4689: Fix handling of video-interface-device
  2023-09-30 14:59 [PATCH v3 0/7] media: bindings: Fix handling of video-interface-device Jacopo Mondi
                   ` (2 preceding siblings ...)
  2023-09-30 14:59 ` [PATCH v3 3/7] media: dt-bindings: ovti,ov02a10: Fix handling of video-interface-device Jacopo Mondi
@ 2023-09-30 14:59 ` Jacopo Mondi
  2023-10-02 19:18   ` Rob Herring
  2023-09-30 14:59 ` [PATCH v3 5/7] media: dt-bindings: ovti,ov5640: " Jacopo Mondi
                   ` (2 subsequent siblings)
  6 siblings, 1 reply; 17+ messages in thread
From: Jacopo Mondi @ 2023-09-30 14:59 UTC (permalink / raw)
  To: linux-media, devicetree
  Cc: Jacopo Mondi, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Sakari Ailus, Laurent Pinchart, Fabio Estevam, martink,
	Mikhail Rudenko

Fix handling of properties from video-interface-device.yaml for
Omnivision OV4689.

All the properties described by video-interface-device.yaml are
allowed for the image sensor, make them accepted by changing
"additionalProperties: false" to "unevaluatedProperties: false" at the
schema top-level.

Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
---
 .../devicetree/bindings/media/i2c/ovti,ov4689.yaml          | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/Documentation/devicetree/bindings/media/i2c/ovti,ov4689.yaml b/Documentation/devicetree/bindings/media/i2c/ovti,ov4689.yaml
index 50579c947f3c..d96199031b66 100644
--- a/Documentation/devicetree/bindings/media/i2c/ovti,ov4689.yaml
+++ b/Documentation/devicetree/bindings/media/i2c/ovti,ov4689.yaml
@@ -52,10 +52,6 @@ properties:
     description:
       GPIO connected to the reset pin (active low)

-  orientation: true
-
-  rotation: true
-
   port:
     $ref: /schemas/graph.yaml#/$defs/port-base
     additionalProperties: false
@@ -95,7 +91,7 @@ required:
   - dvdd-supply
   - port

-additionalProperties: false
+unevaluatedProperties: false

 examples:
   - |
--
2.42.0


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

* [PATCH v3 5/7] media: dt-bindings: ovti,ov5640: Fix handling of video-interface-device
  2023-09-30 14:59 [PATCH v3 0/7] media: bindings: Fix handling of video-interface-device Jacopo Mondi
                   ` (3 preceding siblings ...)
  2023-09-30 14:59 ` [PATCH v3 4/7] media: dt-bindings: ovti,ov4689: " Jacopo Mondi
@ 2023-09-30 14:59 ` Jacopo Mondi
  2023-10-02 19:18   ` Rob Herring
  2023-09-30 14:59 ` [PATCH v3 6/7] media: dt-bindings: sony,imx214: " Jacopo Mondi
  2023-09-30 14:59 ` [PATCH v3 7/7] media: dt-bindings: sony,imx415: " Jacopo Mondi
  6 siblings, 1 reply; 17+ messages in thread
From: Jacopo Mondi @ 2023-09-30 14:59 UTC (permalink / raw)
  To: linux-media, devicetree
  Cc: Jacopo Mondi, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Sakari Ailus, Laurent Pinchart, Fabio Estevam, martink,
	Steve Longerbeam

Fix handling of properties from video-interface-device.yaml for
Omnivision OV5640 sensor.

There is no reason to restrict the allowed rotation degrees to 0 and 180,
as the sensor can be mounted with any rotation.

Also, as all the properties described by video-interface-device.yaml are
allowed for the image sensor, make them accepted by changing
"additionalProperties: false" to "unevaluatedProperties: false" at the
schema top-level.

Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
---
 .../devicetree/bindings/media/i2c/ovti,ov5640.yaml         | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/Documentation/devicetree/bindings/media/i2c/ovti,ov5640.yaml b/Documentation/devicetree/bindings/media/i2c/ovti,ov5640.yaml
index a621032f9bd0..2c5e69356658 100644
--- a/Documentation/devicetree/bindings/media/i2c/ovti,ov5640.yaml
+++ b/Documentation/devicetree/bindings/media/i2c/ovti,ov5640.yaml
@@ -44,11 +44,6 @@ properties:
     description: >
       Reference to the GPIO connected to the reset pin, if any.

-  rotation:
-    enum:
-      - 0
-      - 180
-
   port:
     description: Digital Output Port
     $ref: /schemas/graph.yaml#/$defs/port-base
@@ -85,7 +80,7 @@ required:
   - DOVDD-supply
   - port

-additionalProperties: false
+unevaluatedProperties: false

 examples:
   - |
--
2.42.0


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

* [PATCH v3 6/7] media: dt-bindings: sony,imx214: Fix handling of video-interface-device
  2023-09-30 14:59 [PATCH v3 0/7] media: bindings: Fix handling of video-interface-device Jacopo Mondi
                   ` (4 preceding siblings ...)
  2023-09-30 14:59 ` [PATCH v3 5/7] media: dt-bindings: ovti,ov5640: " Jacopo Mondi
@ 2023-09-30 14:59 ` Jacopo Mondi
  2023-10-02 19:18   ` Rob Herring
  2023-09-30 14:59 ` [PATCH v3 7/7] media: dt-bindings: sony,imx415: " Jacopo Mondi
  6 siblings, 1 reply; 17+ messages in thread
From: Jacopo Mondi @ 2023-09-30 14:59 UTC (permalink / raw)
  To: linux-media, devicetree
  Cc: Jacopo Mondi, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Sakari Ailus, Laurent Pinchart, Fabio Estevam, martink,
	Ricardo Ribalda

Fix handling of properties from video-interface-device.yaml for
Sony IMX214.

All the properties described by video-interface-device.yaml are
allowed for the image sensor, make them accepted by changing
"additionalProperties: false" to "unevaluatedProperties: false" at the
schema top-level.

Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
---
 Documentation/devicetree/bindings/media/i2c/sony,imx214.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/media/i2c/sony,imx214.yaml b/Documentation/devicetree/bindings/media/i2c/sony,imx214.yaml
index e2470dd5920c..60903da84e1f 100644
--- a/Documentation/devicetree/bindings/media/i2c/sony,imx214.yaml
+++ b/Documentation/devicetree/bindings/media/i2c/sony,imx214.yaml
@@ -91,7 +91,7 @@ required:
   - vddd-supply
   - port

-additionalProperties: false
+unevaluatedProperties: false

 examples:
   - |
--
2.42.0


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

* [PATCH v3 7/7] media: dt-bindings: sony,imx415: Fix handling of video-interface-device
  2023-09-30 14:59 [PATCH v3 0/7] media: bindings: Fix handling of video-interface-device Jacopo Mondi
                   ` (5 preceding siblings ...)
  2023-09-30 14:59 ` [PATCH v3 6/7] media: dt-bindings: sony,imx214: " Jacopo Mondi
@ 2023-09-30 14:59 ` Jacopo Mondi
  2023-10-02 19:07   ` Rob Herring
  6 siblings, 1 reply; 17+ messages in thread
From: Jacopo Mondi @ 2023-09-30 14:59 UTC (permalink / raw)
  To: linux-media, devicetree
  Cc: Jacopo Mondi, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Sakari Ailus, Laurent Pinchart, Fabio Estevam, martink,
	Michael Riesch

Fix handling of properties from video-interface-device.yaml for
Sony IMX415.

All the properties described by video-interface-device.yaml are
allowed for the image sensor, make them accepted by changing
"additionalProperties: false" to "unevaluatedProperties: false" at the
schema top-level.

Because all properties are now accepted, there is no need to explicitly
allow them in the schema.

Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
---
 .../devicetree/bindings/media/i2c/sony,imx415.yaml     | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/Documentation/devicetree/bindings/media/i2c/sony,imx415.yaml b/Documentation/devicetree/bindings/media/i2c/sony,imx415.yaml
index ffccf5f3c9e3..8ea3ddd251f6 100644
--- a/Documentation/devicetree/bindings/media/i2c/sony,imx415.yaml
+++ b/Documentation/devicetree/bindings/media/i2c/sony,imx415.yaml
@@ -44,14 +44,6 @@ properties:
     description: Sensor reset (XCLR) GPIO
     maxItems: 1

-  flash-leds: true
-
-  lens-focus: true
-
-  orientation: true
-
-  rotation: true
-
   port:
     $ref: /schemas/graph.yaml#/$defs/port-base

@@ -88,7 +80,7 @@ required:
   - ovdd-supply
   - port

-additionalProperties: false
+unevaluatedProperties: false

 examples:
   - |
--
2.42.0


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

* Re: [PATCH v3 7/7] media: dt-bindings: sony,imx415: Fix handling of video-interface-device
  2023-09-30 14:59 ` [PATCH v3 7/7] media: dt-bindings: sony,imx415: " Jacopo Mondi
@ 2023-10-02 19:07   ` Rob Herring
  0 siblings, 0 replies; 17+ messages in thread
From: Rob Herring @ 2023-10-02 19:07 UTC (permalink / raw)
  To: Jacopo Mondi
  Cc: linux-media, devicetree, Krzysztof Kozlowski, Conor Dooley,
	Sakari Ailus, Laurent Pinchart, Fabio Estevam, martink,
	Michael Riesch

On Sat, Sep 30, 2023 at 04:59:51PM +0200, Jacopo Mondi wrote:
> Fix handling of properties from video-interface-device.yaml for
> Sony IMX415.

It wasn't really broken to be a fix. In any case,

Reviewed-by: Rob Herring <robh@kernel.org>

> 
> All the properties described by video-interface-device.yaml are
> allowed for the image sensor, make them accepted by changing
> "additionalProperties: false" to "unevaluatedProperties: false" at the
> schema top-level.
> 
> Because all properties are now accepted, there is no need to explicitly
> allow them in the schema.
> 
> Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
> ---
>  .../devicetree/bindings/media/i2c/sony,imx415.yaml     | 10 +---------
>  1 file changed, 1 insertion(+), 9 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/media/i2c/sony,imx415.yaml b/Documentation/devicetree/bindings/media/i2c/sony,imx415.yaml
> index ffccf5f3c9e3..8ea3ddd251f6 100644
> --- a/Documentation/devicetree/bindings/media/i2c/sony,imx415.yaml
> +++ b/Documentation/devicetree/bindings/media/i2c/sony,imx415.yaml
> @@ -44,14 +44,6 @@ properties:
>      description: Sensor reset (XCLR) GPIO
>      maxItems: 1
> 
> -  flash-leds: true
> -
> -  lens-focus: true
> -
> -  orientation: true
> -
> -  rotation: true
> -
>    port:
>      $ref: /schemas/graph.yaml#/$defs/port-base
> 
> @@ -88,7 +80,7 @@ required:
>    - ovdd-supply
>    - port
> 
> -additionalProperties: false
> +unevaluatedProperties: false
> 
>  examples:
>    - |
> --
> 2.42.0
> 

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

* Re: [PATCH v3 2/7] media: dt-bindings: hynix,hi846: Restrict endpoint properties
  2023-09-30 14:59 ` [PATCH v3 2/7] media: dt-bindings: hynix,hi846: Restrict endpoint properties Jacopo Mondi
@ 2023-10-02 19:17   ` Rob Herring
  0 siblings, 0 replies; 17+ messages in thread
From: Rob Herring @ 2023-10-02 19:17 UTC (permalink / raw)
  To: Jacopo Mondi
  Cc: linux-media, devicetree, Krzysztof Kozlowski, Conor Dooley,
	Sakari Ailus, Laurent Pinchart, Fabio Estevam, martink

On Sat, Sep 30, 2023 at 04:59:46PM +0200, Jacopo Mondi wrote:
> Only properties explicitly listed in the schema are accepted as
> endpoint properties.
> 
> Make sure this is actually enforced by setting 'additionalProperties'
> to false and explicitly allow 'remote-endpoint' in the list of
> endpoint properties.
> 
> Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
> ---
>  Documentation/devicetree/bindings/media/i2c/hynix,hi846.yaml | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/Documentation/devicetree/bindings/media/i2c/hynix,hi846.yaml b/Documentation/devicetree/bindings/media/i2c/hynix,hi846.yaml
> index 60f19e1152b3..f2ca86501d3c 100644
> --- a/Documentation/devicetree/bindings/media/i2c/hynix,hi846.yaml
> +++ b/Documentation/devicetree/bindings/media/i2c/hynix,hi846.yaml
> @@ -58,7 +58,7 @@ properties:
>      properties:
>        endpoint:
>          $ref: /schemas/media/video-interfaces.yaml#
> -        unevaluatedProperties: false
> +        additionalProperties: false

If anything 'additionalProperties' is the exception and 
'unevaluatedProperties' is the rule. Just grep refs to 
video-interfaces.yaml. Why did you change this for just 
this 1 device? 

I'm more worried about undocumented properties than a documented 
property which makes no sense for the h/w being present. So I think 
as-is was fine.

>  
>          properties:
>            data-lanes:
> @@ -73,6 +73,7 @@ properties:
>                    - const: 2
>  
>            link-frequencies: true

I suppose we could remove this as it has no effect on the schema 
validation, but it's probably worthwhile to keep for documentation 
purposes.

Rob

> +          remote-endpoint: true
>  
>          required:
>            - data-lanes
> -- 
> 2.42.0
> 

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

* Re: [PATCH v3 1/7] media: dt-bindings: hynix,hi846: Add video-interface-device properties
  2023-09-30 14:59 ` [PATCH v3 1/7] media: dt-bindings: hynix,hi846: Add video-interface-device properties Jacopo Mondi
@ 2023-10-02 19:17   ` Rob Herring
  2023-10-03  8:27   ` Sakari Ailus
  1 sibling, 0 replies; 17+ messages in thread
From: Rob Herring @ 2023-10-02 19:17 UTC (permalink / raw)
  To: Jacopo Mondi
  Cc: Conor Dooley, devicetree, linux-media, Sakari Ailus, Rob Herring,
	martink, Krzysztof Kozlowski, Laurent Pinchart, Fabio Estevam


On Sat, 30 Sep 2023 16:59:45 +0200, Jacopo Mondi wrote:
> Allow properties from video-interface-device.yaml for the SK Hynix Hi-846
> sensor.
> 
> All properties specified in video-interface-device.yaml schema are
> valid, so make them accepted by changing "additionalProperties: false"
> to "unevaluatedProperties: false" at the schema top-level.
> 
> Add two properties from video-interface-device.yaml to the example
> to validate the new schema.
> 
> Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
> ---
>  .../devicetree/bindings/media/i2c/hynix,hi846.yaml         | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
> 

Reviewed-by: Rob Herring <robh@kernel.org>


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

* Re: [PATCH v3 3/7] media: dt-bindings: ovti,ov02a10: Fix handling of video-interface-device
  2023-09-30 14:59 ` [PATCH v3 3/7] media: dt-bindings: ovti,ov02a10: Fix handling of video-interface-device Jacopo Mondi
@ 2023-10-02 19:17   ` Rob Herring
  0 siblings, 0 replies; 17+ messages in thread
From: Rob Herring @ 2023-10-02 19:17 UTC (permalink / raw)
  To: Jacopo Mondi
  Cc: Krzysztof Kozlowski, Laurent Pinchart, martink, devicetree,
	linux-media, Rob Herring, Sakari Ailus, Conor Dooley,
	Fabio Estevam


On Sat, 30 Sep 2023 16:59:47 +0200, Jacopo Mondi wrote:
> Fix handling of properties from video-interface-device.yaml for
> Omnivision OV02A10 sensor.
> 
> There is no reason to restrict the allowed rotation degrees to 0 and 180,
> as the sensor can be mounted with any rotation.
> 
> Also, as all the properties described by video-interface-device.yaml are
> allowed for the image sensor, make them accepted by changing
> "additionalProperties: false" to "unevaluatedProperties: false" at the
> schema top-level.
> 
> Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
> ---
>  .../devicetree/bindings/media/i2c/ovti,ov02a10.yaml       | 8 +-------
>  1 file changed, 1 insertion(+), 7 deletions(-)
> 

Reviewed-by: Rob Herring <robh@kernel.org>


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

* Re: [PATCH v3 4/7] media: dt-bindings: ovti,ov4689: Fix handling of video-interface-device
  2023-09-30 14:59 ` [PATCH v3 4/7] media: dt-bindings: ovti,ov4689: " Jacopo Mondi
@ 2023-10-02 19:18   ` Rob Herring
  0 siblings, 0 replies; 17+ messages in thread
From: Rob Herring @ 2023-10-02 19:18 UTC (permalink / raw)
  To: Jacopo Mondi
  Cc: Rob Herring, martink, Laurent Pinchart, Krzysztof Kozlowski,
	Fabio Estevam, Mikhail Rudenko, devicetree, linux-media,
	Conor Dooley, Sakari Ailus


On Sat, 30 Sep 2023 16:59:48 +0200, Jacopo Mondi wrote:
> Fix handling of properties from video-interface-device.yaml for
> Omnivision OV4689.
> 
> All the properties described by video-interface-device.yaml are
> allowed for the image sensor, make them accepted by changing
> "additionalProperties: false" to "unevaluatedProperties: false" at the
> schema top-level.
> 
> Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
> ---
>  .../devicetree/bindings/media/i2c/ovti,ov4689.yaml          | 6 +-----
>  1 file changed, 1 insertion(+), 5 deletions(-)
> 

Reviewed-by: Rob Herring <robh@kernel.org>


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

* Re: [PATCH v3 5/7] media: dt-bindings: ovti,ov5640: Fix handling of video-interface-device
  2023-09-30 14:59 ` [PATCH v3 5/7] media: dt-bindings: ovti,ov5640: " Jacopo Mondi
@ 2023-10-02 19:18   ` Rob Herring
  0 siblings, 0 replies; 17+ messages in thread
From: Rob Herring @ 2023-10-02 19:18 UTC (permalink / raw)
  To: Jacopo Mondi
  Cc: devicetree, Krzysztof Kozlowski, Conor Dooley, Laurent Pinchart,
	Fabio Estevam, linux-media, Rob Herring, martink, Sakari Ailus,
	Steve Longerbeam


On Sat, 30 Sep 2023 16:59:49 +0200, Jacopo Mondi wrote:
> Fix handling of properties from video-interface-device.yaml for
> Omnivision OV5640 sensor.
> 
> There is no reason to restrict the allowed rotation degrees to 0 and 180,
> as the sensor can be mounted with any rotation.
> 
> Also, as all the properties described by video-interface-device.yaml are
> allowed for the image sensor, make them accepted by changing
> "additionalProperties: false" to "unevaluatedProperties: false" at the
> schema top-level.
> 
> Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
> ---
>  .../devicetree/bindings/media/i2c/ovti,ov5640.yaml         | 7 +------
>  1 file changed, 1 insertion(+), 6 deletions(-)
> 

Reviewed-by: Rob Herring <robh@kernel.org>


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

* Re: [PATCH v3 6/7] media: dt-bindings: sony,imx214: Fix handling of video-interface-device
  2023-09-30 14:59 ` [PATCH v3 6/7] media: dt-bindings: sony,imx214: " Jacopo Mondi
@ 2023-10-02 19:18   ` Rob Herring
  0 siblings, 0 replies; 17+ messages in thread
From: Rob Herring @ 2023-10-02 19:18 UTC (permalink / raw)
  To: Jacopo Mondi
  Cc: Sakari Ailus, Ricardo Ribalda, Fabio Estevam, Conor Dooley,
	martink, linux-media, Laurent Pinchart, devicetree,
	Krzysztof Kozlowski, Rob Herring


On Sat, 30 Sep 2023 16:59:50 +0200, Jacopo Mondi wrote:
> Fix handling of properties from video-interface-device.yaml for
> Sony IMX214.
> 
> All the properties described by video-interface-device.yaml are
> allowed for the image sensor, make them accepted by changing
> "additionalProperties: false" to "unevaluatedProperties: false" at the
> schema top-level.
> 
> Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
> ---
>  Documentation/devicetree/bindings/media/i2c/sony,imx214.yaml | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 

Reviewed-by: Rob Herring <robh@kernel.org>


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

* Re: [PATCH v3 1/7] media: dt-bindings: hynix,hi846: Add video-interface-device properties
  2023-09-30 14:59 ` [PATCH v3 1/7] media: dt-bindings: hynix,hi846: Add video-interface-device properties Jacopo Mondi
  2023-10-02 19:17   ` Rob Herring
@ 2023-10-03  8:27   ` Sakari Ailus
  2023-10-03  9:15     ` Laurent Pinchart
  1 sibling, 1 reply; 17+ messages in thread
From: Sakari Ailus @ 2023-10-03  8:27 UTC (permalink / raw)
  To: Jacopo Mondi
  Cc: linux-media, devicetree, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Laurent Pinchart, Fabio Estevam, martink

Hi Jacopo,

On Sat, Sep 30, 2023 at 04:59:45PM +0200, Jacopo Mondi wrote:
> Allow properties from video-interface-device.yaml for the SK Hynix Hi-846
> sensor.
> 
> All properties specified in video-interface-device.yaml schema are
> valid, so make them accepted by changing "additionalProperties: false"
> to "unevaluatedProperties: false" at the schema top-level.

The patch seems fine to me, but I wonder if we should change the title of
video-interface-devices.yaml (it's plural) to something that refers to
camera sensors, and possibly split it. It's currently not relevant for
other types of devices.

-- 
Regards,

Sakari Ailus

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

* Re: [PATCH v3 1/7] media: dt-bindings: hynix,hi846: Add video-interface-device properties
  2023-10-03  8:27   ` Sakari Ailus
@ 2023-10-03  9:15     ` Laurent Pinchart
  0 siblings, 0 replies; 17+ messages in thread
From: Laurent Pinchart @ 2023-10-03  9:15 UTC (permalink / raw)
  To: Sakari Ailus
  Cc: Jacopo Mondi, linux-media, devicetree, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Fabio Estevam, martink

On Tue, Oct 03, 2023 at 08:27:30AM +0000, Sakari Ailus wrote:
> Hi Jacopo,
> 
> On Sat, Sep 30, 2023 at 04:59:45PM +0200, Jacopo Mondi wrote:
> > Allow properties from video-interface-device.yaml for the SK Hynix Hi-846
> > sensor.
> > 
> > All properties specified in video-interface-device.yaml schema are
> > valid, so make them accepted by changing "additionalProperties: false"
> > to "unevaluatedProperties: false" at the schema top-level.
> 
> The patch seems fine to me, but I wonder if we should change the title of
> video-interface-devices.yaml (it's plural) to something that refers to
> camera sensors, and possibly split it. It's currently not relevant for
> other types of devices.

I was thinking exactly the same yesterday.

-- 
Regards,

Laurent Pinchart

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

end of thread, other threads:[~2023-10-03  9:15 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-30 14:59 [PATCH v3 0/7] media: bindings: Fix handling of video-interface-device Jacopo Mondi
2023-09-30 14:59 ` [PATCH v3 1/7] media: dt-bindings: hynix,hi846: Add video-interface-device properties Jacopo Mondi
2023-10-02 19:17   ` Rob Herring
2023-10-03  8:27   ` Sakari Ailus
2023-10-03  9:15     ` Laurent Pinchart
2023-09-30 14:59 ` [PATCH v3 2/7] media: dt-bindings: hynix,hi846: Restrict endpoint properties Jacopo Mondi
2023-10-02 19:17   ` Rob Herring
2023-09-30 14:59 ` [PATCH v3 3/7] media: dt-bindings: ovti,ov02a10: Fix handling of video-interface-device Jacopo Mondi
2023-10-02 19:17   ` Rob Herring
2023-09-30 14:59 ` [PATCH v3 4/7] media: dt-bindings: ovti,ov4689: " Jacopo Mondi
2023-10-02 19:18   ` Rob Herring
2023-09-30 14:59 ` [PATCH v3 5/7] media: dt-bindings: ovti,ov5640: " Jacopo Mondi
2023-10-02 19:18   ` Rob Herring
2023-09-30 14:59 ` [PATCH v3 6/7] media: dt-bindings: sony,imx214: " Jacopo Mondi
2023-10-02 19:18   ` Rob Herring
2023-09-30 14:59 ` [PATCH v3 7/7] media: dt-bindings: sony,imx415: " Jacopo Mondi
2023-10-02 19:07   ` Rob Herring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).