From patchwork Mon Sep 25 21:27:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring (Arm)" X-Patchwork-Id: 13398439 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BEA2DCE79A4 for ; Mon, 25 Sep 2023 21:28:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=iY0YPP4pLveMcd5+qgEQnwTuJL/femTMy9XwHGLi6mo=; b=WXdrJTfk2ElHb9 nsd4iN4IPqzV+fhH1QUTpEnmbOTdcqYO2Rl/rb3qOBaH1u54egN+247sq81SYnT64NJJuq5FcDRHK 0pOH2+QMGMiwsow4nxAJwgxmxkHPOmQkFA2JdwY7HfcCZpJFvgNVPMcGfPwyw589l3GV1HRzh8wJk gqqM2IxfbYRqjUS6EmXjsCxSzCGqR73eXQMiNwzWk5K0ZKLmg6kXJE/RWnKq5BBaWB0TnIqr+1wJr XscU0ieKz9UTcoBWomJlUJiV7ydPSKuQeduZspIxkVmbZhkxlmVxmt8GsgRnJjF7hyh6CH1U+pFfe pr4wPJTGgwleKcNG3/eg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qkt82-00F3ag-17; Mon, 25 Sep 2023 21:28:30 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qkt7y-00F3XL-39 for linux-arm-kernel@lists.infradead.org; Mon, 25 Sep 2023 21:28:28 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 6CB2961180; Mon, 25 Sep 2023 21:28:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB0AEC433C7; Mon, 25 Sep 2023 21:28:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695677306; bh=k11FO+tobwQenACLbB1LItsIBnNjBvlbdtKW6gNnERY=; h=From:To:Cc:Subject:Date:From; b=rQZVyhr3IPEgAE4KzzEUwj0cAEByNb9PaIJzK7+u8ldY99AxBPw21hErFOB/JI/cX yXuGvT4kODgmEiHkGUDE+kWO4J80HxMvQkldvUUNd2A9oQgC3y4VAsjQ2O41vI3RwH 9vS9eZsR2eA6LZmBhZLOHg7wQl5+7WKjxXmeTZWScBX9G+hGUFyOBp3g+YX3R4kgNy aH6jOLodIHUmmCNGywN0e/QlkeFAO2+geFUpLToV9CdM7oiFP+Fyry9W7xtVMKtv4X 2FKgOm5UYKZhE8KxKxVvVd9RXjYMn0ooSkFnRZEJL/p+VSW3FdFBWQ2SjNMJgPMeEG BT1XuAKOH/X9w== Received: (nullmailer pid 1977290 invoked by uid 1000); Mon, 25 Sep 2023 21:28:21 -0000 From: Rob Herring To: Michael Riesch , Mauro Carvalho Chehab , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Sylwester Nawrocki Cc: Krzysztof Kozlowski , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] media: dt-bindings: Add missing unevaluatedProperties on child node schemas Date: Mon, 25 Sep 2023 16:27:58 -0500 Message-Id: <20230925212803.1976803-1-robh@kernel.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230925_142827_097052_054B42CA X-CRM114-Status: UNSURE ( 9.43 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Just as unevaluatedProperties or additionalProperties are required at the top level of schemas, they should (and will) also be required for child node schemas. That ensures only documented properties are present for any node. Signed-off-by: Rob Herring Acked-by: Conor Dooley --- Documentation/devicetree/bindings/media/i2c/sony,imx415.yaml | 1 + .../devicetree/bindings/media/i2c/toshiba,tc358746.yaml | 2 ++ Documentation/devicetree/bindings/media/samsung,fimc.yaml | 1 + 3 files changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/media/i2c/sony,imx415.yaml b/Documentation/devicetree/bindings/media/i2c/sony,imx415.yaml index ffccf5f3c9e3..642f9b15d359 100644 --- a/Documentation/devicetree/bindings/media/i2c/sony,imx415.yaml +++ b/Documentation/devicetree/bindings/media/i2c/sony,imx415.yaml @@ -54,6 +54,7 @@ properties: port: $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false properties: endpoint: diff --git a/Documentation/devicetree/bindings/media/i2c/toshiba,tc358746.yaml b/Documentation/devicetree/bindings/media/i2c/toshiba,tc358746.yaml index c5cab549ee8e..1c476b635b69 100644 --- a/Documentation/devicetree/bindings/media/i2c/toshiba,tc358746.yaml +++ b/Documentation/devicetree/bindings/media/i2c/toshiba,tc358746.yaml @@ -69,6 +69,7 @@ properties: properties: port@0: $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false description: Input port properties: @@ -89,6 +90,7 @@ properties: port@1: $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false description: Output port properties: diff --git a/Documentation/devicetree/bindings/media/samsung,fimc.yaml b/Documentation/devicetree/bindings/media/samsung,fimc.yaml index 79ff6d83a9fd..b3486c38a05b 100644 --- a/Documentation/devicetree/bindings/media/samsung,fimc.yaml +++ b/Documentation/devicetree/bindings/media/samsung,fimc.yaml @@ -57,6 +57,7 @@ properties: patternProperties: "^port@[01]$": $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false description: Camera A and camera B inputs.