Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4712561imm; Mon, 20 Aug 2018 23:01:20 -0700 (PDT) X-Google-Smtp-Source: AA+uWPw3+ap6zjkKqd2C0hLUmf1sNCEwsLddukG4C+nii+oVpY7ZnpC++Lba5SHi1KC120F9Y8YB X-Received: by 2002:a63:9248:: with SMTP id s8-v6mr7044529pgn.141.1534831280651; Mon, 20 Aug 2018 23:01:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534831280; cv=none; d=google.com; s=arc-20160816; b=aFSLlBamtG7SLcJaj43j+aZd0dvG2Cct2IbvcxFdcV/mJ3YDeyAOw2XaeakTPCpODa CTEeUYR24/u/bkv+UWMsu7Iq58RhtdbnwclnZbqkdiDXpJIvze4IJ3ulDn0/zQzoNokG Ijos3l8eJC9skxhDPRFZCs7TH/Fgq8qSgzVH1ZW17+QusnTjHSwN0yVL9IYqdxPMU5Oc NpfKG4/xSQnRsHEUkMxyUKS0DFYWmI32MHIVn12naO8bqV/1bL5Lj5VunlvZp1nf95hj S0+QESeKuZNKQmjRLnuAdA7cvEU+OnGbRWDBZQ6sJunCCkc9huGeniieciZiXe8ipNeo L3jA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=8lAD0y96Av87g7N79/i8l+SIaqvhefhsZhED6QYBuW4=; b=BMuzdZlWPecst6m5xVCRz492LcOUqSHiU9q8+5kBkcgOmY1jJ7XNuLTFCoR8y1D+La qIsoorrGV+7mvSaBHF2FUYLHJEjnpFBs0922cdOhz0L+1Yau3PA4jymlIYZ/bpBSl8cl TnXfvm9Q/QhTx1wxgjGtwcfSqO/JR1HFWcH0iEc3xC4MRfiu/yNJD+VvhJyyta3M/kKV c4ZVUGsPLO8xfzsDZVDM4odFwN5ab9mRZDWRm5qMlQn+SJsZoYTz1zeUxp3F4uh1PsQ3 gSe9GqxF3SyjKYxX1mu3qvAsdQ7jElmEvJDseqc+8aGarX7/MJtbjDBOUpFSNBcY8EGp CE9w== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c6-v6si11699585plr.32.2018.08.20.23.01.03; Mon, 20 Aug 2018 23:01:20 -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; 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 S1726545AbeHUJSc (ORCPT + 99 others); Tue, 21 Aug 2018 05:18:32 -0400 Received: from mail.bootlin.com ([62.4.15.54]:58697 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726228AbeHUJSc (ORCPT ); Tue, 21 Aug 2018 05:18:32 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id DF9D5204AE; Tue, 21 Aug 2018 07:59:48 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from bbrezillon (91-160-177-164.subs.proxad.net [91.160.177.164]) by mail.bootlin.com (Postfix) with ESMTPSA id 80E2E204AE; Tue, 21 Aug 2018 07:59:48 +0200 (CEST) Date: Tue, 21 Aug 2018 07:59:48 +0200 From: Boris Brezillon To: Naga Sureshkumar Relli Cc: "miquel.raynal@bootlin.com" , "richard@nod.at" , "dwmw2@infradead.org" , "computersforpeace@gmail.com" , "marek.vasut@gmail.com" , "kyungmin.park@samsung.com" , "absahu@codeaurora.org" , "peterpandong@micron.com" , "frieder.schrempf@exceet.de" , "linux-mtd@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Michal Simek , "nagasureshkumarrelli@gmail.com" Subject: Re: [LINUX PATCH v10 1/2] dt-bindings: mtd: arasan: Add device tree binding documentation Message-ID: <20180821075948.28962170@bbrezillon> In-Reply-To: References: <1534511964-20342-1-git-send-email-naga.sureshkumar.relli@xilinx.com> <1534511964-20342-2-git-send-email-naga.sureshkumar.relli@xilinx.com> <20180820143324.61af9027@bbrezillon> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 21 Aug 2018 05:47:18 +0000 Naga Sureshkumar Relli wrote: > > > +Required properties: > > > +- compatible: Should be "xlnx,zynqmp-nand" or "arasan,nfc-v3p10" > > > > In your example it's not an "or" since both are defined. > In our previous discussion (https://lore.kernel.org/patchwork/patch/748901/) > We decided to have compatible strings like " compatible = ",", "arasan,";" > So it should be either of these. > so I will write something like below > "Possible values are "xlnx,zynqmp-nand" > "arasan,nfc-v3p10" > And in example I will mention any one compatible. > Is it ok? Hm, why do you need arasan,nfc-v3p10 at all if it's supposed to be overloaded by a soc specific compat? > > > + > > > +Optional properties: > > > +- arasan,has-mdma: Enables DMA support > > > > Can't you detect that based on the compatible (or thanks to a register). If it's something you > > choose when configuring the IP and can't detect at runtime I guess it's fine. > There is no way to select DMA when configuring the IP. > But it has internal DMA and there is a register to select PIO or DMA while starting a transfer. > So if user really don't want DMA, then we will never set DMA in the code based on DT property. If it's a purely SW choice, then is shouldn't be described in the DT. You can use a module param, but I'm not even sure why one would want to disable DMA.