Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3184975imu; Fri, 18 Jan 2019 06:17:11 -0800 (PST) X-Google-Smtp-Source: ALg8bN6LIgMIUxuqMGwUyn7rDnaHFZPB1kDHosLkHuoS/J+CumLTtbYNM2RfRSCkxX9Dqf/FefvW X-Received: by 2002:a63:e5c:: with SMTP id 28mr10419686pgo.369.1547821031294; Fri, 18 Jan 2019 06:17:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547821031; cv=none; d=google.com; s=arc-20160816; b=KKNN0gLynN/6Vy5DUMPJJrXSrZaY5q1h2mp8S1Yy3m+VvC1mvlQuAt9/RUqPC1hSAR rU+UHEwfn2KJV5HQWTB9ts1wBDyRp2dM8kBdXKN1ukcHrVEnV9Yqss06w7JyAk6ro4Td xbKOq3Ty9f24bgioApQe+WaMXOn1XxAe9l9KOJ2/w1xwl+Woj4EsxgwPqUTNVwziM6PR ZiB6gkdY6BxVGG2o0zJ+/91OBi/MiivSGV/JNvNXKQVQCYxKxACsi9t0w1K60WUj9M3P nb15KbT/4RLjPLSvo+4D59WgtDu/Wnd6UJ48SA7RlWQKx6JU7C/Cp5xmZ0UjxwbFH3Aa FCzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:cc:to:subject:from:date:dkim-signature; bh=QkNNW/dI81cbH2kw0vmnMq2W7RjddJVYl94J+FIvKqk=; b=IsZpHRXtU6NHJpfu6vzhzcRP7xnLkkiSh036Ex0bSBa0su4sr2Li5400nvUeGP8rpD TyQSskN3RYV7+ETU1YXLjupZdhx+aEAWLRdWY46XJ9J+iVvNQB5FxCERJ4juSGxdd+pt CNtLV49oOov40bv+Lwvc2JGHHi5JXVNC8WSYifuOeNvQcZCLp+7iM/gUfZ8K42HfmDef zE+DIWB1Sx5PbyPbkAtefOP7Rcryhqmi1XLhioq1Vw8EthHGYnhPDlokaqAdez0xBGUp Fd/5vsQ5AFiWHULaJW4T6F1AQdJTHB3Ln3ttKvEYFQ01Bdyf8dk+ZVLaXadPvum2Tu3p 0U/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@crapouillou.net header.s=mail header.b=G579AefQ; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i62si4972538pfc.17.2019.01.18.06.16.52; Fri, 18 Jan 2019 06:17:11 -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; dkim=fail header.i=@crapouillou.net header.s=mail header.b=G579AefQ; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727434AbfAROPc (ORCPT + 99 others); Fri, 18 Jan 2019 09:15:32 -0500 Received: from outils.crapouillou.net ([89.234.176.41]:57680 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727020AbfAROPc (ORCPT ); Fri, 18 Jan 2019 09:15:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1547820929; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QkNNW/dI81cbH2kw0vmnMq2W7RjddJVYl94J+FIvKqk=; b=G579AefQ/4l83VXzQhtgVi4FJMr+Q1CzPAc4EzaHWHYyclT9q6pRHVoUBEeQmMTP9qcCBa koJ+LUmMymY1GRsN60EHSQwbiqYWyMF3IycGHiURZPOq8iCEXcZT3o+5A61ISS5wyKu6LM UFfJ/DtpucV9jxSqnmfNKAsCX568MDQ= Date: Fri, 18 Jan 2019 11:15:14 -0300 From: Paul Cercueil Subject: Re: [PATCH 1/8] MIPS: DTS: CI20: Set BCH clock to 200 MHz To: Boris Brezillon Cc: David Woodhouse , Brian Norris , Marek Vasut , Richard Weinberger , Rob Herring , Mark Rutland , Ralf Baechle , Paul Burton , James Hogan , Miquel Raynal , Harvey Hunt , linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org Message-Id: <1547820914.1909.1@crapouillou.net> In-Reply-To: <20190118090736.6f1283bd@bbrezillon> References: <20190118010634.27399-1-paul@crapouillou.net> <20190118090736.6f1283bd@bbrezillon> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Fri, Jan 18, 2019 at 5:07 AM, Boris Brezillon wrote: > Hi Paul, > > On Thu, 17 Jan 2019 22:06:27 -0300 > Paul Cercueil > > wrote: > >> This is currently done inside the jz4780-bch driver, but it really >> should be done here instead. >> > > I disagree with that statement. If it's a per-SoC constraint then you > can select the appropriate rate based on the compatible in the driver. > If the clock rate depends on the NAND chip it probably means it's used > to generate the RE/WE pulse and should depend on the NAND timings > passed to ->setup_data_interface(). In either case, this should not be > specified in the DT. Alright, I'll drop the patch. > Regards, > > Boris > >> Signed-off-by: Paul Cercueil > > >> --- >> arch/mips/boot/dts/ingenic/ci20.dts | 3 +++ >> 1 file changed, 3 insertions(+) >> >> diff --git a/arch/mips/boot/dts/ingenic/ci20.dts >> b/arch/mips/boot/dts/ingenic/ci20.dts >> index 50cff3cbcc6d..aa892ec54d0a 100644 >> --- a/arch/mips/boot/dts/ingenic/ci20.dts >> +++ b/arch/mips/boot/dts/ingenic/ci20.dts >> @@ -111,6 +111,9 @@ >> pinctrl-names = "default"; >> pinctrl-0 = <&pins_nemc>; >> >> + assigned-clocks = <&cgu JZ4780_CLK_BCH>; >> + assigned-clock-rates = <200000000>; >> + >> nand@1 { >> reg = <1>; >> >