Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp969109ybl; Fri, 24 Jan 2020 12:55:22 -0800 (PST) X-Google-Smtp-Source: APXvYqzxFnzcMtxIegh/ZbEY6GqRyRwNw4m9XYDqJrNr1hytyfUpq5bfBBnYM5/UFZpoyHKI/RiH X-Received: by 2002:a9d:7653:: with SMTP id o19mr4010153otl.118.1579899322684; Fri, 24 Jan 2020 12:55:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579899322; cv=none; d=google.com; s=arc-20160816; b=Qoy6aB7pMzFgPQOS35b9nq5dZwiOqXdOW10H0GseDjl72gQwrVwa2CmZjsiZxsJmfx IStVzoGPix0Hy2fOeKExgrsX8Smpo468Nzb30ZeviKIu0Ql450mqkCSlqpWxJnny9ZrE Ha2aomG0AU89+SU0nal6263i+V/IR3zyg9ORcUeuOZAd09KFcSAjaIX/KyZreqRPPxNT qmTIj94dLEUfkk1Hoe2ADc0f0TD/ViDARE96pqrkinTFwG4en1GlunsPir7CpaNTBLCw YJqvdLDLGyGT2J/y+AUrjPKV2TXnTmp6n2B2TYU0VJ1GbiTkLS194YIen3x8LwP+CWGW r4Zw== 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=uJoeltGGhmQKQoFJipSF7NJGrgp+ESh1SyyRe6anT6U=; b=g4hNY8QZSW5kMA6EbHzbcc99D9z+BGkEINHKXArdTJ4TTInsqtAibckcOzctUO9Izn kcTbU/kf4d9RSRBlLYvKFeFCZ1HSDH0enat5kpFEmvmNN9maHO7FgAk6cW1Lj3gyMaOs QHjr8z9nyZSkwAh3Cexmy1mjcWmf/siZ88RPik2SJ/uDZQo6opgcKVCz7prWO755HuDT GaAbH9gPd8IXttbmmDB2znEQ0BvmtafGDQuyBP6Q1LMpIltwXbqTanJltsHZIOcVevJt qQEQJyCbJ9+8/gXAbDSsZRG41Nn40vXc1AX0oq/g8MUjl1kwW4ailc1/VpNph6a4Yo5J 8w9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XO6PPX2p; 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 d17si301235oij.136.2020.01.24.12.55.10; Fri, 24 Jan 2020 12:55:22 -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=XO6PPX2p; 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 S2388903AbgAXQaQ (ORCPT + 99 others); Fri, 24 Jan 2020 11:30:16 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:35730 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387603AbgAXQaO (ORCPT ); Fri, 24 Jan 2020 11:30:14 -0500 Received: by mail-wm1-f67.google.com with SMTP id p17so72433wmb.0; Fri, 24 Jan 2020 08:30:13 -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=uJoeltGGhmQKQoFJipSF7NJGrgp+ESh1SyyRe6anT6U=; b=XO6PPX2pWqnpKnGovVWZfIR79tFHTFU2R3vop4kZP4gw9HGbYbZY0S7Qh5vf+Mu2DG a27PRLxbXCESnbT1uxnPCwpd26mpy2DvPV2pExJyERgMsM77q5aCZYQ6Lwb05J2jCqVa bNtr5cmcKFZOHyqZjFY9qPQCj9AJqCcI9oUcx1+oIOOtFtEG2eOWzm7QKVAvxvIX/MQM QaI2RvIo1p+EXBB7TlyuBu+c9A0mumMXWy1l5X2zq0QifLdu9p1cu5iIorMOYQnIk3bl 3ctPkflh/W0nmz412KOz1oDYI+Me5Jg+dgkLwb3aHkLIsPrLGLT37EZRrn5XTlv+kfjH hLzg== 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=uJoeltGGhmQKQoFJipSF7NJGrgp+ESh1SyyRe6anT6U=; b=YIrlW1z4eYOpeT3kV3qgTOwH/lyIesy0w26VUrWLRtUHK6V/lrJrJFOK/FmXM2ccXR ZdfKImQFripZ0E7DD43k0k96QfL9tuGS4Y0OuPEreF0F/294pZqZBYmwnmyhBUamEfRX si/HF+l88hHex6nox719Nc7g/K6FmLWR/lhPu5kRKrLZLndome73GtBzHCEOduyvISE+ kNrjd4B4QkFlodMxDKlraR5g61UmYtW0KJf7yrxN8K1b2hl6twOjaZT6VJq2Xa61x6Ld b+W66IVrMxdPhUExFcflpgvnOY6Lu8z4BBkKUP+JqrbdO22tRAQsz5FEF7EE6OxNRX4M cEag== X-Gm-Message-State: APjAAAWq6FoYbUjizDyQ0H/bAGQPQESosePRY8WXYzYSiuujFzTYq3f+ Z9sGBvZXnFDer3K0OykK5wg= X-Received: by 2002:a1c:2902:: with SMTP id p2mr44736wmp.19.1579883411139; Fri, 24 Jan 2020 08:30:11 -0800 (PST) Received: from debian.home (ip51ccf9cd.speed.planet.nl. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id 205sm1977304wmd.42.2020.01.24.08.30.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Jan 2020 08:30:10 -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, shawn.lin@rock-chips.com, yifeng.zhao@rock-chips.com Subject: [RFC PATCH v2 01/10] dt-bindings: mtd: add rockchip nand controller bindings Date: Fri, 24 Jan 2020 17:29:52 +0100 Message-Id: <20200124163001.28910-2-jbx6244@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20200124163001.28910-1-jbx6244@gmail.com> References: <20200124163001.28910-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 --- .../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: + minimum: 2 + 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