Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1130796imu; Tue, 20 Nov 2018 12:12:25 -0800 (PST) X-Google-Smtp-Source: AJdET5dHEl3nBGRao9N/RwerNVYiDnrZ1C5wSINAQ78XekhUkf4cRoRnY+EV+PTpPA/cRt/TF632 X-Received: by 2002:a62:1f9d:: with SMTP id l29mr3691179pfj.14.1542744744960; Tue, 20 Nov 2018 12:12:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542744744; cv=none; d=google.com; s=arc-20160816; b=ww+ZjigtUhhPQoRDd1jfRFCykKLUSkl0mfaMrs5efgENs4M+rIgjLphSTtaLV2XMXc h3m210qv0HnZ1G76+x2SPyquz5n922o2CQLWi29w05p/BqOixHBi9f3myqcOxdxfJG2P MuPkkhcoCFpHu0fMLHF0b+8bmH0wDdhybeXxp3W5c4ORIS8H2f2jQTaEWdJVGw7cCEuc 5lVoZxLHd5Nf2F0bZOSJRSnNsqAwM4sKpKzbT2d6rEjLu3YGX5cebmsWNwHTs/J9cdE7 DzRgWghUUx5fpiB84k9/BrXhma1nx/lNL33fWjoqAXGMX1A6kBKqrppLfNNllwlkD7GG zatg== 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 :dkim-signature; bh=3bK/y037BwoZghWmHEwcAdTqxrK18NmNqRW3guyt6PM=; b=Q0AIHCVNFQGK8vHzmT2onuwrU+0vFPx6Op7Fpez5OzMX4QPs0+/R7LLZhuisJ4FXax mUCkqwo01X8ZaKJ0niqILlrwytuwZe0+cegTd2ziyIkpzkDemR1+knl+NWc+nzHCMrni lbX6QjVY8c0hl4tj4FC/1pk88awNDU67auCZX6BfbiGynWZaWT9dnUzszc64knmu2mEU su0Vb9j1uVRdekJTLDfrE+X1iRbWXoNCzRxNDa6lzEiHPM44rkXDCrHBnpPexvydpsLK 3Y40NvfNXsU6pvrOyfTcI1w3tKmJfyVuNh5LIhF72GISS5d8Yg8jBPp3oRwHihffvFm0 qVEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TGuD8KkQ; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 18si41387226pgo.331.2018.11.20.12.12.08; Tue, 20 Nov 2018 12:12:24 -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=pass header.i=@gmail.com header.s=20161025 header.b=TGuD8KkQ; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727551AbeKUEcI (ORCPT + 99 others); Tue, 20 Nov 2018 23:32:08 -0500 Received: from mail-qt1-f194.google.com ([209.85.160.194]:35192 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726062AbeKUEcI (ORCPT ); Tue, 20 Nov 2018 23:32:08 -0500 Received: by mail-qt1-f194.google.com with SMTP id v11so985090qtc.2 for ; Tue, 20 Nov 2018 10:01:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=3bK/y037BwoZghWmHEwcAdTqxrK18NmNqRW3guyt6PM=; b=TGuD8KkQ/2k4DA1nLkBUtTEgijKCsoCyILAxOFB1Qg6sffVaqqT55AIfCST2FZfCQI h7sQgU3xWrQh1qlbYflJ5uz3Lggh4hmlpxuDQZbdJtAhhKoxLXaqxPTaBQvBjRGe6ofr tYsBdgtebZJx23SiaB9Rcb4U8msaqcfreF0qHO5oQ8tXT3I5RbZem4kSrdz5JEE1I1Np wuVWwPzbRavSBh6xX4w/0FbM0Kw4H3CQpxLFtq0Nvyf8jrg8b8Hjnf2LYEGdmg4A/56A A5573sm+zxmkl61CS8PA9f2sThYPHrYFsvZ8L8pUV+39/0uutMV0LS2zqSYI+/XW2e1q 1gSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=3bK/y037BwoZghWmHEwcAdTqxrK18NmNqRW3guyt6PM=; b=COwiXprbKUWTGXnNYy1auzmyZzgIbN+Mvr5jSHvvEnemFuyHcaW0FPHoqHFxoPccsv EtY5+kQwTxhcb71f/uI/kh9VsBmOVJhAkOwHVl2o/yq8PFi+m54YdF9KBjo7bXz62ti3 XA0+2XZcEVT/GvJD7l9YouXyHmJ20TDxOtE6d8NZ1e1UAbgRoZOK0ijuVz/i2kO3DtEi TW1kIzWNiXGmTfa99IxCbYl6C2mbZli7IL+RBExb0fmRV3Q2eYdglwyI4YFczkItgwmf RNDLIjmQV59mKAmxorCbkwdiXB9nbggtKvTCrFdySKD0iou0rJ44pdQeDtI2Owg0Hdd6 HwEg== X-Gm-Message-State: AA+aEWYBw31/W0goL2DrTJL9iL1I7WxwuF5UN4Y+89po8SmKAXzxJIel z+/HkZ4qP1pDCa8q8MxbXEq0w5wj91Jq7/iI62SnbQ== X-Received: by 2002:ad4:5282:: with SMTP id v2mr2875522qvr.195.1542736904532; Tue, 20 Nov 2018 10:01:44 -0800 (PST) MIME-Version: 1.0 References: <20181120165737.4998-1-romain.izard.pro@gmail.com> <20181120171612.GF8367@piout.net> In-Reply-To: <20181120171612.GF8367@piout.net> From: Romain Izard Date: Tue, 20 Nov 2018 19:01:32 +0100 Message-ID: Subject: Re: [PATCH] ARM: dts: at91: sama5d2: use the divided clock for SMC To: Alexandre Belloni Cc: Nicolas Ferre , Tudor Ambarus , Rob Herring , mark.rutland@arm.com, linux-arm-kernel , devicetree@vger.kernel.org, LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le mar. 20 nov. 2018 =C3=A0 18:16, Alexandre Belloni a =C3=A9crit : > > Hello Romain, > > On 20/11/2018 17:57:37+0100, Romain Izard wrote: > > The SAMA5D2 is different from SAMA5D3 and SAMA5D4, as there are two > > different clocks for the peripherals in the SoC. The Static Memory > > controller is connected to the divided master clock. > > > > Unfortunately, the device tree does not correctly show this and uses th= e > > master clock directly. This clock is then used by the code for the NAND > > controller to calculate the timings for the controller, and we end up w= ith > > slow NAND Flash access. > > > > Fix the device tree, and the performance of Flash access is improved. > > > > Signed-off-by: Romain Izard > > --- > > arch/arm/boot/dts/sama5d2.dtsi | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/arch/arm/boot/dts/sama5d2.dtsi b/arch/arm/boot/dts/sama5d2= .dtsi > > index 61f68e5c48e9..b405992eb601 100644 > > --- a/arch/arm/boot/dts/sama5d2.dtsi > > +++ b/arch/arm/boot/dts/sama5d2.dtsi > > @@ -308,7 +308,7 @@ > > 0x1 0x0 0x60000000 0x10000000 > > 0x2 0x0 0x70000000 0x10000000 > > 0x3 0x0 0x80000000 0x10000000>; > > - clocks =3D <&mck>; > > + clocks =3D <&h32ck>; > > You will have to rebase on top of at91-dt. And if I'm not mistaken, this > line should be: > > + clocks =3D <&pmc PMC_TYPE_CORE PMC_MCK2>; > > > status =3D "disabled"; > > > > nand_controller: nand-controller { I guess you're right but this will only reach mainline in 4.21. I get slow flash access with 4.19 as well... After a second look, it looks like the SAMA5D4 is affected too. Best regards, --=20 Romain Izard