Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5828132pxj; Wed, 23 Jun 2021 09:44:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNtlfcvccgcAs+TO9q+05SwTmtqQGB362FJQVbUsENENY5wXjmyFwprLZNeKgmSTY0r9o+ X-Received: by 2002:a92:9509:: with SMTP id y9mr264006ilh.18.1624466678731; Wed, 23 Jun 2021 09:44:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624466678; cv=none; d=google.com; s=arc-20160816; b=km9+hbzg955TnVKDvItVu1YpzjVwIPg5fsg+s+k7qS3GxI8faa2T1/Zx7D8rDBVsVT WnKZAZW3RkKQ1P5wsFf+wptUXMQimkO3N+/weRUFHfyDacn9rW9sGdFMELyHK4V5QaKA 84QsJ00oUbeOjcWZnl6hPCZ/vJaMPM93acIF8xe6dgAKZQmaBetGw9TtPP9R+5cPg6jV Ql7sHkMtfS6xV2AObAEMeKn8lNtBjqmmV/IUHp+IszJp60fCprtYT65lzUHDZHyrhr1a 3Dmt6vo6JdykBx135BzDwoOBpF5Bv64g3fRjY4DVHCCWIAgcmoJzbhkoHSF8DHopdt7i lxKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=f6Vh/iMO+DL12gk9Tu+4KtypjSwMDw9fT0H6f4uw508=; b=Rwi+48+rMw4P1fbdQrlkF0MUrKqsikHw8jEmebn8nyefKud/rL4M4Uwtt8wG2w6qyg Irz8eTkm/LNKni1A/fPa9DMVjD9alI148Jx2ERdmPNE3u3i5KHDKElSY0H05W3ILF/G8 DXk4sRqd6B4H7hwSe1SDkTdOgW+QDYnALtNTzN7RwlvBQiMLaBFvjZQE68ct1bfG+6hJ ZQh0oaETrTKapgTgITViimmq/oSxk6IXin8EclBBDV6ziVX+qMff74VC+ryVSFBhROWs 9nADlqm8SzQUwKsXv7Yd8M3hz04zOlwJayTC+1nddD/j57vtqau4kTM5sgsD1MZ2Hdhc NVQA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v6si447619iom.67.2021.06.23.09.44.26; Wed, 23 Jun 2021 09:44:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230028AbhFWQqJ (ORCPT + 99 others); Wed, 23 Jun 2021 12:46:09 -0400 Received: from mail-il1-f174.google.com ([209.85.166.174]:33660 "EHLO mail-il1-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229660AbhFWQqI (ORCPT ); Wed, 23 Jun 2021 12:46:08 -0400 Received: by mail-il1-f174.google.com with SMTP id z1so3293209ils.0; Wed, 23 Jun 2021 09:43:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=f6Vh/iMO+DL12gk9Tu+4KtypjSwMDw9fT0H6f4uw508=; b=dS6UVbdcEGRjr0ZWBsemNx4S518pkDhWOdsZjeQnED7WSFjSA5Qr5OeF59a4XE5Fwv geg4B2KERaokAqBRjn/BPd9Xhh9zG4dhTfPCXBtAdwwsTNjyA0Or+GjCSUXiAxdHRavQ 7J59DtW1itrYoJ0XiNZtjPtMy9dboapGAQsClJOqHJEzsmjpjeOh4V1oQt7ylTxc3Pbp R9QFD1fmNqVjYFPgfYXepevu0eP7wb8z+f9xQcOv/dO4LPUpte9Mue8OCic14aRuePVo MUxYQ2PHBvP7lvZ7/qRaAnzoDt3tHrc7fD2SLcDenZe336LJ9GqkHM07RynYBID6fk9L 5ZnQ== X-Gm-Message-State: AOAM531mJjZ2pB13Dmrc1nPDzCHJIhVDCDmb+ogfxivYYLCypo3TM7HM lIteyTilyuUVttjzDfYr+VlpU2JMYQ== X-Received: by 2002:a92:3f01:: with SMTP id m1mr263713ila.122.1624466629069; Wed, 23 Jun 2021 09:43:49 -0700 (PDT) Received: from xps15.herring.priv ([64.188.179.248]) by smtp.googlemail.com with ESMTPSA id a11sm178698ioq.12.2021.06.23.09.43.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Jun 2021 09:43:48 -0700 (PDT) From: Rob Herring To: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Sakari Ailus , Mauro Carvalho Chehab , "Paul J. Murphy" , Daniele Alessandrelli , =?UTF-8?q?Niklas=20S=C3=B6derlund?= , Krzysztof Kozlowski , Paul Kocialkowski , dri-devel@lists.freedesktop.org, linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org Subject: [PATCH] dt-bindings: Fix 'unevaluatedProperties' errors in DT graph users Date: Wed, 23 Jun 2021 10:43:44 -0600 Message-Id: <20210623164344.2571043-1-robh@kernel.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In testing out under development json-schema 2020-12 support, there's a few issues with 'unevaluatedProperties' and the graph schema. If 'graph.yaml#/properties/port' is used, then neither the port nor the endpoint(s) can have additional properties. 'graph.yaml#/$defs/port-base' needs to be used instead. Cc: Sakari Ailus Cc: Mauro Carvalho Chehab Cc: "Paul J. Murphy" Cc: Daniele Alessandrelli Cc: "Niklas Söderlund" Cc: Krzysztof Kozlowski Cc: Paul Kocialkowski Cc: dri-devel@lists.freedesktop.org Cc: linux-media@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org Signed-off-by: Rob Herring --- .../devicetree/bindings/display/bridge/lontium,lt8912b.yaml | 3 ++- Documentation/devicetree/bindings/media/i2c/imx258.yaml | 2 +- Documentation/devicetree/bindings/media/i2c/ovti,ov5648.yaml | 2 +- Documentation/devicetree/bindings/media/i2c/ovti,ov8865.yaml | 2 +- Documentation/devicetree/bindings/media/i2c/sony,imx334.yaml | 2 +- Documentation/devicetree/bindings/media/renesas,vin.yaml | 3 ++- 6 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/display/bridge/lontium,lt8912b.yaml b/Documentation/devicetree/bindings/display/bridge/lontium,lt8912b.yaml index 735d0233a7d6..674891ee2f8e 100644 --- a/Documentation/devicetree/bindings/display/bridge/lontium,lt8912b.yaml +++ b/Documentation/devicetree/bindings/display/bridge/lontium,lt8912b.yaml @@ -29,7 +29,8 @@ properties: properties: port@0: - $ref: /schemas/graph.yaml#/properties/port + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false description: Primary MIPI port for MIPI input diff --git a/Documentation/devicetree/bindings/media/i2c/imx258.yaml b/Documentation/devicetree/bindings/media/i2c/imx258.yaml index 515317eff41a..cde0f7383b2a 100644 --- a/Documentation/devicetree/bindings/media/i2c/imx258.yaml +++ b/Documentation/devicetree/bindings/media/i2c/imx258.yaml @@ -49,7 +49,7 @@ properties: # See ../video-interfaces.txt for more details port: - $ref: /schemas/graph.yaml#/properties/port + $ref: /schemas/graph.yaml#/$defs/port-base additionalProperties: false properties: diff --git a/Documentation/devicetree/bindings/media/i2c/ovti,ov5648.yaml b/Documentation/devicetree/bindings/media/i2c/ovti,ov5648.yaml index 9149f5685688..246dc5fec716 100644 --- a/Documentation/devicetree/bindings/media/i2c/ovti,ov5648.yaml +++ b/Documentation/devicetree/bindings/media/i2c/ovti,ov5648.yaml @@ -45,7 +45,7 @@ properties: port: description: MIPI CSI-2 transmitter port - $ref: /schemas/graph.yaml#/properties/port + $ref: /schemas/graph.yaml#/$defs/port-base additionalProperties: false properties: diff --git a/Documentation/devicetree/bindings/media/i2c/ovti,ov8865.yaml b/Documentation/devicetree/bindings/media/i2c/ovti,ov8865.yaml index 0699c7e4fdeb..b962863e4f65 100644 --- a/Documentation/devicetree/bindings/media/i2c/ovti,ov8865.yaml +++ b/Documentation/devicetree/bindings/media/i2c/ovti,ov8865.yaml @@ -45,7 +45,7 @@ properties: port: description: MIPI CSI-2 transmitter port - $ref: /schemas/graph.yaml#/properties/port + $ref: /schemas/graph.yaml#/$defs/port-base additionalProperties: false properties: diff --git a/Documentation/devicetree/bindings/media/i2c/sony,imx334.yaml b/Documentation/devicetree/bindings/media/i2c/sony,imx334.yaml index 27cc5b7ff613..f5055b9db693 100644 --- a/Documentation/devicetree/bindings/media/i2c/sony,imx334.yaml +++ b/Documentation/devicetree/bindings/media/i2c/sony,imx334.yaml @@ -37,7 +37,7 @@ properties: port: additionalProperties: false - $ref: /schemas/graph.yaml#/properties/port + $ref: /schemas/graph.yaml#/$defs/port-base properties: endpoint: diff --git a/Documentation/devicetree/bindings/media/renesas,vin.yaml b/Documentation/devicetree/bindings/media/renesas,vin.yaml index dd1a5ce5896c..4945a2f0eca6 100644 --- a/Documentation/devicetree/bindings/media/renesas,vin.yaml +++ b/Documentation/devicetree/bindings/media/renesas,vin.yaml @@ -118,7 +118,8 @@ properties: properties: port@0: - $ref: /schemas/graph.yaml#/properties/port + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false description: Input port node, single endpoint describing a parallel input source. -- 2.27.0