Skip to content

Commit

Permalink
boards: arm: cy8ckit_062_ble: Add serial pinctrl and int
Browse files Browse the repository at this point in the history
Add pinctrl and interrupt information for both m0/4 cores.  The uart-5
is the default serial communication on the kit and it is connected to
Cortex-M0+ cpu.  It uses SCB[5] and the NVIC line 21 as interrupt
source on Cortex-M0+ cpu.  The line 21 is an arbitrary value and users
can select any value.  The SCB[5] shares pins with Arduino headers
D0/D1 and it is wired with the on-board USB Serial converter.  This
means, if use wants use an external shield it must rework the board.
The uart-6 is the default serial communication for Cortex-M4 cpu, which
uses SCB[6].

Signed-off-by: Gerson Fernando Budke <[email protected]>
  • Loading branch information
nandojve authored and galak committed Apr 27, 2021
1 parent 2bd1301 commit a24350a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 12 deletions.
4 changes: 4 additions & 0 deletions boards/arm/cy8ckit_062_ble/cy8ckit_062_ble_m0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,8 @@
&uart5 {
status = "okay";
current-speed = <115200>;

interrupt-parent = <&intmux_ch21>;

pinctrl-0 = <&p5_0_uart5_rx &p5_1_uart5_tx>;
};
2 changes: 2 additions & 0 deletions boards/arm/cy8ckit_062_ble/cy8ckit_062_ble_m4.dts
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,6 @@
&uart6 {
status = "okay";
current-speed = <115200>;

pinctrl-0 = <&p13_0_uart6_rx &p13_1_uart6_tx>;
};
27 changes: 15 additions & 12 deletions boards/arm/cy8ckit_062_ble/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,18 +91,21 @@ Supported Features

The board configuration supports the following hardware features:

+-----------+------------+----------------------+
| Interface | Controller | Driver/Component |
+===========+============+======================+
| NVIC | on-chip | nested vectored |
| | | interrupt controller |
+-----------+------------+----------------------+
| SYSTICK | on-chip | system clock |
+-----------+------------+----------------------+
| GPIO | on-chip | gpio |
+-----------+------------+----------------------+
| UART | on-chip | serial port-polling |
+-----------+------------+----------------------+
+-----------+------------+-----------------------+
| Interface | Controller | Driver/Component |
+===========+============+=======================+
| NVIC | on-chip | nested vectored |
| | | interrupt controller |
+-----------+------------+-----------------------+
| SYSTICK | on-chip | system clock |
+-----------+------------+-----------------------+
| GPIO | on-chip | gpio |
+-----------+------------+-----------------------+
| PINCTRL | on-chip | pin control |
+-----------+------------+-----------------------+
| UART | on-chip | serial port-polling; |
| | | serial port-interrupt |
+-----------+------------+-----------------------+


The default configurations can be found in the Kconfig
Expand Down

0 comments on commit a24350a

Please sign in to comment.