Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3965109ybl; Mon, 3 Feb 2020 09:53:04 -0800 (PST) X-Google-Smtp-Source: APXvYqwuqKk7RxDsKed9Ru6DVsyB2ck9EdU9wDremBQXKDN5U0aFhQGK6nmWe/YJ5/LjoNTVhKT6 X-Received: by 2002:a05:6830:95:: with SMTP id a21mr18774323oto.171.1580752384050; Mon, 03 Feb 2020 09:53:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580752384; cv=none; d=google.com; s=arc-20160816; b=BKr4wQIzqZ6jYS11oJDn0mzbPkD+qbQ2SJcO5AXQd2sCspvMZ0XlnjXsMByQJof17b +XAqHf5IxbQqPnFrvrRa+sLPKXEpiCRh6lhL/aEj1vlJ0zbxXm/1beS4gYxD0aAJlb4/ /WNxZTprt2P40aPgW3pu+eS3P0HNBm2eP+xVJB9UFaYwWOCOiQwZ6RnxCZmQrrUbl+Mk 6iPBapuAbPOrLOt0vLXGai0nDHv14noToa0VXcCdooz+zPGsa4qJ4Da1m38dVRfCH8a8 LEhFWPWO8CGug13vMTyp6LTVAXSYJlgsO1oHsiEy9+u1Bv8orVySCL6ZNNkD+5+f/J9q sufA== 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=i4K3Yw7s0/p2VRy7WZBsheWIHTlpjbUAlC7ufzYvY3E=; b=npewvmGHwXNr4RDXo4YsEkd8gMyrVhWMts7MDh2hT1gL+mOKi7wLJb3pryvKb4bXQh 9h0oEx1rDdX0lShQWa6mtOOv6ciDeVsbdHwdU7maNKOLNPFe2JejLefRg1GBrZkPL7pO U7DBkRWluHTw0iGNg0I85Qe+aK6hoyhcvHKLVmU0ufHiYHs9GXy3Z5q2n7Pxv45hqbKq jxaf20DIn/pn0ACQtF2pALqm6n9+mo72eIsec1OkjMX9WYc/Vvm+pe5kEyAOgq8x/ygT XLW2n0fBrOCO3QXyVgwPLK09ViMut4ws4aOLybeAkqXrcLXiYwVskKCrjYzWEdmCPEoj CLSQ== 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 w20si8563999oic.103.2020.02.03.09.52.51; Mon, 03 Feb 2020 09:53:04 -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 S1727704AbgBCPpq (ORCPT + 99 others); Mon, 3 Feb 2020 10:45:46 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:39034 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727445AbgBCPpq (ORCPT ); Mon, 3 Feb 2020 10:45:46 -0500 Received: by mail-wm1-f67.google.com with SMTP id c84so17742716wme.4; Mon, 03 Feb 2020 07:45:44 -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=i4K3Yw7s0/p2VRy7WZBsheWIHTlpjbUAlC7ufzYvY3E=; b=IFt/XXLiqicBQoa2VVsY2BEXae2S3ppvHQGnwWW4zbDJUSmd6V7DJgTBJEcnc5Mx6D k2AwTvXtNTSZda/ydjjw5pQuOutuFKPygg9vnn9V/UzlUjh2le7HmATnoMcHAxg/ytcM 8TOOapqWR1EyTXN9qHW2R0NANSL2WBt00LsGcEwP0AkA4O2fW4+zdk8eW0wGbwfAWbzd jl0/fGqo1crLmzCpR5DfGT8/gMSgIKqfpEFKYwYzqS8xZQGIp331mYyMFrB4P8loTbwt l/MqO8TC0D9t+MVeH2MQwt103geK0hinF+HnAiMmIBzOPVJCUQZJCv8Y3177NhOEdL9o hcbA== X-Gm-Message-State: APjAAAVDDtVNyqCVZd3+xm5SK8CZfX/57XYOAvKdQLJOOKz2YcitW3BL jtr/wdCfYTkFPdBQe5a5ng== X-Received: by 2002:a1c:5441:: with SMTP id p1mr31595887wmi.161.1580744744243; Mon, 03 Feb 2020 07:45:44 -0800 (PST) Received: from rob-hp-laptop ([212.187.182.163]) by smtp.gmail.com with ESMTPSA id f189sm25558921wmf.16.2020.02.03.07.45.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Feb 2020 07:45:43 -0800 (PST) Received: (nullmailer pid 17059 invoked by uid 1000); Mon, 03 Feb 2020 15:45:42 -0000 Date: Mon, 3 Feb 2020 15:45:42 +0000 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, shawn.lin@rock-chips.com, yifeng.zhao@rock-chips.com Subject: Re: [RFC PATCH v2 01/10] dt-bindings: mtd: add rockchip nand controller bindings Message-ID: <20200203154542.GA27866@bogus> References: <20200124163001.28910-1-jbx6244@gmail.com> <20200124163001.28910-2-jbx6244@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200124163001.28910-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 Fri, Jan 24, 2020 at 05:29:52PM +0100, Johan Jonker wrote: > Add the Rockchip NAND controller bindings. > > Signed-off-by: Johan Jonker > --- > .../bindings/mtd/rockchip,nand-controller.yaml | 92 ++++++++++++++++++++++ > 1 file changed, 92 insertions(+) > create mode 100644 Documentation/devicetree/bindings/mtd/rockchip,nand-controller.yaml > > diff --git a/Documentation/devicetree/bindings/mtd/rockchip,nand-controller.yaml b/Documentation/devicetree/bindings/mtd/rockchip,nand-controller.yaml > new file mode 100644 > index 000000000..5c725f972 > --- /dev/null > +++ b/Documentation/devicetree/bindings/mtd/rockchip,nand-controller.yaml > @@ -0,0 +1,92 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/mtd/rockchip,nand-controller.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,px30-nand-controller > + - rockchip,rk3066-nand-controller > + - rockchip,rk3228-nand-controller > + - rockchip,rk3288-nand-controller > + - rockchip,rk3308-nand-controller > + - rockchip,rk3368-nand-controller > + - rockchip,rv1108-nand-controller > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + clocks: > + minItems: 1 > + maxItems: 2 > + > + clock-names: > + minItems: 1 > + items: > + - const: hclk_nandc > + - const: clk_nandc > + > +patternProperties: > + "^nand@[a-f0-9]+$": > + type: object > + properties: > + reg: > + minimum: 0 > + maximum: 3 > + > + nand-is-boot-medium: true > + > + rockchip,idb-res-blk-num: What is idb? Rather than define, maybe just 'rockchip,boot-blks'? > + minimum: 2 is there a max? > + default: 16 > + allOf: > + - $ref: /schemas/types.yaml#/definitions/uint32 > + description: > + For legacy devices where the bootrom can only handle 24 bit BCH/ECC. > + If specified it indicates the number of erase blocks in use by > + the bootloader that need a lower BCH/ECC setting. > + Only used in combination with 'nand-is-boot-medium'. > + > + additionalProperties: false > + > +required: > + - compatible > + - reg > + - interrupts > + - clocks > + - clock-names > + > +examples: > + - | > + #include > + #include > + #include > + nandc: nand-controller@10500000 { > + compatible = "rockchip,rk3066-nand-controller"; > + 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 >