]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: socfpga: sodia: enable qspi
authorNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Fri, 10 Feb 2017 17:21:33 +0000 (11:21 -0600)
committerDinh Nguyen <dinguyen@kernel.org>
Tue, 14 Mar 2017 03:49:01 +0000 (22:49 -0500)
Enable the qspi controller on sodia board and add the flash chip
(n25q512a).

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
arch/arm/boot/dts/socfpga_cyclone5_sodia.dts

index 0e2c68bb021f5a0639236defc82c18333f5a5a00..8860dd2e242c4b62683f7532c0d347bf38ee02db 100644 (file)
@@ -121,3 +121,24 @@ &mmc0 {
 &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>;
+       };
+};