Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1203914ybl; Wed, 8 Jan 2020 12:54:45 -0800 (PST) X-Google-Smtp-Source: APXvYqwaE5q8uYscDdm9lmyC7warPkS4fa+4oCgsLSG9MHHfMnHkSJIkyFfxElQILD7seO8vxb1d X-Received: by 2002:a05:6830:1f95:: with SMTP id v21mr5825230otr.325.1578516885811; Wed, 08 Jan 2020 12:54:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578516885; cv=none; d=google.com; s=arc-20160816; b=dHPNB8T21NE4OsxmcTMFJD2AuicFQKtabStK5xaHcdXs8y601yd00SJhVhhfAR7Poj gKkZOxMsPueVk120PKElDmyEBrw3b17wXOZf+w3OY65TUswfnC+RxfGC+H2VxWzLIze+ 9rHlvvKxaCnM7tCxiuxF8EA8EyC3NTY9eMyE41wiSwQQq+6kztwWUoVSIXgkEmOHpKtn ptHhNlnmcECli9Wk3xIYZ+Xu5XLpQ6NofEWZCCwFWOlqPqT+hg7hEI5XYhoL36Ki5vQ9 AbshlITh2K6GhiDomp8EHk6I/FjpkYjKsIi8YhK1uD4mXUGzuiSAhp0VuzMJQ8DTXzrH XDtg== 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:dkim-signature; bh=HAVtrrvP7lMDn+z4yW5t1+0ZMAlAWmibvRDN72JzVdg=; b=mI0iJAlOvQCOT8nc9jsOiXnUqdWZIvFken4eehxKAfA1q9oNXTpE8ee70k9pxiZ9qu DbwnNiXcuuCYkrSUlTbJR+f1UJjSwHNtxR15auYEjJbmxrpJjLRdlAVa/4Hw+ZvZiYOw 83Jf45qwbwPLLYD+uTIWv0fdkekIyRjlL+ztDH/vcvSSiWdUk/T10Pty6KwZ7temou0A soQwhWrmJ6edaoz5LGOF64XrB1fkHdCR0XGTpeQOPTH6vxZEjbouzZDrIJcPPo+aCiGM Lrm8PU+Kc3aODjhRsrg5JI4NZgN2bdQ2WHPnPtyeY//IS5ZqWAGsSKOk3VughkOo9UJj faog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fvW80tsx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n7si2307232otk.277.2020.01.08.12.54.34; Wed, 08 Jan 2020 12:54:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fvW80tsx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727282AbgAHUxu (ORCPT + 99 others); Wed, 8 Jan 2020 15:53:50 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:37907 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727236AbgAHUxt (ORCPT ); Wed, 8 Jan 2020 15:53:49 -0500 Received: by mail-wr1-f67.google.com with SMTP id y17so4942996wrh.5; Wed, 08 Jan 2020 12:53:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=HAVtrrvP7lMDn+z4yW5t1+0ZMAlAWmibvRDN72JzVdg=; b=fvW80tsxmitYEBvGtuh21m8wnBrE83VykidXd3KTI0rxQr60hgtOGRLWtAgjGRdeSO ZsRWTtQ02MuMnIsoiUmBaJpGUxV1cStx+zM1VnKo62bXNajzo4DGa5tyqaWhJlvyunGn PPcjQo11qmTC+Jjg8VnDzQpYw240eF2tRX7QhBqxq2X77Bvevr0h3cnpGnSLucGwGqu4 NeZ8g8I5QTPHgNTGPznEcq4Vs++QwEPJ6yCN3ke8la8QHoifR+iUp+vPBM0TSQofpGIO +tf2wJ9uuEfsKuTLtLkXDn/e3Tl03vRVdSzJufN+Nhd+ctQwX2QSzffJWD8WE5rgcqhr U50A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=HAVtrrvP7lMDn+z4yW5t1+0ZMAlAWmibvRDN72JzVdg=; b=Q5jgevGZ0+88GfYPqNMYGiFrrFAPiwiB7ZTCn/Znl3QLMMnLZBZwIox3eUgE+vk4lW NW93wOBY4meXlpqZ7A+R5ZXMxnmxkMBRIk7UXMfDlvuMBisfzTOz0F6692VuUyzvBuqd RtcS0UyjM6UEcIZe0bZtglC/ze29xReQBtmKj+fFarCLyFY+FU6ZLc+nL/kKNv3GhYkJ Cds+ONET9g7KHZ+/kOcFdiSX8hgLPP5CPgS+351VV7EGRKQLEkZcdiByNXfFd1BZ6qIS 3h7S5vqNP1ikVZwTvZNYFJrPA65ImZjiey5JZKBuzwEO8ci0lBmwbbBKzS3N8+xjbyoO +Tow== X-Gm-Message-State: APjAAAXI0cI4eH5W7iU8kHGGGVxzqG+k86lQKvbYU4g7lfGCeW/9UOJm EBSr84p5jFMnbD6yOE9Srcc= X-Received: by 2002:a5d:6b47:: with SMTP id x7mr1025519wrw.277.1578516827246; Wed, 08 Jan 2020 12:53:47 -0800 (PST) Received: from debian.home (ip51ccf9cd.speed.planet.nl. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id c5sm311835wmd.42.2020.01.08.12.53.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Jan 2020 12:53:46 -0800 (PST) From: Johan Jonker To: miquel.raynal@bootlin.com Cc: richard@nod.at, vigneshr@ti.com, robh+dt@kernel.org, mark.rutland@arm.com, heiko@sntech.de, linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH v1 01/10] dt-bindings: mtd: add rockchip nand controller bindings Date: Wed, 8 Jan 2020 21:53:29 +0100 Message-Id: <20200108205338.11369-2-jbx6244@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20200108205338.11369-1-jbx6244@gmail.com> References: <20200108205338.11369-1-jbx6244@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the Rockchip NAND controller bindings. Signed-off-by: Johan Jonker --- .../devicetree/bindings/mtd/rockchip,nandc.yaml | 78 ++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/rockchip,nandc.yaml diff --git a/Documentation/devicetree/bindings/mtd/rockchip,nandc.yaml b/Documentation/devicetree/bindings/mtd/rockchip,nandc.yaml new file mode 100644 index 000000000..573d1a580 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/rockchip,nandc.yaml @@ -0,0 +1,78 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mtd/rockchip,nandc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip NAND Controller Device Tree Bindings + +allOf: + - $ref: "nand-controller.yaml" + +maintainers: + - Heiko Stuebner + +properties: + compatible: + enum: + - rockchip,nandc-v6 + - rockchip,nandc-v9 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + minItems: 1 + maxItems: 2 + + clock-names: + oneOf: + - items: + - const: hclk_nandc + - items: + - const: clk_nandc + - const: hclk_nandc + +patternProperties: + "^nand@[a-f0-9]+$": + type: object + properties: + reg: + minimum: 0 + maximum: 3 + + nand-is-boot-medium: true + + additionalProperties: false + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + +examples: + - | + #include + #include + #include + nandc: nand-controller@10500000 { + compatible = "rockchip,nandc-v6"; + reg = <0x10500000 0x4000>; + interrupts = ; + clocks = <&cru HCLK_NANDC0>; + clock-names = "hclk_nandc"; + #address-cells = <1>; + #size-cells = <0>; + + nand@0 { + reg = <0>; + nand-is-boot-medium; + }; + }; + +... -- 2.11.0