Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp450203rwb; Tue, 4 Oct 2022 06:21:37 -0700 (PDT) X-Google-Smtp-Source: AMsMyM70BHo8nPNx9d9umD0XjYdm/YP3ZjZD1WAdXG7so5po8eV3HGYeTbu9CPLWwJaN4H8d6Z3d X-Received: by 2002:a63:6685:0:b0:43a:107:d45a with SMTP id a127-20020a636685000000b0043a0107d45amr22791937pgc.49.1664889696777; Tue, 04 Oct 2022 06:21:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664889696; cv=none; d=google.com; s=arc-20160816; b=nSh0YcEP1U6VpWfLiypMjIwVP8KujwHW5Wf2WCTNHJ2IYH3RIxINvpEmaITmfvo/Iy Z4G5EOotoGcxYNO86pYyRxG1wsFub98DAFYsvp7aEFjFG7Y+YB6SsBRskJS1N1dJGwGe ALW9mBysxdQwd7jc4TzvqQQ+Bad/fyWryw2lh8kXB3g4TZtinuJ2xr5QbDtlNadE8oCE syhaRf5Nig6Lyd9y+oaqxeHn9qWeEGxKeKEGu93rgEORVPqTPb0GahPEb2b+4NGCgp8L 7rGJ2y559SdzVyiVHhiTw3v59JxDlialGAE2gyBOMAsrrK5/hvYkOPFt0zLai/TrznaY sRaQ== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=B58xLpITPICks4lHjRM5g/EyjpgK4XmyoDJiMQPzZgg=; b=xJTz6NIzts8BaUCq7wtGiYrb2y35Bth77QEp0INpEC8uFzH0+ZNnaqly7ZZ38QtPg0 jt58kRbw/FRX8orX7LMLUaZP2jZtf05ba0d2I8bkoCJlae+5bzXgjdu82rUqVM0GLJjI JhQaVHbDUzZdBtq+Eo/RxFELStKEUk0hGKmwZ4Z66H1eROkTzR0ivmD1pE/2ENkbF3oo GFZsKhAw2uOUrydQkxoa5YShIfONRJXjKoAF6ShziYGBRXja7ZpuyvnK0EsoBq729qdj DZ4K17cXaILPd+J4tKXVJ9bAlhqFXjWqO6eEVjr583Wfk14a1bo1vAUNX5OgdNUdKE17 Sxaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=Gf2CACt8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x12-20020a63310c000000b004468ff904fesi10087846pgx.132.2022.10.04.06.21.25; Tue, 04 Oct 2022 06:21:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=Gf2CACt8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229566AbiJDNE0 (ORCPT + 99 others); Tue, 4 Oct 2022 09:04:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229684AbiJDNEK (ORCPT ); Tue, 4 Oct 2022 09:04:10 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23EA3615E; Tue, 4 Oct 2022 06:03:13 -0700 (PDT) Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id ECF7A2D9; Tue, 4 Oct 2022 15:03:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1664888591; bh=2ynmfYdyqP5fJ1srOy1TW6LiWh7wjTgnJ020UhOJKVI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Gf2CACt8kKiY5uTqfnXwr19UmKSe1vConrkOaRl5hJk5sY7HjFldCQU60KPtUTcWv ei46VBytQs08lepKoAPLSOpjL1VtiSzqkqXZzqUP3AKQ7Tpvp0zcas06kVfhwEyQbr pj/r78kWmrEdyGavJaJdmqS3evzP8mDwTLAV9QoE= Date: Tue, 4 Oct 2022 16:03:08 +0300 From: Laurent Pinchart To: Krzysztof Kozlowski Cc: Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Linus Walleij , Markuss Broks , Daniel Mack , Dillon Min , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dt-bindings: display: panel: use spi-peripheral-props.yaml Message-ID: References: <20221004120907.72767-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20221004120907.72767-1-krzysztof.kozlowski@linaro.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Krzysztof, Thank you for the patch. On Tue, Oct 04, 2022 at 02:09:07PM +0200, Krzysztof Kozlowski wrote: > For devices connectable by SPI bus (e.g. already using > "spi-max-frequency" property), reference the "spi-peripheral-props.yaml" > schema to allow using all SPI device properties, even these which device > bindings author did not tried yet. Isn't this done implicitly by spi-controller.yaml ? SPI devices that are children of an SPI controller should match the patternProperties "^.*@[0-9a-f]+$" in that file, which has a $ref: spi-peripheral-props.yaml. Is there something I'm missing ? > Change "additionalProperties" to "unevaluatedProperties", so the actual > other properties from "spi-peripheral-props.yaml" can be used. This has > additional impact of allowing also other properties from > panel-common.yaml to be used. > > Signed-off-by: Krzysztof Kozlowski > --- > .../devicetree/bindings/display/panel/ilitek,ili9163.yaml | 3 ++- > .../devicetree/bindings/display/panel/ilitek,ili9341.yaml | 1 + > .../devicetree/bindings/display/panel/nec,nl8048hl11.yaml | 3 ++- > .../bindings/display/panel/samsung,lms380kf01.yaml | 5 ++--- > .../bindings/display/panel/samsung,lms397kf04.yaml | 3 ++- > .../devicetree/bindings/display/panel/samsung,s6d27a1.yaml | 4 ++-- > .../devicetree/bindings/display/panel/tpo,tpg110.yaml | 1 + > 7 files changed, 12 insertions(+), 8 deletions(-) > > diff --git a/Documentation/devicetree/bindings/display/panel/ilitek,ili9163.yaml b/Documentation/devicetree/bindings/display/panel/ilitek,ili9163.yaml > index 7e7a8362b951..a4154b51043e 100644 > --- a/Documentation/devicetree/bindings/display/panel/ilitek,ili9163.yaml > +++ b/Documentation/devicetree/bindings/display/panel/ilitek,ili9163.yaml > @@ -15,6 +15,7 @@ description: > > allOf: > - $ref: panel-common.yaml# > + - $ref: /schemas/spi/spi-peripheral-props.yaml# > > properties: > compatible: > @@ -41,7 +42,7 @@ required: > - dc-gpios > - reset-gpios > > -additionalProperties: false > +unevaluatedProperties: false > > examples: > - | > diff --git a/Documentation/devicetree/bindings/display/panel/ilitek,ili9341.yaml b/Documentation/devicetree/bindings/display/panel/ilitek,ili9341.yaml > index 99e0cb9440cf..94f169ea065a 100644 > --- a/Documentation/devicetree/bindings/display/panel/ilitek,ili9341.yaml > +++ b/Documentation/devicetree/bindings/display/panel/ilitek,ili9341.yaml > @@ -16,6 +16,7 @@ description: | > > allOf: > - $ref: panel-common.yaml# > + - $ref: /schemas/spi/spi-peripheral-props.yaml# > > properties: > compatible: > diff --git a/Documentation/devicetree/bindings/display/panel/nec,nl8048hl11.yaml b/Documentation/devicetree/bindings/display/panel/nec,nl8048hl11.yaml > index aa788eaa2f71..3b09b359023e 100644 > --- a/Documentation/devicetree/bindings/display/panel/nec,nl8048hl11.yaml > +++ b/Documentation/devicetree/bindings/display/panel/nec,nl8048hl11.yaml > @@ -15,6 +15,7 @@ maintainers: > > allOf: > - $ref: panel-common.yaml# > + - $ref: /schemas/spi/spi-peripheral-props.yaml# > > properties: > compatible: > @@ -34,7 +35,7 @@ required: > - reset-gpios > - port > > -additionalProperties: false > +unevaluatedProperties: false > > examples: > - | > diff --git a/Documentation/devicetree/bindings/display/panel/samsung,lms380kf01.yaml b/Documentation/devicetree/bindings/display/panel/samsung,lms380kf01.yaml > index 251f0c7115aa..70ffc88d2a08 100644 > --- a/Documentation/devicetree/bindings/display/panel/samsung,lms380kf01.yaml > +++ b/Documentation/devicetree/bindings/display/panel/samsung,lms380kf01.yaml > @@ -9,14 +9,13 @@ title: Samsung LMS380KF01 display panel > description: The LMS380KF01 is a 480x800 DPI display panel from Samsung Mobile > Displays (SMD) utilizing the WideChips WS2401 display controller. It can be > used with internal or external backlight control. > - The panel must obey the rules for a SPI slave device as specified in > - spi/spi-controller.yaml > > maintainers: > - Linus Walleij > > allOf: > - $ref: panel-common.yaml# > + - $ref: /schemas/spi/spi-peripheral-props.yaml# > > properties: > compatible: > @@ -59,7 +58,7 @@ required: > - spi-cpol > - port > > -additionalProperties: false > +unevaluatedProperties: false > > examples: > - | > diff --git a/Documentation/devicetree/bindings/display/panel/samsung,lms397kf04.yaml b/Documentation/devicetree/bindings/display/panel/samsung,lms397kf04.yaml > index cd62968426fb..5e77cee93f83 100644 > --- a/Documentation/devicetree/bindings/display/panel/samsung,lms397kf04.yaml > +++ b/Documentation/devicetree/bindings/display/panel/samsung,lms397kf04.yaml > @@ -14,6 +14,7 @@ maintainers: > > allOf: > - $ref: panel-common.yaml# > + - $ref: /schemas/spi/spi-peripheral-props.yaml# > > properties: > compatible: > @@ -51,7 +52,7 @@ required: > - spi-cpol > - port > > -additionalProperties: false > +unevaluatedProperties: false > > examples: > - | > diff --git a/Documentation/devicetree/bindings/display/panel/samsung,s6d27a1.yaml b/Documentation/devicetree/bindings/display/panel/samsung,s6d27a1.yaml > index 26e3c820a2f7..d273faf4442a 100644 > --- a/Documentation/devicetree/bindings/display/panel/samsung,s6d27a1.yaml > +++ b/Documentation/devicetree/bindings/display/panel/samsung,s6d27a1.yaml > @@ -7,14 +7,14 @@ $schema: http://devicetree.org/meta-schemas/core.yaml# > title: Samsung S6D27A1 display panel > > description: The S6D27A1 is a 480x800 DPI display panel from Samsung Mobile > - Displays (SMD). The panel must obey the rules for a SPI slave device > - as specified in spi/spi-controller.yaml > + Displays (SMD). > > maintainers: > - Markuss Broks > > allOf: > - $ref: panel-common.yaml# > + - $ref: /schemas/spi/spi-peripheral-props.yaml# > > properties: > compatible: > diff --git a/Documentation/devicetree/bindings/display/panel/tpo,tpg110.yaml b/Documentation/devicetree/bindings/display/panel/tpo,tpg110.yaml > index 6f1f02044b4b..f0243d196191 100644 > --- a/Documentation/devicetree/bindings/display/panel/tpo,tpg110.yaml > +++ b/Documentation/devicetree/bindings/display/panel/tpo,tpg110.yaml > @@ -41,6 +41,7 @@ description: |+ > > allOf: > - $ref: panel-common.yaml# > + - $ref: /schemas/spi/spi-peripheral-props.yaml# > > properties: > compatible: -- Regards, Laurent Pinchart