From patchwork Tue Nov 20 16:57:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Izard X-Patchwork-Id: 10690883 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8254F13AD for ; Tue, 20 Nov 2018 17:04:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6B59C2A8DE for ; Tue, 20 Nov 2018 17:04:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5F8752A94B; Tue, 20 Nov 2018 17:04:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 14B632A8DE for ; Tue, 20 Nov 2018 17:04:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=dq2ffPQ+QDBamplsyQl+layAmt9rhCntHC7ik9tiPws=; b=X2G a8eDu6NNRi3zgcm2jUC0MWqXbxqMidT5p3cr4VpopVFdLCcH/FEml8LJ5x5GtsGebXfJtO7tmalo3 IOFZRObqb2zzEhSdtAH3BvrbHjkfJA7MXkdCcEdUn9+jFHg5Rc9J8xZAEMozkpSXDUT+DSktsP49R c7HNUie3YWSuEfEGdIqaO2oKUxflqB9ABmVtDJ0s42DVfnJCKPB4XWrbwtFwaLvwqSAyLYt1ZVtHe XAbTGJAIDjo08xFVvRDKj//sSYPORbxCaRGfd9WRGROCClk1FOStdW3EScuzZDJipvdI8/Xw0IS4l rOPQZTgJukcYkR5ZoI9VUCV6ghfYxVg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gP9Rj-00080F-7e; Tue, 20 Nov 2018 17:04:19 +0000 Received: from mail-wr1-f68.google.com ([209.85.221.68]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gP9Od-0007on-HT for linux-arm-kernel@lists.infradead.org; Tue, 20 Nov 2018 17:02:03 +0000 Received: by mail-wr1-f68.google.com with SMTP id q18so2733400wrx.9 for ; Tue, 20 Nov 2018 08:58: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=UvBu7gcjLeAP1eoEZaz06rrLy6OU21MoK/baVcVoINfhvnKnbrAhmjLIDeV4wM0z5D Za6Ba0cslooUBQxXQWk/4Ev4d9Xc61joGKD/hiFZdSYRqdki0+o5fqSkH0/UPguqa2NR ghY+ObZQrLFfL5ry4xJfLGhSQmTrf3NobRd+IPBRS6/3qu/I7SxZtWLLjGQzuB3jFidH QfXUlYgjBAh1pUCdDKBfpN0P1AYQiQyIa3WeqRQ4WNenHsCNS6T/RZBgqbtiNgh24p+4 R8YKR5K/Uo6jfQTJU8TIJlSs6fcQ20air1fxtsS7nee5aXMuaT146wOG27sEK8jWxxUZ phZw== X-Gm-Message-State: AA+aEWY1P0IAfw66JMTz1L4N9VUl9hQpUtXdfVsLFXbkLlZ3kUVCDgQm jdV5IjAF6miMdAGR79VORzo= X-Google-Smtp-Source: AFSGD/X/RMRMcPcHCk4XFXuf0r+8ALKrsPBPyx2nePEhqtXor1REyIU+z08BAse/IUaLgIW77TfMuA== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181120_090108_029696_DAD40A1E X-CRM114-Status: GOOD ( 15.83 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , Romain Izard , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 {