From patchwork Sat Sep 30 05:51:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 728322 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 A7D18E7735B for ; Sat, 30 Sep 2023 05:51:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233990AbjI3Fvj (ORCPT ); Sat, 30 Sep 2023 01:51:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229929AbjI3Fvi (ORCPT ); Sat, 30 Sep 2023 01:51:38 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF7751AB; Fri, 29 Sep 2023 22:51:34 -0700 (PDT) Received: from uno.lan (unknown [IPv6:2001:861:388f:1650:2f32:b6ff:a885:7d5e]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 5D508EBA; Sat, 30 Sep 2023 07:49:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1696052989; bh=BjVknzxC/ZiIEtXYgSVsi4tl5XfVYSUxx4bGa3XroqM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=v/goJ6jBsgsxAbZ8tHlS0ZZX+N0AKOKJlbeKs5OGFnMxYFXvR9hmU+w86Gjut+aI0 Gdp9EqoQ19ZAO3j10RLFYvVo0MulCMuuyHKYj/s3yulAzQ9qZ9PAQXrs6L6T7q9R2c H5iPkn2xzwJS3NDe5r5x+GDYjsgzEZjfyDWCXTjA= 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 Subject: [PATCH v2 1/7] media: bindings: hynix,hi846: Add video-interface-device properties Date: Sat, 30 Sep 2023 07:51:03 +0200 Message-ID: <20230930055110.1986-2-jacopo.mondi@ideasonboard.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20230930055110.1986-1-jacopo.mondi@ideasonboard.com> References: <20230930055110.1986-1-jacopo.mondi@ideasonboard.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org 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 --- .../devicetree/bindings/media/i2c/hynix,hi846.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) -- 2.42.0 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 = <®_camera_vddio>; reset-gpios = <&gpio1 25 GPIO_ACTIVE_LOW>; shutdown-gpios = <&gpio5 4 GPIO_ACTIVE_LOW>; + orientation = <0>; + rotation = <0>; port { camera_out: endpoint { From patchwork Sat Sep 30 05:51:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 728321 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 DC5DDE77354 for ; Sat, 30 Sep 2023 05:51:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234005AbjI3Fvm (ORCPT ); Sat, 30 Sep 2023 01:51:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233996AbjI3Fvk (ORCPT ); Sat, 30 Sep 2023 01:51:40 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 855D51B0; Fri, 29 Sep 2023 22:51:38 -0700 (PDT) Received: from uno.lan (unknown [IPv6:2001:861:388f:1650:2f32:b6ff:a885:7d5e]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id BB6DEEEA; Sat, 30 Sep 2023 07:49:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1696052990; bh=OQ5mIcobfabGgp4HvF5pTY4/RjgYb9ENH7r14UywQIY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WrdbY+7IWqJGQCCAOM6GUvPHLQtYwDL3mOCLf9xc18bgZk8M+v6J/8ab6u62GzyyE 5VJHv7gk8k/q57vWW35GPOoWr8dySfk1BAWvVzcqsshnQFpSd+mSgn/dBJhzfxARNn JVrgpfVV+Ms79k8ZJQkl6QorbgAWJgwcBmjclkoQ= 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 Subject: [PATCH v2 2/7] media: bindings: hynix,hi846: Restrict endpoint properties Date: Sat, 30 Sep 2023 07:51:04 +0200 Message-ID: <20230930055110.1986-3-jacopo.mondi@ideasonboard.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20230930055110.1986-1-jacopo.mondi@ideasonboard.com> References: <20230930055110.1986-1-jacopo.mondi@ideasonboard.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org 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 --- 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 From patchwork Sat Sep 30 05:51:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 729521 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 4DEB1E7735A for ; Sat, 30 Sep 2023 05:51:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234006AbjI3Fvl (ORCPT ); Sat, 30 Sep 2023 01:51:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229929AbjI3Fvk (ORCPT ); Sat, 30 Sep 2023 01:51:40 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73800B3; Fri, 29 Sep 2023 22:51:38 -0700 (PDT) Received: from uno.lan (unknown [IPv6:2001:861:388f:1650:2f32:b6ff:a885:7d5e]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 253E711A9; Sat, 30 Sep 2023 07:49:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1696052990; bh=/JWm2xr7LSH8+VCrlOb7tfHevzHx+qXWppSPo+0PmGY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=F4UGzrxLrIhJDtH+nVIkA85EdD+kLNbaCg6gMF2Dob82dPLBm3j5sYdE/42K8lNYI VUPtqBiZ/GSoHM+fbNGqn8N8PCqk/SswvRzyCwVCPgx+gk6syNO0vtXeEGqamAOG4b 7jxC1a67sPt2UDQEMF5w1jugP+JivuNOXD0K8p9Q= 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 Subject: [PATCH v2 3/7] media: bindings: ovti,ov02a10: Fix handling of video-interface-device Date: Sat, 30 Sep 2023 07:51:05 +0200 Message-ID: <20230930055110.1986-4-jacopo.mondi@ideasonboard.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20230930055110.1986-1-jacopo.mondi@ideasonboard.com> References: <20230930055110.1986-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(-) 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: - | From patchwork Sat Sep 30 05:51:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 728320 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 6BD26E7735B for ; Sat, 30 Sep 2023 05:51:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234009AbjI3Fvm (ORCPT ); Sat, 30 Sep 2023 01:51:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234007AbjI3Fvm (ORCPT ); Sat, 30 Sep 2023 01:51:42 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8AE2F1A7; Fri, 29 Sep 2023 22:51:40 -0700 (PDT) Received: from uno.lan (unknown [IPv6:2001:861:388f:1650:2f32:b6ff:a885:7d5e]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 823AC11BF; Sat, 30 Sep 2023 07:49:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1696052990; bh=RFtJSOjV6FtpQpxrkNDSyJnksxeXGW77+2EWI+5rKtM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jPGGwzS5+VHADbFXmgrv8rbj+uy13uCkgtqDAz38sTMdBh8dXoyWPA1b86MqJlTkz cJvj/wHPx8V2DY+kan4H0FAys61ERra8ZJJgZ7lhNdcLxM0DnrIzoQ4wazm9Iuund8 lOYBcC2Dn0YaUxDn6d+9jaEYrhYNV3RT9xgNxj6A= 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, Mikhail Rudenko Subject: [PATCH v2 4/7] media: bindings: ovti,ov4689: Fix handling of video-interface-device Date: Sat, 30 Sep 2023 07:51:06 +0200 Message-ID: <20230930055110.1986-5-jacopo.mondi@ideasonboard.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20230930055110.1986-1-jacopo.mondi@ideasonboard.com> References: <20230930055110.1986-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 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 --- .../devicetree/bindings/media/i2c/ovti,ov4689.yaml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) -- 2.42.0 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: - | From patchwork Sat Sep 30 05:51:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 729520 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 C8D00E7735C for ; Sat, 30 Sep 2023 05:51:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234013AbjI3Fvn (ORCPT ); Sat, 30 Sep 2023 01:51:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233996AbjI3Fvm (ORCPT ); Sat, 30 Sep 2023 01:51:42 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB0141AB; Fri, 29 Sep 2023 22:51:40 -0700 (PDT) Received: from uno.lan (unknown [IPv6:2001:861:388f:1650:2f32:b6ff:a885:7d5e]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id E73CE1ADE; Sat, 30 Sep 2023 07:49:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1696052991; bh=s3wxtA/t1Ob6LJvadDpVETARmKrccj85Gtrtgu3ZXn4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=M2Ky25jbu3Cm5aPZ5sl07nrjLDuO/fbUQzgWsjYeToCDMbw2vZXFVf+gPtlzJfKcH 6dO6b8+3wwUf6AeezT9KpAZn5EAJJkDo54tofRH0NDUdzFQ5io/CYYHbcYxaPp/QKD m+Ao4EwuvqKdcOIO2/QBmXz3kAB+GKfsoWHlyG7c= 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, Steve Longerbeam Subject: [PATCH v2 5/7] media: bindings: ovti,ov5640: Fix handling of video-interface-device Date: Sat, 30 Sep 2023 07:51:07 +0200 Message-ID: <20230930055110.1986-6-jacopo.mondi@ideasonboard.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20230930055110.1986-1-jacopo.mondi@ideasonboard.com> References: <20230930055110.1986-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 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 --- .../devicetree/bindings/media/i2c/ovti,ov5640.yaml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) -- 2.42.0 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: - | From patchwork Sat Sep 30 05:51:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 729519 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 A281FE77354 for ; Sat, 30 Sep 2023 05:51:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234016AbjI3Fvp (ORCPT ); Sat, 30 Sep 2023 01:51:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233996AbjI3Fvo (ORCPT ); Sat, 30 Sep 2023 01:51:44 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CCA9B3; Fri, 29 Sep 2023 22:51:42 -0700 (PDT) Received: from uno.lan (unknown [IPv6:2001:861:388f:1650:2f32:b6ff:a885:7d5e]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 5614D31B9; Sat, 30 Sep 2023 07:49:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1696052991; bh=4FstZY4S0coCaEuRcKUIBoOeqLiCYYbNTRc+U969h84=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fJPavgWw4/HZSxJAmxXKJA5zfuwA+r3+4T4womLRDtP79OVGHUYbSNsMPay+KnQCJ hUpYdgJtw65J5de64mmAN9+apI7HgV2ES8Jr5S2qnkBAgStPeZH/1JRSKfY+fdiF/N t1ykiq23rdZ49FV4Qx+L34yOU538lwrARLfARvCk= 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, Ricardo Ribalda Subject: [PATCH v2 6/7] media: bindings: sony,imx214: Fix handling of video-interface-device Date: Sat, 30 Sep 2023 07:51:08 +0200 Message-ID: <20230930055110.1986-7-jacopo.mondi@ideasonboard.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20230930055110.1986-1-jacopo.mondi@ideasonboard.com> References: <20230930055110.1986-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 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 --- Documentation/devicetree/bindings/media/i2c/sony,imx214.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.42.0 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: - | From patchwork Sat Sep 30 05:51:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 728319 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 21431E7735A for ; Sat, 30 Sep 2023 05:51:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234018AbjI3Fvq (ORCPT ); Sat, 30 Sep 2023 01:51:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233996AbjI3Fvp (ORCPT ); Sat, 30 Sep 2023 01:51:45 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B7F81B0; Fri, 29 Sep 2023 22:51:43 -0700 (PDT) Received: from uno.lan (unknown [IPv6:2001:861:388f:1650:2f32:b6ff:a885:7d5e]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id BA62034B5; Sat, 30 Sep 2023 07:49:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1696052992; bh=yDNG9lescimiVCdDa3Yo4ag2EPpuBl4frfIL53tgkIs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LGdsQXmpyUATGraqc1ONXvpIhFg7B2ws6fztl8u99KdFb4JAW1YOrII1WvtVMVzO4 xCXpc/UOFQJMIxtQTadzcW6blU+/BTrzyCYuAmQzJ8RmXrEMF/n5RXfmowAYwjAuMQ rHi4pfSXFml6wz/Yt5h7Y40mJTABWW0NUDE8eTC4= 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, Michael Riesch Subject: [PATCH v2 7/7] media: bindings: sony,imx415: Fix handling of video-interface-device Date: Sat, 30 Sep 2023 07:51:09 +0200 Message-ID: <20230930055110.1986-8-jacopo.mondi@ideasonboard.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20230930055110.1986-1-jacopo.mondi@ideasonboard.com> References: <20230930055110.1986-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 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 --- .../devicetree/bindings/media/i2c/sony,imx415.yaml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) -- 2.42.0 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: - |