@@ -35,7 +35,7 @@ aliases {
serial0 = &uart0;
serial1 = &uart1;
serial2 = &dcc;
- spi0 = &qspi;
+ spi0 = &qspi_lower;
spi1 = &spi0;
spi2 = &spi1;
usb0 = &usb0;
@@ -129,6 +129,9 @@ mux {
&qspi { /* MIO 0-5 - U143 */
status = "okay";
+};
+
+&qspi_lower {
spi_flash: flash@0 { /* MT25QU512A */
compatible = "jedec,spi-nor"; /* 64MB */
reg = <0>;
@@ -19,7 +19,7 @@ / {
aliases {
serial0 = &uart0;
serial1 = &dcc;
- spi0 = &qspi;
+ spi0 = &qspi_lower;
};
chosen {
@@ -39,6 +39,9 @@ &dcc {
&qspi {
status = "okay";
+};
+
+&qspi_lower {
flash@0 {
compatible = "m25p80", "jedec,spi-nor"; /* 32MB */
#address-cells = <1>;
@@ -20,7 +20,7 @@ / {
aliases {
serial0 = &uart0;
serial1 = &dcc;
- spi0 = &qspi;
+ spi0 = &qspi_lower;
};
chosen {
@@ -40,6 +40,9 @@ &dcc {
&qspi {
status = "okay";
+};
+
+&qspi_lower {
flash@0 {
compatible = "m25p80", "jedec,spi-nor"; /* 32MB */
#address-cells = <1>;
@@ -27,7 +27,7 @@ aliases {
mmc1 = &sdhci1;
rtc0 = &rtc;
serial0 = &uart0;
- spi0 = &qspi;
+ spi0 = &qspi_lower;
usb0 = &usb0;
};
@@ -354,6 +354,9 @@ &psgtr {
&qspi {
status = "okay";
+};
+
+&qspi_lower {
flash@0 {
compatible = "m25p80", "jedec,spi-nor"; /* Micron MT25QU512ABB8ESF */
#address-cells = <1>;
@@ -26,7 +26,7 @@ aliases {
rtc0 = &rtc;
serial0 = &uart0;
serial1 = &uart1;
- spi0 = &qspi;
+ spi0 = &qspi_lower;
};
chosen {
@@ -172,6 +172,9 @@ &i2c1 {
&qspi {
status = "okay";
+};
+
+&qspi_lower {
flash@0 {
compatible = "m25p80", "jedec,spi-nor"; /* 32MB */
#address-cells = <1>;
@@ -31,7 +31,7 @@ aliases {
serial0 = &uart0;
serial1 = &uart1;
serial2 = &dcc;
- spi0 = &qspi;
+ spi0 = &qspi_lower;
usb0 = &usb0;
};
@@ -953,6 +953,9 @@ &psgtr {
&qspi {
status = "okay";
+};
+
+&qspi_lower {
flash@0 {
compatible = "m25p80", "jedec,spi-nor"; /* 16MB + 16MB */
#address-cells = <1>;
@@ -29,7 +29,7 @@ aliases {
serial0 = &uart0;
serial1 = &uart1;
serial2 = &dcc;
- spi0 = &qspi;
+ spi0 = &qspi_lower;
usb0 = &usb0;
};
@@ -439,6 +439,9 @@ &psgtr {
&qspi {
status = "okay";
+};
+
+&qspi_lower {
flash@0 {
compatible = "m25p80", "jedec,spi-nor"; /* n25q512a 128MiB */
#address-cells = <1>;
@@ -29,7 +29,7 @@ aliases {
serial0 = &uart0;
serial1 = &uart1;
serial2 = &dcc;
- spi0 = &qspi;
+ spi0 = &qspi_lower;
usb0 = &usb0;
};
@@ -451,6 +451,9 @@ &psgtr {
&qspi {
status = "okay";
+};
+
+&qspi_lower {
flash@0 {
compatible = "m25p80", "jedec,spi-nor"; /* n25q512a 128MiB */
#address-cells = <1>;
@@ -31,7 +31,7 @@ aliases {
serial0 = &uart0;
serial1 = &uart1;
serial2 = &dcc;
- spi0 = &qspi;
+ spi0 = &qspi_lower;
usb0 = &usb0;
};
@@ -959,6 +959,9 @@ &psgtr {
&qspi {
status = "okay";
+};
+
+&qspi_lower {
flash@0 {
compatible = "m25p80", "jedec,spi-nor"; /* 16MB + 16MB */
#address-cells = <1>;
@@ -30,7 +30,7 @@ aliases {
rtc0 = &rtc;
serial0 = &uart0;
serial1 = &dcc;
- spi0 = &qspi;
+ spi0 = &qspi_lower;
usb0 = &usb0;
};
@@ -789,6 +789,9 @@ &psgtr {
&qspi {
status = "okay";
+};
+
+&qspi_lower {
flash@0 {
compatible = "m25p80", "jedec,spi-nor"; /* 16MB + 16MB */
#address-cells = <1>;
@@ -20,7 +20,7 @@ / {
aliases {
serial0 = &uart0;
serial1 = &dcc;
- spi0 = &qspi;
+ spi0 = &qspi_lower;
};
chosen {
@@ -44,6 +44,9 @@ &gpio {
&qspi {
status = "okay";
+};
+
+&qspi_lower {
flash@0 {
compatible = "m25p80", "jedec,spi-nor";
reg = <0x0>;
@@ -972,21 +972,28 @@ pcie_intc: legacy-interrupt-controller {
};
};
- qspi: spi@ff0f0000 {
+ qspi: spi-controller@ff0f0000 {
bootph-all;
compatible = "xlnx,zynqmp-qspi-1.0";
status = "disabled";
clock-names = "ref_clk", "pclk";
interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
interrupt-parent = <&gic>;
- num-cs = <1>;
reg = <0x0 0xff0f0000 0x0 0x1000>,
<0x0 0xc0000000 0x0 0x8000000>;
- #address-cells = <1>;
- #size-cells = <0>;
/* iommus = <&smmu 0x873>; */
power-domains = <&zynqmp_firmware PD_QSPI>;
resets = <&zynqmp_reset ZYNQMP_RESET_QSPI>;
+
+ qspi_lower: spi-lower {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ };
+
+ qspi_upper: spi-upper {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ };
};
psgtr: phy@fd400000 {
Convert the ZynqMP devicetrees to use the split QSPI bus binding. This is pretty simple, since all boards use only CS0. Signed-off-by: Sean Anderson <sean.anderson@linux.dev> --- arch/arm64/boot/dts/xilinx/zynqmp-sm-k26-revA.dts | 5 ++++- arch/arm64/boot/dts/xilinx/zynqmp-zc1232-revA.dts | 5 ++++- arch/arm64/boot/dts/xilinx/zynqmp-zc1254-revA.dts | 5 ++++- .../boot/dts/xilinx/zynqmp-zc1751-xm015-dc1.dts | 5 ++++- .../boot/dts/xilinx/zynqmp-zc1751-xm018-dc4.dts | 5 ++++- arch/arm64/boot/dts/xilinx/zynqmp-zcu102-revA.dts | 5 ++++- arch/arm64/boot/dts/xilinx/zynqmp-zcu104-revA.dts | 5 ++++- arch/arm64/boot/dts/xilinx/zynqmp-zcu104-revC.dts | 5 ++++- arch/arm64/boot/dts/xilinx/zynqmp-zcu106-revA.dts | 5 ++++- arch/arm64/boot/dts/xilinx/zynqmp-zcu111-revA.dts | 5 ++++- .../arm64/boot/dts/xilinx/zynqmp-zcu1275-revA.dts | 5 ++++- arch/arm64/boot/dts/xilinx/zynqmp.dtsi | 15 +++++++++++---- 12 files changed, 55 insertions(+), 15 deletions(-)