arm: zynq: cse_qspi: Fix overwriting spi-rx-bus-width property
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Tue, 11 Sep 2018 09:39:56 +0000 (15:09 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 26 Nov 2018 09:50:54 +0000 (10:50 +0100)
spi-rx-bus-width property is part of flash, so it should be moved
to flash node from qspi node. This patch fixes the incorrect read
of spi-rx-bus-width property by moving it to flash node.

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/dts/zynq-cse-qspi-single.dts
arch/arm/dts/zynq-cse-qspi.dtsi

index 3252d6a44409f304c708494f33cc740f4db58421..0d680dfc06883f0562ab1d60d73b272415bd061f 100644 (file)
@@ -7,6 +7,6 @@
 
 #include "zynq-cse-qspi.dtsi"
 
-&qspi {
+&flash0 {
        spi-rx-bus-width = <4>;
 };
index 2b169468b06d8c45d4a38f2a75bcea24eb085acf..65af4081ff4f4c7a02d374c63da934c67aa0f4a6 100644 (file)
@@ -59,7 +59,7 @@
                        #address-cells = <1>;
                        #size-cells = <0>;
                        num-cs = <1>;
-                       flash@0 {
+                       flash0: flash@0 {
                                compatible = "n25q128a11";
                                reg = <0x0>;
                                spi-tx-bus-width = <1>;