Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp614721pxh; Tue, 9 Nov 2021 16:12:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJwj3Z7LIL1qwUlU3EvYMXXCpUmGt0rgdPn5vKaII20O6jtPlVU6c9FD00YsL4ayL8iPDXZP X-Received: by 2002:a92:3650:: with SMTP id d16mr8001943ilf.288.1636503168115; Tue, 09 Nov 2021 16:12:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636503168; cv=none; d=google.com; s=arc-20160816; b=uprTNuv8UrCwoFpUjmTefhdcH7+SFlwt9tq4vwCNdV8AsTCHNyU5bYwUF38lVr8gRk Jfsd1xTSoioy9/yM+PSLdDqsmpU5zNYq89Y0SmQTenPSIgralwnJa+mVaT9iFtXbvc3C p5GUUriTleNzZZK/PTP382FpQq7aUC0QtDOWPj+/qqeLfMREQoO4TPyPn/QMNin7YXXI fD0r2uq68dklmoOUjrYsqmOnBSDWNiRotnwRnZuNakwQZmJVsugKFIkuagjYx2jR60Uh 03Q+bKV/AF/3zht3U0NMQBx15VBCMFJMg5e84vyrZYcxXOqER7miyvaiwCPURBrnPsLv MoGg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=bNgxSpWcyBtnq7XC0L3A6Ob6weYYVTcirUbh0b7kL2s=; b=r94Tbt8kNNnFaLwyDbDK5FBkynf1W9T34/OJA6s+a8pxecLPRG521D1U833MhchicY pssDtpkJizUduquRqU2w5YGkxaIOkbhI53L09AuEQ99M/yeQGB/pxXpM/6v0rG8NIRWR Y4zWN3m9Wt7xwfZp5DQp2bYAw2E8PH0fhxbRUEkbFIrgcaZFGNW3EBvYw4NgNuyPRa3R MttdcdbpbKRL0L5YpsogfOoqUxgI+p67zF47tPJaO5XwHri1JtvMz+6Vn8sSVBqDkTI2 OT23JO95BYAKKPKMVDQu14QeLowo6jhruwnr6riZ8SE1D4rSkLuQHkamh/fILFDGcCCx lfLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=aXRzuFpP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ay7si34685068iob.27.2021.11.09.16.12.36; Tue, 09 Nov 2021 16:12:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=aXRzuFpP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242395AbhKISWg (ORCPT + 97 others); Tue, 9 Nov 2021 13:22:36 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:45356 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242321AbhKISWb (ORCPT ); Tue, 9 Nov 2021 13:22:31 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 1A9IJStP123394; Tue, 9 Nov 2021 12:19:28 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1636481968; bh=bNgxSpWcyBtnq7XC0L3A6Ob6weYYVTcirUbh0b7kL2s=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=aXRzuFpPka5DkvMwFrWfN2lhqsuPCucq9O5cNfbfOL4/vGV3GUZNehy8mafVz8IkM AVJ3ltpRUtweFMUimcQjnMo3ViWp1VEaSqxTrHQ1MdOjjEQmzhVckIAzBGRum+uqun chUKHzlp1LhKI5GKWNrDx+wj7PUouPSYW7WNDziA= Received: from DFLE102.ent.ti.com (dfle102.ent.ti.com [10.64.6.23]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 1A9IJSr5103683 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 9 Nov 2021 12:19:28 -0600 Received: from DFLE113.ent.ti.com (10.64.6.34) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Tue, 9 Nov 2021 12:19:28 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Tue, 9 Nov 2021 12:19:28 -0600 Received: from pratyush-OptiPlex-790.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 1A9IJC54017044; Tue, 9 Nov 2021 12:19:25 -0600 From: Pratyush Yadav To: Rob Herring CC: Pratyush Yadav , Mark Brown , Nishanth Menon , Michael Walle , Miquel Raynal , Richard Weinberger , Tudor Ambarus , Vignesh Raghavendra , , , , Subject: [PATCH v3 3/3] dt-bindings: mtd: spi-nor: Add a reference to spi-peripheral-props.yaml Date: Tue, 9 Nov 2021 23:49:11 +0530 Message-ID: <20211109181911.2251-4-p.yadav@ti.com> X-Mailer: git-send-email 2.33.1.835.ge9e5ba39a7 In-Reply-To: <20211109181911.2251-1-p.yadav@ti.com> References: <20211109181911.2251-1-p.yadav@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The spi-peripheral-props.yaml schema contains peripheral-specific properties for SPI controllers that should be present in the peripheral node. Add a reference to that so its constraints are followed. additionalProperties: false cannot be used since it marks the controller properties as unknown. Use unevaluatedProperties: false instead. This has the side effect of allowing extra properties that are not specified in the schema. The alternative is to list all the controller properties in this schema but that would mean every peripheral binding would have to repeat the same set of properties for each controller. Signed-off-by: Pratyush Yadav --- Changes in v3: - s/slave/peripheral/g Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml b/Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml index ed590d7c6e37..39421f7233e4 100644 --- a/Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml +++ b/Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml @@ -11,6 +11,7 @@ maintainers: allOf: - $ref: "mtd.yaml#" + - $ref: /schemas/spi/spi-peripheral-props.yaml# properties: compatible: @@ -88,7 +89,7 @@ patternProperties: "^otp(-[0-9]+)?$": type: object -additionalProperties: false +unevaluatedProperties: false examples: - | -- 2.33.1.835.ge9e5ba39a7