Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp538441imn; Wed, 27 Jul 2022 12:59:07 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tKF/DUXuKmWVJB4fkq6ROThtN2/S3EdQZid4yt6xOc89VDIpGCd9lUWAybH8SvCT9NNfjW X-Received: by 2002:a17:903:2483:b0:16c:dfcf:38e8 with SMTP id p3-20020a170903248300b0016cdfcf38e8mr23307250plw.43.1658951947318; Wed, 27 Jul 2022 12:59:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658951947; cv=none; d=google.com; s=arc-20160816; b=TmQ60pmRzbowDk7g7E0DSbFEKqie0sx0WvOandDJM1mThrMHwsIWS4+7BPKv1tE9S/ Bqc9mfjLOvKkoRN180rL5Bnhq3NW2VT/xk10jnk1ro6krU2iLcJon7H3OBli/tIllHPr WI1BYVEYfWYt6Z+DW/ViWKKjqFJXfauFtvTpKQqPkoT3NjDxA2a2ec6rAiGe99Qw26cJ azXFvXlM6wUKEevfV7gQL8jjpMTzq0CcZvuxB4Qwvc/pKfPC1xS3ePCipwrYyqjnmw9f euTuX7P6N9+jWzObuEOB57LoxHaqqwjH/VvKeppYBls6W9TJShndTfgiBGO1rik8XItS nUlg== 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=xf68J6WYG7x8KRXT5KTP6mR1o/CaQlwJrouVXhVaqgg=; b=T+mNkiY7tyMPsErcw/4LyROyeEkCNGtlGCT7K6SCob9kPrZ4VACcsqYionqrdCHY6s bi4QAdIWcqt+a+u/+yniqZBQIezNhXYsY9s/fheCRFSQ9Fph8RaVSEtao8h4QSRVhj3C 4aw8Lah6UbQSAY2yDz/VsHDZrpu6/8/Ab/EfeN4g9pU7p0wSMFwgvz9uhPnrzFsVCzlT 2cyTvGSDofdyGqIZLTEw4Yz/0lHDnG2XGf0t9E4aogk1IWk36hl2qjESebMQpUjKqcAE 3NF88Bf2L/efUewaopH0pzT0EzzbIcJ2Yfbmva0H8XAotgy5hUb07/my1orIKHV6v+qq /JHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@metrotek.ru header.s=mail header.b=Bo6Vlb1a; 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 l2-20020a056a00140200b005289748c1e8si22823841pfu.294.2022.07.27.12.58.50; Wed, 27 Jul 2022 12:59:07 -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=fail header.i=@metrotek.ru header.s=mail header.b=Bo6Vlb1a; 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 S236700AbiG0TTe (ORCPT + 99 others); Wed, 27 Jul 2022 15:19:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238002AbiG0TTU (ORCPT ); Wed, 27 Jul 2022 15:19:20 -0400 Received: from mail.pr-group.ru (mail.pr-group.ru [178.18.215.3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 307D14F663; Wed, 27 Jul 2022 12:11:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=metrotek.ru; s=mail; h=from:subject:date:message-id:to:cc:mime-version:content-type:in-reply-to: references; bh=a52mJhM1gg4pRCLX2QchY4yYs0Td4xCM9hQG7dTnPWc=; b=Bo6Vlb1aBj1EOmh8KUPkZyW2iZeA69lLQLzjQZlo152fYud67iqWd3Bwgt97TPQzx+0nbMntvI4/+ cEEPyYuz2LcyX/7zAYjgf2nE208mCyjJigtg6+gVMyf4yzLvCOuzFBxxOTUKBOZDvLZ9T63YQWKkbY PuTaBq7pxb0LAnzj0q+kg1stfbXaD7Xo2v0EDWBPYq46vX8cMTjjprx4xSKcNbvCmFSB5QLqAtH6oX Ml2Jn/E+w8VWq/LpZIt69VKXdP2XouTf5qi7RX/aL8r2lNrNsGET3d9CYv8F+fWzmIToESktsJm/la SsqMRG9zxfWX+FzBvNaaAPn3zMLe6+w== X-Kerio-Anti-Spam: Build: [Engines: 2.16.3.1424, Stamp: 3], Multi: [Enabled, t: (0.000008,0.009919)], BW: [Enabled, t: (0.000013,0.000001)], RTDA: [Enabled, t: (0.074415), Hit: No, Details: v2.41.0; Id: 15.52k3hs.1g90h4fac.fvmn; mclb], total: 0(700) 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_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Level: X-Footer: bWV0cm90ZWsucnU= Received: from x260 ([85.93.58.13]) (authenticated user i.bornyakov@metrotek.ru) by mail.pr-group.ru with ESMTPSA (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256 bits)); Wed, 27 Jul 2022 22:11:27 +0300 Date: Wed, 27 Jul 2022 21:46:43 +0300 From: Ivan Bornyakov To: Krzysztof Kozlowski Cc: Conor Dooley , Moritz Fischer , Wu Hao , Xu Yilun , Tom Rix , Rob Herring , Krzysztof Kozlowski , linux-fpga@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dt-bindings: fpga: microchip,mpf-spi-fpga-mgr: use spi-peripheral-props.yaml Message-ID: <20220727184643.7bpsrxxrrpyqbwtx@x260> References: <20220727164347.386398-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220727164347.386398-1-krzysztof.kozlowski@linaro.org> 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 On Wed, Jul 27, 2022 at 06:43:47PM +0200, Krzysztof Kozlowski wrote: > Instead of listing directly properties typical for SPI peripherals, > reference the spi-peripheral-props.yaml schema. This allows using all > properties typical for SPI-connected devices, even these which device > bindings author did not tried yet. > > Remove the spi-* properties which now come via spi-peripheral-props.yaml > schema, except for the cases when device schema adds some constraints > like maximum frequency. > > While changing additionalProperties->unevaluatedProperties, put it in > typical place, just before example DTS. > > Signed-off-by: Krzysztof Kozlowski > > --- > > Technically, this depends on [1] merged to SPI tree, if we want to > preserve existing behavior of not allowing SPI CPHA and CPOL in each of > schemas in this patch. > > If this patch comes independently via different tree, the SPI CPHA and > CPOL will be allowed for brief period of time, before [1] is merged. > This will not have negative impact, just DT schema checks will be > loosened for that period. > > [1] https://lore.kernel.org/all/20220722191539.90641-2-krzysztof.kozlowski@linaro.org/ > --- > .../bindings/fpga/microchip,mpf-spi-fpga-mgr.yaml | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > > diff --git a/Documentation/devicetree/bindings/fpga/microchip,mpf-spi-fpga-mgr.yaml b/Documentation/devicetree/bindings/fpga/microchip,mpf-spi-fpga-mgr.yaml > index aee45cb15592..527532f039ce 100644 > --- a/Documentation/devicetree/bindings/fpga/microchip,mpf-spi-fpga-mgr.yaml > +++ b/Documentation/devicetree/bindings/fpga/microchip,mpf-spi-fpga-mgr.yaml > @@ -22,13 +22,14 @@ properties: > description: SPI chip select > maxItems: 1 > > - spi-max-frequency: true > - > required: > - compatible > - reg > > -additionalProperties: false > +allOf: > + - $ref: /schemas/spi/spi-peripheral-props.yaml# > + > +unevaluatedProperties: false > > examples: > - | > -- > 2.34.1 > Acked-by: Ivan Bornyakov