From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roger Quadros Subject: Re: [PATCH v5 01/16] dt-bindings: mtd: gpmc-onenand: Update properties description Date: Fri, 15 Dec 2017 12:18:59 +0200 Message-ID: <23d7ad3c-e6cd-3ba6-269a-1788371d13c3@ti.com> References: <20171115162306.2o2w2yrf7wucroxd@lenoch> <20171115162458.rtompijrsaobdemk@lenoch> <20171130112544.5509ca1b@bbrezillon> <20171130130907.GA16809@lenoch> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20171130130907.GA16809@lenoch> Content-Language: en-GB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-mtd" Errors-To: linux-mtd-bounces+gldm-linux-mtd-36=gmane.org@lists.infradead.org To: Ladislav Michl , Boris Brezillon Cc: Rob Herring , Aaro Koskinen , Tony Lindgren , Peter Ujfalusi , Kyungmin Park , linux-mtd@lists.infradead.org, linux-omap@vger.kernel.org, devicetree@vger.kernel.org List-Id: devicetree@vger.kernel.org Ladislav, On 30/11/17 15:09, Ladislav Michl wrote: > On Thu, Nov 30, 2017 at 11:25:44AM +0100, Boris Brezillon wrote: >> +Rob and the DT ML >> >> On Wed, 15 Nov 2017 17:24:58 +0100 >> Ladislav Michl wrote: >> >>> Compatible property is required for OMAP2+ mtd driver. Also >>> add INT pin gpio description and delete unused dma-channel >>> property. >>> >>> Signed-off-by: Ladislav Michl >>> Reviewed-by: Peter Ujfalusi >>> Acked-by: Roger Quadros >>> --- >>> >>> Changes in v5: >>> - renamed R/B pin to INT pin >>> >>> Changes in v4: >>> - new patch >>> >>> Changes in v3: None >>> Changes in v2: None >>> >>> Documentation/devicetree/bindings/mtd/gpmc-onenand.txt | 6 ++++-- >>> 1 file changed, 4 insertions(+), 2 deletions(-) >>> >>> diff --git a/Documentation/devicetree/bindings/mtd/gpmc-onenand.txt b/Documentation/devicetree/bindings/mtd/gpmc-onenand.txt >>> index b6e8bfd024f4..e9f01a963a0a 100644 >>> --- a/Documentation/devicetree/bindings/mtd/gpmc-onenand.txt >>> +++ b/Documentation/devicetree/bindings/mtd/gpmc-onenand.txt >>> @@ -9,13 +9,14 @@ Documentation/devicetree/bindings/memory-controllers/omap-gpmc.txt >>> >>> Required properties: >>> >>> + - compatible: "ti,omap2-onenand" >> >> Don't you break backward compat by adding this new requirement? > > I was told it is okay in this case as OneNAND conversion to DT is unfinished. > There was compat fixup code in earlier versions of patchset and it was dropped > later. If others see it opposite way I can add it back. > If it is possible not to break backward compatibility then we shouldn't. Only if things are getting real messy because of the poor way the earlier DT implementation was done we can consider it as an exception. I thought we rely on GPMC timings entirely from the DT now and so things don't work with older DT nodes? >>> - reg: The CS line the peripheral is connected to >>> - - gpmc,device-width Width of the ONENAND device connected to the GPMC >>> + - gpmc,device-width: Width of the ONENAND device connected to the GPMC >>> in bytes. Must be 1 or 2. >>> >>> Optional properties: >>> >>> - - dma-channel: DMA Channel index >>> + - int-gpios: GPIO specifier for the INT pin. >>> >>> For inline partition table parsing (optional): >>> >>> @@ -35,6 +36,7 @@ Example for an OMAP3430 board: >>> #size-cells = <1>; >>> >>> onenand@0 { >>> + compatible = "ti,omap2-onenand"; >>> reg = <0 0 0>; /* CS0, offset 0 */ >>> gpmc,device-width = <2>; >>> -- cheers, -roger Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/