Skip to content

Commit

Permalink
boards: arm: mimxrt1170_evkb: add support for SPI
Browse files Browse the repository at this point in the history
Add support for SPI on RT1170 EVKB, verified using SPI loopback sample.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
  • Loading branch information
danieldegrasse authored and carlescufi committed Jun 29, 2023
1 parent 903cfc8 commit 2ef5eb9
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 1 deletion.
2 changes: 1 addition & 1 deletion boards/arm/mimxrt1170_evk/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ RT1170 EVKB (`mimxrt1170_evkb_cm7/cm4`)
+-----------+------------+-------------------------------------+-----------------+-----------------+
| CAN | on-chip | flexcan | Supported (M7) | Supported (M7) |
+-----------+------------+-------------------------------------+-----------------+-----------------+
| SPI | on-chip | spi | Supported (M7) | No support |
| SPI | on-chip | spi | Supported (M7) | Supported |
+-----------+------------+-------------------------------------+-----------------+-----------------+
| I2C | on-chip | i2c | Supported | Supported |
+-----------+------------+-------------------------------------+-----------------+-----------------+
Expand Down
4 changes: 4 additions & 0 deletions boards/arm/mimxrt1170_evk/mimxrt1170_evkb_cm4.dts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@
};
};

&lpspi1 {
status = "okay";
};

&lpi2c5 {
/* FXOS accelerometer is not present in this board */
/delete-node/ fxos8700@1f;
Expand Down
1 change: 1 addition & 0 deletions boards/arm/mimxrt1170_evk/mimxrt1170_evkb_cm4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ supported:
- dma
- gpio
- i2c
- spi
- pwm
1 change: 1 addition & 0 deletions boards/arm/mimxrt1170_evk/mimxrt1170_evkb_cm7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ supported:
- gpio
- hwinfo
- i2c
- spi
- usb_device
- watchdog
18 changes: 18 additions & 0 deletions tests/drivers/spi/spi_loopback/boards/mimxrt1170_evkb_cm4.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright 2023 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/

&lpspi1 {
slow@0 {
compatible = "test-spi-loopback-slow";
reg = <0>;
spi-max-frequency = <500000>;
};
fast@0 {
compatible = "test-spi-loopback-fast";
reg = <0>;
spi-max-frequency = <16000000>;
};
};
18 changes: 18 additions & 0 deletions tests/drivers/spi/spi_loopback/boards/mimxrt1170_evkb_cm7.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright 2023 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/

&lpspi1 {
slow@0 {
compatible = "test-spi-loopback-slow";
reg = <0>;
spi-max-frequency = <500000>;
};
fast@0 {
compatible = "test-spi-loopback-fast";
reg = <0>;
spi-max-frequency = <16000000>;
};
};

0 comments on commit 2ef5eb9

Please sign in to comment.