Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3722633imj; Tue, 19 Feb 2019 08:20:26 -0800 (PST) X-Google-Smtp-Source: AHgI3IbbaHSv+qs3ij4XKih1davxOoRcr5uAc2dKOJDXeOkqGfc64etn4LBacCLr6dCFOd8hN7bl X-Received: by 2002:a17:902:76cc:: with SMTP id j12mr15942887plt.170.1550593226073; Tue, 19 Feb 2019 08:20:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550593226; cv=none; d=google.com; s=arc-20160816; b=zzOVEniWg/nLdZKJLFG2W194vi6gbiOCa/yBScbCFkTWpPtJgC6deOGjBFmy2QzOi4 yqYmWlqs4oSqnw3m5TJBTIXHwe0lE6lSIvcCQ1xNoYZQTg3shj+OlDpaGE6huZ+3/n/k LX7+9VjcU1IPz+SsillsX5n3J14kBaxfKnTx30Nw6Uw4p8MinWYP+b5zCsbQEcruVJCk v6/MF5JwnCuQm8kITQYSsXnTdW8aJ7CwSFs5K+ru/9alnNhZazHw4KD/Nav07LcNp+Vt DD9Ku+BI7yPJS9bYwPazWVcg8eEaZAEGDlBnptk944rPLNPy3In8D7sSaxc4UsQhcv4s NLiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=M3X3y/Hry+aNvcGemLH71HtxFVNNKaxPJtP1HB1E2c8=; b=HjxmGPCD+ov1kuT7ysVtpN0w9fAtOlNjr0yFeDhYUNpnrdX3Vau60PCTKgXtvP/XlC jmXBISj1eZXMZR2RR0bXGF6+DTpW2M4V1z1tSWE5FzC1FTkflKPh0WWbl7yR0B1DAico 1+2OhhNL5jan+TgVRYw/VJyLQoHAzjR0xhjaf+lVDQHMdfIGgnLFiIgp1CVreGmSFVht iwrAkTtjXuPv2hFbpUw3JTopONSJW13FhPzJ6feBJhYOCvAb/j7hbZLClZ+TlTTfsNwb ami7S82RaOBLDhsRL7Q0NPaid3VlvZPkTj/BBffrH4wd1gZr6BxDn2VgqZ7nebk56/Z6 9TCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cadence.com header.s=proofpoint header.b=tC7ymklg; dkim=pass header.i=@cadence.com header.s=selector1 header.b=JuL0FM9F; 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=NONE dis=NONE) header.from=cadence.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ci1si15441045plb.352.2019.02.19.08.20.10; Tue, 19 Feb 2019 08:20:26 -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=@cadence.com header.s=proofpoint header.b=tC7ymklg; dkim=pass header.i=@cadence.com header.s=selector1 header.b=JuL0FM9F; 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=NONE dis=NONE) header.from=cadence.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729066AbfBSQTs (ORCPT + 99 others); Tue, 19 Feb 2019 11:19:48 -0500 Received: from mx0b-0014ca01.pphosted.com ([208.86.201.193]:58410 "EHLO mx0a-0014ca01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726110AbfBSQTr (ORCPT ); Tue, 19 Feb 2019 11:19:47 -0500 Received: from pps.filterd (m0042333.ppops.net [127.0.0.1]) by mx0b-0014ca01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x1JGFK8K026358; Tue, 19 Feb 2019 08:19:33 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cadence.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=proofpoint; bh=M3X3y/Hry+aNvcGemLH71HtxFVNNKaxPJtP1HB1E2c8=; b=tC7ymklgkj957JD0v2usPgdF15v8nFVYIVdD50NgBvhEU5tjXeXL0WJ198jnWhzGvKkW b9YMmjGgt5LdoC7xUGugbpjc6SPEGGpdj/mHntZV+gbhnXWLef3UWu1MeSAISYklVxOC UCG9pzX3+zJ1xOJBzleOCMryko6GGwLC6pFEdj9uwSzz6eqySD1UQFGCNuFlI8ql1iK6 R6bivpABMDmleRjsIiUdlRUP6z6OqBgOBxe9Z+gwENsGb78kAZdQX4o6b/XDSi7YMUvu sJt5iuuS/3E5WY3A0mfADY2KeyB6niGZvPTqQiOv5Brl/CqsIABq04byGRenlHjAda6u mA== Authentication-Results: cadence.com; spf=pass smtp.mailfrom=piotrs@cadence.com Received: from nam01-by2-obe.outbound.protection.outlook.com (mail-by2nam01lp2057.outbound.protection.outlook.com [104.47.34.57]) by mx0b-0014ca01.pphosted.com with ESMTP id 2qpeyydy33-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 19 Feb 2019 08:19:33 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cadence.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=M3X3y/Hry+aNvcGemLH71HtxFVNNKaxPJtP1HB1E2c8=; b=JuL0FM9FPspT/bYB53nsZlGhZdDJ0Hllo03YkvSKYhulGSOwiH5cApGfY+H2ytrMWRMhgrpK7Ex9hj4b/9KzYVUDgNnVNnT35tx7uPXr4T7J+hLN2pSXLYoyJ2yzmYtGcNRXoefc4RBhUh29N6cX6x/HbmFAL4jRL7BOvltlTa0= Received: from CO2PR07CA0077.namprd07.prod.outlook.com (2603:10b6:100::45) by DM5PR07MB3097.namprd07.prod.outlook.com (2603:10b6:3:de::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1622.19; Tue, 19 Feb 2019 16:19:30 +0000 Received: from CO1NAM05FT053.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e50::202) by CO2PR07CA0077.outlook.office365.com (2603:10b6:100::45) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1622.16 via Frontend Transport; Tue, 19 Feb 2019 16:19:30 +0000 Received-SPF: SoftFail (protection.outlook.com: domain of transitioning cadence.com discourages use of 158.140.1.28 as permitted sender) Received: from sjmaillnx2.cadence.com (158.140.1.28) by CO1NAM05FT053.mail.protection.outlook.com (10.152.96.169) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1643.11 via Frontend Transport; Tue, 19 Feb 2019 16:19:29 +0000 Received: from maileu3.global.cadence.com (maileu3.cadence.com [10.160.88.99]) by sjmaillnx2.cadence.com (8.14.4/8.14.4) with ESMTP id x1JGJRsM025137 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=OK); Tue, 19 Feb 2019 08:19:28 -0800 X-CrossPremisesHeadersFilteredBySendConnector: maileu3.global.cadence.com Received: from maileu3.global.cadence.com (10.160.88.99) by maileu3.global.cadence.com (10.160.88.99) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Tue, 19 Feb 2019 17:19:26 +0100 Received: from lvlogina.cadence.com (10.165.176.102) by maileu3.global.cadence.com (10.160.88.99) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Tue, 19 Feb 2019 17:19:26 +0100 Received: from lvlogina.cadence.com (localhost.localdomain [127.0.0.1]) by lvlogina.cadence.com (8.14.4/8.14.4) with ESMTP id x1JGJQbs026955; Tue, 19 Feb 2019 16:19:26 GMT Received: (from piotrs@localhost) by lvlogina.cadence.com (8.14.4/8.14.4/Submit) id x1JGJPP8026947; Tue, 19 Feb 2019 16:19:25 GMT From: Piotr Sroka To: CC: David Woodhouse , BrianNorris , Boris Brezillon , "Marek Vasut" , Richard Weinberger , "Rob Herring" , Mark Rutland , , , Piotr Sroka Subject: [PATCH v2 2/2] dt-bindings: nand: Add Cadence NAND controller driver Date: Tue, 19 Feb 2019 16:19:20 +0000 Message-ID: <20190219161920.26602-1-piotrs@cadence.com> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20190219161406.4340-1-piotrs@cadence.com> References: <20190219161406.4340-1-piotrs@cadence.com> MIME-Version: 1.0 Content-Type: text/plain X-OrganizationHeadersPreserved: maileu3.global.cadence.com X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:158.140.1.28;IPV:CAL;SCL:-1;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(376002)(136003)(396003)(39860400002)(346002)(2980300002)(199004)(36092001)(189003)(51416003)(106466001)(8936002)(2351001)(6916009)(47776003)(16586007)(76176011)(54906003)(42186006)(316002)(478600001)(26826003)(8676002)(246002)(87636003)(7416002)(50226002)(2906002)(7636002)(305945005)(36756003)(105596002)(26005)(6666004)(48376002)(336012)(126002)(2616005)(476003)(11346002)(356004)(1076003)(486006)(4326008)(426003)(6346003)(107886003)(446003)(186003)(86362001)(5660300002)(50466002);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR07MB3097;H:sjmaillnx2.cadence.com;FPR:;SPF:SoftFail;LANG:en;PTR:corp.cadence.com;A:1;MX:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f486b416-93a1-44b4-f4b1-08d696860692 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605104)(2017052603328)(7153060);SRVR:DM5PR07MB3097; X-MS-TrafficTypeDiagnostic: DM5PR07MB3097: X-Microsoft-Exchange-Diagnostics: 1;DM5PR07MB3097;20:7vGWriU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gwhM?= =?us-ascii?Q?VNKEMv+4mgPacg9crMXV1zMXDrqSt+iSyQR1+QldYsJsy0dpbLvfzHq9u2Qd?= =?us-ascii?Q?HsXBWBQMJLdZM/WeFs2FagH3XzY1oWPaXG6USH8b0/Urb0CH2Hrevvv1H7Lu?= =?us-ascii?Q?W15zAAakBNbdLA0GJBaVEhyUV4GnAeHsYyvODvdzEac8Dpl8r0WkkMToJnSQ?= =?us-ascii?Q?BoATwJeC4fwfYRV9j6d8h6a75OZdSVyBQnLn7jn89TCSIV6uBWg/q8IQbvEL?= =?us-ascii?Q?jodIxd1Ui492SaoqZKCKOgPne/WpjW6rqkdimf9bqZcx1hl0dGitTV8KtbmZ?= =?us-ascii?Q?92SVbbQGWlxDU4X5QetxdKUXAgkBKPnyTKhW/O31KNUBOpa0vNsRfE9lWGJ5?= =?us-ascii?Q?epNFD59h5QxwxPbWisbAsTxgrUf450+WO2GoeBjkn+WKskbB34azNN+ueeG7?= =?us-ascii?Q?1jrICun5Qkz9D+/eWWJM82PcB0xLW4/4myOyyfizOptJUv0JP/36YRE7wdQJ?= =?us-ascii?Q?zMdLLwFOsskuPgdxYS0Kdie0UqLZ3fvUUi5WRaRCKgIvl/jHxrQCPHDxVh+c?= =?us-ascii?Q?bMQZS5mWUqcnpRPzE04Zc4obaV2JTeyHgKz1kj/rjgRKAbFKtc1BpHTVXbx4?= =?us-ascii?Q?GtapeHd6+aXx4+MiTuolJjHFdO9bjfd6jDw6D7VRuxp4uPzlIZDjGKLfc9FQ?= =?us-ascii?Q?AfhSix1zDPNUxhDcEyJifAPteLy0me1pdOspgJ3rGRLRLLEXZHbix8iUueIs?= =?us-ascii?Q?O4kdeSapjQUl5R8Yu1yRHFuReeuzB32?= X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: SknGtHUpm7p2cKVtumDCDZqRs9eSPN68RgZWXNvkPPphQHfl+kwKCDHuj1JvwfLc/EtNwxwlggrb+9fsBlMK5IPlSVhR2vaumCrZlxxZhe+JLb+lzc3B3TCKozcUhv/hIl9pANUZN58gurU5VjF7eigmbVS1ahhflMeXiDnRNM/1Ua1kD4fs8LrMqdehN/TInPASt+s9O7DurpduXnEpM/0BuFfqQTx6yLA32ioMT1JySh2lz4+vyCr2MzCcewr691lssD6mwH7FuA8l1wKwypKz/Ezl6jAqGTf72Vtpt6KV5qDsZtEAGFc6K4a9GtK551ZPOKekua46nmttsY4aSzhmbTpV3an+jRyBe/O/NQQuiGTq6EFWaWrNE0FEQoqdueyeVaQR3sQMC+mYMggF5Q7/74jOnkZUEMaTo6PjOHw= X-Microsoft-Exchange-Diagnostics: 1;DM5PR07MB3097;20:jhH7lvssY86NLd43hlxsqlCZgrb0tgQ+j3tZRVeDi9zaalYno/NS4XdYbKjTzcv1dInqe6BbWSMyPQoHLkTkk/YwdNNA2q4tSB6S72/8yxzWDtcGMBo995Bbt1VGZYVG5yUBHEw0mTZaVvB2LFtNCvTa2VzytsFf2q+D9e+0OIvkkPNlYwn9iyrBwn9CLIo7DET+3wUJ+i8z5XZBVSlvL5t2XXyJ701Y8LpzaabP1WNlJEJLeOhhGOhiYjADJ3t5 X-OriginatorOrg: cadence.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Feb 2019 16:19:29.5679 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f486b416-93a1-44b4-f4b1-08d696860692 X-MS-Exchange-CrossTenant-Id: d36035c5-6ce6-4662-a3dc-e762e61ae4c9 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=d36035c5-6ce6-4662-a3dc-e762e61ae4c9;Ip=[158.140.1.28];Helo=[sjmaillnx2.cadence.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR07MB3097 X-Proofpoint-SPF-Result: pass X-Proofpoint-SPF-Record: v=spf1 include:_spf.salesforce.com include:mktomail.com include:spf-0014ca01.pphosted.com include:spf.protection.outlook.com include:auth.msgapp.com include:spf.mandrillapp.com ~all X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-02-19_11:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_check_notspam policy=outbound_check score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1902190120 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Piotr Sroka --- Changes for v2: - remove chip dependends parameters from dts bindings - add names for register ranges in dts bindings - add generic bindings to describe NAND chip representation under the NAND controller node --- .../bindings/mtd/cadence-nand-controller.txt | 48 ++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/cadence-nand-controller.txt diff --git a/Documentation/devicetree/bindings/mtd/cadence-nand-controller.txt b/Documentation/devicetree/bindings/mtd/cadence-nand-controller.txt new file mode 100644 index 000000000000..3d9b4decae24 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/cadence-nand-controller.txt @@ -0,0 +1,48 @@ +* Cadence NAND controller + +Required properties: + - compatible : "cdns,hpnfc" + - 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 "cadence_reg" and "cadence_sdma" + - interrupts : The interrupt number. + - clocks: phandle of the controller core clock (nf_clk). + - Children 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 + +Optional properties: + - dmas: shall reference DMA channel associated to the NAND controller + - cdns,board-delay : 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 + +See Documentation/devicetree/bindings/mtd/nand.txt for more details on +generic bindings. + +Example: + +nand_controller: nand-controller @60000000 { + compatible = "cdns,hpnfc"; + reg = <0x60000000 0x10000>, <0x80000000 0x10000>; + reg-names = "cadence_reg", "cadence_sdma"; + clocks = <&nf_clk>; + cdns,board-delay = <4830>; + interrupts = <2 0>; + nand@0 { + reg = <0>; + label = "nand-1"; + }; + nand@1 { + reg = <1>; + label = "nand-2"; + }; + +}; -- 2.15.0