From patchwork Tue Jun 6 10:30:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 689922 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 81F4DC7EE2C for ; Tue, 6 Jun 2023 10:31:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236485AbjFFKbM (ORCPT ); Tue, 6 Jun 2023 06:31:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236256AbjFFKbK (ORCPT ); Tue, 6 Jun 2023 06:31:10 -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 C7EE2E67 for ; Tue, 6 Jun 2023 03:31:08 -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=1686047467; 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=/XqwqUEqxTRlwuqyScbemHhCwtlpbBoBEzWo4M8PRqg=; b=eVRsuvQOID4SslV5pOtJFf6FwsVvh+pzjF7/1v7gtPn1HGM/Wog5CPSFVjvLr0CE1b25uq ayetjfpNHYQsVCFo7fwCIgJXBnEARxK6z/H1bDk0vZRV8edsniTtmC3dHkemDaqBm2EyEt HgwCl8LhvV0GQH8gGCOKYwZqk6eYB5dCYp9R3lE7PV/+IZ1b5BCnmSM0IhlDODDkC3mX+Q BLNEni6DUPO+DuBSTpoLl+k6uD9xOjNfBL20ha3k/j1pnTO5w+77sywQZQA5CQe9QuDydi Q8KfT4XSAYYFT9N85WpgY/gSBrlKhLdSCPOwB7ijcA24BJqveIgJYnLuhn2Umg== 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 5FE2DFF814; Tue, 6 Jun 2023 10:31:05 +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 3/3] dt-bindings: mtd: ingenic: Prevent NAND chip unevaluated properties Date: Tue, 6 Jun 2023 12:30:57 +0200 Message-Id: <20230606103057.137711-4-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 --- .../devicetree/bindings/mtd/ingenic,nand.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Documentation/devicetree/bindings/mtd/ingenic,nand.yaml b/Documentation/devicetree/bindings/mtd/ingenic,nand.yaml index a7bdb5d3675c..facb44ebcaa6 100644 --- a/Documentation/devicetree/bindings/mtd/ingenic,nand.yaml +++ b/Documentation/devicetree/bindings/mtd/ingenic,nand.yaml @@ -40,6 +40,8 @@ patternProperties: "^nand@[a-f0-9]$": type: object properties: + reg: true + rb-gpios: description: GPIO specifier for the busy pin. maxItems: 1 @@ -48,6 +50,15 @@ patternProperties: description: GPIO specifier for the write-protect pin. maxItems: 1 + nand-ecc-step-size: true + nand-ecc-strength: true + nand-ecc-mode: true + nand-on-flash-bbt: true + + partitions: true + + unevaluatedProperties: false + required: - compatible - reg