]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: dts: socfpga: Enable QSPI on the Cyclone5 sockit
authorDinh Nguyen <dinguyen@opensource.altera.com>
Wed, 19 Oct 2016 19:55:54 +0000 (14:55 -0500)
committerDinh Nguyen <dinguyen@kernel.org>
Tue, 8 Nov 2016 21:40:35 +0000 (15:40 -0600)
Enable the QSPI node and add the flash chip.

Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com>
---
v3: Use n25q00 for the compatible entry for the flash part and
    tested on SoCKit
v2: Remove partition entries for the SoCKIT

arch/arm/boot/dts/socfpga_cyclone5_sockit.dts

index fcacaf7b2c83e26774ec245815437a57571d372f..a0c90b3bdfd13d537eff4d743137874a5d488641 100644 (file)
        status = "okay";
 };
 
+&qspi {
+       status = "okay";
+
+       flash: flash@0 {
+               #address-cells = <1>;
+               #size-cells = <1>;
+               compatible = "n25q00";
+               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>;
+       };
+};
+
 &usb1 {
        status = "okay";
 };