Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3338228pxv; Mon, 28 Jun 2021 02:18:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgM9uYy7mFKjkuDjpne1NwecbFGBs0y3KlwPhVdMpYPrwsgDTCjGjjkD0C1De0SUMmj4tL X-Received: by 2002:a05:6402:40c4:: with SMTP id z4mr31796476edb.364.1624871899995; Mon, 28 Jun 2021 02:18:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624871899; cv=none; d=google.com; s=arc-20160816; b=VsHb3lpbqMAJQqCSYsYt6n1AbmblZ87qNz78FBJK1fcVC7cR+rOveSGHVyUSRLOxTF VYD4+zbZJT0KGzgxCj5Kfy/GMAQp4rf2eTs7KYIESaOyZycskBS/6WcJ7sT/hZbp+7rK LKKA6ZIWGqZOQNyRXm42DanSgyiea8by0VDegZlxAkoMynVKRQ0Loe0VJzLb5C9EMf0U pwFlZ1GIitR71egmSpDetL24j45i5G3ayz5l8JN0FsS3UqyRwtyoT/fkN4UIWmMrxcWN 5zU80kTrkMwXFnovNmY/R2z4gPYIkxTnuV6UYKkVTmEZbOq3ZzRwxuomEamosdzbuHpw K+UA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=+2EzrTnhfOowmWhxm0kFHTRjLO9TCl8XXTjXsRKqQ2c=; b=SdI5SkHDURF84dndKIohtVeYLaL0V3zxT9cHLIVhxgvPzKQhkt97H4MRsscPEZLfjL ntyAn4j8ry0FCSCFjjyWrGp9fZ9QdoCvhNAdqsFNRBsHpTw4wyFfvvuMFODY9yb0TimL uUZ67TjNQ3mLe9tYBPTWBi85mLLg3KftTyABqa8Jo143oPZ2f7b5laf6zmb+3GIoAa6B 8adW2WRwilEusr72JfJzxCCnMOcSGkCtb5Qvvkw/Kvo5sGTAyq6Zrf9w+4pjB6iZNIVX MJdov4mx5pNsqsTtZxveqrLvvKkGziR4DoLfvTcqUbJ0jFJzRS80tTokxUcygxNgMKss M7zA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ragnatech-se.20150623.gappssmtp.com header.s=20150623 header.b=zIJqs7Co; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e18si13523640ejy.279.2021.06.28.02.17.56; Mon, 28 Jun 2021 02:18:19 -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; dkim=pass header.i=@ragnatech-se.20150623.gappssmtp.com header.s=20150623 header.b=zIJqs7Co; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232200AbhF1JG2 (ORCPT + 99 others); Mon, 28 Jun 2021 05:06:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230256AbhF1JG2 (ORCPT ); Mon, 28 Jun 2021 05:06:28 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A61FC061574 for ; Mon, 28 Jun 2021 02:04:02 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id a15so23474910lfr.6 for ; Mon, 28 Jun 2021 02:04:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ragnatech-se.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=+2EzrTnhfOowmWhxm0kFHTRjLO9TCl8XXTjXsRKqQ2c=; b=zIJqs7Co2eNiFonKRmUhGl779hcPPInezCVycefhrwtwbgb1N451lT2INEF1w0lbnP NHUnBfkxgnWNECm58Zcusrpsubc4rnSid6PnR35RCycjZcigJDQMtm9dd+Q1H69B/s/p VEEYinlNBAIv8AK8C8ilf/J8GjLrdXsjXZgy2YIdzHKTwAjc0j0IdUIcW54K/XWs4R8e SR+ts7cwxpTzYlyLQAsgTjxRVwA6ezVzb6/xoNUDu3Av/3Tp8LKGS81KZ70+YQeO97Ot vwMkpWl/h+d1OVg4OeX3+CGimUoZKLdeC05B+gETnoeqaQSa/Wk/lKnTDIuC/7TwsEt1 FGRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=+2EzrTnhfOowmWhxm0kFHTRjLO9TCl8XXTjXsRKqQ2c=; b=qe++ldi0CRP0yF5UkD0b3CpJl+vNGxUk/YsoIMg70CkyfFW5gJWih7oZZAKBc2eonx 7Qf9EbQBM/EouWjlNDKrhKexj+JDF24RNz2sQ6t979xyudeV2QFoOE9XugX1MzkDljJn kCrZW0qDZO9zrmL85YMa77vsopzrcU9Uvxq/iYV8pmk59oSj0j+6L7jqcGQ1SMNGuiYn s26njTyyBVjmGKlSpt5G7Q58YQyH1YquIVjwhdfP93TZtSLies8CSZ5bZIxdSLf0YrnR Hwj4tD4EX5GR0sKKPZZQ8EwSDbQ/mVoKz35MtA0vO1QWzhxqFrHoYR73qcuWtX7DTpZn J0lQ== X-Gm-Message-State: AOAM533okfLMYogEFw/zHAp4T3zU0xNbhsnw+zAE/TVLspGvGHVWp6Cy JLQLASa0VEfowjVmzQrjwVZ/nA== X-Received: by 2002:a05:6512:76:: with SMTP id i22mr18642952lfo.420.1624871040878; Mon, 28 Jun 2021 02:04:00 -0700 (PDT) Received: from localhost (h-46-59-88-219.A463.priv.bahnhof.se. [46.59.88.219]) by smtp.gmail.com with ESMTPSA id b15sm1260527lfe.49.2021.06.28.02.04.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Jun 2021 02:04:00 -0700 (PDT) Date: Mon, 28 Jun 2021 11:03:59 +0200 From: Niklas =?iso-8859-1?Q?S=F6derlund?= To: Rob Herring Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Sakari Ailus , Mauro Carvalho Chehab , "Paul J. Murphy" , Daniele Alessandrelli , Krzysztof Kozlowski , Paul Kocialkowski , dri-devel@lists.freedesktop.org, linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org Subject: Re: [PATCH] dt-bindings: Fix 'unevaluatedProperties' errors in DT graph users Message-ID: References: <20210623164344.2571043-1-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210623164344.2571043-1-robh@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, Thanks for your work. On 2021-06-23 10:43:44 -0600, Rob Herring wrote: > 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 ++- For renesas,vin Reviewed-by: Niklas S?derlund > 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 > -- Regards, Niklas S?derlund