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 <daniel.degrasse@nxp.com>
This commit is contained in:
Daniel DeGrasse 2023-06-13 17:28:07 +00:00 committed by Carles Cufí
parent 903cfc8f15
commit 2ef5eb9772
6 changed files with 43 additions and 1 deletions

View File

@ -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 |
+-----------+------------+-------------------------------------+-----------------+-----------------+

View File

@ -70,6 +70,10 @@
};
};
&lpspi1 {
status = "okay";
};
&lpi2c5 {
/* FXOS accelerometer is not present in this board */
/delete-node/ fxos8700@1f;

View File

@ -18,4 +18,5 @@ supported:
- dma
- gpio
- i2c
- spi
- pwm

View File

@ -22,5 +22,6 @@ supported:
- gpio
- hwinfo
- i2c
- spi
- usb_device
- watchdog

View File

@ -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>;
};
};

View File

@ -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>;
};
};