Skip to content

Commit 1df99da

Browse files
Dinh NguyenDinh Nguyen
authored andcommitted
ARM: dts: socfpga: Enable QSPI in Arria10 devkit
Enable the QSPI node and add the flash chip. Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com>
1 parent 5d662bf commit 1df99da

2 files changed

Lines changed: 50 additions & 0 deletions

File tree

‎arch/arm/boot/dts/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,7 @@ dtb-$(CONFIG_ARCH_SHMOBILE_MULTI) += \
690690
sh73a0-kzm9g.dtb
691691
dtb-$(CONFIG_ARCH_SOCFPGA) += \
692692
socfpga_arria5_socdk.dtb \
693+
socfpga_arria10_socdk_qspi.dtb \
693694
socfpga_arria10_socdk_sdmmc.dtb \
694695
socfpga_cyclone5_mcvevk.dtb \
695696
socfpga_cyclone5_socdk.dtb \
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
/*
2+
* Copyright (C) 2016 Intel. All rights reserved.
3+
*
4+
* This program is free software; you can redistribute it and/or modify
5+
* it under the terms and conditions of the GNU General Public License,
6+
* version 2, as published by the Free Software Foundation.
7+
*
8+
* This program is distributed in the hope it will be useful, but WITHOUT
9+
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10+
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11+
* more details.
12+
*
13+
* You should have received a copy of the GNU General Public License along with
14+
* this program. If not, see <http://www.gnu.org/licenses/>.
15+
*/
16+
17+
/dts-v1/;
18+
#include "socfpga_arria10_socdk.dtsi"
19+
20+
&qspi {
21+
status = "okay";
22+
23+
flash0: n25q00@0 {
24+
#address-cells = <1>;
25+
#size-cells = <1>;
26+
compatible = "n25q00aa";
27+
reg = <0>;
28+
spi-max-frequency = <100000000>;
29+
30+
m25p,fast-read;
31+
cdns,page-size = <256>;
32+
cdns,block-size = <16>;
33+
cdns,read-delay = <4>;
34+
cdns,tshsl-ns = <50>;
35+
cdns,tsd2d-ns = <50>;
36+
cdns,tchsh-ns = <4>;
37+
cdns,tslch-ns = <4>;
38+
39+
partition@qspi-boot {
40+
label = "Boot and fpga data";
41+
reg = <0x0 0x2720000>;
42+
};
43+
44+
partition@qspi-rootfs {
45+
label = "Root Filesystem - JFFS2";
46+
reg = <0x2720000 0x58E0000>;
47+
};
48+
};
49+
};

0 commit comments

Comments
 (0)