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#" 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