Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp532883imu; Fri, 16 Nov 2018 06:23:44 -0800 (PST) X-Google-Smtp-Source: AJdET5chmxfI4gk4QGu8+dQVCk1DCmBJxghxdbW585hiECUEbO6RfFPr0gJ0sbwqhAMghj6GLNE1 X-Received: by 2002:a63:801:: with SMTP id 1mr9983172pgi.275.1542378224231; Fri, 16 Nov 2018 06:23:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542378224; cv=none; d=google.com; s=arc-20160816; b=LOQXh9qEhAaAjLLFRxDyDlgUkg6eDLzUV73c9oU9viljv6VU1nPMsrXBij/enV/tUW vqOxLCFzuJc1UvGfdeZPPKXIihB6VxsMsnVcWuyueKHm/g+yhhT0G3GpQ3cIlzO15Niw S1Yf5/ipb0Pi7jCNyM7WdUxJ0cyzDqZ5Ijg2HlPdIdp8Xl8h8A5qrYU3BuQ6gDUCo1rw plTMi1Zu7eT64LmmUzhaO5RlpME6hBJbOPfZraQNIt5ixsebyWnMzdyjnTyv/jk0K38E 3yMRzNPMx44gaF9En5QH6LcUM55IYlelkzDOmkzjNoquumkiVh0p94ceJBKBwWB473ZU e2zw== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=5cXchRVEwvNvG8vjkXuUsdv4IbOz+gXN0lob2nTKxus=; b=KNEblI0R1sqfwX77xO931HX9qsztazpqxD0UNCyhXy7y3K+azs6fkrbG7KcblHP68y yLEvYGGrDYBiwqWHCWn7ySj1/0bF3s2PDbylIZszS3YeMFI9l9Oz5sFGt3OXFL39i3Dj Y/HafGzgWfOBfRB+j76zAMhl8gxejousjmU9Qh/ZZj0+QrgAPgTctUlR6jn3ylFS9aHZ owZndSAuSW/kVlq5COSn03ovDPRJmbFyDamGeM1MUAZQDgq+MOZbN/8Iao9pxEasdTg9 /xk+ZtcJNg7YyZdG679E3O48SVrjcHAB27axpRB/UoZprXyL/+MN4qYfxlIrDter7b0C 0OiQ== 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 g32si30732794pgg.400.2018.11.16.06.23.27; Fri, 16 Nov 2018 06:23:44 -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; 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 S1728354AbeKQAfX convert rfc822-to-8bit (ORCPT + 99 others); Fri, 16 Nov 2018 19:35:23 -0500 Received: from martinlund.org ([173.255.130.145]:51037 "EHLO slmp-550-86.slc.westdc.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727999AbeKQAfX (ORCPT ); Fri, 16 Nov 2018 19:35:23 -0500 Received: from mail-ot1-f45.google.com ([209.85.210.45]:36607) by slmp-550-86.slc.westdc.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1gNf1D-00ECRf-NV for linux-kernel@vger.kernel.org; Fri, 16 Nov 2018 07:22:47 -0700 Received: by mail-ot1-f45.google.com with SMTP id k98so21454399otk.3 for ; Fri, 16 Nov 2018 06:22:47 -0800 (PST) X-Gm-Message-State: AGRZ1gJxxJmJTQfJJr2Hx/RQFBEwDGhpy/PrE0vh+9CfyvCucuSsvGjC A+gfGDOLyOAWDYH6u31eNXVR8jdhqKRf8B1j4JI= X-Received: by 2002:a9d:599a:: with SMTP id u26mr6778004oth.11.1542378167289; Fri, 16 Nov 2018 06:22:47 -0800 (PST) MIME-Version: 1.0 References: <1541739641-17789-1-git-send-email-naga.sureshkumar.relli@xilinx.com> <1541739641-17789-2-git-send-email-naga.sureshkumar.relli@xilinx.com> <6ce1726a-f24d-17b8-d839-0a51c424a850@xilinx.com> In-Reply-To: From: Martin Lund Date: Fri, 16 Nov 2018 15:22:35 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [LINUX PATCH v12 1/3] dt-bindings: mtd: arasan: Add device tree binding documentation To: nagasure@xilinx.com Cc: michals@xilinx.com, Martin Lund , naga sureshkumar , boris.brezillon@bootlin.com, richard@nod.at, linux-kernel@vger.kernel.org, =?UTF-8?B?TWFyZWsgVmHFoXV0?= , linux-mtd@lists.infradead.org, miquel.raynal@bootlin.com, Brian Norris , David Woodhouse , robh@kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - slmp-550-86.slc.westdc.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - keep-it-simple.com X-Get-Message-Sender-Via: slmp-550-86.slc.westdc.net: authenticated_id: martin.lund+keep-it-simple.com/only user confirmed/virtual account not confirmed X-Authenticated-Sender: slmp-550-86.slc.westdc.net: martin.lund@keep-it-simple.com X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Yes, the clk_ prefix is kind of unnecessary. Though, all the clock-names in zynqmp.dtsi are still using the prefix - hopefully that will eventually be cleaned out. Either way, we just need to make sure the device tree doc clock-names are consistent with whatever is used by the driver. Br, Martin On Fri, Nov 16, 2018 at 2:50 PM Naga Sureshkumar Relli wrote: > > Hi, > > > -----Original Message----- > > From: Michal Simek [mailto:michal.simek@xilinx.com] > > Sent: Friday, November 16, 2018 6:04 PM > > To: Martin Lund ; Naga Sureshkumar Relli > > > > Cc: boris.brezillon@bootlin.com; miquel.raynal@bootlin.com; richard@nod.at; David > > Woodhouse ; Brian Norris ; Marek > > VaĊĦut ; naga sureshkumar ; linux- > > mtd@lists.infradead.org; linux-kernel@vger.kernel.org; robh@kernel.org > > Subject: Re: [LINUX PATCH v12 1/3] dt-bindings: mtd: arasan: Add device tree binding > > documentation > > > > On 16. 11. 18 12:50, Martin Lund wrote: > > > Hi Naga, > > > > > > I've been working on running up the latest kernel (v4.20-rc2) on our > > > custom Xilinx hw board so that I can test the v12 version of your > > > Arasan nand driver. > > > > > > I've managed to get the driver successfully up and running and ready > > > for testing with a Micron MT29F64G08AFAAAWP device. However, setting > > > it up I've found a few inaccuracies in the documentation of the device > > > tree bindings. > > > > > > This is the device configuration that ended up working for me with > > > linux v4.20-rc2: > > > > > > nfc: nand@ff100000 { > > > compatible = "xlnx,zynqmp-nand", "arasan,nfc-v3p10"; > > > reg = <0x0 0xff100000 0x0 0x1000>; > > > clock-names = "clk_sys", "clk_flash"; > > > clocks = <&clk200>, <&clk100>; > > > interrupt-parent = <&gic>; > > > interrupts = <0 14 4>; > > > #address-cells = <1>; > > > #size-cells = <0>; > > > > > > nand@0 { > > > reg = <0>; > > > nand-ecc-mode = "hw"; > > > }; > > > }; > > > > > > Compared with the example you will notice that "clock-name" should be > > > "clock-names". reg was missing a "0x0". > > > > clock-names and even that names - you are right it is not correct and should be fixed. > Clock-names I will change from "clock-name" to "clock-names". > But I got some review comments previously, to use "sys" instead of "clk_sys" and "flash" instead of "clk_flash". > And I have to change this in driver. > I will update that. > > Thanks, > Naga Sureshkumar Relli > > > > > Missing 0x0 in reg doesn't matter because it depends on address/size cells. > > > > > I think it is helpful to provide a real-world working example, so you > > > might also consider changing the example "clocks" configuration to > > > clk200/clk100 since there is no clk_misc among the clock sources of > > > any of the xilinx zynqmp board device tree configurations. > > > > Real example is the best normally just c&p from existing dts is the way to go. > > But in connection to clocks it doesn't matter what exactly should be there and I don't think > > there is any consistency in that. Hopefully this will be removed by yaml conversion. > > > > Thanks, > > Michal > > ______________________________________________________ > Linux MTD discussion mailing list > http://lists.infradead.org/mailman/listinfo/linux-mtd/