From patchwork Wed Dec 23 16:55:08 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathias Kresin X-Patchwork-Id: 560640 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 463D0140C04 for ; Thu, 24 Dec 2015 03:56:02 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=kresin-me.20150623.gappssmtp.com header.i=@kresin-me.20150623.gappssmtp.com header.b=fi7h2H9L; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 50840283E0D; Wed, 23 Dec 2015 17:55:31 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id EDDA4281070 for ; Wed, 23 Dec 2015 17:54:53 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .kresin. - helo: .mail-wm0-f46.google. - helo-domain: .google.) FROM/MX_MATCHES_NOT_HELO(DOMAIN)=1; rate: -5.5 Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Wed, 23 Dec 2015 17:54:52 +0100 (CET) Received: by mail-wm0-f46.google.com with SMTP id p187so155827577wmp.0 for ; Wed, 23 Dec 2015 08:55:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kresin-me.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id; bh=qU4mnKrAzNVoHqhYwdGT+6XhLqcUWubjTmegCLdR7/A=; b=fi7h2H9Lp5caoZo82Tnm8JSAjDzcR6aQKugkTVeVcXKWRV+0d49NANg79lACfF6fIF j3MhdoUy2AdR4Zx7FDjlvCDT4fLEM1TG596bBTQ06GjWhEeZSdQiGheksMT5qIJyFvRW P1ekY3IbcqqN0d9pqfgu+d+StWkwoi6IpbAGYLgHW9gqgdwYJ6RMad4Ahidc8mbSnm1s XqhIlKZO4ymC/oFItcgTD1ZTa3kG6KD0jT1GkIWqld+8DVtStJNNHXthg/9B2Y1EJ3Fe iEmhBHhMxTTcW+r6OAgnM6dnu5Dt/0RZ75Sdul5zFsK4/KoUvTd6tgXd+DcjRb9BiIoP n3mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=qU4mnKrAzNVoHqhYwdGT+6XhLqcUWubjTmegCLdR7/A=; b=hDyK9tCnVkEQSHmRABRAT55AUXuSl9gxM/i6uIAxw1+ynLLfdTW+QL9KNSPuqByp6/ eZhKzRgGK7X7LjBDytFt/sPY8Uh7YyactG8i45sPmTNjXlQgFLNDEwCBF4SLoTIvHr9v bzSJFlpwE1LdgpnYgYLdYXzq4FrFjAILHtjnS5FemXatKP6rf3lLgEwRNawgqrAU5oXH Z7RXI5b1xA+7sQIJ3bHtYXR+VStm8zZOF31sQDRMa5Zse4eKagw3lfZ/GJCdbMbrdn4a hHQ2stm7NJszIyrqMf/DAUscIku5wlk+rMqH44NonKyOOd+Uz0DuAngmmzSZpeHzGZxK OPLA== X-Gm-Message-State: ALoCoQkWcXHASQ29y48t9+fghj4Sq0zlo3OG69qn+ARlUTEcLY+vZ1szYnyAN+GBLdf/VIDS4UkMR45pURJEkzjRiSwMvS7y9g== X-Received: by 10.194.87.170 with SMTP id az10mr34601856wjb.144.1450889712565; Wed, 23 Dec 2015 08:55:12 -0800 (PST) Received: from desktop.wvd.kresin.me (p54AF4BC9.dip0.t-ipconnect.de. [84.175.75.201]) by smtp.gmail.com with ESMTPSA id pn6sm38140107wjb.15.2015.12.23.08.55.11 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 23 Dec 2015 08:55:12 -0800 (PST) From: Mathias Kresin To: openwrt-devel@lists.openwrt.org Date: Wed, 23 Dec 2015 17:55:08 +0100 Message-Id: <1450889708-2727-1-git-send-email-openwrt@kresin.me> X-Mailer: git-send-email 1.9.1 Subject: [OpenWrt-Devel] [PATCH] lantiq: TDW89x0 - increase spi frequency X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" Use the same max spi frequency as set in u-boot. According to the datasheets, the Q64-104HIP as well as the Winbond 25Q64FVSIG support spi frequencies up to 50 MHz. During my tests, the Q64-104HIP couldn't be recognized/initialized if the frequency was > 40MHz. Both chips do support fast read as well. While touching the dts file, I fixed the dtc compiler warnings. Signed-off-by: Mathias Kresin --- target/linux/lantiq/dts/TDW89X0.dtsi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/target/linux/lantiq/dts/TDW89X0.dtsi b/target/linux/lantiq/dts/TDW89X0.dtsi index b2dbb21..734f618 100644 --- a/target/linux/lantiq/dts/TDW89X0.dtsi +++ b/target/linux/lantiq/dts/TDW89X0.dtsi @@ -27,12 +27,14 @@ interrupt-parent = <&icu0>; interrupts = <22 23 24>; #address-cells = <1>; + #size-cells = <1>; m25p80@0 { #address-cells = <1>; #size-cells = <1>; compatible = "jedec,spi-nor"; - reg = <3>; - spi-max-frequency = <20000000>; + reg = <3 0>; + spi-max-frequency = <33250000>; + m25p,fast-read; partition@0 { reg = <0x0 0x20000>;