From patchwork Tue Jun 6 10:30:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 689923 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3ED73C7EE32 for ; Tue, 6 Jun 2023 10:31:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236436AbjFFKbK (ORCPT ); Tue, 6 Jun 2023 06:31:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236313AbjFFKbH (ORCPT ); Tue, 6 Jun 2023 06:31:07 -0400 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98869E8 for ; Tue, 6 Jun 2023 03:31:06 -0700 (PDT) X-GND-Sasl: miquel.raynal@bootlin.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1686047465; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VJYAGRC0i2DcEfYnTuv+aEbkwNG3Py62w5DWqr2b1PY=; b=Ut0BPSLoFkfn7kh6B0i38YdDHY3jrzMsr7yBWB+XS0QPloSrPO9eRfSOt6QN4CxXJ9WmWV Y/KHNkUjJSmRkgAeV0DA9t6TCvT6U1KYxdtqCpFGa6XdZiTN81K4Iw99wjyKtTgd+Rjfda aZvQu0nuPSFRle/zt2mp5e1sfJui7bNRFXsgaa1YufCN2JJJL1xPEd1B8nxrR4p8n8ISxR SjiA01qXVutt9MbFsWScQV04qS/WxnskTRHmjY3S7bZweS8Pr88u79Prjjl90lYAv/E8FL 1pwVK6C4AALM7+XQO46dOzFJhoMHf9bri1V8H5KRoAoxXK1LDly/i3ci2NIuqQ== X-GND-Sasl: miquel.raynal@bootlin.com X-GND-Sasl: miquel.raynal@bootlin.com X-GND-Sasl: miquel.raynal@bootlin.com X-GND-Sasl: miquel.raynal@bootlin.com X-GND-Sasl: miquel.raynal@bootlin.com X-GND-Sasl: miquel.raynal@bootlin.com X-GND-Sasl: miquel.raynal@bootlin.com X-GND-Sasl: miquel.raynal@bootlin.com X-GND-Sasl: miquel.raynal@bootlin.com X-GND-Sasl: miquel.raynal@bootlin.com X-GND-Sasl: miquel.raynal@bootlin.com X-GND-Sasl: miquel.raynal@bootlin.com X-GND-Sasl: miquel.raynal@bootlin.com X-GND-Sasl: miquel.raynal@bootlin.com X-GND-Sasl: miquel.raynal@bootlin.com X-GND-Sasl: miquel.raynal@bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 44F20FF80D; Tue, 6 Jun 2023 10:31:03 +0000 (UTC) From: Miquel Raynal To: Richard Weinberger , Vignesh Raghavendra , Tudor Ambarus , Pratyush Yadav , Michael Walle , Cc: Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, Chris Packham , Manivannan Sadhasivam , Andy Gross , Bjorn Andersson , Konrad Dybcio , Christian Marangi , Thomas Petazzoni , Miquel Raynal Subject: [PATCH 2/3] dt-bindings: mtd: qcom: Prevent NAND chip unevaluated properties Date: Tue, 6 Jun 2023 12:30:56 +0200 Message-Id: <20230606103057.137711-3-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230606103057.137711-1-miquel.raynal@bootlin.com> References: <20230606103057.137711-1-miquel.raynal@bootlin.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org List all the possible properties in the NAND chip as per the example and set unevaluatedProperties to false in the NAND chip section. Signed-off-by: Miquel Raynal --- Documentation/devicetree/bindings/mtd/qcom,nandc.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/mtd/qcom,nandc.yaml b/Documentation/devicetree/bindings/mtd/qcom,nandc.yaml index 7217d8a64d14..4ed14cd97cb8 100644 --- a/Documentation/devicetree/bindings/mtd/qcom,nandc.yaml +++ b/Documentation/devicetree/bindings/mtd/qcom,nandc.yaml @@ -35,6 +35,8 @@ patternProperties: "^nand@[a-f0-9]$": type: object properties: + reg: true + nand-bus-width: const: 8 @@ -61,6 +63,10 @@ patternProperties: Refer to the ipq8064 example on how to use this special binding. + partitions: true + + unevaluatedProperties: false + allOf: - $ref: "nand-controller.yaml#"