From patchwork Fri Sep 29 15:18:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 729526 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 8B77EE71D50 for ; Fri, 29 Sep 2023 15:18:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233565AbjI2PSw (ORCPT ); Fri, 29 Sep 2023 11:18:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233552AbjI2PSw (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 71977DD; 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 4EC00208C; Fri, 29 Sep 2023 17:17:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1696000624; bh=aHh7Onb6E17lxgt1ybvhKJ4mmnRpYjWTEzrAMv8wWlk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OEvGh9UQ4wRBvypbARrqGknv9gfCLjajM2WlqIIvjgGc7rMEbAGCjVBpshZs9QQx4 lOX6hi6sMif2k2gZ/CnQz2HQYgq/ZtqxF6N8uXhVduOPycG/5ExwPNeLbJvSuN0oOu ipp3YsKli/Chdg1GJ/IQdCnizkOEMsc4bgnpB7Ng= 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 2/7] media: bindings: hynix,hi846: Restrict endpoint properties Date: Fri, 29 Sep 2023 17:18:20 +0200 Message-ID: <20230929151825.6535-3-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 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(-) -- 2.42.0 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