Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp531322ybm; Thu, 28 May 2020 08:45:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+jUyaV5SOH7ZoaKNj/6622k9uMq9DnHMqAPpQ1ep5JLwg29HjsBPuvOHywv8s1M7d1qfG X-Received: by 2002:a17:906:5243:: with SMTP id y3mr3810134ejm.193.1590680745142; Thu, 28 May 2020 08:45:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590680745; cv=none; d=google.com; s=arc-20160816; b=juIdLM9VDWgc5vUFRN0CB6DU/6+WfGTAJPh5El7GPP5EycG24q2AS7/QglQk94GVM6 bYvL1rbH2fcKqXXpd+8aOUeRnwK69eEFriHaclr39g+Lfvq6W8Jkv2Bh5/Cf15I5GnIU Qa+fb55Q7vgxINgUCChdQ1eMHp9LWXW0p10QZibAPGu0rfgSrvm15BLEWMNoQG53ycL2 F+zf1A3C0JyngBHrvx8TvLPc5KFm19AJs998K9RbZwbk93Uz3Hysnv3JlHSDhqv/bBfN ergIh6qG+5rttxpHb4Ti4yg+/qybt+lbrpmowZAfrDZp+EBCgcx8nNwF+7ly5fdTR2bz j7SA== 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=yS0RR/H865feXyIdvevhiZsbKA3hNhg5mE1VetH8WvPx5iTRiEhGCzcIRE7IdpCTap hIF6W/URyUhDTVIcd34nARGzU1z0f27qN9QPtoCIUIgVXBgfXdcviCa7/cjXhk7tB54K qP9c5SwHYCeTbZ96/Db26nw7KLstZBavyr/+SD6fgJyWcZyB9P9IKaDpNjxOStKQaF6A z4QTLsSZy5iCHTUT9FpRWAkpXf1Qj1RLI8Cwxpday4ccVBOhaVrz26s3OOvfFN95HCQM sClUDG1d9q53NpAC+z7Hei8HSkzdUvIucJ8rjuGEsy6Pbf6EKNCe3Lyxp1cfLNc7DhLC BNLg== 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 q5si533839edn.1.2020.05.28.08.45.21; Thu, 28 May 2020 08:45:45 -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 S2404557AbgE1PlG (ORCPT + 99 others); Thu, 28 May 2020 11:41:06 -0400 Received: from mga01.intel.com ([192.55.52.88]:63981 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404548AbgE1PlB (ORCPT ); Thu, 28 May 2020 11:41:01 -0400 IronPort-SDR: 67BICs3DDzDuOl1nURv3d8U8+p9K7nqeokhhJS8x4G9UVPgpjIyYX3nuWLUwKwBIRWYIa/6kOn WMirdBD8ctfw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 May 2020 08:41:00 -0700 IronPort-SDR: QMad0E4ObD5A8za3WFpwWgXLxAUWZwR79GYj7VyE+O3tV8iyhhpsSiRL5wD5VNnmF7WkOw5i3R RmFg5NThmbDw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,445,1583222400"; d="scan'208";a="302849840" Received: from sgsxdev004.isng.intel.com (HELO localhost) ([10.226.88.13]) by orsmga008.jf.intel.com with ESMTP; 28 May 2020 08:40:56 -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 v10 1/2] dt-bindings: mtd: Add Nand Flash Controller support for Intel LGM SoC Date: Thu, 28 May 2020 23:39:28 +0800 Message-Id: <20200528153929.46859-2-vadivel.muruganx.ramuthevar@linux.intel.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20200528153929.46859-1-vadivel.muruganx.ramuthevar@linux.intel.com> References: <20200528153929.46859-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