Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5928336ybl; Tue, 14 Jan 2020 17:58:10 -0800 (PST) X-Google-Smtp-Source: APXvYqznuMqNgaLtcUsgVQ+OoSIurYWJnNtSRhPEusylX7C1CdbXeQBwWV+yGha4lhS09fk24b3v X-Received: by 2002:a9d:6251:: with SMTP id i17mr1112547otk.14.1579053490510; Tue, 14 Jan 2020 17:58:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579053490; cv=none; d=google.com; s=arc-20160816; b=Zf/j4G3FPgRKxPQH8S4KhPnX0t6ey8hW3xbXQEiVS36sL1O0JpH+3DTqhKV1stXBb/ 1k6JIMurBBe2BdneMGbGgDyfmbCf4tcIJNlAQ1boJwtxqqJUwW9WS3omREp10ugn07O8 V8aRu+Viqi3htUZHn7GMLiwuqStKJweB5Ch0maCb9YUyAi8/QNut5BbFYFxT/jK8UpI5 lWwbmZnudgueBO0hOBeyUNGo4i7jYUNCRV7TdiOnYDsTmAPcy+fxlKM3HfA9Xj0kMUVa IQ5/FQYoBucDM/sM7u3RQSea7N+oJmeSL/ktXOoZvyu4+l8Ek55DAqYmaW0YH9o7goRr oBFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=XGLcLKcTFWSB66QXGtgKLA+04IUnUM9PoGpdYQjMx20=; b=t6ATU5J18bUbF2me1UfAPAX3ofNBw5IM+l5Z2lAGazkc1Snr0K4KUJERz3HenfkGsu o9IB0IfyqWdfyQLTy7aqWypBIwat0P59tIo4wE5c56JSP6TswOuRl32ZH6C+8WyZ+YEh vMo3yZpfWtC/rM5FZLIlr3SN49hNuoi7JQLviTewCESjyQ4LdLd4pkmClVf3PruMmRR0 uewJi/GavBSyS6BUlJRvEA3D0kAwf5GjUa1vu2OFBVsaPiYOIFF3gKPutAAh1vzaHtNg 0qnufC1GNb81S8w153RlqaIAH1Pm2wRXYtUjkf4X1lsp8lHyQJZ0uKNEo1dNQbBFy9DR f8LQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u62si8765374oig.29.2020.01.14.17.57.59; Tue, 14 Jan 2020 17:58:10 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728885AbgAOB5J (ORCPT + 99 others); Tue, 14 Jan 2020 20:57:09 -0500 Received: from mail-ot1-f65.google.com ([209.85.210.65]:34053 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728862AbgAOB5J (ORCPT ); Tue, 14 Jan 2020 20:57:09 -0500 Received: by mail-ot1-f65.google.com with SMTP id a15so14718989otf.1 for ; Tue, 14 Jan 2020 17:57:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=XGLcLKcTFWSB66QXGtgKLA+04IUnUM9PoGpdYQjMx20=; b=FwNe81rFWtOPRZkjGrnQv9G3RNHqpjWoEfe+fglqArzOQEYb7ipqibQswunyEaYPDd IU4r/2Cx6a8UnlfYxDvybKQQqBr0Gbp4Us5guEAetZb+oJPm5k6M2co+7YuBQ7wMZ38j vwLVgslik4DtfYJxlPxATg91cRinmya1WL8453W48zX71ztxoONkzw5xM2buhxgvW0G4 YygI34GOyVPFqeVNEYWhTcZ/TwEhK7oZknKkdmuggRYaTAKV13o/y93lK23+lVSCWkzR UXF/cClU3bp7icVuUO9Tv7fyny2d6kfpFDw11wGOUKGrJTrb6BWN1/e261dXv+Nt7b/U PRyw== X-Gm-Message-State: APjAAAWIM8sTMuBi14efZ7c7mZXViJB7LKVsU5/bPM2pxMcbEAfo1Qqa KUmPQreGJmboNHk4AHQALKOKD8g= X-Received: by 2002:a05:6830:145:: with SMTP id j5mr1042329otp.242.1579053428016; Tue, 14 Jan 2020 17:57:08 -0800 (PST) Received: from rob-hp-laptop (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id q25sm6088590otf.45.2020.01.14.17.57.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jan 2020 17:57:07 -0800 (PST) Received: from rob (uid 1000) (envelope-from rob@rob-hp-laptop) id 2209ae by rob-hp-laptop (DragonFly Mail Agent v0.11); Tue, 14 Jan 2020 19:57:06 -0600 Date: Tue, 14 Jan 2020 19:57:06 -0600 From: Rob Herring To: Johan Jonker Cc: miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, 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: Re: [RFC PATCH v1 01/10] dt-bindings: mtd: add rockchip nand controller bindings Message-ID: <20200115015706.GA30647@bogus> References: <20200108205338.11369-1-jbx6244@gmail.com> <20200108205338.11369-2-jbx6244@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200108205338.11369-2-jbx6244@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 08, 2020 at 09:53:29PM +0100, Johan Jonker wrote: > 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 Dual license new bindings: (GPL-2.0-only OR BSD-2-Clause) > +%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" Should end with a '#'. > + > +maintainers: > + - Heiko Stuebner > + > +properties: > + compatible: > + enum: > + - rockchip,nandc-v6 > + - rockchip,nandc-v9 Use SoC specific compatibles, not version numbers. > + > + 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 Can't you put hclk_nandc first so it's always index 0. > + > +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 >