]> git.sur5r.net Git - u-boot/blobdiff - arch/arm/dts/socfpga_cyclone5_socdk.dts
arm: socfpga: fix qspi flash compatible (add "spi-flash")
[u-boot] / arch / arm / dts / socfpga_cyclone5_socdk.dts
index 0b300b92be0a3112ebc9207a74ca5ff53569343c..3af51134bbec6c5e97951641cf005541cc1ca0ab 100644 (file)
        };
 
        aliases {
-               /* this allow the ethaddr uboot environmnet variable contents
+               /* this allow the ethaddr uboot environment variable contents
                 * to be added to the gmac1 device tree blob.
                 */
                ethernet0 = &gmac1;
-
-               spi0 = "/spi@ff705000";         /* QSPI */
-               spi1 = "/spi@fff00000";
-               spi2 = "/spi@fff01000";
+               udc0 = &usb1;
        };
 
        regulator_3_3v: 3-3-v-regulator {
                regulator-min-microvolt = <3300000>;
                regulator-max-microvolt = <3300000>;
        };
+
+       soc {
+               u-boot,dm-pre-reloc;
+       };
 };
 
 &gmac1 {
        rxc-skew-ps = <2000>;
 };
 
+&gpio0 {
+       status = "okay";
+};
+
 &gpio1 {
        status = "okay";
 };
 
+&gpio2 {
+       status = "okay";
+};
+
 &i2c0 {
        status = "okay";
 
 };
 
 &mmc0 {
+       status = "okay";
+       u-boot,dm-pre-reloc;
+
        cd-gpios = <&portb 18 0>;
        vmmc-supply = <&regulator_3_3v>;
        vqmmc-supply = <&regulator_3_3v>;
 };
 
-&usb1 {
-       status = "okay";
-};
-
 &qspi {
        status = "okay";
+       u-boot,dm-pre-reloc;
 
        flash0: n25q00@0 {
+               u-boot,dm-pre-reloc;
                #address-cells = <1>;
                #size-cells = <1>;
-               compatible = "n25q00";
+               compatible = "n25q00", "spi-flash";
                reg = <0>;      /* chip select */
-               spi-max-frequency = <50000000>;
+               spi-max-frequency = <100000000>;
                m25p,fast-read;
                page-size = <256>;
                block-size = <16>; /* 2^16, 64KB */
-               read-delay = <4>;  /* delay value in read data capture register */
-               tshsl-ns = <50>;
-               tsd2d-ns = <50>;
-               tchsh-ns = <4>;
-               tslch-ns = <4>;
+               cdns,tshsl-ns = <50>;
+               cdns,tsd2d-ns = <50>;
+               cdns,tchsh-ns = <4>;
+               cdns,tslch-ns = <4>;
        };
 };
+
+&usb1 {
+       status = "okay";
+};