Skip to content

Commit

Permalink
dts: arm: nxp: rt118x: add flexspi instance support
Browse files Browse the repository at this point in the history
add flexspi2 and rename flexspi1 to flexspi to adapt
flexspi.c driver under soc/nxp/rt118x folder.

Signed-off-by: Lucien Zhao <[email protected]>
  • Loading branch information
lucien-nxp committed Sep 23, 2024
1 parent 22b4116 commit 56cfca4
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 7 deletions.
11 changes: 10 additions & 1 deletion dts/arm/nxp/nxp_rt118x.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@
};
};

&flexspi1 {
&flexspi {
compatible = "nxp,imx-flexspi";
interrupts = <55 0>;
#address-cells = <1>;
Expand All @@ -369,6 +369,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>;
Expand Down
8 changes: 6 additions & 2 deletions dts/arm/nxp/nxp_rt118x_cm33.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -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)>;
};
};
};
Expand Down
7 changes: 5 additions & 2 deletions dts/arm/nxp/nxp_rt118x_cm33_ns.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -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)>;
};
};
};

Expand Down
9 changes: 7 additions & 2 deletions dts/arm/nxp/nxp_rt118x_cm7.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -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)>;
};
};
};
Expand Down

0 comments on commit 56cfca4

Please sign in to comment.