boards: nxp: enable lpspi and edma driver for ke17z

Enable lpspi and edma driver for frdm_ke17z and frdm_ke17z512.

Signed-off-by: Anke Xiao <anke.xiao@nxp.com>
This commit is contained in:
Anke Xiao 2024-07-08 16:20:57 +08:00 committed by Anas Nashif
commit f1ef690224
8 changed files with 64 additions and 0 deletions

View file

@ -59,6 +59,10 @@ features:
+-----------+------------+-------------------------------------+
| UART | on-chip | uart |
+-----------+------------+-------------------------------------+
| SPI | on-chip | spi |
+-----------+------------+-------------------------------------+
| DMA | on-chip | dma |
+-----------+------------+-------------------------------------+
| I2C | on-chip | i2c |
+-----------+------------+-------------------------------------+
| ACMP | on-chip | sensor |

View file

@ -27,4 +27,16 @@
slew-rate = "slow";
};
};
lpspi0_default: lpspi0_default {
group0 {
pinmux = <LPSPI0_SCK_PTB2>,
<LPSPI0_SIN_PTB3>,
<LPSPI0_SOUT_PTB4>,
<LPSPI0_PCS1_PTB5>;
bias-pull-up;
drive-strength = "low";
slew-rate = "slow";
};
};
};

View file

@ -61,6 +61,8 @@
};
&lpuart0 {
dmas = <&edma 1 2>, <&edma 2 3>;
dma-names = "rx", "tx";
status = "okay";
current-speed = <115200>;
pinctrl-0 = <&lpuart0_default>;
@ -108,3 +110,15 @@
};
};
};
&lpspi0 {
dmas = <&edma 0 14>, <&edma 1 15>;
dma-names = "rx", "tx";
status = "okay";
pinctrl-0 = <&lpspi0_default>;
pinctrl-names = "default";
};
&edma {
status = "okay";
};

View file

@ -12,4 +12,6 @@ supported:
- gpio
- uart
- i2c
- spi
- dma
vendor: nxp

View file

@ -63,6 +63,10 @@ features:
+-----------+------------+-------------------------------------+
| ACMP | on-chip | sensor |
+-----------+------------+-------------------------------------+
| SPI | on-chip | spi |
+-----------+------------+-------------------------------------+
| DMA | on-chip | dma |
+-----------+------------+-------------------------------------+
The default configuration can be found in the defconfig file:
``boards/nxp/frdm_ke17z512/frdm_ke17z512_defconfig``.

View file

@ -47,4 +47,16 @@
slew-rate = "slow";
};
};
lpspi0_default: lpspi0_default {
group0 {
pinmux = <LPSPI0_SCK_PTE0>,
<LPSPI0_SIN_PTE1>,
<LPSPI0_SOUT_PTE2>,
<LPSPI0_PCS2_PTE6>;
bias-pull-up;
drive-strength = "low";
slew-rate = "slow";
};
};
};

View file

@ -61,6 +61,8 @@
};
&lpuart2 {
dmas = <&edma 5 6>, <&edma 6 7>;
dma-names = "rx", "tx";
status = "okay";
pinctrl-0 = <&lpuart2_default>;
pinctrl-names = "default";
@ -115,3 +117,15 @@
};
};
};
&lpspi0 {
dmas = <&edma 0 14>, <&edma 1 15>;
dma-names = "rx", "tx";
status = "okay";
pinctrl-0 = <&lpspi0_default>;
pinctrl-names = "default";
};
&edma {
status = "okay";
};

View file

@ -18,4 +18,6 @@ supported:
- gpio
- uart
- i2c
- spi
- dma
vendor: nxp