Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp149552pxk; Thu, 24 Sep 2020 01:52:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOnxjQq5vcc76vgU1Ib3tHu9GvN947My++ozxva+WD38NEoVgNsTLHofGgeK/P/KMjM52y X-Received: by 2002:aa7:c511:: with SMTP id o17mr3595467edq.300.1600937551863; Thu, 24 Sep 2020 01:52:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600937551; cv=none; d=google.com; s=arc-20160816; b=lJwFWICc2Al3tnNWfrlUf++xYJAHuvRjouxgsxQoEp+xiIyqd6OnAITtAVGUN/hkXA nLQYqgS4nk+9649WxqBf39K77iv6ntVZ6UN34daFR2l9B/yllUnioPeeTr2TFdDlkP2V E0dnLrzgY7/ApRuLPHCetb2B18TA9734IKJk7lA+KKzxPaUtQUTQdGQuSQhb5gLHBpOL b5yyEedrWmA23Lbq5xXVrlkJl0ACMOqiXcw1tIe4NK9RCguwww4kinWcsecTKyF7+rfR xAwkQho4sFoOlplHeACIEg+M7laUeziQ4zl2HFmJaPpCDRnMtmfZWzCy09tlGnidDPhf Y1lg== 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=k2rwwG/0+WkoWu/7FM+d7Urk9vz0ZfnDXl9G2STtgJLnYStLY5lVKikNjGeH6gojhI kN4/u+PPs0G49tgI098W3vdEiWgxHxPvgw4dSn7MTK+RrvKsisqo04HZsuefQdL931Zd P6/3jEssb+0wM1DHiGUH7R6F7hChszpFHr4Ml9t2+aWrFfRlfKhkFMa1GfHfjDit9XuL NRfIXP+6DuF94th5PRSI0E+ilvbZ1Nh4dtr0grWBV8btbDWHt7zA1tPdHuZCt4rQ5lB4 NdnRBJjNKp2uaFLCYj8Lr+WDIi/1nwzK8RfbSE0qaLdTNJJpRY3OYLAhg96EA1vsRfsP JOjw== 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 16si1641157edv.551.2020.09.24.01.52.08; Thu, 24 Sep 2020 01:52:31 -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 S1727293AbgIXIs4 (ORCPT + 99 others); Thu, 24 Sep 2020 04:48:56 -0400 Received: from mga09.intel.com ([134.134.136.24]:55811 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726710AbgIXIsz (ORCPT ); Thu, 24 Sep 2020 04:48:55 -0400 IronPort-SDR: 6o+mOtAf8+B4S+dj9O/KzqPWDrpRsUT3uppIeTcfKSMByGo+H4VJC3e/JQMrNLMggyCsr8KQ9x f4gRvf8Hjzfg== X-IronPort-AV: E=McAfee;i="6000,8403,9753"; a="162049882" X-IronPort-AV: E=Sophos;i="5.77,296,1596524400"; d="scan'208";a="162049882" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2020 01:48:54 -0700 IronPort-SDR: MCNCzghyUlxZznh5lzzkEFFO82hGpdc27QO1MhFlLcS/c0wTg3vGf3p28dBfSdK7uizmSTiMRN VX/hK0JNiTCA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,296,1596524400"; d="scan'208";a="291963611" Received: from sgsxdev004.isng.intel.com (HELO localhost) ([10.226.88.13]) by fmsmga008.fm.intel.com with ESMTP; 24 Sep 2020 01:48:50 -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 v14 1/2] dt-bindings: mtd: Add Nand Flash Controller support for Intel LGM SoC Date: Thu, 24 Sep 2020 16:48:41 +0800 Message-Id: <20200924084842.41741-2-vadivel.muruganx.ramuthevar@linux.intel.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20200924084842.41741-1-vadivel.muruganx.ramuthevar@linux.intel.com> References: <20200924084842.41741-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