Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3640893imm; Mon, 25 Jun 2018 02:00:34 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJvrIFO5l9nGqDUaQzPnQf3euhalA3h4KbAJ1LkfXk5O484o3Bb/dr4JprezSoilNS9m/8k X-Received: by 2002:a63:ad07:: with SMTP id g7-v6mr343384pgf.19.1529917233948; Mon, 25 Jun 2018 02:00:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529917233; cv=none; d=google.com; s=arc-20160816; b=RmQtTo2y2VKnu6a+v1wF6arnmqpNaBijkIwhS5fXT+4dWZsNLcPwavMiijo798vHKg IHQomTKWk520ODc/nTcpL+tXusvvIdXT97Fnbq8Fk9XffLB9yYnNkVWnn2Tlk03Yf298 eJhaaYfN6kBPNQO/WCN50wHNac7umPazh+DpYJQARyIUbJ8TEi4Qn+mHFhrqo75RId9/ ZT0wFzkeqQePNds5i7LBe8pTlBaAI93oADdww1GOp0up2ws6eIm6KMjEVAlFWfw3lohf tokq+xcnom2GN33i2+l2gb1ewMqW8qxvqfr6hGMoOQwx+3kL5+jtMDEfAwYw1CUMFXZX NIuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=st7HQ1F6d9YJxiCQ1vmzDPZrlsRw/qnuOcYkhRIMwKU=; b=rdSjDKezQxwIW12ot4/4jgEMRIDmWrAjXKelaPoJEva3fncIW7AcK17s8kxpfXwaBD Cjy+szcJttsSqa99CUoYFg/bp+ROxzSyuRGkAMGgyvPtLoR571lRCy4xwlIi7HeB3Bq0 It+ATpGp/jja8QmsqlYUiikfQ6UIHFGC90YCkiF1m5SAwwWmjzpkxD6Q7ExygbFiwy4R hYOKUp77FE4eQtotCqX7YOB5fUEQzd7Iu3ey1J0ABpufxbnOGivZpf5LILNnpv7ttHwe YA0YBQWfITHKYTT7myJfwk/UyaccMuIGxQzQVILbzq5NzeLerOfOyS4l1EWb40Cbh+FE Um7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector1-xilinx-com header.b=wJo1tozT; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i4-v6si3701672pgd.657.2018.06.25.02.00.18; Mon, 25 Jun 2018 02:00:33 -0700 (PDT) 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=@xilinx.onmicrosoft.com header.s=selector1-xilinx-com header.b=wJo1tozT; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754465AbeFYI7g (ORCPT + 99 others); Mon, 25 Jun 2018 04:59:36 -0400 Received: from mail-by2nam03on0088.outbound.protection.outlook.com ([104.47.42.88]:28406 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752576AbeFYI7f (ORCPT ); Mon, 25 Jun 2018 04:59:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector1-xilinx-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=st7HQ1F6d9YJxiCQ1vmzDPZrlsRw/qnuOcYkhRIMwKU=; b=wJo1tozTtfvStcwka4uFn/risSGTWMy8PRxldc0eNOvZADAZZGdixOP8sr7DtYjnn1ibupGjY0VgXvmxHeYoE3jI60IS8odeZtnK8P+8C6s7XSrPphi7G9c9EHIXHumb8IJAoXSmSV7+8qwPPxdzXscu/EJLuVM5bWu98YbbajI= Received: from MWHPR02MB2623.namprd02.prod.outlook.com (10.168.206.9) by MWHPR02MB2208.namprd02.prod.outlook.com (10.168.243.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.884.23; Mon, 25 Jun 2018 08:59:33 +0000 Received: from MWHPR02MB2623.namprd02.prod.outlook.com ([fe80::fcca:2142:386d:ec1b]) by MWHPR02MB2623.namprd02.prod.outlook.com ([fe80::fcca:2142:386d:ec1b%8]) with mapi id 15.20.0884.024; Mon, 25 Jun 2018 08:59:33 +0000 From: Naga Sureshkumar Relli To: Boris Brezillon CC: "richard@nod.at" , "dwmw2@infradead.org" , "computersforpeace@gmail.com" , "marek.vasut@gmail.com" , "f.fainelli@gmail.com" , "mmayer@broadcom.com" , "rogerq@ti.com" , "ladis@linux-mips.org" , "ada@thorsis.com" , "honghui.zhang@mediatek.com" , "miquel.raynal@bootlin.com" , "nagasureshkumarrelli@gmail.com" , Michal Simek , "linux-mtd@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: RE: [[LINUX PATCH v10] 1/4] Devicetree: Add pl353 smc controller devicetree binding information Thread-Topic: [[LINUX PATCH v10] 1/4] Devicetree: Add pl353 smc controller devicetree binding information Thread-Index: AQHUCSscPFU/PMrwLUOEuJ/raMMjQaRv5MQAgADNwlA= Date: Mon, 25 Jun 2018 08:59:32 +0000 Message-ID: References: <1529563351-2241-1-git-send-email-naga.sureshkumar.relli@xilinx.com> <1529563351-2241-2-git-send-email-naga.sureshkumar.relli@xilinx.com> <20180624224014.125cf0bc@bbrezillon> In-Reply-To: <20180624224014.125cf0bc@bbrezillon> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=nagasure@xilinx.com; x-originating-ip: [182.72.145.30] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;MWHPR02MB2208;7:15wW0kHQnFp3dvD8fIUS0eFQfxPjm6n0wSmgziJwOGNM4tgU93orazjNoHg3kyIsBV6x8eFFoG2W4RcQ+4MMrJryeRuhOPuX7BmfUgxYeUb/jBt+oihcI+nxhzCzyBqHE2fwLc7wQ3/0XAhEPUtOUGWvEFClslNLI1hq+PutXUD2ySu3HM/MopQfHMp0v/WKSmh1hRPNm9t1MtxTSjfq5oPfYI9frj6ea+ERMCoIoEz5hoA0QLOc4OE5j4Ueq1H1 x-ms-exchange-antispam-srfa-diagnostics: SOS;SOR; x-forefront-antispam-report: SFV:SKI;SCL:-1;SFV:NSPM;SFS:(10009020)(39380400002)(346002)(39860400002)(396003)(366004)(376002)(13464003)(189003)(199004)(7416002)(5660300001)(25786009)(97736004)(14454004)(3660700001)(4326008)(11346002)(81166006)(81156014)(446003)(39060400002)(3280700002)(8676002)(102836004)(476003)(8936002)(6246003)(55236004)(186003)(53936002)(486006)(26005)(86362001)(2900100001)(6306002)(6916009)(53546011)(9686003)(105586002)(229853002)(55016002)(59450400001)(6506007)(106356001)(74316002)(54906003)(33656002)(7736002)(305945005)(99286004)(478600001)(966005)(5250100002)(316002)(6436002)(66066001)(7696005)(6116002)(2906002)(3846002)(68736007)(76176011)(217873001);DIR:OUT;SFP:1101;SCL:1;SRVR:MWHPR02MB2208;H:MWHPR02MB2623.namprd02.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; x-ms-office365-filtering-correlation-id: 95953c84-02fb-4f72-b08a-08d5da79f810 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(8989117)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990107)(5600026)(711020)(48565401081)(2017052603328)(7153060)(7193020);SRVR:MWHPR02MB2208; x-ms-traffictypediagnostic: MWHPR02MB2208: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(31051911155226)(9452136761055)(35073007944872)(85827821059158)(258649278758335)(192813158149592); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(3231254)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123560045)(20161123564045)(20161123558120)(6072148)(201708071742011)(7699016);SRVR:MWHPR02MB2208;BCL:0;PCL:0;RULEID:;SRVR:MWHPR02MB2208; x-forefront-prvs: 0714841678 received-spf: None (protection.outlook.com: xilinx.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: tcTTW7elCEG5I0GFkvkUf+cbcRYfzpTP6pNlAxa9ToeSMdwpakIlXjSlOcx12735ue7Hk2IHGflx5KYnGQTLfP7DGIQaYR0wGIMTpNJmeOT73BgogNAL4vfdnLGFt/K0PO8NYGz7nmGEDyBeY6sBuupyY5sUtVVbbHV5W+UuNoYXSWsg1Dqw740zIgOnUCkIQqK+Qn37cEkK5UXeGq9CoNrzyxf4557cAhNHoMrE5T5a4YSukZ4BtlUGtT3acG+C+B53U4rcy2kMkiqr4efGgsgfliFrfvP/oZ/2ukOReixe39fIbIOY+zu5Vh/uNe0HyfAsoyIsRjeKNyb299Ep+o++4TCCKpw7pYGn+V6PPiM= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-Network-Message-Id: 95953c84-02fb-4f72-b08a-08d5da79f810 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Jun 2018 08:59:33.0114 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR02MB2208 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Boris, > -----Original Message----- > From: Boris Brezillon [mailto:boris.brezillon@bootlin.com] > Sent: Monday, June 25, 2018 2:10 AM > To: Naga Sureshkumar Relli > Cc: richard@nod.at; dwmw2@infradead.org; computersforpeace@gmail.com; > marek.vasut@gmail.com; f.fainelli@gmail.com; mmayer@broadcom.com; rogerq@= ti.com; > ladis@linux-mips.org; ada@thorsis.com; honghui.zhang@mediatek.com; > miquel.raynal@bootlin.com; nagasureshkumarrelli@gmail.com; Michal Simek > ; linux-mtd@lists.infradead.org; linux-kernel@vger.ke= rnel.org > Subject: Re: [[LINUX PATCH v10] 1/4] Devicetree: Add pl353 smc controller= devicetree > binding information >=20 > Hi Naga, >=20 > Subject prefix should be "dt-bindings: memory: " not "Devicetree: ". Ok, I will change it. >=20 > On Thu, 21 Jun 2018 12:12:28 +0530 > Naga Sureshkumar Relli wrote: >=20 > > Add pl353 static memory controller devicetree binding information. > > > > Signed-off-by: Naga Sureshkumar Relli > > > > --- > > Changes in v10: > > - Corrected the typos like "should be" to "Must be" and nand to NAND e= tc.. > > - Removed padding to describe size-cells and address-cells > > - Removed timing parameters from DT, and added ->setup_data_interface(= ) hook > > to the driver to read the SDR timings > > - Modified label name from "pl353smcc_0: pl353smcc@e000e000" to > > "smcc: memory-controller@e000e000" as suggested by Miquel Changes > > in v9: > > - Addressed below comments given by Randy Dunlap and Miquel Raynal > > - Typos > > - Added extra documentation that explains the HW ECC limitation with S= MC > > (Comments given to v8: https://lkml.org/lkml/2018/3/22/23) > > Changes in v8: > > - None > > Changes in v7: > > - Corrected clocks description > > - prefixed '#' for address and size cells Changes in v6: > > - None > > Changes in v5: > > - Removed timing properties > > Changes in v4: > > - none > > Changes in v3: > > - none > > Changes in v2: > > - modified timing binding info as per onfi timing parameters > > - add suffix nano second as timing unit > > - modified the clock names as per the IP spec > > --- > > .../bindings/memory-controllers/pl353-smc.txt | 41 > ++++++++++++++++++++++ > > 1 file changed, 41 insertions(+) > > create mode 100644 > > Documentation/devicetree/bindings/memory-controllers/pl353-smc.txt > > > > diff --git > > a/Documentation/devicetree/bindings/memory-controllers/pl353-smc.txt > > b/Documentation/devicetree/bindings/memory-controllers/pl353-smc.txt > > new file mode 100644 > > index 0000000..8b4c65e > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/memory-controllers/pl353-smc.t > > +++ xt > > @@ -0,0 +1,41 @@ > > +Device tree bindings for ARM PL353 static memory controller > > + > > +PL353 static memory controller supports two kinds of memory > > +interfaces.i.e NAND and SRAM/NOR interfaces. > > +The actual devices are instantiated from the child nodes of pl353 smc = node. > > + > > +Required properties: > > +- compatible : Must be "arm,pl353-smc-r2p1" > > +- reg : Controller registers map and length. > > +- clock-names : List of input clock names - "ref_clk", "aper_clk" > > + (See clock bindings for details). > > +- clocks : Clock phandles (see clock bindings for details). > > +- address-cells : Must be 1. > > +- size-cells : Must be 1. > > + > > +Child nodes: > > + For NAND the "arm,pl353-nand-r2p1" and for NOR the "cfi-flash" > > +drivers are supported as child nodes. > > + > > +for NAND partition information please refer the below file > > +Documentation/devicetree/bindings/mtd/partition.txt > > + > > +Example: > > + smcc: memory-controller@e000e000 > > + compatible =3D "arm,pl353-smc-r2p1" > > + clock-names =3D "memclk", "aclk"; > > + clocks =3D <&clkc 11>, <&clkc 44>; > > + reg =3D <0xe000e000 0x1000>; > > + #address-cells =3D <1>; > > + #size-cells =3D <1>; > > + ranges; > > + nand_0: flash@e1000000 { > > + compatible =3D "arm,pl353-nand-r2p1" > > + reg =3D <0xe1000000 0x1000000>; > > + (...) > > + }; > > + nor0: flash@e2000000 { > > + compatible =3D "cfi-flash"; > > + reg =3D <0xe2000000 0x2000000>; > > + }; > > + }; >=20 > I had a look at the PL353 TRM, and the block diagram looks very similar t= o the atmel > EBI/SMC one. AHB/AXI memory ranges that are used to interact with the mem= ories are > assigned CS ids, which can then be used to configure the timings (and oth= er kind of stuff). I > think you should have #address-cells =3D <2>, the first cell encoding the= CS id, and the second > one, the memory offset within the reserved range for this CS id. > See the atmel,ebi binding [1]. >=20 To my previous patch, as per your comments, I modified reading timing param= eters from dts To nand_setup_data_interface() hook, But I didn't see the CS implementation as per atmel EBI driver. Sure, I will update like that and will send v11. Thanks, Naga Sureshkumar Relli > Regards, >=20 > Boris >=20 > [1]https://elixir.bootlin.com/linux/v4.18- > rc2/source/Documentation/devicetree/bindings/memory-controllers/atmel,ebi= .txt