Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp508677rwb; Tue, 4 Oct 2022 07:05:24 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4cRspLyrOF8IWHCMloX1pN1NM8vzVL68j8wC4/SbtH7gkIMn/xt+iKuWCaTc3ekpC8/85m X-Received: by 2002:a17:90b:224d:b0:203:a209:f4d5 with SMTP id hk13-20020a17090b224d00b00203a209f4d5mr17687457pjb.135.1664892324049; Tue, 04 Oct 2022 07:05:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664892324; cv=none; d=google.com; s=arc-20160816; b=0Q6LHt7kV7uhnXmZMUAlyWbInKDlLYMLDjAJJUGAwL6dLp90JIo0US+VM+4knt/sAj JxNkMVPFrduRul2At+N3ySsJJbdoslzA8GKFTJfzMXm/nAwgSxgdVJdbw00gkzM/elds vtUbeVPB7VBB+bx04ucUY6+s7Cq/iICyawI4B9fERkfMFeebO8JB9AOnWFYuYJDicPt9 YhwTHIlhgcJaBOsi0Wvp13uMRkdU6uSOvfN+Bu/V3M5qWMzMiqKmgFia70TYU8CsY9rX HvxlLRWidm8W3DSQ9mT4B0WvjqH3hrwyKyOmQWZ6YbKfFtlne0WeowKhfuFIOYOAFomA s7AQ== 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=Khb6CMU5qVBZikLNiVycak0WeUUa/UCrRJRD7d8NOV4=; b=PEQbuEuHDphQk7wDsIpSyfIMfWAENL5TqdVhpEPTz2nachy2OiIdYq8ZIUW/UI9zyN tnfmYMrEvmJRCH0NejyGbi8FtQCm1Vo9CGr6WFg2oTEXOdBoxAjkEi/QHAQzFVLAQDA1 KxTpGDzaSUeSHQ3lMwQz08DiTa35WsiaqO9d2MDNs86AYYkVKZ75eG0hyx1f08ZOyne9 3PncjozJzuYrrVsCTixTqL7D6lUqn4N4vog5wf8sHvrVg2mtvJql+HOgC6OVQNxDvHLV RxGo1Ocuy2vwcuIPdDbtNFG6z+fTdxmHshoiYIM4sL94ZGWi7KEjpws4hdQrUXE+mwT4 w0oQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=tu2q72DU; 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 202-20020a6302d3000000b0044c7a49bef7si7322832pgc.259.2022.10.04.07.05.11; Tue, 04 Oct 2022 07:05:24 -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=tu2q72DU; 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 S230050AbiJDNRP (ORCPT + 99 others); Tue, 4 Oct 2022 09:17:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229549AbiJDNRL (ORCPT ); Tue, 4 Oct 2022 09:17:11 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0149A40E00; Tue, 4 Oct 2022 06:17:07 -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 23DD72D9; Tue, 4 Oct 2022 15:17:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1664889426; bh=f1RHm/OBzxHqpuDxQR9wiXt9MAc/9sUP+yL/aI5Rouw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tu2q72DURGA8c9qN/0N10mEcsZeFqdEGTh9q1tHkA7N7ApKAakihpD6tuK0C5Yew2 n5I5swKCKOzS0grki1Q4Tdy3x3pNWtOQJmkR92856x6nBJf1s34DJW8CAm1GD34Z9x nv5mbiOKVUy4fC65/t60jKosn9MsqQR/uVuCW+4M= Date: Tue, 4 Oct 2022 16:17:03 +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> <64a355f2-e9a1-dcca-cb86-48805acae8d5@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <64a355f2-e9a1-dcca-cb86-48805acae8d5@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, On Tue, Oct 04, 2022 at 03:10:29PM +0200, Krzysztof Kozlowski wrote: > On 04/10/2022 15:03, Laurent Pinchart wrote: > > 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 ? > > You are correct about one side of this - SPI controller bindings. > However these schemas here have clear: additional/unevaluatedProperties: > false, thus when they find DTS like: > panel@xxx { > compatible = "one of these spi panels"; > ... > spi-cs-high; > spi-rx-delay-us = <50>; > ... and some more from specific controllers > } > > you will get errors, because the panel schema does not allow them. > > The bindings were done (some time ago) in such way, that they require > that both SPI controller and SPI device reference spi-props. You're absolutely right that additionalProperties needs to be replaced by unevaluatedProperties. Can the additions of $ref be dropped, or is that needed too ? -- Regards, Laurent Pinchart