boards: nxp: add lptmr counter and timer features for KE17Z

Add LPTMR driver counter support for NXP frdm_ke17z and frdm_ke17z512
boards, tested 'drivers.counter.basic_api' case.
Enable cpu power states and determine the default
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC from devicetree when using the
Arm SysTick hardware timer.

Signed-off-by: Anke Xiao <anke.xiao@nxp.com>
This commit is contained in:
Anke Xiao 2024-07-09 15:36:48 +08:00 committed by Anas Nashif
commit 8628fa26c7
7 changed files with 23 additions and 2 deletions

View file

@ -59,6 +59,8 @@ features:
+-----------+------------+-------------------------------------+
| GPIO | on-chip | gpio |
+-----------+------------+-------------------------------------+
| LPTMR | on-chip | counter |
+-----------+------------+-------------------------------------+
| UART | on-chip | uart |
+-----------+------------+-------------------------------------+
| SPI | on-chip | spi |

View file

@ -81,6 +81,15 @@
};
};
&idle {
min-residency-us = <1>;
};
&stop {
min-residency-us = <20000>;
exit-latency-us = <13>;
};
&lpuart0 {
dmas = <&edma 1 2>, <&edma 2 3>;
dma-names = "rx", "tx";

View file

@ -9,6 +9,7 @@ toolchain:
- gnuarmemb
- xtools
supported:
- counter
- gpio
- adc
- uart

View file

@ -14,7 +14,6 @@ CONFIG_GPIO=y
# Clock Control
CONFIG_CLOCK_CONTROL=y
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=48000000
# Enable pin controller
CONFIG_PINCTRL=y

View file

@ -58,6 +58,8 @@ features:
+-----------+------------+-------------------------------------+
| GPIO | on-chip | gpio |
+-----------+------------+-------------------------------------+
| LPTMR | on-chip | counter |
+-----------+------------+-------------------------------------+
| UART | on-chip | uart polling; |
| | | uart interrupt |
+-----------+------------+-------------------------------------+

View file

@ -81,6 +81,15 @@
};
};
&idle {
min-residency-us = <1>;
};
&stop {
min-residency-us = <20000>;
exit-latency-us = <13>;
};
&lpuart2 {
dmas = <&edma 5 6>, <&edma 6 7>;
dma-names = "rx", "tx";

View file

@ -8,5 +8,4 @@ CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_GPIO=y
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=48000000
CONFIG_PINCTRL=y