Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp993310ybm; Fri, 29 May 2020 17:57:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfhK8OJx96T4hAnAEkrGTdFFyrEWBCGh/iEtxiceGZdq3zONE7DPGt5/BTYMb1MlBEOQhf X-Received: by 2002:a17:907:20cf:: with SMTP id qq15mr4321690ejb.238.1590800270757; Fri, 29 May 2020 17:57:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590800270; cv=none; d=google.com; s=arc-20160816; b=sLf6TXe+jWdX93kTzNAZ8KSo2cYfolpdFZJwsSr6Qkhjnk7Wo4CF8ipIYffx1MMnlZ XipCfwhkImBzU5nCXep6v/5RmuCWpy9f1Ykk3JByIaA1NgdqBymEM3qS9j0GuGgAmOnz EZeVSp1BZXX80fNADvorDSVPC0w9n4EhDEvmKIXQzoylZOkyaRGFm04d6S5wZWjr7IT+ wnUElD0oZEBFUCJjEFJG+NKVjBa7A1gigFNozeRKvNSQn5pW98MabdHngmB0TOVatzo4 dIoBbvPeUqvctXDSdaBhmBPdfxSkDkqeW6efWfnTRi2uuhepet/+9w5cmfVd7+YYlnS5 hyLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:ironport-sdr:ironport-sdr; bh=JeSScOQzHNnYMmWEN+Wwudzsc3FCuYLcXykkqrg3rmI=; b=AT9bMyb+rxs0fQA2IRqEb4MbyXNrIe7he9fZZmRb3W1R/FDS36O9NZGce3VqhP8dBc IgGeAsJ4Xkn2e3Ws7d5zvVyi6LlbNzbGW7T6nu9QBboJgKVK1SpsV03lrj415hwPPGyc jjdUWD6pDXvx/frVtJOirJMi8lxub+Hv/pbQE8IFyGabmKkMZIeq40EH1V6hWmwd5ep+ 5qVNK+DMKlVtcwfc8u7KpWiK08ecuF7/0jFJnu0BIHFgDxn9Ufc4SDtnVDY849sCnrSH HzdlYKWGD43XKqOOWt22wEjBDrLeIi9U7lbGmVNl7dPBDutCyO+2riEgANiILSxVTMtg uGTA== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ks19si3745171ejb.409.2020.05.29.17.57.27; Fri, 29 May 2020 17:57:50 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728644AbgE3Aw4 (ORCPT + 99 others); Fri, 29 May 2020 20:52:56 -0400 Received: from mga07.intel.com ([134.134.136.100]:5938 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728297AbgE3Aww (ORCPT ); Fri, 29 May 2020 20:52:52 -0400 IronPort-SDR: uLGXHQQVdwkjxOyt7B8QO63925o3r92dD2NHt4vW5UBuRIClP0oNUIwDntwuzJyIwicDwe//jv EVKXsBEOQfiQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 May 2020 17:52:51 -0700 IronPort-SDR: c1jI4P1ltxHQtJZ9Ja6i23VV8evp6mDzKxV29wu9HMTvvhfQoLyPwqfr7ZXq7fvgd0YyQGTQOu mZlpskawcrpg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,450,1583222400"; d="scan'208";a="415163315" Received: from sgsxdev004.isng.intel.com (HELO localhost) ([10.226.88.13]) by orsmga004.jf.intel.com with ESMTP; 29 May 2020 17:52:47 -0700 From: "Ramuthevar,Vadivel MuruganX" To: linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, miquel.raynal@bootlin.com Cc: richard@nod.at, vigneshr@ti.com, arnd@arndb.de, brendanhiggins@google.com, tglx@linutronix.de, boris.brezillon@collabora.com, anders.roxell@linaro.org, masonccyang@mxic.com.tw, robh+dt@kernel.org, linux-mips@vger.kernel.org, hauke.mehrtens@intel.com, andriy.shevchenko@intel.com, qi-ming.wu@intel.com, cheol.yong.kim@intel.com, Ramuthevar Vadivel Murugan Subject: [PATCH v11 1/2] dt-bindings: mtd: Add Nand Flash Controller support for Intel LGM SoC Date: Sat, 30 May 2020 08:51:16 +0800 Message-Id: <20200530005117.10986-2-vadivel.muruganx.ramuthevar@linux.intel.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20200530005117.10986-1-vadivel.muruganx.ramuthevar@linux.intel.com> References: <20200530005117.10986-1-vadivel.muruganx.ramuthevar@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ramuthevar Vadivel Murugan Add YAML file for dt-bindings to support NAND Flash Controller on Intel's Lightning Mountain SoC. Signed-off-by: Ramuthevar Vadivel Murugan --- .../devicetree/bindings/mtd/intel,lgm-nand.yaml | 99 ++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/intel,lgm-nand.yaml diff --git a/Documentation/devicetree/bindings/mtd/intel,lgm-nand.yaml b/Documentation/devicetree/bindings/mtd/intel,lgm-nand.yaml new file mode 100644 index 000000000000..313daec4d783 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/intel,lgm-nand.yaml @@ -0,0 +1,99 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mtd/intel,lgm-nand.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Intel LGM SoC NAND Controller Device Tree Bindings + +allOf: + - $ref: "nand-controller.yaml" + +maintainers: + - Ramuthevar Vadivel Murugan + +properties: + compatible: + const: intel,lgm-nand + + reg: + maxItems: 6 + + reg-names: + items: + - const: ebunand + - const: hsnand + - const: nand_cs0 + - const: nand_cs1 + - const: addr_sel0 + - const: addr_sel1 + + clocks: + maxItems: 1 + + dmas: + maxItems: 2 + + dma-names: + items: + - const: tx + - const: rx + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + +patternProperties: + "^nand@[a-f0-9]+$": + type: object + properties: + reg: + minimum: 0 + maximum: 7 + + nand-ecc-mode: true + + nand-ecc-algo: + const: hw + + additionalProperties: false + +required: + - compatible + - reg + - reg-names + - clocks + - dmas + - dma-names + - "#address-cells" + - "#size-cells" + +additionalProperties: false + +examples: + - | + nand-controller@e0f00000 { + compatible = "intel,lgm-nand"; + reg = <0xe0f00000 0x100>, + <0xe1000000 0x300>, + <0xe1400000 0x8000>, + <0xe1c00000 0x1000>, + <0x17400000 0x4>, + <0x17c00000 0x4>; + reg-names = "ebunand", "hsnand", "nand_cs0", "nand_cs1", + "addr_sel0", "addr_sel1"; + clocks = <&cgu0 125>; + dmas = <&dma0 8>, <&dma0 9>; + dma-names = "tx", "rx"; + #address-cells = <1>; + #size-cells = <0>; + + nand@0 { + reg = <0>; + nand-ecc-mode = "hw"; + }; + }; + +... -- 2.11.0