* [PATCH 0/2] Add xspi device node and mt35xu512aba spi nor device support on imx943-evk board
@ 2025-12-23 9:05 Haibo Chen
2025-12-23 9:05 ` [PATCH 1/2] arm64: dts: imx94: add xspi device node Haibo Chen
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Haibo Chen @ 2025-12-23 9:05 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Shawn Guo,
Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam
Cc: devicetree, imx, linux-arm-kernel, linux-kernel, Haibo Chen
xspi is a new flexible SPI host controller in imx94. The driver
already merged into linux-next, refer to the following link:
https://lore.kernel.org/r/20251216-xspi-v7-0-282525220979@nxp.com
The first patch add the xspi device node in imx94.dtsi.
Second patch add mt35xu512aba spi support on imx943-evk board.
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
---
Haibo Chen (2):
arm64: dts: imx94: add xspi device node
arm64: dts: imx94: add mt35xu512aba spi nor support
arch/arm64/boot/dts/freescale/imx94.dtsi | 34 +++++++++++++++++++++++++++-
arch/arm64/boot/dts/freescale/imx943-evk.dts | 34 ++++++++++++++++++++++++++++
2 files changed, 67 insertions(+), 1 deletion(-)
---
base-commit: cc3aa43b44bdb43dfbac0fcb51c56594a11338a8
change-id: 20251223-imx943-xspi-dts-68da1c32534e
Best regards,
--
Haibo Chen <haibo.chen@nxp.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] arm64: dts: imx94: add xspi device node
2025-12-23 9:05 [PATCH 0/2] Add xspi device node and mt35xu512aba spi nor device support on imx943-evk board Haibo Chen
@ 2025-12-23 9:05 ` Haibo Chen
2025-12-23 9:05 ` [PATCH 2/2] arm64: dts: imx94: add mt35xu512aba spi nor support Haibo Chen
2025-12-30 13:09 ` [PATCH 0/2] Add xspi device node and mt35xu512aba spi nor device support on imx943-evk board Shawn Guo
2 siblings, 0 replies; 4+ messages in thread
From: Haibo Chen @ 2025-12-23 9:05 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Shawn Guo,
Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam
Cc: devicetree, imx, linux-arm-kernel, linux-kernel, Haibo Chen
imx94 has two xspi, add these device nodes.
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
---
arch/arm64/boot/dts/freescale/imx94.dtsi | 34 +++++++++++++++++++++++++++++++-
1 file changed, 33 insertions(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/freescale/imx94.dtsi b/arch/arm64/boot/dts/freescale/imx94.dtsi
index 73184f03f8a3e134abc03dbd22ea24eff17be79b..96dd87800c8b500f2a885c1c1726e314b839fa8a 100644
--- a/arch/arm64/boot/dts/freescale/imx94.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx94.dtsi
@@ -629,7 +629,7 @@ aips3: bus@42800000 {
compatible = "fsl,aips-bus", "simple-bus";
reg = <0 0x42800000 0 0x800000>;
ranges = <0x42800000 0x0 0x42800000 0x800000>,
- <0x28000000 0x0 0x28000000 0x1000000>;
+ <0x24000000 0x0 0x24000000 0xc000000>;
#address-cells = <1>;
#size-cells = <1>;
@@ -785,6 +785,38 @@ mu17: mailbox@42b60000 {
#mbox-cells = <2>;
status = "disabled";
};
+
+ xspi1: spi@42b90000 {
+ compatible = "nxp,imx94-xspi";
+ reg = <0x42b90000 0x50000>, <0x28000000 0x08000000>;
+ reg-names = "base", "mmap";
+ interrupts = <GIC_SPI 390 IRQ_TYPE_LEVEL_HIGH>, // EENV0
+ <GIC_SPI 391 IRQ_TYPE_LEVEL_HIGH>, // EENV1
+ <GIC_SPI 392 IRQ_TYPE_LEVEL_HIGH>, // EENV2
+ <GIC_SPI 393 IRQ_TYPE_LEVEL_HIGH>, // EENV3
+ <GIC_SPI 394 IRQ_TYPE_LEVEL_HIGH>; // EENV4
+ #address-cells = <1>;
+ #size-cells = <0>;
+ clocks = <&scmi_clk IMX94_CLK_XSPI1>;
+ clock-names = "per";
+ status = "disabled";
+ };
+
+ xspi2: spi@42be0000 {
+ compatible = "nxp,imx94-xspi";
+ reg = <0x42be0000 0x50000>, <0x24000000 0x04000000>;
+ reg-names = "base", "mmap";
+ interrupts = <GIC_SPI 395 IRQ_TYPE_LEVEL_HIGH>, // EENV0
+ <GIC_SPI 396 IRQ_TYPE_LEVEL_HIGH>, // EENV1
+ <GIC_SPI 397 IRQ_TYPE_LEVEL_HIGH>, // EENV2
+ <GIC_SPI 398 IRQ_TYPE_LEVEL_HIGH>, // EENV3
+ <GIC_SPI 399 IRQ_TYPE_LEVEL_HIGH>; // EENV4
+ #address-cells = <1>;
+ #size-cells = <0>;
+ clocks = <&scmi_clk IMX94_CLK_XSPI2>;
+ clock-names = "per";
+ status = "disabled";
+ };
};
gpio2: gpio@43810000 {
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] arm64: dts: imx94: add mt35xu512aba spi nor support
2025-12-23 9:05 [PATCH 0/2] Add xspi device node and mt35xu512aba spi nor device support on imx943-evk board Haibo Chen
2025-12-23 9:05 ` [PATCH 1/2] arm64: dts: imx94: add xspi device node Haibo Chen
@ 2025-12-23 9:05 ` Haibo Chen
2025-12-30 13:09 ` [PATCH 0/2] Add xspi device node and mt35xu512aba spi nor device support on imx943-evk board Shawn Guo
2 siblings, 0 replies; 4+ messages in thread
From: Haibo Chen @ 2025-12-23 9:05 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Shawn Guo,
Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam
Cc: devicetree, imx, linux-arm-kernel, linux-kernel, Haibo Chen
Add mt35xu512aba spi nor support on imx943-evk board.
This nor chip support OCT DTR mode.
For the reset pin, since the nor chip side need 1.8v IO
voltage for reset pin, but the IO expander side use 3.3v
IO voltage, so to make circuit safe, need to config the
pad as OPEN DRAIN.
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
---
arch/arm64/boot/dts/freescale/imx943-evk.dts | 34 ++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/arch/arm64/boot/dts/freescale/imx943-evk.dts b/arch/arm64/boot/dts/freescale/imx943-evk.dts
index c8c3eff9df1a23c52e74bf2bc5d4ba543bb5a65b..19c02bd49cf5b0410b5d9f513ee279446ff79616 100644
--- a/arch/arm64/boot/dts/freescale/imx943-evk.dts
+++ b/arch/arm64/boot/dts/freescale/imx943-evk.dts
@@ -594,6 +594,22 @@ pinctrl_reg_usdhc2_vmmc: usdhc2regvmmcgrp {
IMX94_PAD_SD2_RESET_B__GPIO4_IO27 0x31e
>;
};
+
+ pinctrl_xspi1: xspi1grp {
+ fsl,pins = <
+ IMX94_PAD_XSPI1_SCLK__XSPI1_A_SCLK 0x3fe
+ IMX94_PAD_XSPI1_SS0_B__XSPI1_A_SS0_B 0x3fe
+ IMX94_PAD_XSPI1_DATA0__XSPI1_A_DATA0 0x3fe
+ IMX94_PAD_XSPI1_DATA1__XSPI1_A_DATA1 0x3fe
+ IMX94_PAD_XSPI1_DATA2__XSPI1_A_DATA2 0x3fe
+ IMX94_PAD_XSPI1_DATA3__XSPI1_A_DATA3 0x3fe
+ IMX94_PAD_XSPI1_DATA4__XSPI1_A_DATA4 0x3fe
+ IMX94_PAD_XSPI1_DATA5__XSPI1_A_DATA5 0x3fe
+ IMX94_PAD_XSPI1_DATA6__XSPI1_A_DATA6 0x3fe
+ IMX94_PAD_XSPI1_DATA7__XSPI1_A_DATA7 0x3fe
+ IMX94_PAD_XSPI1_DQS__XSPI1_A_DQS 0x3fe
+ >;
+ };
};
&usdhc1 {
@@ -625,3 +641,21 @@ &wdog3 {
fsl,ext-reset-output;
status = "okay";
};
+
+&xspi1 {
+ pinctrl-0 = <&pinctrl_xspi1>;
+ pinctrl-1 = <&pinctrl_xspi1>;
+ pinctrl-names = "default", "sleep";
+ status = "okay";
+
+ mt35xu512aba: flash@0 {
+ compatible = "jedec,spi-nor";
+ reg = <0>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ reset-gpios = <&pcal6416_i2c6_u50 15 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>;
+ spi-max-frequency = <200000000>;
+ spi-rx-bus-width = <8>;
+ spi-tx-bus-width = <8>;
+ };
+};
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 0/2] Add xspi device node and mt35xu512aba spi nor device support on imx943-evk board
2025-12-23 9:05 [PATCH 0/2] Add xspi device node and mt35xu512aba spi nor device support on imx943-evk board Haibo Chen
2025-12-23 9:05 ` [PATCH 1/2] arm64: dts: imx94: add xspi device node Haibo Chen
2025-12-23 9:05 ` [PATCH 2/2] arm64: dts: imx94: add mt35xu512aba spi nor support Haibo Chen
@ 2025-12-30 13:09 ` Shawn Guo
2 siblings, 0 replies; 4+ messages in thread
From: Shawn Guo @ 2025-12-30 13:09 UTC (permalink / raw)
To: Haibo Chen
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Sascha Hauer,
Pengutronix Kernel Team, Fabio Estevam, devicetree, imx,
linux-arm-kernel, linux-kernel
On Tue, Dec 23, 2025 at 05:05:55PM +0800, Haibo Chen wrote:
> Haibo Chen (2):
> arm64: dts: imx94: add xspi device node
> arm64: dts: imx94: add mt35xu512aba spi nor support
Applied both, thanks!
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-12-30 13:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-23 9:05 [PATCH 0/2] Add xspi device node and mt35xu512aba spi nor device support on imx943-evk board Haibo Chen
2025-12-23 9:05 ` [PATCH 1/2] arm64: dts: imx94: add xspi device node Haibo Chen
2025-12-23 9:05 ` [PATCH 2/2] arm64: dts: imx94: add mt35xu512aba spi nor support Haibo Chen
2025-12-30 13:09 ` [PATCH 0/2] Add xspi device node and mt35xu512aba spi nor device support on imx943-evk board Shawn Guo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox