xilinx: Add jedec compatible string for QSPI (Zynq/ZynqMP)
authorRaju Kumar Pothuraju <raju.kumar-pothuraju@xilinx.com>
Thu, 1 Jul 2021 08:45:11 +0000 (14:15 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 26 Aug 2021 06:08:11 +0000 (08:08 +0200)
Add missing "jedec, spi-nor" compatible string for QSPI flash node.
Spi-nor framework uses this compatibility string to probe &
initialize flash. With missing compatibility string we are observing
below error:

Zynq> sf probe 0 0 0
 jedec_spi_nor spi_flash@0:0: unrecognized JEDEC id bytes:
00, 00, 00  Failed to initialize SPI flash at 0:0 (error -2)

Signed-off-by: Raju Kumar Pothuraju <raju.kumar-pothuraju@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/dts/zynq-cc108.dts
arch/arm/dts/zynq-cse-qspi.dtsi
arch/arm/dts/zynq-topic-miami.dts
arch/arm/dts/zynqmp-topic-miamimp-xilinx-xdp-v1r1.dts

index 64d73ecbc592d8b8f3d9dfab0bbc571afb68e236..036106e2212cc72d463296c8369236628884f40b 100644 (file)
@@ -58,7 +58,7 @@
        is-dual = <0>;
        num-cs = <1>;
        flash@0 { /* 16 MB */
-               compatible = "n25q128a11";
+               compatible = "n25q128a11", "jedec,spi-nor";
                reg = <0x0>;
                spi-max-frequency = <50000000>;
                spi-tx-bus-width = <1>;
index eb0e29e6cb6e258ec7ff4b3e035fa5da603ff086..38410eeca88666afcc3cb8fcf47a94630ab66ade 100644 (file)
@@ -60,7 +60,7 @@
                        #size-cells = <0>;
                        num-cs = <1>;
                        flash0: flash@0 {
-                               compatible = "n25q128a11";
+                               compatible = "n25q128a11", "jedec,spi-nor";
                                reg = <0x0>;
                                spi-tx-bus-width = <1>;
                                spi-rx-bus-width = <4>;
index ab6bde95fed933378a3d78ff950c62a88d1c66a7..c4ec56138e1e4cac4d6844825f15a834bee18d00 100644 (file)
@@ -36,7 +36,7 @@
        is-dual = <0>;
        num-cs = <1>;
        flash@0 {
-               compatible = "st,m25p80", "n25q256a";
+               compatible = "st,m25p80", "n25q256a", "jedec,spi-nor";
                m25p,fast-read;
                reg = <0x0>;
                spi-tx-bus-width = <1>;
index 6ec96e0e8c962bc9f50a99bfe0373e5a28cab465..300e2ebe96e8dba526dcb6b336060edc7252a78e 100644 (file)
@@ -58,7 +58,7 @@
        status = "okay";
        is-dual = <1>;
        flash@0 {
-               compatible = "st,m25p80", "n25q256a";
+               compatible = "st,m25p80", "n25q256a", "jedec,spi-nor";
                m25p,fast-read;
                reg = <0x0>;
                spi-tx-bus-width = <1>;