Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5153024pxj; Wed, 9 Jun 2021 10:18:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJweYQOv79hvlHFUMTnxruGG9iFtM3b79WHBOd1wsOwbsPLiIDYjbodFuMWIryIlhiTdDM1Y X-Received: by 2002:a17:906:f0a:: with SMTP id z10mr908169eji.115.1623259121933; Wed, 09 Jun 2021 10:18:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623259121; cv=none; d=google.com; s=arc-20160816; b=dB8DJUP85qZu+Vlr8PFuFTHE2AUHlopdLxxBns4bT+n5ISYPQ/gJdipUGyj9b84Gjr R1D+qZ0f++rsPo1UrKaFpsUTzbjJuztncFPtmod0gUhQO3mJ4goYE7SFdecOyzbCOCzh 1bKDu35kmrPaXwtyOgm0LS39mgKRtgruDOUknJC0Jd4rLi8zv5mMKn4qEeAuVQHcD5GR JpBzYeC+egq8vb8c32PbWWC3gAVz2L2V4ZBEuVvVVXe6rcsRlXiFXNxHuuYHLIELC8JW 9/4IVoflVu3nQ3q8FJFyo587d4W7/bAldhqxlDPYDaQEM39DHF6bWOtYgh4xnwqZ9ZHB o4Ng== 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=k+MYscYK157qqj9O9OVFOcOn5X9nPnm+nv8lFRPh3Fg=; b=h/E9GD3uikBuSaZMGp85m7R/CGaxy3UeZWYHq5n0JOAD14K2q50uLkM52MwQE0yIFe ixJLu8WOAQSvsuSVfCG9B5vJ2nGoZElUTCLz9PQnSy5UjZUFZ3hROb1BJKFcviWcuCOg Re7bCv09dh9Bl8WFgiM+Wu4lQXrcPtw0kqz1+kcIJesAUrkchFJtLfVHAx5ro5wiVLE5 nyajb4tO6+k5J0HLeou8dbILBY/yM3XDqFPAl6nstpwFYiD9RFr3rVuCv8Y7j+Ngh3kD uzFOxT7zOa4REBiDs8Oz2CyehHUGi/+gnUsyNVmojAos+4WSDvnthWVfvSWJT4RFJ2E3 +Vcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=eiO3GUxB; 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 y9si170356eds.105.2021.06.09.10.18.18; Wed, 09 Jun 2021 10:18:41 -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=eiO3GUxB; 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 S238794AbhFILTa (ORCPT + 99 others); Wed, 9 Jun 2021 07:19:30 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:44692 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237302AbhFILT3 (ORCPT ); Wed, 9 Jun 2021 07:19:29 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 159BHKOM070200; Wed, 9 Jun 2021 06:17:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1623237440; bh=k+MYscYK157qqj9O9OVFOcOn5X9nPnm+nv8lFRPh3Fg=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=eiO3GUxBoaX4CZoZ8CSZP8nEJ2jbE8OZ1eM759a0fUqHRGwiuA/ZeSdvkuGvtT3pZ uKP+CBaQ+lTNVVAgh4hUqKMolYuyKuaNM2BtYU70Ef7jdpV5uK/Lo054u+8RO25oqk jopC6PKnT25tx3sMdhpfGPSZ+BWqQDZLLebtAQIU= Received: from DFLE105.ent.ti.com (dfle105.ent.ti.com [10.64.6.26]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 159BHKcj085970 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 9 Jun 2021 06:17:20 -0500 Received: from DFLE108.ent.ti.com (10.64.6.29) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Wed, 9 Jun 2021 06:17:19 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2 via Frontend Transport; Wed, 9 Jun 2021 06:17:19 -0500 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 159BH7uH073420; Wed, 9 Jun 2021 06:17:16 -0500 From: Pratyush Yadav To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Rob Herring , Mark Brown , Pratyush Yadav , , , , CC: Nishanth Menon , Michael Walle , Tudor Ambarus Subject: [PATCH 2/2] dt-bindings: mtd: spi-nor: Add a reference to spi-slave-props.yaml Date: Wed, 9 Jun 2021 16:47:07 +0530 Message-ID: <20210609111707.9555-3-p.yadav@ti.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210609111707.9555-1-p.yadav@ti.com> References: <20210609111707.9555-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 --- 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.30.0