Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp482033imn; Wed, 27 Jul 2022 11:25:44 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tp8Bi8rpYo0iCPQT6iW7FAt2b7pjOOxCOxfF4vvDLsEE48coVPpGYGiYLwTZ5pC64v+RhT X-Received: by 2002:a63:5903:0:b0:41a:767:7adc with SMTP id n3-20020a635903000000b0041a07677adcmr20195478pgb.615.1658946344487; Wed, 27 Jul 2022 11:25:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658946344; cv=none; d=google.com; s=arc-20160816; b=OFtnSjTLkaIckRSSY3vXfw0F3zP9ZNRC4x0sasC8uPpiakzrpYysO/9OP9v/Tr9NTw us+VkmK7xUMNA7A7zES77gsklJnZHZKXIxNiG6HhU0u7q6hDLfJQ9b0mxRHHB2+fAG+q ulWVTiWVwfC6CJk+N96iAcIRqGjynDCJFVjxMwhjIMBkVLBdEWfI2n93V7XCTXNzZSJj Dghonn4h4HGlYDBTOyRP23c7rDCZOD2EmBLTnvlhLkxeYUEcKCeM81BXO6D4veYYfaPS XtN3W0yUpHz4XfRrPUfOnxNJyVyI1hJqfRIliHgibc0MuM5EbCZ8SFTnMtEsaPiznuFx fnoA== 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=HLLpAzhNV/l0ttpD0m4mlf6L5UXu2Cn5/3KpjyhDTBY=; b=P1Kp8SbAYiOlGin1Xn4fGFx3bbJ2cpi4qOSjD+dYlsGi4eQu75kxi6WNeFeK2eJ7wD DpeWnm0VFHpLNSiRUmzwFA7n9oX8V1zDL5l2WdAp3Y9LtdzqF9Yr7KgZ9O+5dixU6p6I jbwzyZB581xB2RzSvC8ZyUhrceewCZOTnR9lgr4OHWX87xNp7ZUpYIQg7AvSOdkydtxG NuXbXfdANSyf8M/OC8jSzDljpQHRB9ISEYDLoHYPR05rBcTgDh0I6UsoO2JqohIgL1k1 BGz4BpIRXC7ijLrvn+JXnM9089txaBeftaCVYdtIfNRJM3rqt+ZT9XKcm7FYE/UXsRNC isDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uPUaQqLT; 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 s26-20020a056a00179a00b0052ac2120ce4si23483123pfg.323.2022.07.27.11.25.29; Wed, 27 Jul 2022 11:25:44 -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=uPUaQqLT; 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 S230158AbiG0RM5 (ORCPT + 99 others); Wed, 27 Jul 2022 13:12:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241502AbiG0RMK (ORCPT ); Wed, 27 Jul 2022 13:12:10 -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 C5DCA74E3F for ; Wed, 27 Jul 2022 09:41:53 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id d17so25844633lfa.12 for ; Wed, 27 Jul 2022 09:41:53 -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=HLLpAzhNV/l0ttpD0m4mlf6L5UXu2Cn5/3KpjyhDTBY=; b=uPUaQqLTpWBsddAvwhB8kXR3XZqpK0bsfMJYxtl6vmn0LIxzSjWbEkXM+1GyWv4q3K 0lXRAxsqbWIDmTHN9W9otGvZnmtq6Gi31EciPJxgE8fjh2qUREoJtZEh1xQiYckDq06b RsAcgGnVa7t22jloyDww1FlcS+NSMIoxuplRVXowLQCO7zd4UqWHIJTdos7ONZAPMoQO X8GTSCn5qBzEmzNsHgudvTRUKqbh5UBpG8+/KsiBX1774UKZHSPq9SrIQvAY2SyBGYum lrUgOkkjGsHBhfhQR0ZmWQvSkCw8rH2kUtWhMyPFl6EyINP0S5yN50siJJonzjzCBX5j aA0w== 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=HLLpAzhNV/l0ttpD0m4mlf6L5UXu2Cn5/3KpjyhDTBY=; b=yaEsHuOedX4oegb1o+t3ufnPacvquUxNmXHYPrtQvvFWwb9uMRFo0g8UZV3ZxCyckZ VvlGrWWRFEkPsYNu8qnvoLAXSq1OCb/kOjO1iVQ/I08EFpSpgveIwNfjlEghRfdnzdEi +0Fb1VGUJo78GKWl8z6hkjLSR7bvMYtwQvBF8HOAjN5V0NSerx0QEgEEd4GugfIvft/3 3zbzo8MRqhVERvz70J+MIKEETgFpzoD2s9Mtn3RG5u5Mk+3z/1z1JdqYL0rvBJKmA+tE PwDEkYs/dQg1WWWYZ1am3AtMVKCH53iTcHSApFOeHh11rGx8I7IOh59Z+PNxwXl7t8vd m3qA== X-Gm-Message-State: AJIora+y5yhzldNqqwx65RJr5uPaR69fahgFjJdRKttSrP4GTi7sINiZ gF+i6oxa8IcnaBviIOnho6ma/w== X-Received: by 2002:ac2:4f0a:0:b0:48a:839c:2fe with SMTP id k10-20020ac24f0a000000b0048a839c02femr6823774lfr.40.1658940111411; Wed, 27 Jul 2022 09:41:51 -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 z19-20020a056512371300b0048a73a75908sm784409lfr.302.2022.07.27.09.41.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Jul 2022 09:41:50 -0700 (PDT) From: Krzysztof Kozlowski To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Rob Herring , Krzysztof Kozlowski , Heiko Schocher , linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH] dt-bindings: mtd: microchip,mchp48l640: use spi-peripheral-props.yaml Date: Wed, 27 Jul 2022 18:41:48 +0200 Message-Id: <20220727164148.385476-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/ --- .../devicetree/bindings/mtd/microchip,mchp48l640.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/mtd/microchip,mchp48l640.yaml b/Documentation/devicetree/bindings/mtd/microchip,mchp48l640.yaml index 2cdf6bf3dc4a..8cc2a7ceb5fb 100644 --- a/Documentation/devicetree/bindings/mtd/microchip,mchp48l640.yaml +++ b/Documentation/devicetree/bindings/mtd/microchip,mchp48l640.yaml @@ -22,13 +22,14 @@ properties: reg: 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