Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2308512ybt; Tue, 16 Jun 2020 02:37:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUB7WQMS/hRhJ01hmvhyuuwEgXZ2jFR3VP8Sm/rrgqG4fGyBfFmrmYjANlMBh7oo3o6MD7 X-Received: by 2002:a17:906:b88d:: with SMTP id hb13mr1970618ejb.96.1592300270028; Tue, 16 Jun 2020 02:37:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592300270; cv=none; d=google.com; s=arc-20160816; b=o7UwLg5AO/kEiOyF7nNHvERx4dBZF6HqWUCuXoLNEJtmsBblOHN4vrRqKATIk/9DDw IaCvS1Xu8+lpbZwb4mrcOF1H1yrG9mcZEmuA/hLf3sILYA3rpddDZl8yiQvji8ap3syj onf0VQhC0ALsruXAczu2u5csX78eZiRgPIobOufICmTHsWJ2NyhGq0L7yJC0OImEX+Vy cKh04CGzTJ19A9Mmi9nQ3Nbf6FMTlsxfc86H2PF/1gk6o3vhYtUv9OlxSnMH+MtHtb2a 3pMfFzWMdvJBFmCDm4uhdI8XCXfT5M/iKD6ZDbnQmh2cE9Rqz+N/lNJI9PU74gRNsoG3 OJJw== 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=TLeXwj+rzl849yN9nM4aBO8eQtPr3xdM2GEDHV78acY=; b=TrKy6zLTXy8w2s5+SoKvMW0JNUR5fuM9cqgODGYPE9hup2QB6WWfi62bqCp80zmlRt 8k7h2oCEkvsxMt7wYNcFCtpBlOrWQgIjsxRHo5KU0p3MPaFGk4eg2MbQ6SxUjdjVatJu C1NyPQBwYR2SQ4/TGQbsmAn4Y+tJoj6ihyU7l2XTJ0dlKSxxfzo+e2OTKbUmkjuBRUfB 6b7aqsKLp/af5/QUUUCvAXsDgtfLbqRtQhqO0gYg92RftRDIE+sEN+LYmXlNu9RTWvyV cbkie7wBr5/ljzKRF80OODXzgy1zbrkkNT8PfBRLlmmWJ4jybTne3ShDt+jyFaqOpwmG v6nw== 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 gr15si11039636ejb.214.2020.06.16.02.37.28; Tue, 16 Jun 2020 02:37: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 S1728135AbgFPJfZ (ORCPT + 99 others); Tue, 16 Jun 2020 05:35:25 -0400 Received: from mga03.intel.com ([134.134.136.65]:4718 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727876AbgFPJfX (ORCPT ); Tue, 16 Jun 2020 05:35:23 -0400 IronPort-SDR: V5drONjJ+3ecHKJyOoPEv2BvxtXwUgShi/oorEr1vvjbH5p7c2dbJTh5I1CLehst8Fat2u98tn xG+dx03ukt/Q== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jun 2020 02:35:22 -0700 IronPort-SDR: ZTkMWbSrPnkMDvCd2z8vIKfwtvg501JIRcK50lbuemWv5aK4vBvxNj+XLTRosxrbpnsJG3BU4t KwmTjAdV4uLA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,518,1583222400"; d="scan'208";a="309050778" Received: from sgsxdev004.isng.intel.com (HELO localhost) ([10.226.88.13]) by fmsmga002.fm.intel.com with ESMTP; 16 Jun 2020 02:35:18 -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: [RESEND, v11 1/2] dt-bindings: mtd: Add Nand Flash Controller support for Intel LGM SoC Date: Tue, 16 Jun 2020 17:33:31 +0800 Message-Id: <20200616093332.53927-2-vadivel.muruganx.ramuthevar@linux.intel.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20200616093332.53927-1-vadivel.muruganx.ramuthevar@linux.intel.com> References: <20200616093332.53927-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 Reviewed-by: Rob Herring --- .../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