Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp406280ybk; Fri, 15 May 2020 04:00:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzP4xxBpGQ2FnVCyXFLrIJyWK3E9BSZvlx8KGYNkU6SOKPUohgyXV6AfKTLktjowt95TBwP X-Received: by 2002:a05:6402:1515:: with SMTP id f21mr2295666edw.370.1589540446784; Fri, 15 May 2020 04:00:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589540446; cv=none; d=google.com; s=arc-20160816; b=zNg/80rUlwXqrsucv8SuenCOVXRf7/ZqKvQyQwugJIxSOxRJN3Wtb8IZN0oktKaqyi +okqqYxUcAYNao6rOoHipibORqJSEWgGuJ3Ksr0sF0gqDNg7biB4RYFlH52VcISRr5uv Nx1CK9venlRzNXgEUjAnQHoNh3GaXmuztqrgtGRe84XcrJEbYfIhQDJr8KOpzL9bw31D 9ryiI8WxaYwrhI4UConVDiR1nGw9FBCoMucDCqv1oXQ380cL/kdqiqsYzWrrqi9xhNei itX+KXlHdLytIsmLSlWEQ/YFK9ClxXf7hLxhOfPx889a72I/3arjQCvTZYDXuTc8FK3H GtiQ== 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=F+cvT9z9DggG8PmC2vfjz2yqkjGn5CoKujPH2vopyMY=; b=qjhSK6oZElD0wI086g1jcRDTPSbhzMNQXepqLAhPHepz81vjxRmJwBkt6Eugw9O9Ii Es4NCG00lo6TPEPmyk9HVmlJuO1UgrmcmouKUbSAYZzON39Snprj7f5Es8uK+hY603eN 1Wn235ehawRZWQl9CZhF1i34aa93N/ufVm5AYKj9qLuPF8xWPPw1ZEcImr4pLUprSYtE Wq6eNptsW79Jm/fNaY7/0CvVdgXFFJ7bFKA8VR3NH/1jAPMAeYaKRxQZqgMPT5fUXJGw kp86iYLNvHSFLopSHOb9ZnULPnjizNpAEf3VK46T4LfMFAo+IzomPEK7cGXpMG9CgRLa 23rg== 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 v25si1084965edb.151.2020.05.15.04.00.22; Fri, 15 May 2020 04:00:46 -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 S1726241AbgEOK46 (ORCPT + 99 others); Fri, 15 May 2020 06:56:58 -0400 Received: from mga14.intel.com ([192.55.52.115]:8620 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725968AbgEOK45 (ORCPT ); Fri, 15 May 2020 06:56:57 -0400 IronPort-SDR: OhF4TIo8ke016/W8xjVhJz3+gsaGlglhvbA5ov+M0K0qwfa0P2HBKYB50zRJ8kcJgbhwcVS4Nv ErtX+CqIiFzA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 May 2020 03:56:56 -0700 IronPort-SDR: cz2392ucxt8FhURQ67XWzLRCX7ACYrMmmkq2cE80NgKXxJxRld4EQVnKJJUPjYAHV7cLpaW6Q0 9Ik/hSz4i9/A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,395,1583222400"; d="scan'208";a="410431330" Received: from sgsxdev004.isng.intel.com (HELO localhost) ([10.226.88.13]) by orsmga004.jf.intel.com with ESMTP; 15 May 2020 03:56:51 -0700 From: "Ramuthevar,Vadivel MuruganX" To: linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, devicetree@vger.kernel.org Cc: miquel.raynal@bootlin.com, 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 v7 1/2] dt-bindings: mtd: Add Nand Flash Controller support for Intel LGM SoC Date: Fri, 15 May 2020 18:55:36 +0800 Message-Id: <20200515105537.4876-2-vadivel.muruganx.ramuthevar@linux.intel.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20200515105537.4876-1-vadivel.muruganx.ramuthevar@linux.intel.com> References: <20200515105537.4876-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 | 91 ++++++++++++++++++++++ 1 file changed, 91 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..cd4e983a449e --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/intel,lgm-nand.yaml @@ -0,0 +1,91 @@ +# SPDX-License-Identifier: GPL-2.0 +%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: + items: + - description: ebunand registers + - description: hsnand registers + - description: nand_cs0 external flash access + - description: nand_cs1 external flash access + - description: addr_sel0 memory region enable and access + - description: addr_sel1 memory region enable and access + + 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 + - clocks + - clock-names + - 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>; + #clock-cells = <1>; + + nand@0 { + reg = <0>; + nand-on-flash-bbt; + #address-cells = <1>; + #size-cells = <1>; + }; + }; + +... -- 2.11.0