dts: arm: nxp: rt118x: add flexspi instance support
add flexspi2 and rename flexspi1 to flexspi to adapt
flexspi.c driver under soc/nxp/rt118x folder.
Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
diff --git a/dts/arm/nxp/nxp_rt118x.dtsi b/dts/arm/nxp/nxp_rt118x.dtsi
index 6060fc6..0e511ba 100644
--- a/dts/arm/nxp/nxp_rt118x.dtsi
+++ b/dts/arm/nxp/nxp_rt118x.dtsi
@@ -665,7 +665,7 @@
};
};
-&flexspi1 {
+&flexspi {
compatible = "nxp,imx-flexspi";
interrupts = <55 0>;
#address-cells = <1>;
@@ -674,6 +674,15 @@
clocks = <&ccm IMX_CCM_FLEXSPI_CLK 0x0 0>;
};
+&flexspi2 {
+ compatible = "nxp,imx-flexspi";
+ interrupts = <56 0>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "disabled";
+ clocks = <&ccm IMX_CCM_FLEXSPI2_CLK 0x0 0>;
+};
+
&memory {
#address-cells = <1>;
#size-cells = <1>;
diff --git a/dts/arm/nxp/nxp_rt118x_cm33.dtsi b/dts/arm/nxp/nxp_rt118x_cm33.dtsi
index 0bc7c51..706be1b0 100644
--- a/dts/arm/nxp/nxp_rt118x_cm33.dtsi
+++ b/dts/arm/nxp/nxp_rt118x_cm33.dtsi
@@ -30,8 +30,12 @@
ranges = <0x0 0x50000000 0x10000000>;
};
- flexspi1: spi@525e0000 {
- reg = <0x525e0000 0x4000>,<0x38000000 DT_SIZE_M(128)>;
+ flexspi: spi@525e0000 {
+ reg = <0x525e0000 0x4000>, <0x38000000 DT_SIZE_M(128)>;
+ };
+
+ flexspi2: spi@545e0000 {
+ reg = <0x545e0000 0x4000>, <0x14000000 DT_SIZE_M(64)>;
};
};
};
diff --git a/dts/arm/nxp/nxp_rt118x_cm33_ns.dtsi b/dts/arm/nxp/nxp_rt118x_cm33_ns.dtsi
index 2d1a294..480e376 100644
--- a/dts/arm/nxp/nxp_rt118x_cm33_ns.dtsi
+++ b/dts/arm/nxp/nxp_rt118x_cm33_ns.dtsi
@@ -30,10 +30,13 @@
ranges = <0x0 0x40000000 0x10000000>;
};
- flexspi1: spi@425e0000 {
- reg = <0x425e0000 0x4000>,<0x28000000 DT_SIZE_M(128)>;
+ flexspi: spi@425e0000 {
+ reg = <0x425e0000 0x4000>, <0x28000000 DT_SIZE_M(128)>;
};
+ flexspi2: spi@445e0000 {
+ reg = <0x445e0000 0x4000>, <0x04000000 DT_SIZE_M(64)>;
+ };
};
};
diff --git a/dts/arm/nxp/nxp_rt118x_cm7.dtsi b/dts/arm/nxp/nxp_rt118x_cm7.dtsi
index 9644dcf..4b2e60a 100644
--- a/dts/arm/nxp/nxp_rt118x_cm7.dtsi
+++ b/dts/arm/nxp/nxp_rt118x_cm7.dtsi
@@ -26,8 +26,13 @@
peripheral: peripheral@40000000 {
ranges = <0x0 0x40000000 0x10000000>;
};
- flexspi1: spi@425e0000 {
- reg = <0x425e0000 0x4000>,<0x28000000 DT_SIZE_M(128)>;
+
+ flexspi: spi@425e0000 {
+ reg = <0x425e0000 0x4000>, <0x28000000 DT_SIZE_M(128)>;
+ };
+
+ flexspi2: spi@445e0000 {
+ reg = <0x445e0000 0x4000>, <0x04000000 DT_SIZE_M(64)>;
};
};
};