All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
To: linux-media@vger.kernel.org, devicetree@vger.kernel.org
Cc: Jacopo Mondi <jacopo.mondi@ideasonboard.com>,
	Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Sakari Ailus <sakari.ailus@linux.intel.com>,
	Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
	Fabio Estevam <festevam@gmail.com>,
	martink@posteo.de
Subject: [PATCH v3 3/7] media: dt-bindings: ovti,ov02a10: Fix handling of video-interface-device
Date: Sat, 30 Sep 2023 16:59:47 +0200	[thread overview]
Message-ID: <20230930145951.23433-4-jacopo.mondi@ideasonboard.com> (raw)
In-Reply-To: <20230930145951.23433-1-jacopo.mondi@ideasonboard.com>

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


  parent reply	other threads:[~2023-09-30 15:00 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 ` Jacopo Mondi [this message]
2023-10-02 19:17   ` [PATCH v3 3/7] media: dt-bindings: ovti,ov02a10: Fix handling of video-interface-device 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230930145951.23433-4-jacopo.mondi@ideasonboard.com \
    --to=jacopo.mondi@ideasonboard.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=festevam@gmail.com \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-media@vger.kernel.org \
    --cc=martink@posteo.de \
    --cc=robh+dt@kernel.org \
    --cc=sakari.ailus@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.