Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp526237ybm; Thu, 28 May 2020 08:38:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvW/EK6ZqO+YtTixkBN/9KXtqne+FHhJutl02gCb11FBctT3mdQE07tlZkpBhiS22UstCC X-Received: by 2002:a05:6402:c95:: with SMTP id cm21mr3763763edb.81.1590680305841; Thu, 28 May 2020 08:38:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590680305; cv=none; d=google.com; s=arc-20160816; b=Q7QehoRATwXHQRU7PJRG6/fRe3iBJXpVSo8XKeu1noT/My/1GaAas2KHelSSdOiT7G 72hL/A1ArQa6bxTa3dzWyxjlR4qU6z9mVGzLd0PcI0brIHmd9xom3lsfuV6MvJ7BrDqG 5ElaxtCi9EkqxN011AS21PcSoXRm+AUMB/THc3tnojRynWbEeEbh3ukvE5UEDhzznSU4 rl/K1si6itd3LniVdjTH7nb2UML+GCZiEZuGYVsAVb3cQop6YVgtwEhtdoZtt+L0aHKP NMXdZZuVQPAaIcT9mO0rfYoDpIERRcojewtLjYfFqfDWFPXkufh6VIjKG4WcK2x48UCt hSGw== 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=CHD04mzXvpZid3o1PFdEudSCG0uEdOnU70N0iDjo7ew=; b=BbXHOdsL68DyIpKF9kIz4DqQg8UgUP8tHor9RC2OGvmzXc0OvfnbHdGurffoxBMSj+ devkVohs3OzgWSEVQ9ku+vkGrc6knGItQjEvz4D+wPL7JlIbINUMMZxFJ8XxpX2aQJXD iuwX04/INr8f3EhrKi7dWvAfwm72UbkplpF89ZpNB+6WDQWgapYTUeIRCjBP/nFtCFn6 6yI7f8dW0OQ7bc3hf5C9MT2DtWI/3QiJSmIDndYUe7LVx1BJF7Tfy0w8XwEyALH92BUm 4r4G63bu7EIu59pK+2J9n6LN/0hqHWk6UUH5kWyChjaPF04hbqnblJo68oOX/EeCFBfJ Cnhg== 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 b95si3214524edf.203.2020.05.28.08.38.02; Thu, 28 May 2020 08:38:25 -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 S2404492AbgE1Pfy (ORCPT + 99 others); Thu, 28 May 2020 11:35:54 -0400 Received: from mga04.intel.com ([192.55.52.120]:33229 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404485AbgE1Pfx (ORCPT ); Thu, 28 May 2020 11:35:53 -0400 IronPort-SDR: weYVim0vN1xihXBlG52xyb5CrTSRqt0Cgw2FQ5+dIE7kHRfplARiyp5c/0naZN0JbN0bFfR41G AXMxm7/Qq+Mg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 May 2020 08:35:52 -0700 IronPort-SDR: ob8VrV8JoE9S0LGCeWhK9XQR66QpBwkdIGsPRbAo59IiD2UCgYp+XGcEWVpdu3ewODNRVQWpTU BpOi7rG6G0AA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,445,1583222400"; d="scan'208";a="267253181" Received: from sgsxdev004.isng.intel.com (HELO localhost) ([10.226.88.13]) by orsmga003.jf.intel.com with ESMTP; 28 May 2020 08:35:46 -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 v9 1/2] dt-bindings: mtd: Add Nand Flash Controller support for Intel LGM SoC Date: Thu, 28 May 2020 23:34:18 +0800 Message-Id: <20200528153419.46775-2-vadivel.muruganx.ramuthevar@linux.intel.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20200528153419.46775-1-vadivel.muruganx.ramuthevar@linux.intel.com> References: <20200528153419.46775-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 | 93 ++++++++++++++++++++++ 1 file changed, 93 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..afecc9920e04 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/intel,lgm-nand.yaml @@ -0,0 +1,93 @@ +# 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-controller + + 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 + +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 + +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-on-flash-bbt; + #address-cells = <1>; + #size-cells = <1>; + }; + }; + +... -- 2.11.0