Skip to content

Commit cf16ca3

Browse files
committed
boards: shields: add support for rtk0eg0019b01002bj shield
Add Capacitive Touch Application Board RTK0EG0019B01002BJ Signed-off-by: The Nguyen <the.nguyen.yf@renesas.com>
1 parent 9c7fc11 commit cf16ca3

File tree

7 files changed

+260
-0
lines changed

7 files changed

+260
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Copyright (c) 2025 Renesas Electronics Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
if INPUT_RENESAS_RA_CTSU
5+
6+
config INPUT_RENESAS_RA_CTSU_NUM_SELF_ELEMENTS
7+
default 12
8+
depends on !INPUT_RENESAS_RA_QE_TOUCH_CFG
9+
10+
endif # INPUT_RENESAS_RA_CTSU
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copyright (c) 2025 Renesas Electronics Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config SHIELD_RTK0EG0019B01002BJ
5+
def_bool $(shields_list_contains,rtk0eg0019b01002bj)
Binary file not shown.
Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
.. _rtk0eg0019b01002bj:
2+
3+
RTK0EG0019B01002BJ Capacitive Touch Application Shield
4+
######################################################
5+
6+
Overview
7+
********
8+
9+
The RTK0EG0019B01002BJ Capacitive Touch Application Shield is designed to work with the Renesas
10+
Capacitive Touch Evaluation Kit.
11+
12+
The shield features a variety of touch sensors, including buttons, sliders, and wheels, making it
13+
an ideal platform for developing touch-based applications.
14+
15+
.. figure:: img/rtk0eg0019b01002bj.webp
16+
:width: 300
17+
:align: center
18+
19+
RTK0EG0019B01002BJ Capacitive Touch Application Shield (Credit: Renesas Electronics Corporation)
20+
21+
Pins Assignment of the RTK0EG0019B01002BJ Shield
22+
================================================
23+
24+
Application Header 1 (CN1)
25+
--------------------------
26+
27+
+---------+-------------+---------+-------------+
28+
| CN1 Pin | Function | CN1 Pin | Function |
29+
+=========+=============+=========+=============+
30+
| 15 | VCC | 16 | GND |
31+
+---------+-------------+---------+-------------+
32+
| 13 | LED_ROW0 | 14 | LED_ROW1 |
33+
+---------+-------------+---------+-------------+
34+
| 11 | LED_ROW2 | 12 | LED_ROW3 |
35+
+---------+-------------+---------+-------------+
36+
| 9 | N/C | 10 | N/C |
37+
+---------+-------------+---------+-------------+
38+
| 7 | LED_COL3 | 8 | N/C |
39+
+---------+-------------+---------+-------------+
40+
| 5 | LED_COL1 | 6 | LED_COL2 |
41+
+---------+-------------+---------+-------------+
42+
| 3 | N/C | 4 | LED_COL0 |
43+
+---------+-------------+---------+-------------+
44+
| 1 | N/C | 2 | N/C |
45+
+---------+-------------+---------+-------------+
46+
47+
Application Header 2 (CN2)
48+
--------------------------
49+
50+
+---------+-------------------+---------+-------------------+
51+
| CN2 Pin | Touch Electrode | CN2 Pin | Touch Electrode |
52+
+=========+===================+=========+===================+
53+
| 39 | N/C | 40 | TSCAP |
54+
+---------+-------------------+---------+-------------------+
55+
| 37 | N/C | 38 | N/C |
56+
+---------+-------------------+---------+-------------------+
57+
| 35 | N/C | 36 | TS-W1 |
58+
+---------+-------------------+---------+-------------------+
59+
| 33 | N/C | 34 | TS-W2 |
60+
+---------+-------------------+---------+-------------------+
61+
| 31 | TS-W3 | 32 | N/C |
62+
+---------+-------------------+---------+-------------------+
63+
| 29 | N/C | 30 | N/C |
64+
+---------+-------------------+---------+-------------------+
65+
| 27 | N/C | 28 | TS-W4 |
66+
+---------+-------------------+---------+-------------------+
67+
| 25 | N/C | 26 | N/C |
68+
+---------+-------------------+---------+-------------------+
69+
| 23 | N/C | 24 | N/C |
70+
+---------+-------------------+---------+-------------------+
71+
| 21 | N/C | 22 | SHIELD-W1 |
72+
+---------+-------------------+---------+-------------------+
73+
| 19 | N/C | 20 | N/C |
74+
+---------+-------------------+---------+-------------------+
75+
| 17 | N/C | 18 | N/C |
76+
+---------+-------------------+---------+-------------------+
77+
| 15 | N/C | 16 | N/C |
78+
+---------+-------------------+---------+-------------------+
79+
| 13 | N/C | 14 | N/C |
80+
+---------+-------------------+---------+-------------------+
81+
| 11 | N/C | 12 | N/C |
82+
+---------+-------------------+---------+-------------------+
83+
| 9 | TS-B1 | 10 | TS-B2 |
84+
+---------+-------------------+---------+-------------------+
85+
| 7 | SHIELD-B1 | 8 | TS-B3 |
86+
+---------+-------------------+---------+-------------------+
87+
| 5 | TS-S1 | 6 | SHIELD-S1 |
88+
+---------+-------------------+---------+-------------------+
89+
| 3 | TS-S3 | 4 | TS-S2 |
90+
+---------+-------------------+---------+-------------------+
91+
| 1 | TS-S5 | 2 | TS-S4 |
92+
+---------+-------------------+---------+-------------------+
93+
94+
Programming
95+
***********
96+
97+
Set ``--shield rtk0eg0019b01002bj`` when you invoke ``west build``. For example:
98+
99+
.. zephyr-app-commands::
100+
:zephyr-app: samples/subsys/input/input_dump
101+
:board: rssk_ra2l1
102+
:shield: rtk0eg0019b01002bj
103+
:goals: build
104+
105+
References
106+
**********
107+
- `Capacitive Touch Evaluation System for RA2L1`_
108+
109+
.. _Capacitive Touch Evaluation System for RA2L1:
110+
https://www.renesas.com/en/products/microcontrollers-microprocessors/ra-cortex-m-mcus/rtk0eg0022s01001bj-capacitive-touch-evaluation-system-ra2l1
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Copyright (c) 2025 Renesas Electronics Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
description: |
5+
This binding provides resources required for the LED matrix
6+
on the RTK0EG0019B01002BJ board.
7+
8+
compatible: "rtk0eg0019b01002bj-led-matrix"
9+
10+
properties:
11+
led-row-gpios:
12+
type: phandle-array
13+
required: true
14+
description: |
15+
Identity of GPIOs that will be used to control the LED matrix.
16+
Each entry in the array corresponds to a row of the matrix.
17+
18+
led-col-gpios:
19+
type: phandle-array
20+
required: true
21+
description: |
22+
Identity of GPIOs that will be used to control the LED matrix.
23+
Each entry in the array corresponds to a column of the matrix.
24+
25+
num-rows:
26+
type: int
27+
required: true
28+
description: |
29+
Number of rows in the LED matrix.
30+
31+
num-cols:
32+
type: int
33+
required: true
34+
description: |
35+
Number of columns in the LED matrix.
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
/*
2+
* Copyright (c) 2025 Renesas Electronics Corporation
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <zephyr/dt-bindings/input/input-event-codes.h>
8+
9+
/ {
10+
rtk0eg0019b01002bj_cn1: rtk0eg0019b01002bj-cn1 {
11+
gpio-map-mask = <0xffffffff 0xffffffc0>;
12+
gpio-map-pass-thru = <0 0x3f>;
13+
};
14+
15+
rtk0eg0019b01002bj_led_matrix: rtk0eg0019b01002bj-led-matrix {
16+
compatible = "rtk0eg0019b01002bj-led-matrix";
17+
led-row-gpios = <&rtk0eg0019b01002bj_cn1 13 GPIO_ACTIVE_LOW>,
18+
<&rtk0eg0019b01002bj_cn1 14 GPIO_ACTIVE_LOW>,
19+
<&rtk0eg0019b01002bj_cn1 11 GPIO_ACTIVE_LOW>,
20+
<&rtk0eg0019b01002bj_cn1 12 GPIO_ACTIVE_LOW>;
21+
led-col-gpios = <&rtk0eg0019b01002bj_cn1 4 GPIO_ACTIVE_HIGH>,
22+
<&rtk0eg0019b01002bj_cn1 5 GPIO_ACTIVE_HIGH>,
23+
<&rtk0eg0019b01002bj_cn1 6 GPIO_ACTIVE_HIGH>,
24+
<&rtk0eg0019b01002bj_cn1 7 GPIO_ACTIVE_HIGH>;
25+
num-rows = <4>;
26+
num-cols = <4>;
27+
status = "okay";
28+
};
29+
};
30+
31+
&rtk0eg0019b01002bj_ctsu {
32+
status = "okay";
33+
34+
group1 {
35+
ctsuchac = <0x01 0x0E 0x00 0x00 0x00>;
36+
ctsuchtrc = <0x01 0x00 0x00 0x00 0x00>;
37+
rx-count = <3>;
38+
tx-count = <0>;
39+
status = "okay";
40+
41+
rtk0eg0019b01002bj_bt1: button1 {
42+
compatible = "renesas,ra-ctsu-button";
43+
elements = <2>;
44+
event-code = <INPUT_KEY_0>;
45+
status = "okay";
46+
};
47+
48+
rtk0eg0019b01002bj_bt2: button2 {
49+
compatible = "renesas,ra-ctsu-button";
50+
elements = <1>;
51+
event-code = <INPUT_KEY_1>;
52+
status = "okay";
53+
};
54+
55+
rtk0eg0019b01002bj_bt3: button3 {
56+
compatible = "renesas,ra-ctsu-button";
57+
elements = <0>;
58+
event-code = <INPUT_KEY_2>;
59+
status = "okay";
60+
};
61+
};
62+
63+
group2 {
64+
ctsuchac = <0xF4 0x01 0x00 0x00 0x00>;
65+
ctsuchtrc = <0x00 0x01 0x00 0x00 0x00>;
66+
rx-count = <5>;
67+
tx-count = <0>;
68+
status = "okay";
69+
70+
rtk0eg0019b01002bj_slider: slider {
71+
compatible = "renesas,ra-ctsu-slider";
72+
elements = <1>, <0>, <2>, <4>, <3>;
73+
threshold = <703>;
74+
event-code = <INPUT_ABS_THROTTLE>;
75+
status = "okay";
76+
};
77+
};
78+
79+
group3 {
80+
ctsuchac = <0x00 0x40 0xA4 0x00 0x01>;
81+
ctsuchtrc = <0x00 0x40 0x00 0x00 0x00>;
82+
rx-count = <4>;
83+
tx-count = <0>;
84+
status = "okay";
85+
86+
rtk0eg0019b01002bj_wheel: wheel {
87+
compatible = "renesas,ra-ctsu-wheel";
88+
elements = <0>, <1>, <2>, <3>;
89+
event-code = <INPUT_ABS_WHEEL>;
90+
status = "okay";
91+
};
92+
};
93+
};
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
shield:
2+
name: rtk0eg0019b01002bj
3+
full_name: RTK0EG0019B01002BJ Capacitive Touch Application Shield
4+
vendor: renesas
5+
supported_features:
6+
- input
7+
- gpio

0 commit comments

Comments
 (0)