Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp495305imn; Wed, 27 Jul 2022 11:48:50 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s6/pUzxvYERaRUyOo2KwtGtzR/K3YIapaHMxKNq3nQbocvhbD3WkdhDqViLSRRO5mVradF X-Received: by 2002:a17:906:7950:b0:72f:d4a4:564d with SMTP id l16-20020a170906795000b0072fd4a4564dmr13198104ejo.479.1658947730013; Wed, 27 Jul 2022 11:48:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658947730; cv=none; d=google.com; s=arc-20160816; b=cNHHn3lAdJRk3iaD9iej1GTLs8AQr1URefm/pKThhuWX/T5SSzYOx7ACY7+m5C93pB pFuhnW1/CUMcV8Q9+PQD+FGMt4NRYBtVkLZbIu2ppGsylGw/+9aUMWKUqUh70/bIfTQR BcM5RUr8jK6Uldh3s4YAYAXhgPAnS3MhMlKtyzgvGcTyZJ8l412XgLGJRvouOTn7R+3H LZ6DQ8cMPfExguk4ZsQBasc+mLKMTOtqdnC1OPVAqpt0uqLfqZJ1OIlssHe8CsHLZrWX CpHdUWYGeIg2bGZ3Wgi0dbJQpJ5YTXNnt6uzzEKz0fIVGQtvMqFnkrvoQCkUFzcdF1QH ie8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=pGvBGO7The5vMYhAFkbpIL+Mx8zg6qvgHGnml6XuW/Q=; b=KPhGsqoJSZuHoND4YI7D6l4cSWqNP4g4Rn0EfORKkHp78RaFHNIYkGqTIQWbTCdYHC BU8ZKBqCWhyiNRjKOFGk7YFd0DsPLK6OUf0Bd0oi4LxFVQLcN3UFWskSNRM6PjNMeiIw dAH/C5+OOEWHvA02J/wz2j/DqS/mqh9Y26sKcqY2XqQs9wzDNI5tarzHDAVqPfjdCK+w Y4lG8s/yWRXgKeQ3GkTuxKAO60TB3SS1ibbki/BJV8MnyI9tMvpWTUte5rqB8UBtOOuG 3Zdfc8ECQQK1wnKh361GRIak1IqYx59gC2M/mHR2gP+sCPUD5jGp5BkjvuMC80pphOXZ M5JA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="kT8v/97S"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y12-20020a056402270c00b0043bc6013b81si20966487edd.67.2022.07.27.11.48.23; Wed, 27 Jul 2022 11:48:49 -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 header.i=@linaro.org header.s=google header.b="kT8v/97S"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241784AbiG0RUH (ORCPT + 99 others); Wed, 27 Jul 2022 13:20:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230242AbiG0RSb (ORCPT ); Wed, 27 Jul 2022 13:18:31 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AE7E79EDE for ; Wed, 27 Jul 2022 09:43:52 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id r14so20437575ljp.2 for ; Wed, 27 Jul 2022 09:43:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pGvBGO7The5vMYhAFkbpIL+Mx8zg6qvgHGnml6XuW/Q=; b=kT8v/97SO5qLemWpEOWgpsCzVFRBTJYQVgSNWxMeLA16Y2z+rJrCOKi2p4POvRXPbP jjZJvOZubNUSNIu1yOPJNnupfVf2+J6ACs7Aol56110eu1sX8VAGfaNJg9wrDM5w/Pt6 LNfPyGeA42f6Omj/+ctTdqrqHoVpXo2BpltaGDUA7ROclI22vXnhkISrlVPqsfBxgMHI yu2HMuNWmFp+DmZG+6shqoEW3hPhHfPGfyNq93wS3wy15d7vDJrTYisKeaySnQkKb6hW YLV87o4hDYRKoLUJIOmnmdOxlPAIDrqwj+dwuGw4IlP0QbO2XQdG55iXeYgxg/dMy5vx AgAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pGvBGO7The5vMYhAFkbpIL+Mx8zg6qvgHGnml6XuW/Q=; b=OGT0ABWPnuCLGm04/MdhcxLnw846XVokaMc53IB2/1KncEXTqtxTtIrqUWN+nHZjnL e+7gLDlBaJnTmxDX8FEl/QKIkCcGRWd7rOQR3kjSGU2bb+nBXe7doAMSrpmo2OKQEs2S AZZ9apLH08+oPuRUjwPs/WLQRa9bfV5cxqlF2T44j60zuLd7L0P76MohSRBnjOwHXsk8 nLWIX2hUlg7iM406crdgxedr7Gwbu0rMpagINTSDd2l5bb9C72slSSyKZa8+LtMCNXHm alHIs3r6kwjMFOnOvsDDEbOmNHIvAdhtUCKEq7lq4BxtLRl+7W2HOjt19n9tKqYMqjSf 3TAA== X-Gm-Message-State: AJIora/BQjs+3YLpHMQ+wTa6UeGgOqhB28hDBO6wGYBp3ZTUsJkRa6zE HQyLIosbOI5FPsJqhY9sy6MwPw== X-Received: by 2002:a2e:8095:0:b0:25d:f573:db4c with SMTP id i21-20020a2e8095000000b0025df573db4cmr7587113ljg.62.1658940230242; Wed, 27 Jul 2022 09:43:50 -0700 (PDT) Received: from krzk-bin.lan (78-26-46-173.network.trollfjord.no. [78.26.46.173]) by smtp.gmail.com with ESMTPSA id i22-20020a056512341600b0048137a6486bsm3865662lfr.228.2022.07.27.09.43.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Jul 2022 09:43:49 -0700 (PDT) From: Krzysztof Kozlowski To: Conor Dooley , Ivan Bornyakov , 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 Cc: Krzysztof Kozlowski Subject: [PATCH] dt-bindings: fpga: microchip,mpf-spi-fpga-mgr: use spi-peripheral-props.yaml Date: Wed, 27 Jul 2022 18:43:47 +0200 Message-Id: <20220727164347.386398-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,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 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