Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1544809pxb; Thu, 28 Oct 2021 05:50:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwiF7Z4bUqvymn+2ZEQOoQm/Dfg4XAB4ZZFKFqDSTjD1vWHRoL9FNM9nK5HFna654PyxHGq X-Received: by 2002:a17:906:8298:: with SMTP id h24mr5452479ejx.211.1635425442226; Thu, 28 Oct 2021 05:50:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635425442; cv=none; d=google.com; s=arc-20160816; b=N9SWUeSM7F3qnvzKZfI9GVV62F7ksQwvYVqVt88gjFjml7Ne0DolFHK/78Bl37MQWA RXQuj+I+TKHjsG3ZNevJtAZvjqdhwRwCLDAxl8nrFm0Eg+u7z2Uff2QFZ/hlCFt0q+cF gMc5bo7EwQnI2Fcv8ovYJ6EMR9aXXQRkE64K3DWX5RuJpPjiZjHenE+eTZ69hHsacmbp wZXk3uobzbYf1IEe3jdKFErjuFTaGxYCAko0KDiMztnazUiiTl5dtCRcAOdTI7XnxF78 IRMAaGwwBSOMdvCWgROgTrGVA+LdGHv2VbqOJMfAqV8rcvh81NYSQJHqYOBOzsJ3BMHj PkTw== 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=KYpi63S67jEFLXgUwSqYZm2jT92fcc60hhrJnZCLW8U=; b=O6NOGpSMwzCTN8fJmYtRyche5RRnlbAgTeMgg6TC7fY0iEFWIuH1wJ6ISJUV+IeWpa ZN7uP/vfa0JZYi4PD5ApQpiguHOotJCczPjSQ4N0T+HDoXiVvLtyz4bz3BN5Ref4QLPv nV1nRPrYzd6iyOwluG71ENDSNZGCoHB4MAORk7GUcxkycFeEFKQVzS6cZIOzZ8nhKjNW ZDLGgJo1IesgN1GQzgGm095POBqE1mPwYlBje76KEbXTDGVc3j7LaSSplwGLBwml7xgr cCI6omGIqt9iEIYoczyeKJW86SQVxGHuSLoe9pZq+/wogw3R/siSoEwJA1yA39u8HAYS 06vA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=YsQ8cmpo; 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 w11si3967625ejc.786.2021.10.28.05.50.17; Thu, 28 Oct 2021 05:50:42 -0700 (PDT) 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=YsQ8cmpo; 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 S230295AbhJ1Ms2 (ORCPT + 99 others); Thu, 28 Oct 2021 08:48:28 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:45208 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230282AbhJ1MsS (ORCPT ); Thu, 28 Oct 2021 08:48:18 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 19SCjaML096846; Thu, 28 Oct 2021 07:45:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1635425136; bh=KYpi63S67jEFLXgUwSqYZm2jT92fcc60hhrJnZCLW8U=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=YsQ8cmpovfVomGE2A5PzuDhy+SSjMyGjQ8lfBkSOjRDG0D66V/B7UCew5fPSnjmTr ul299tnVdfShpRWhcG99CkzjkyD4JEmROcBBHHv43MbzxwXQR8XC7lF3rSUy49hpPv LeCqM7HVNShGapLEOyog6kMTXAt/LI7Y/sBA89EA= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 19SCjam3036663 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 28 Oct 2021 07:45:36 -0500 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Thu, 28 Oct 2021 07:45:36 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE110.ent.ti.com (157.170.170.21) 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; Thu, 28 Oct 2021 07:45:36 -0500 Received: from pratyush-OptiPlex-790.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 19SCjJbD115317; Thu, 28 Oct 2021 07:45:32 -0500 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 v2 3/3] dt-bindings: mtd: spi-nor: Add a reference to spi-slave-props.yaml Date: Thu, 28 Oct 2021 18:15:18 +0530 Message-ID: <20211028124518.17370-4-p.yadav@ti.com> X-Mailer: git-send-email 2.33.1.835.ge9e5ba39a7 In-Reply-To: <20211028124518.17370-1-p.yadav@ti.com> References: <20211028124518.17370-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-slave-props.yaml schema contains slave-specific properties for SPI controllers that should be present in the slave 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 slave binding would have to repeat the same set of properties for each controller. Signed-off-by: Pratyush Yadav --- (no changes since v1) 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..e69a8fbb91f1 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-slave-props.yaml# properties: compatible: @@ -88,7 +89,7 @@ patternProperties: "^otp(-[0-9]+)?$": type: object -additionalProperties: false +unevaluatedProperties: false examples: - | -- 2.33.1.835.ge9e5ba39a7