Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1901247ybg; Thu, 30 Jul 2020 05:48:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyeUTvBLiToB/Suym44X6mK/Ci84n3s+YqdReNIqzQuKywtPYvym+6ag4QWSTTi8lGOPSCz X-Received: by 2002:a17:906:6408:: with SMTP id d8mr2372614ejm.345.1596113299062; Thu, 30 Jul 2020 05:48:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596113299; cv=none; d=google.com; s=arc-20160816; b=whr2OpjisfM+l+likeTT6bvDD/nw7NQPHMYUyu4RPDXoDaHNu7hrUIh4ZRWhs1Z0ko cU7HPctwxFXpd3eRo/+J+G7+/lRWBW4jkRVxDdmT6F3XbDcjfnynXGjdAxc3jxroRxIn iaQ1F5REVDXAw58W/5flPldmX9tP0wlEq4BHXWigegO8FhH2phagUtbG0uf3lrPjYFEW L0hIJ+lLtm1aN8uskP9zP+Js2OzAPfTU4ZlGIUh2jcNsogyZBdZX1D0sdUx2bvXwfFOE XUt3kapdmDYwnyJ16sLCLR16hGJ3V6wrNaGSXNs2dmg5gAXVi9v7E58+OZKLrwFUAOa/ gimA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=osw5mQQUc8A8gV9xbG29zT5yIHHQk8YP5mVpDvuoCCw=; b=d8q/SWnVstQGnIA7ZRibACagBzni6SatdHCOnSdYSmgllZFotzFY0j70J5IsKEA6nY pBckeYbeY8rStJIYo4E8tXKjj2nIYep8B6BotS6up/PCbhKcy1kL8wd2DgBwupg57Yqs KSe06WKIAjpYwNU/VUtUsf1u1Anp7kKgQGZmQY99SWzHXCXsKzbaMvx5DQLzlp2Kga3V ijYgJd3GpJXADC5Gnhh9tNORVcpUxXoYp48bDYsD9fVhGe/AzCcsqvxojJp4fHxdJzNk fAHVsDFuqlKlTKIm6W7D2LaxIuWi+RNpoScRgxrEPEaD2ScyVbzd8ll2+/TSBrdKo9Q9 IBMQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lo5si2589820ejb.457.2020.07.30.05.47.55; Thu, 30 Jul 2020 05:48:19 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727976AbgG3Mru (ORCPT + 99 others); Thu, 30 Jul 2020 08:47:50 -0400 Received: from inva020.nxp.com ([92.121.34.13]:54318 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726794AbgG3Mrt (ORCPT ); Thu, 30 Jul 2020 08:47:49 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id D94FE1A1327; Thu, 30 Jul 2020 14:47:47 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id C19031A0ED6; Thu, 30 Jul 2020 14:47:43 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 0F8BF402BF; Thu, 30 Jul 2020 14:47:37 +0200 (CEST) From: Anson Huang To: miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, robh+dt@kernel.org, han.xu@nxp.com, u.kleine-koenig@pengutronix.de, linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Linux-imx@nxp.com Subject: [PATCH 2/2] dt-bindings: mtd: Convert imx nand to json-schema Date: Thu, 30 Jul 2020 20:43:24 +0800 Message-Id: <1596113004-15548-2-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1596113004-15548-1-git-send-email-Anson.Huang@nxp.com> References: <1596113004-15548-1-git-send-email-Anson.Huang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert the i.MX nand controller binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- Documentation/devicetree/bindings/mtd/mxc-nand.txt | 19 ---------- .../devicetree/bindings/mtd/mxc-nand.yaml | 42 ++++++++++++++++++++++ 2 files changed, 42 insertions(+), 19 deletions(-) delete mode 100644 Documentation/devicetree/bindings/mtd/mxc-nand.txt create mode 100644 Documentation/devicetree/bindings/mtd/mxc-nand.yaml diff --git a/Documentation/devicetree/bindings/mtd/mxc-nand.txt b/Documentation/devicetree/bindings/mtd/mxc-nand.txt deleted file mode 100644 index 2857c62..0000000 --- a/Documentation/devicetree/bindings/mtd/mxc-nand.txt +++ /dev/null @@ -1,19 +0,0 @@ -* Freescale's mxc_nand - -Required properties: -- compatible: "fsl,imxXX-nand" -- reg: address range of the nfc block -- interrupts: irq to be used -- nand-bus-width: see nand-controller.yaml -- nand-ecc-mode: see nand-controller.yaml -- nand-on-flash-bbt: see nand-controller.yaml - -Example: - - nand@d8000000 { - compatible = "fsl,imx27-nand"; - reg = <0xd8000000 0x1000>; - interrupts = <29>; - nand-bus-width = <8>; - nand-ecc-mode = "hw"; - }; diff --git a/Documentation/devicetree/bindings/mtd/mxc-nand.yaml b/Documentation/devicetree/bindings/mtd/mxc-nand.yaml new file mode 100644 index 0000000..ee4d1d0 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/mxc-nand.yaml @@ -0,0 +1,42 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mtd/mxc-nand.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale's mxc_nand binding + +maintainers: + - Uwe Kleine-König + +allOf: + - $ref: "nand-controller.yaml" + +properties: + compatible: + const: fsl,imx27-nand + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + +unevaluatedProperties: false + +examples: + - | + nand-controller@d8000000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "fsl,imx27-nand"; + reg = <0xd8000000 0x1000>; + interrupts = <29>; + nand-bus-width = <8>; + nand-ecc-mode = "hw"; + }; -- 2.7.4