Skip to content

Commit e8f0ff5

Browse files
Dinh NguyenDinh Nguyen
authored andcommitted
ARM: dts: socfpga: enable qspi on the Cyclone5 devkit
Enable the qspi controller on the devkit and add the flash chip. Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com>
1 parent d1da663 commit e8f0ff5

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

‎arch/arm/boot/dts/socfpga_cyclone5_socdk.dts‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,39 @@
8787
status = "okay";
8888
};
8989

90+
&qspi {
91+
status = "okay";
92+
93+
flash0: n25q00@0 {
94+
#address-cells = <1>;
95+
#size-cells = <1>;
96+
compatible = "n25q00";
97+
reg = <0>; /* chip select */
98+
spi-max-frequency = <100000000>;
99+
100+
m25p,fast-read;
101+
cdns,page-size = <256>;
102+
cdns,block-size = <16>;
103+
cdns,read-delay = <4>;
104+
cdns,tshsl-ns = <50>;
105+
cdns,tsd2d-ns = <50>;
106+
cdns,tchsh-ns = <4>;
107+
cdns,tslch-ns = <4>;
108+
109+
partition@qspi-boot {
110+
/* 8MB for raw data. */
111+
label = "Flash 0 Raw Data";
112+
reg = <0x0 0x800000>;
113+
};
114+
115+
partition@qspi-rootfs {
116+
/* 120MB for jffs2 data. */
117+
label = "Flash 0 jffs2 Filesystem";
118+
reg = <0x800000 0x7800000>;
119+
};
120+
};
121+
};
122+
90123
&usb1 {
91124
status = "okay";
92125
};

0 commit comments

Comments
 (0)