ARM: dts: socfpga: change qspi to "intel,socfpga-qspi"
authorDinh Nguyen <dinguyen@kernel.org>
Mon, 22 Nov 2021 15:10:03 +0000 (09:10 -0600)
committerDinh Nguyen <dinguyen@kernel.org>
Mon, 27 Dec 2021 10:20:06 +0000 (04:20 -0600)
Because of commit 9cb2ff111712 ("spi: cadence-quadspi: Disable Auto-HW polling"),
which does a write to the CQSPI_REG_WR_COMPLETION_CTRL register
regardless of any condition. Well, the Cadence QuadSPI controller on
Intel's SoCFPGA platforms does not implement the
CQSPI_REG_WR_COMPLETION_CTRL register, thus a write to this register
results in a crash!

So starting with v5.16, I introduced the patch
98d948eb833 ("spi: cadence-quadspi: fix write completion support"),
which adds the dts compatible "intel,socfpga-qspi" that is specific for
versions that doesn't have the CQSPI_REG_WR_COMPLETION_CTRL register implemented.

Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
---
v3: revert back to "intel,socfpga-qspi"
v2: use both "cdns,qspi-nor" and "cdns,qspi-nor-0010"

arch/arm/boot/dts/socfpga.dtsi
arch/arm/boot/dts/socfpga_arria10.dtsi
arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi
arch/arm64/boot/dts/intel/socfpga_agilex.dtsi

index 0b021eef0b5389e211e82a44b23ce10c4555e2b4..7c1d6423d7f8c6ed159c44a3efe6394ab9dae52b 100644 (file)
                };
 
                qspi: spi@ff705000 {
-                       compatible = "cdns,qspi-nor";
+                       compatible = "intel,socfpga-qspi", "cdns,qspi-nor";
                        #address-cells = <1>;
                        #size-cells = <0>;
                        reg = <0xff705000 0x1000>,
index a574ea91d9d3f1894b82e508018bdc338b8dfa38..3ba431dfa8c9445c4767d674771a44e944fe9be4 100644 (file)
                };
 
                qspi: spi@ff809000 {
-                       compatible = "cdns,qspi-nor";
+                       compatible = "intel,socfpga-qspi", "cdns,qspi-nor";
                        #address-cells = <1>;
                        #size-cells = <0>;
                        reg = <0xff809000 0x100>,
index d301ac0d406bf3f30fd6137b64c75a1fdc007d24..3ec301bd08a9158c89b6346e41404205002efdae 100644 (file)
                };
 
                qspi: spi@ff8d2000 {
-                       compatible = "cdns,qspi-nor";
+                       compatible =  "intel,socfpga-qspi", "cdns,qspi-nor";
                        #address-cells = <1>;
                        #size-cells = <0>;
                        reg = <0xff8d2000 0x100>,
index 163f33b46e4f7e597d0fbbe3f42945868f65eb4d..0dd2d2ee765aa566db0d4f10a284b2e56a22f1ac 100644 (file)
                };
 
                qspi: spi@ff8d2000 {
-                       compatible = "cdns,qspi-nor";
+                       compatible = "intel,socfpga-qspi", "cdns,qspi-nor";
                        #address-cells = <1>;
                        #size-cells = <0>;
                        reg = <0xff8d2000 0x100>,