]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: dts: socfpga: socrates: enable qspi
authorSteffen Trumtrar <s.trumtrar@pengutronix.de>
Tue, 18 Oct 2016 07:43:03 +0000 (07:43 +0000)
committerDinh Nguyen <dinguyen@opensource.altera.com>
Wed, 19 Oct 2016 03:18:14 +0000 (22:18 -0500)
Enable the qspi controller on the socrates and add the flash chip.

Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com>
arch/arm/boot/dts/socfpga_cyclone5_socrates.dts

index d7985377506107e9200699a8aebf84f614f93745..c3d52f27b21ef9f4d3bf8f378ad27ec13f0851dc 100644 (file)
 &mmc {
        status = "okay";
 };
+
+&qspi {
+       status = "okay";
+
+       flash: flash@0 {
+               #address-cells = <1>;
+               #size-cells = <1>;
+               compatible = "n25q256a";
+               reg = <0>;
+               spi-max-frequency = <100000000>;
+               m25p,fast-read;
+               cdns,read-delay = <4>;
+               cdns,tshsl-ns = <50>;
+               cdns,tsd2d-ns = <50>;
+               cdns,tchsh-ns = <4>;
+               cdns,tslch-ns = <4>;
+               status = "okay";
+       };
+};