Skip to content

Commit 81cf8db

Browse files
CkovMkcarlescufi
authored andcommitted
soc: imx93: enable lpspi
- Add LPSPI1 ~ LPSPI8 instances to soc dtsi. - Expand clock dt-bindings for LPSPI to instance 7 & 8. - Add LPSPI driver in imx9 Kconfig. Signed-off-by: Chekhov Ma <[email protected]>
1 parent 0ce4399 commit 81cf8db

File tree

2 files changed

+90
-0
lines changed

2 files changed

+90
-0
lines changed

dts/arm64/nxp/nxp_mimx93_a55.dtsi

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,4 +191,92 @@
191191
clocks = <&ccm IMX_CCM_LPI2C8_CLK 0x80 24>;
192192
status = "disabled";
193193
};
194+
195+
lpspi1: spi@44360000 {
196+
compatible = "nxp,imx-lpspi";
197+
reg = <0x44360000 0x4000>;
198+
interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>;
199+
interrupt-parent = <&gic>;
200+
status = "disabled";
201+
clocks = <&ccm IMX_CCM_LPSPI1_CLK 0x6c 0>;
202+
#address-cells = <1>;
203+
#size-cells = <0>;
204+
};
205+
206+
lpspi2: spi@44370000 {
207+
compatible = "nxp,imx-lpspi";
208+
reg = <0x44370000 0x4000>;
209+
interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>;
210+
interrupt-parent = <&gic>;
211+
status = "disabled";
212+
clocks = <&ccm IMX_CCM_LPSPI2_CLK 0x6c 2>;
213+
#address-cells = <1>;
214+
#size-cells = <0>;
215+
};
216+
217+
lpspi3: spi@42550000 {
218+
compatible = "nxp,imx-lpspi";
219+
reg = <0x42550000 0x4000>;
220+
interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>;
221+
interrupt-parent = <&gic>;
222+
status = "disabled";
223+
clocks = <&ccm IMX_CCM_LPSPI3_CLK 0x6c 4>;
224+
#address-cells = <1>;
225+
#size-cells = <0>;
226+
};
227+
228+
lpspi4: spi@42560000 {
229+
compatible = "nxp,imx-lpspi";
230+
reg = <0x42560000 0x4000>;
231+
interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>;
232+
interrupt-parent = <&gic>;
233+
status = "disabled";
234+
clocks = <&ccm IMX_CCM_LPSPI4_CLK 0x6c 6>;
235+
#address-cells = <1>;
236+
#size-cells = <0>;
237+
};
238+
239+
lpspi5: spi@426f0000 {
240+
compatible = "nxp,imx-lpspi";
241+
reg = <0x426f0000 0x4000>;
242+
interrupts = <GIC_SPI 191 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>;
243+
interrupt-parent = <&gic>;
244+
status = "disabled";
245+
clocks = <&ccm IMX_CCM_LPSPI5_CLK 0x6c 6>;
246+
#address-cells = <1>;
247+
#size-cells = <0>;
248+
};
249+
250+
lpspi6: spi@42700000 {
251+
compatible = "nxp,imx-lpspi";
252+
reg = <0x42700000 0x4000>;
253+
interrupts = <GIC_SPI 192 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>;
254+
interrupt-parent = <&gic>;
255+
status = "disabled";
256+
clocks = <&ccm IMX_CCM_LPSPI6_CLK 0x6c 6>;
257+
#address-cells = <1>;
258+
#size-cells = <0>;
259+
};
260+
261+
lpspi7: spi@42710000 {
262+
compatible = "nxp,imx-lpspi";
263+
reg = <0x42710000 0x4000>;
264+
interrupts = <GIC_SPI 193 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>;
265+
interrupt-parent = <&gic>;
266+
status = "disabled";
267+
clocks = <&ccm IMX_CCM_LPSPI7_CLK 0x6c 0>;
268+
#address-cells = <1>;
269+
#size-cells = <0>;
270+
};
271+
272+
lpspi8: spi@42720000 {
273+
compatible = "nxp,imx-lpspi";
274+
reg = <0x42720000 0x4000>;
275+
interrupts = <GIC_SPI 194 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>;
276+
interrupt-parent = <&gic>;
277+
status = "disabled";
278+
clocks = <&ccm IMX_CCM_LPSPI8_CLK 0x6c 2>;
279+
#address-cells = <1>;
280+
#size-cells = <0>;
281+
};
194282
};

include/zephyr/dt-bindings/clock/imx_ccm_rev2.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@
5353
#define IMX_CCM_LPSPI4_CLK 0x503UL
5454
#define IMX_CCM_LPSPI5_CLK 0x504UL
5555
#define IMX_CCM_LPSPI6_CLK 0x505UL
56+
#define IMX_CCM_LPSPI7_CLK 0x506UL
57+
#define IMX_CCM_LPSPI8_CLK 0x507UL
5658

5759
/* USDHC */
5860
#define IMX_CCM_USDHC1_CLK 0x600UL

0 commit comments

Comments
 (0)