From patchwork Wed Jun 23 16:43:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 465908 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp1914847jao; Wed, 23 Jun 2021 09:43:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQxiDugvc8rjtvkJ7QWTsK2AAkRbs5xDKSOLjWR0Jh7IwNZxEruA7m40C01NBeOmizJ23J X-Received: by 2002:a17:90a:a107:: with SMTP id s7mr10433111pjp.1.1624466632378; Wed, 23 Jun 2021 09:43:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624466632; cv=none; d=google.com; s=arc-20160816; b=A4k7Ykm/L2I78QiXLVFRU+zpyPF17XiF93C/UAiAWYC2L4V0oW9iXKp68IQCtOnnJZ QVLxvaK8lELADYlCvbc6UjhvO2z1c0pCrWeMGP4h7zd3/7ua+yO8ylW74LKjCNlW2eao JZvMZSsQNRcRJ3LEH5CofZ3spxSSbYMjQbHAi7TYCp640agN/DzRKAj5QmBMndRtMR+/ o9UhP85F3xu8CPv+LSLBwNMmOvneu0IXkQoo+RSS+OKMbuHvAgHKlX9G0w+TOBjk7z2e vVaPgPC37Jdw/bX/eNyB6PJZZ6dVT9XZcNWkeOxIebPIZ9if/+EtMdU9K62yzP1woFST PqtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:delivered-to; bh=f6Vh/iMO+DL12gk9Tu+4KtypjSwMDw9fT0H6f4uw508=; b=VfT0Zu6RVj17K9OqUMSz00warbevmm39gHrIR7wZc+Z8Oy4hLuAZ+9KqsRvDurXIpl 5UrYXPaFJTcioYsqjRj7/Z334D1FwF9Gy1nbR3w7t7EKJZItiRNuOISBd8UT4mOJwTQp 06Axth9UYwiY/Aj0U6dowMiHywxJ5yyAmCMM0+wbJQZwhsnNuM2O8sVt5KLazzcfZdae i3obQ9XhDJiHY7o18ct7jGivYKJA8k0cgCmtStVVsKP0HG/L3mEUB7XRqgjfUi/xXZ4r /zn0G8gkvEL4x+I9tq18GogFNcULgK+mS5dwmDQ4iuJrbhXGXgvKkrZDgKbpKaLTglQw qSbA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id r12si358713pgh.102.2021.06.23.09.43.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Jun 2021 09:43:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 69F3E6E954; Wed, 23 Jun 2021 16:43:51 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-il1-f169.google.com (mail-il1-f169.google.com [209.85.166.169]) by gabe.freedesktop.org (Postfix) with ESMTPS id 995AA6E954 for ; Wed, 23 Jun 2021 16:43:49 +0000 (UTC) Received: by mail-il1-f169.google.com with SMTP id s19so3251910ilj.1 for ; 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=LTv68w1QBuQyiRncOzURgQUb1WVtphAAm84+AEASC4XWtCXPs+mYnvcpj2Tdp5Dtww K5B4x3uPRSwLgFvk1C/keJicyK30GYMDm6rkiK+xwzqol2eXOAf2Q1E1WAd3+nEespe9 zCqTo2At0sAU3iPuFY0meni4+how4veg8snESgmzkKyIurXJZZNYA+3MnSKa9tET09zy VAjkE9APAGH5NU6PjllBw713G7ECum5ns0d4V/nbYfyhiKoXTxKgzze22vCRJc3w7xdv Y4mr81hLnHEEIYqXvh7UORbuUa8/dVyrCoIAAW1k7gqk2nyZwDyWjyuMTxAtubcHvujk v4qw== X-Gm-Message-State: AOAM533BX5pITTXe2jU0Vxhtc/NRtCjDv70bSfV0w2xaIEBcc6XumKC5 8xpuTWuJSNiUSuHvImiN8A== 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 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 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-renesas-soc@vger.kernel.org, "Paul J. Murphy" , linux-kernel@vger.kernel.org, Krzysztof Kozlowski , Paul Kocialkowski , dri-devel@lists.freedesktop.org, Sakari Ailus , =?utf-8?q?Niklas_S=C3=B6derlund?= , Mauro Carvalho Chehab , Daniele Alessandrelli , linux-media@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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(-) -- 2.27.0 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.