Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp924575imu; Tue, 20 Nov 2018 08:59:12 -0800 (PST) X-Google-Smtp-Source: AJdET5eWflyY+4cSh/fEZyCeCExFqPL7QzYkEG9fBMK72tbHNhMz+iD5PMb+/PU8VpToTtLa3EPO X-Received: by 2002:a62:7dcb:: with SMTP id y194-v6mr2865951pfc.215.1542733152271; Tue, 20 Nov 2018 08:59:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542733152; cv=none; d=google.com; s=arc-20160816; b=tVWjlgDTWZXSF1GUKiX5Sr9dXXlmVkgmyDhkzFbypcff50DWpSfW8K4arkRIrx5PUb nFN2BchIiqHyFWq68KyTlJRw5WMVRu0OtkELj9HqIsJ6kHMQnZ8Kvm3a/Ly9yLf17uE7 w00Y/+HaeY9497nCpDvl9wxkwd0T8d7mV9TJZ5A8ZRTY5X3sfFqpGit70JWRFzLXuZMy vHCkUFDBXM8mFDV08zVPKCISlyFSi6axF18R/765YuEsR3zRYYOeNUv5tLhfgf13oC3B sqkGGpkXilFpN0dW7ehiUcAs79+dfPYz6jZm0diLmC+mGIVJ4xnO/l4DaTtSomeFB/m1 6xbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=PQtXbiUxnj9lxKfzPmiU/8R4P/UiXSZCFvt2FxxOm9c=; b=r0rSNI/rKnvAJEERVHRgKqVLIKXCgcmwvjLsMZz2W6BeZPSBpyfCT60qEVoBanDkDV mxZVKcU+6lBCDysrK4/J42C3odmahVcnb6wADaaf4JnCFL2z2WpqzhW2zaCiNfjQRfh+ VdJNLcQMkl7hJJSHZyH1OiG4ejzSkmld3FSUoFB0/DT0SlKlfsAjR8vKDhkdyavUIgMQ VnrVcHxZTc4hKLFD5zGeXU4uNI17QkD3FetHe3U27eqm/2jYXf5l3X4ED9vP/eFivrOL 9qi4K0mSVr1ElMatEO9EC53S968wsqvXKngRtldWn85rWSEJJxl6lJDxdUe4oIMy4Gdn TYsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ePl5YJim; 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 37si40822667pgw.590.2018.11.20.08.58.56; Tue, 20 Nov 2018 08:59:12 -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=ePl5YJim; 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 S1730331AbeKUD2D (ORCPT + 99 others); Tue, 20 Nov 2018 22:28:03 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:40847 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729299AbeKUD2D (ORCPT ); Tue, 20 Nov 2018 22:28:03 -0500 Received: by mail-wr1-f66.google.com with SMTP id p4so2737705wrt.7; Tue, 20 Nov 2018 08:57:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=PQtXbiUxnj9lxKfzPmiU/8R4P/UiXSZCFvt2FxxOm9c=; b=ePl5YJimxYINQ5HZhB1NeC9td+O0luVkwJDmMomGR/glwWMFXYm/yMOGBiUvSTSsYJ 3byjzEjjfPOzg3lLqPDhvEn4aj3pM61rfrTtoTIe4pHDLY31T+nf9DVt+59AZTdn0MVC b0T+XxgSmfpLLZAJMaKIq/qtyqZpGnoqBTz3VeZY/VPMSGMxnlOUwkQvme/mZRBytH4O +1KUdl7e5Ka/IbW/m27FskmiNPej3aA32DQhcL6eqtS4WKlXeqbwEi7VP410w/5eURDX KlNay3a10Zilfze/VpPyiJmDxNzVT04fo4mWGo5hRhv9HMy/NvIcSw5NGzU7SKuOGyNf rb6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=PQtXbiUxnj9lxKfzPmiU/8R4P/UiXSZCFvt2FxxOm9c=; b=nHiuPvIzlR+0OBZQbCW0cLU/mlkkfo0d5sW3Tgl/K2rOU4DCApmU/mkAQ60QhnIMM6 Uzj+ms+e202rmOpUsJ1MBYaJKwYq0i44J8JXj4zmlvC1hkInblvcJgLSE4WrwrFPOhqH oW2dRJFujjYMJGVxsvwJCSJUIc3rwKuT6Z2/Srj2I1BkHGutGwvjTzt2SakAcgITDTfq CZovzV98OX5hTZX9+aigOwpdMKa4XINKb19ZEjjfzP3u4YfvksipEwO2vsexl4eTccMB NR6nbxZbAo0+h9n6tuSwp4QXsZdNtJZVOUl6oat0gLxR3o6ORI2cWk7uKOkM3ph/Gnw/ +7hg== X-Gm-Message-State: AA+aEWYPqOxM+6eCRHawKRm4GkZUljMFWOlwmn6wo01obiM4K/XoBeQX K4OuYrQ3oJFucMhvnExnLNk= X-Received: by 2002:adf:ba8b:: with SMTP id p11-v6mr2834369wrg.203.1542733075333; Tue, 20 Nov 2018 08:57:55 -0800 (PST) Received: from localhost.localdomain (static-css-cqn-143221.business.bouyguestelecom.com. [176.149.143.221]) by smtp.gmail.com with ESMTPSA id 6-v6sm35287504wmg.19.2018.11.20.08.57.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Nov 2018 08:57:54 -0800 (PST) From: Romain Izard To: Nicolas Ferre , Alexandre Belloni , Tudor Ambarus Cc: Rob Herring , Mark Rutland , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Romain Izard Subject: [PATCH] ARM: dts: at91: sama5d2: use the divided clock for SMC Date: Tue, 20 Nov 2018 17:57:37 +0100 Message-Id: <20181120165737.4998-1-romain.izard.pro@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 the 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 with 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 = <&mck>; + clocks = <&h32ck>; status = "disabled"; nand_controller: nand-controller { -- 2.17.1