Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2408170rdb; Tue, 3 Oct 2023 23:15:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEkZh4jAzUVE3Levdzotc50/u6VC+kHPLfokuKfS1CRXV7vTWncidcTU3h9tSgtRJ5y0RuC X-Received: by 2002:a17:902:ecc8:b0:1c4:29dd:2519 with SMTP id a8-20020a170902ecc800b001c429dd2519mr1524594plh.67.1696400143683; Tue, 03 Oct 2023 23:15:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696400143; cv=none; d=google.com; s=arc-20160816; b=MTk39/tqZtFuwcnjbxSi4UIL+ta9181GqhSzW5ytmwhn2SoZ5juXzrmE+eGi+/BAi2 973wj47OCBLSW+1ROwL1cQpGEj5vodr1GYjgFTtzpwMsj1y4ICbdAHSJvnB83BK8iNfJ pkg8VgJDGKL6qgyNSueO14jeKQH1nMayOdYxOJ8kLt2s0Tnb5YrDCvlwbmX/fMF3kgz6 iNal5HtY46pyKtch3TBZ9JBuCyVH6Mjiwsr/ojzPCfWMpXGjC7mF2Mtni+PUQfocB54i ruvNDBRVpClAALnqgZILL6vGQSwOAmuzUvqE/72i/LoVnwhW6XArugunL3h6yBWbw4wX Lm9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=AOBGgligeEgHBPnPg1Ft6igX8LGozsdPXe4wFWD+l7Y=; fh=YkxkmUU6hI4N2Cs8GG8pz0e2BY++oQtdgfgAbSEVoDk=; b=TD8iBdOcdCfCCoqCVmIPRn2myNNF7ui5ZlZsw8dUQR++ap/sf8DfGLP+A/Z0r6Jjkh 5U5aWt8Ov8Oq4ND0dL9nDYDYCL6WsmEsGu+jGFhVD0QkBWCn5jrP9LnRn76rLzwtdHXh tlHz4CATY3c0CR7TXOWMwL1OfogNznz7sm8qciGFoytIcCJgQLQwTthdtMiflpGJbPdj RLz/Q93jELuOcfmwBMZ1y0979/USoN0JELuRysNrJnN7EQjKM9rTUGH3l9U0Gh2Z7PMV SmodPBfFXG5JlKTDxpke37ondgva8Ht3y5XJuh4lpQtVSCuufndFX0Ej6O9k+/Bpa4Yr XlNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EHsA33iG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id z5-20020a1709027e8500b001bd9e2b4b46si2812968pla.601.2023.10.03.23.15.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 23:15:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EHsA33iG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 5FB048097A47; Tue, 3 Oct 2023 23:15:18 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232689AbjJDGPA (ORCPT + 99 others); Wed, 4 Oct 2023 02:15:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232537AbjJDGO7 (ORCPT ); Wed, 4 Oct 2023 02:14:59 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56A0CA6; Tue, 3 Oct 2023 23:14:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696400095; x=1727936095; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=g3qhwjm1v949ji/360/hMlwzoSwFbjiqduhc4qJAhGM=; b=EHsA33iGB5T4xwxJdmiVNcJkoA2csciGcHtnsJhwmhfbhOJIXbqFLp+w 1Fjf2ASXNR5E2PolwxqtSXjpIXea2h3oBpURjMzuz6ig0YffuCbHeMKA8 R0veEZQNPyBNcIonf7QOT4lGJ8mNltWhXfeveITaftGBtQsrXWs3v/L5l nYsw/YaaUSNtgMisUiym6XhmTSO+ttd8s+TMTbAUYDZrr59grQAPblnjg 5KPsf9wQ6zRMp8To6OiP1qnJeENqHTOlCUJR8DwXGewg5kJJJcXMSs9Z0 8uS+qmWVKBFMkGL+6TN4VorngWvZ97zdyBtq8dIRMJC9v5247/3PSR3NO w==; X-IronPort-AV: E=McAfee;i="6600,9927,10852"; a="368128160" X-IronPort-AV: E=Sophos;i="6.03,199,1694761200"; d="scan'208";a="368128160" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Oct 2023 23:14:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10852"; a="744807083" X-IronPort-AV: E=Sophos;i="6.03,199,1694761200"; d="scan'208";a="744807083" Received: from unknown (HELO localhost.localdomain) ([10.226.216.116]) by orsmga007.jf.intel.com with ESMTP; 03 Oct 2023 23:14:51 -0700 From: niravkumar.l.rabara@intel.com To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Niravkumar L Rabara Cc: linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] dt-bindings: mtd: cadence: convert cadence-nand-controller.txt to yaml Date: Wed, 4 Oct 2023 14:12:14 +0800 Message-Id: <20231004061214.17176-1-niravkumar.l.rabara@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 03 Oct 2023 23:15:18 -0700 (PDT) From: Niravkumar L Rabara Convert cadence-nand-controller.txt to yaml format. Signed-off-by: Niravkumar L Rabara --- .../devicetree/bindings/mtd/cadence,nand.yaml | 73 +++++++++++++++++++ .../bindings/mtd/cadence-nand-controller.txt | 53 -------------- 2 files changed, 73 insertions(+), 53 deletions(-) create mode 100644 Documentation/devicetree/bindings/mtd/cadence,nand.yaml delete mode 100644 Documentation/devicetree/bindings/mtd/cadence-nand-controller.txt diff --git a/Documentation/devicetree/bindings/mtd/cadence,nand.yaml b/Documentation/devicetree/bindings/mtd/cadence,nand.yaml new file mode 100644 index 000000000000..781812ac702f --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/cadence,nand.yaml @@ -0,0 +1,73 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mtd/cadence,nand.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cadence NAND controller + +maintainers: + - Niravkumar L Rabara + +allOf: + - $ref: nand-controller.yaml + +properties: + compatible: + items: + - const: cdns,hp-nfc + + reg: + items: + - description: Address and length of the controller register set + - description: Address and length of the Slave DMA data port + + reg-names: + items: + - const: reg + - const: sdma + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + dmas: + maxItems: 1 + + cdns,board-delay-ps: + description: | + Estimated Board delay. The value includes the total round trip + delay for the signals and is used for deciding on values associated + with data read capture. The example formula for SDR mode is the + following. + board delay = RE#PAD delay + PCB trace to device + PCB trace from device + + DQ PAD delay + +required: + - compatible + - reg + - reg-names + - interrupts + - clocks + +unevaluatedProperties: false + +examples: + - | + nand-controller@10b80000 { + compatible = "cdns,hp-nfc"; + reg = <0x10b80000 0x10000>, + <0x10840000 0x10000>; + reg-names = "reg", "sdma"; + #address-cells = <1>; + #size-cells = <0>; + interrupts = <0 97 4>; + clocks = <&nf_clk>; + cdns,board-delay-ps = <4830>; + + nand@0 { + reg = <0>; + }; + }; diff --git a/Documentation/devicetree/bindings/mtd/cadence-nand-controller.txt b/Documentation/devicetree/bindings/mtd/cadence-nand-controller.txt deleted file mode 100644 index d2eada5044b2..000000000000 --- a/Documentation/devicetree/bindings/mtd/cadence-nand-controller.txt +++ /dev/null @@ -1,53 +0,0 @@ -* Cadence NAND controller - -Required properties: - - compatible : "cdns,hp-nfc" - - reg : Contains two entries, each of which is a tuple consisting of a - physical address and length. The first entry is the address and - length of the controller register set. The second entry is the - address and length of the Slave DMA data port. - - reg-names: should contain "reg" and "sdma" - - #address-cells: should be 1. The cell encodes the chip select connection. - - #size-cells : should be 0. - - interrupts : The interrupt number. - - clocks: phandle of the controller core clock (nf_clk). - -Optional properties: - - dmas: shall reference DMA channel associated to the NAND controller - - cdns,board-delay-ps : Estimated Board delay. The value includes the total - round trip delay for the signals and is used for deciding on values - associated with data read capture. The example formula for SDR mode is - the following: - board delay = RE#PAD delay + PCB trace to device + PCB trace from device - + DQ PAD delay - -Child nodes represent the available NAND chips. - -Required properties of NAND chips: - - reg: shall contain the native Chip Select ids from 0 to max supported by - the cadence nand flash controller - -See Documentation/devicetree/bindings/mtd/nand-controller.yaml for more details on -generic bindings. - -Example: - -nand_controller: nand-controller@60000000 { - compatible = "cdns,hp-nfc"; - #address-cells = <1>; - #size-cells = <0>; - reg = <0x60000000 0x10000>, <0x80000000 0x10000>; - reg-names = "reg", "sdma"; - clocks = <&nf_clk>; - cdns,board-delay-ps = <4830>; - interrupts = <2 0>; - nand@0 { - reg = <0>; - label = "nand-1"; - }; - nand@1 { - reg = <1>; - label = "nand-2"; - }; - -}; -- 2.25.1