From patchwork Thu Feb 9 00:43:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nobuhiro Iwamatsu X-Patchwork-Id: 9563843 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0231E60234 for ; Thu, 9 Feb 2017 00:45:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 78E4020587 for ; Thu, 9 Feb 2017 00:45:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6CBB128496; Thu, 9 Feb 2017 00:45:37 +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=-1.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_SORBS_SPAM,T_DKIM_INVALID autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 E9AEC20587 for ; Thu, 9 Feb 2017 00:45:34 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cbcrQ-0001Lk-7U; Thu, 09 Feb 2017 00:45:20 +0000 Received: from mail-pg0-f65.google.com ([74.125.83.65]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cbcrL-00006d-Oe for linux-arm-kernel@lists.infradead.org; Thu, 09 Feb 2017 00:45:17 +0000 Received: by mail-pg0-f65.google.com with SMTP id 194so16223579pgd.0 for ; Wed, 08 Feb 2017 16:44:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nigauri-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=0YlPPfjc2yCY5A0TT1PeNmXgF67E0onRmfMh6cV1Cbg=; b=vxHRhOrD2g21eff5XoORsbmefQGRw1mU4/LVUmwLbNjwEwPUm9LMPaKSbB4fi7byqC U4r5vXXmYCuYTPLPi+Mep/8t2WXgyMulYVN8xdhbA9QUmWUdIUfndX1tFE+es/IXAved zmKBgmvYjAP/1ESbxQxHk9HIYDVItc9KqFFP7E3VRH9wfWjZ8A5btf5tHxQ2rhyvhSei UYiCxDTZbY99+LoTFoLITEP22TFquJqdPTYEn7kPnbN5qAurEgh/C1c7qwLwnndZ+GPZ 3579tRShwJWLUWm4+HoR3/iydO7dhHvIzRmsb1xePuU9mDdlbHlNIAUknygENMCBKhEW WOKw== 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=0YlPPfjc2yCY5A0TT1PeNmXgF67E0onRmfMh6cV1Cbg=; b=XDd7TGsejIm/yNHB0D+whOunVDYM2TfdzaUDhQhoisYYV3qXfiHuXTLlo2HMInIAnM I+CoFE+bMrOHo9cXB3PmsUOeEfarTg7nMgbs1nhl3U+Znnbn9ku3GH29QYWFhwrL+WoJ uoR6Bd9D+kjRT9MLYNJBtxIOi+sWI1OetlA142OQ4/w05STCZRsIH9p7DN1J3JLmhmLQ fdIyxGZMkK2KMWSaluGLw5iE6TCOxzFJ/ME+Jxw5oLVcwtRpwb490mFYx1bFdh2joT3m 02a3Y1/ZKzI2cScT4KRHXn1wtfL1l1Yon/+EpCwxMBFo9yA4XHH/uCZKwH/PAXza3vpr leiQ== X-Gm-Message-State: AMke39kPN8j0/RzFLNUdBcpacEs+lNs/2bcsLZC+5SpX+h0rw/B7sjlhSdZXxj/HVNgk2g== X-Received: by 10.84.209.204 with SMTP id y70mr484543plh.180.1486601032703; Wed, 08 Feb 2017 16:43:52 -0800 (PST) Received: from chimagu (122x212x58x43.ap122.ftth.ucom.ne.jp. [122.212.58.43]) by smtp.gmail.com with ESMTPSA id d63sm17250752pfg.65.2017.02.08.16.43.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 08 Feb 2017 16:43:52 -0800 (PST) Received: from iwamatsu by chimagu with local (Exim 4.89) (envelope-from ) id 1cbcpy-0002YM-Cx; Thu, 09 Feb 2017 09:43:50 +0900 From: Nobuhiro Iwamatsu To: dinguyen@opensource.altera.com Subject: [PATCH] ARM: dts: socfpga: sodia: enable qspi Date: Thu, 9 Feb 2017 09:43:49 +0900 Message-Id: <20170209004349.9772-1-iwamatsu@nigauri.org> X-Mailer: git-send-email 2.11.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170208_164515_881167_3FE8F05D X-CRM114-Status: UNSURE ( 8.45 ) X-CRM114-Notice: Please train this message. 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: Nobuhiro Iwamatsu , 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 Enable the qspi controller on sodia board and add the flash chip (n25q512a). Signed-off-by: Nobuhiro Iwamatsu --- arch/arm/boot/dts/socfpga_cyclone5_sodia.dts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm/boot/dts/socfpga_cyclone5_sodia.dts b/arch/arm/boot/dts/socfpga_cyclone5_sodia.dts index 5b7e3c27e6e9..d69ad29d1e53 100644 --- a/arch/arm/boot/dts/socfpga_cyclone5_sodia.dts +++ b/arch/arm/boot/dts/socfpga_cyclone5_sodia.dts @@ -121,3 +121,24 @@ &usb1 { status = "okay"; }; + +&qspi { + status = "okay"; + + flash0: n25q512a@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "n25q512a"; + reg = <0>; + spi-max-frequency = <100000000>; + + m25p,fast-read; + cdns,page-size = <256>; + cdns,block-size = <16>; + cdns,read-delay = <4>; + cdns,tshsl-ns = <50>; + cdns,tsd2d-ns = <50>; + cdns,tchsh-ns = <4>; + cdns,tslch-ns = <4>; + }; +};