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:
parent
17ee197635
commit
8628fa26c7
7 changed files with 23 additions and 2 deletions
|
@ -59,6 +59,8 @@ features:
|
|||
+-----------+------------+-------------------------------------+
|
||||
| GPIO | on-chip | gpio |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| LPTMR | on-chip | counter |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| UART | on-chip | uart |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| SPI | on-chip | spi |
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -9,6 +9,7 @@ toolchain:
|
|||
- gnuarmemb
|
||||
- xtools
|
||||
supported:
|
||||
- counter
|
||||
- gpio
|
||||
- adc
|
||||
- uart
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -58,6 +58,8 @@ features:
|
|||
+-----------+------------+-------------------------------------+
|
||||
| GPIO | on-chip | gpio |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| LPTMR | on-chip | counter |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| UART | on-chip | uart polling; |
|
||||
| | | uart interrupt |
|
||||
+-----------+------------+-------------------------------------+
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue