Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp21563pxk; Wed, 16 Sep 2020 17:44:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWnOU2G0uipevqxBhjJoQrjYoguzohsRFNP/WxBp1kHf59GSqL0kvWtnF83MwAubWAN8ei X-Received: by 2002:a17:906:941a:: with SMTP id q26mr27580778ejx.496.1600303497593; Wed, 16 Sep 2020 17:44:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600303497; cv=none; d=google.com; s=arc-20160816; b=av3vERS2gbMzUjsmmS2gk9m1zD//I8tVURoY+Fbc99bXdsPn7RMpm8/yV5oRbfuCnu ZHFKREd19GvHd2DYPvLLoFE9XkP6kIoWFdStijnq399jP1z++lS3nbV49br62JaREpIn I2t3D3GnSntTZFfHzxoPjkP0NHmVpVCb6p1kbChY82kSiRFI6bkRhKZwSpBA/eAApAPe Qv+ovJPf+w3HCJsyMe3UJBilmhOO2dmg3/pVIJ5+AMJ+T91KkaOOn2xPxhI0qEcnvAYq BQMhNKt3NO2eOqcLGacsBoqNJzVDnEoIvvEON2RggGCqNO/7W83oPbqB5vDFR/IJgr7b ZWGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:ironport-sdr:ironport-sdr; bh=TLeXwj+rzl849yN9nM4aBO8eQtPr3xdM2GEDHV78acY=; b=NrIMj3EH4rDquglOvCBg1PCa9ZpNRsUqShoorgk1ZT5T2xIxkaQd0kCLKGRUb01XGE EfhmSkApRHnaPq0/sE4lvu3ihLM+eQTfCvemrq+J8Gl4PUQKR5yFyF4naUUP1r65XBTX da2l9T30So77GqsGCpQ0U7HtwoTmhdAXt6H9KmBH+Wlxe9D+yA0EF9kon9bR0Z3lp4XH KC3+7bCaLDj+NVqnGdEvuJMMg6iEJ1tiELa73pxfi9eNPoq9lcJ2FJemR1kesjL9DUwc pyfaUc8Ai9uQKyfNlzMiY2x8pegLgCIWedGmU/fAS4rR29g6oXz6rnW6XWhuUq+U6Asb Kb3A== 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 f17si12762697edq.587.2020.09.16.17.44.25; Wed, 16 Sep 2020 17:44:57 -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 S1726007AbgIQAkj (ORCPT + 99 others); Wed, 16 Sep 2020 20:40:39 -0400 Received: from mga07.intel.com ([134.134.136.100]:17741 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725858AbgIQAkb (ORCPT ); Wed, 16 Sep 2020 20:40:31 -0400 X-Greylist: delayed 427 seconds by postgrey-1.27 at vger.kernel.org; Wed, 16 Sep 2020 20:40:30 EDT IronPort-SDR: nC5ark3m55yVhP9UL1nzoH4UFpvAd3CUotlynV1KnDqiIehPsBVC5E/P/lFUD3htqPTEtvofn1 I7mH4kfdLw4Q== X-IronPort-AV: E=McAfee;i="6000,8403,9746"; a="223776507" X-IronPort-AV: E=Sophos;i="5.76,434,1592895600"; d="scan'208";a="223776507" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Sep 2020 17:33:21 -0700 IronPort-SDR: Bwn0ODfEHbq9zqA5JteQfCHSNWJMmIFeHhb1BNCi6R2Xc5+gHVbMXx1mnM4rh4B0n2ZuzoGFDi zWAC8rL36QyA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,434,1592895600"; d="scan'208";a="380354389" Received: from sgsxdev004.isng.intel.com (HELO localhost) ([10.226.88.13]) by orsmga001.jf.intel.com with ESMTP; 16 Sep 2020 17:33:17 -0700 From: "Ramuthevar,Vadivel MuruganX" To: miquel.raynal@bootlin.com, linux-kernel@vger.kernel.org Cc: linux-mtd@lists.infradead.org, richard@nod.at, vigneshr@ti.com, boris.brezillon@collabora.com, christophe.kerello@st.com, piotrs@cadence.com, robert.jarzmik@free.fr, brendanhiggins@google.com, devicetree@vger.kernel.org, tglx@linutronix.de, hauke.mehrtens@intel.com, robh+dt@kernel.org, linux-mips@vger.kernel.org, arnd@arndb.de, andriy.shevchenko@intel.com, cheol.yong.kim@intel.com, qi-ming.wu@intel.com, Ramuthevar Vadivel Murugan Subject: [PATCH v13 1/2] dt-bindings: mtd: Add Nand Flash Controller support for Intel LGM SoC Date: Thu, 17 Sep 2020 08:33:07 +0800 Message-Id: <20200917003308.57038-2-vadivel.muruganx.ramuthevar@linux.intel.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20200917003308.57038-1-vadivel.muruganx.ramuthevar@linux.intel.com> References: <20200917003308.57038-1-vadivel.muruganx.ramuthevar@linux.intel.com> 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