Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3987627imm; Mon, 25 Jun 2018 07:56:34 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJr+vD2JkNkZO4+MPist1Hiku8h3MuJps1RWhHHiFDbYJ081UCyVqRwxBhRE1vUqTiFbyPr X-Received: by 2002:a63:2404:: with SMTP id k4-v6mr10981740pgk.191.1529938594469; Mon, 25 Jun 2018 07:56:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529938594; cv=none; d=google.com; s=arc-20160816; b=YpBl/Kk6rfEd7vTuxO+QZziuHyZhHCaEBCJDqI+lHx2cskQ52NMOZs7ytqBwK7JOaC txHZUJSM4GDrxDFbA7e9fYyGnGB183jYRkyrxAXKC7YF3DZtOnMdGyPtloBVfOzLjN/R x/8PucFsl3heLOhaPqib82yIcXQIUSN1LdbeZ9I4Rgr/SDFEzRR++ZYnbngjNtwIcK6L fQSeoJsNxmPpKOewQbEJvHr7poGTKFH6e/uZgQ1oPn+7rkGcUhjmlCO8ukhiLs3Qw9Gy hUrgV7yAB9usgm7IuCTtIySem+uY9vzJ1RngZ8xFL5/hBL68QHIuuAQvdIknwOD4oNiE t2pQ== 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=+g3T3iXDflqZn0I2FLaZntW1PqobVT/Ftc4xJx2AYjY=; b=UyI8NvxMZPH9a71UodIGxPwN8bp0QYMWF9pURdT8E+u6HQzC3fcsq4DL/2WNqZF7E1 GvXM/mCocv6bLInqBx9xah7FdYDJls4xRIitbGerQXEZAuV4FMd1BjYshHCOd/CZ1zpS 0JQ49IW3R49U4C7W0UC2GmeE927rL7c+SGp7o7VScLQiyW0qPMyu6tCI5BSbnPwYMamy C5MNlZ4UEj75XnH0fenuQCPCXnewmbJFMdIQQTLZLsUNYZ66Rz2VabmJ1fT83K0Nr5TX 9YgBWxJFlwbrQQd0XDV4oTwNz1FJd7/99WfFcprxip6n+i+dcMv1AMGFCjRqFiSLx8Wb sGoQ== 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 f4-v6si14309260plf.383.2018.06.25.07.56.20; Mon, 25 Jun 2018 07:56:34 -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 S934559AbeFYOzT (ORCPT + 99 others); Mon, 25 Jun 2018 10:55:19 -0400 Received: from mail.bootlin.com ([62.4.15.54]:55367 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934397AbeFYOzS (ORCPT ); Mon, 25 Jun 2018 10:55:18 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 7CE27203D9; Mon, 25 Jun 2018 16:55:16 +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 (AAubervilliers-681-1-87-188.w90-88.abo.wanadoo.fr [90.88.29.188]) by mail.bootlin.com (Postfix) with ESMTPSA id 1B01B20834; Mon, 25 Jun 2018 16:55:06 +0200 (CEST) Date: Mon, 25 Jun 2018 16:55:06 +0200 From: Boris Brezillon To: Dinh Nguyen Cc: Richard Weinberger , Masahiro Yamada , DTML , Linux Kernel Mailing List , linux-mtd , Rob Herring , Mark Rutland , Marek =?UTF-8?B?VmHFoXV0?= , Brian Norris , David Woodhouse , Miquel Raynal Subject: Re: [PATCH] arm: dts: socfpga: denali needs nand_x_clk too Message-ID: <20180625165506.484e025f@bbrezillon> In-Reply-To: References: <20180619120719.26921-1-richard@nod.at> <3320422.EJ8D6C0VHL@blindfold> 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 Mon, 25 Jun 2018 09:50:18 -0500 Dinh Nguyen wrote: > On 06/22/2018 10:58 AM, Richard Weinberger wrote: > > Masahiro, > > > > Am Freitag, 22. Juni 2018, 16:37:21 CEST schrieb Masahiro Yamada: > >> Hi Richard, > >> > >> > >> 2018-06-19 21:07 GMT+09:00 Richard Weinberger : > >>> The denali NAND flash controller needs at least two clocks to operate, > >>> nand_clk and nand_x_clk. > >>> Since 1bb88666775e ("mtd: nand: denali: handle timing parameters by > >>> setup_data_interface()") nand_x_clk is used to derive timing settings. > >>> > >>> Signed-off-by: Richard Weinberger > >>> --- > >>> Strictly speaking denali needs a ecc_clk too, but AFAIK such a clock > >>> is not present on this SoC. > >>> But my SoCFPGA knowledge is very limited. > >>> > >>> Thanks, > >>> //richard > >>> --- > >>> arch/arm/boot/dts/socfpga.dtsi | 3 ++- > >>> 1 file changed, 2 insertions(+), 1 deletion(-) > >>> > >>> diff --git a/arch/arm/boot/dts/socfpga.dtsi b/arch/arm/boot/dts/socfpga.dtsi > >>> index 486d4e7433ed..562f7b375bbd 100644 > >>> --- a/arch/arm/boot/dts/socfpga.dtsi > >>> +++ b/arch/arm/boot/dts/socfpga.dtsi > >>> @@ -754,7 +754,8 @@ > >>> reg-names = "nand_data", "denali_reg"; > >>> interrupts = <0x0 0x90 0x4>; > >>> dma-mask = <0xffffffff>; > >>> - clocks = <&nand_clk>; > >>> + clocks = <&nand_clk>, <&nand_x_clk>; > >>> + clock-names = "nand", "nand_x"; > >> > >> > >> IMHO, this should be > >> > >> clocks = <&nand_clk>, <&nand_x_clk>, <&nand_x_clk>; > >> clock-names = "nand", "nand_x", "ecc"; > > No, it should be just the nand_x and ecc. > > There's already a patch to use the nand_x_clk and not the nand_clk. > > https://git.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux.git/commit/?h=socfpga_for_next_v4.19_fixes_v1&id=1709ab58eb79b19bceb2287d111bf1bd2df1cf6d Hm, are you sure this is accurate? I might be wrong but I find it weird that the denali NAND controller IP has been adapted by Xilinx to only take one clk. Isn't that the same clk is feeding all clk inputs of the denali block?