From patchwork Fri Sep 29 15:18:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 13404522 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 336AEE71D52 for ; Fri, 29 Sep 2023 15:18:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233570AbjI2PSx (ORCPT ); Fri, 29 Sep 2023 11:18:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233562AbjI2PSw (ORCPT ); Fri, 29 Sep 2023 11:18:52 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F3BCF7; Fri, 29 Sep 2023 08:18:50 -0700 (PDT) Received: from uno.localdomain (mob-5-90-203-152.net.vodafone.it [5.90.203.152]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id C4B3A31B9; Fri, 29 Sep 2023 17:17:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1696000626; bh=tHB2ts8sWz7ydA3MKzKJZSMpWaPxS4MWYfju9oo3KzU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bRTONjeoAHIc9eYEi4HMYX6A2a1AS2MgoRv54JWdYfXYwwVo5Rai8NlzjzSPGJFvl UCxlzBCjNfj5JPeqILpTufBc+KWVJD7oWV/vpEDzY6SJWSTo3VSXd18OdM3M3jthW+ M6beuNhomc+VaxkKslsKmhAgZpzGI96cG9TyTlH0= From: Jacopo Mondi To: linux-media@vger.kernel.org, devicetree@vger.kernel.org Cc: Jacopo Mondi , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sakari Ailus , Laurent Pinchart , Fabio Estevam , martink@posteo.de, Dongchun Zhu Subject: [PATCH 3/7] media: bindings: ovti,ov02a10: Fix handling of video-interface-device Date: Fri, 29 Sep 2023 17:18:21 +0200 Message-ID: <20230929151825.6535-4-jacopo.mondi@ideasonboard.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20230929151825.6535-1-jacopo.mondi@ideasonboard.com> References: <20230929151825.6535-1-jacopo.mondi@ideasonboard.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org 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 --- .../devicetree/bindings/media/i2c/ovti,ov02a10.yaml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) -- 2.42.0 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: - |