Skip to content

Commit 2ef5eb9

Browse files
danieldegrassecarlescufi
authored andcommitted
boards: arm: mimxrt1170_evkb: add support for SPI
Add support for SPI on RT1170 EVKB, verified using SPI loopback sample. Signed-off-by: Daniel DeGrasse <[email protected]>
1 parent 903cfc8 commit 2ef5eb9

File tree

6 files changed

+43
-1
lines changed

6 files changed

+43
-1
lines changed

boards/arm/mimxrt1170_evk/doc/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ RT1170 EVKB (`mimxrt1170_evkb_cm7/cm4`)
104104
+-----------+------------+-------------------------------------+-----------------+-----------------+
105105
| CAN | on-chip | flexcan | Supported (M7) | Supported (M7) |
106106
+-----------+------------+-------------------------------------+-----------------+-----------------+
107-
| SPI | on-chip | spi | Supported (M7) | No support |
107+
| SPI | on-chip | spi | Supported (M7) | Supported |
108108
+-----------+------------+-------------------------------------+-----------------+-----------------+
109109
| I2C | on-chip | i2c | Supported | Supported |
110110
+-----------+------------+-------------------------------------+-----------------+-----------------+

boards/arm/mimxrt1170_evk/mimxrt1170_evkb_cm4.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@
7070
};
7171
};
7272

73+
&lpspi1 {
74+
status = "okay";
75+
};
76+
7377
&lpi2c5 {
7478
/* FXOS accelerometer is not present in this board */
7579
/delete-node/ fxos8700@1f;

boards/arm/mimxrt1170_evk/mimxrt1170_evkb_cm4.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ supported:
1818
- dma
1919
- gpio
2020
- i2c
21+
- spi
2122
- pwm

boards/arm/mimxrt1170_evk/mimxrt1170_evkb_cm7.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@ supported:
2222
- gpio
2323
- hwinfo
2424
- i2c
25+
- spi
2526
- usb_device
2627
- watchdog
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*
2+
* Copyright 2023 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&lpspi1 {
8+
slow@0 {
9+
compatible = "test-spi-loopback-slow";
10+
reg = <0>;
11+
spi-max-frequency = <500000>;
12+
};
13+
fast@0 {
14+
compatible = "test-spi-loopback-fast";
15+
reg = <0>;
16+
spi-max-frequency = <16000000>;
17+
};
18+
};
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*
2+
* Copyright 2023 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&lpspi1 {
8+
slow@0 {
9+
compatible = "test-spi-loopback-slow";
10+
reg = <0>;
11+
spi-max-frequency = <500000>;
12+
};
13+
fast@0 {
14+
compatible = "test-spi-loopback-fast";
15+
reg = <0>;
16+
spi-max-frequency = <16000000>;
17+
};
18+
};

0 commit comments

Comments
 (0)