Skip to content

Commit bb76692

Browse files
committed
boards: renesas: rssk_ra2l1: enable Cap Touch Shield support
This commit to enable rssk_ra2l1 build with rtk0eg0019b01002bj shield. Signed-off-by: The Nguyen <the.nguyen.yf@renesas.com>
1 parent cf16ca3 commit bb76692

File tree

4 files changed

+152
-0
lines changed

4 files changed

+152
-0
lines changed

boards/renesas/rssk_ra2l1/rssk_ra2l1-pinctrl.dtsi

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,25 @@
1212
<RA_PSEL(RA_PSEL_SCI_9, 2, 2)>;
1313
};
1414
};
15+
16+
ctsu_default: ctsu_default {
17+
group1 {
18+
psels = <RA_PSEL(RA_PSEL_CTSU, 1, 10)>,
19+
<RA_PSEL(RA_PSEL_CTSU, 1, 9)>,
20+
<RA_PSEL(RA_PSEL_CTSU, 3, 1)>,
21+
<RA_PSEL(RA_PSEL_CTSU, 2, 4)>,
22+
<RA_PSEL(RA_PSEL_CTSU, 4, 2)>,
23+
<RA_PSEL(RA_PSEL_CTSU, 0, 0)>,
24+
<RA_PSEL(RA_PSEL_CTSU, 0, 2)>,
25+
<RA_PSEL(RA_PSEL_CTSU, 0, 12)>,
26+
<RA_PSEL(RA_PSEL_CTSU, 1, 3)>,
27+
<RA_PSEL(RA_PSEL_CTSU, 3, 3)>,
28+
<RA_PSEL(RA_PSEL_CTSU, 4, 8)>,
29+
<RA_PSEL(RA_PSEL_CTSU, 4, 9)>,
30+
<RA_PSEL(RA_PSEL_CTSU, 4, 10)>,
31+
<RA_PSEL(RA_PSEL_CTSU, 4, 11)>,
32+
<RA_PSEL(RA_PSEL_CTSU, 3, 2)>,
33+
<RA_PSEL(RA_PSEL_CTSU, 1, 12)>;
34+
};
35+
};
1536
};

boards/renesas/rssk_ra2l1/rssk_ra2l1.dts

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,28 @@
6262
sw1 = &button1;
6363
watchdog0 = &wdt;
6464
};
65+
66+
rtk0eg0019b01002bj_cn1: rtk0eg0019b01002bj-cn1 {
67+
#gpio-cells = <2>;
68+
gpio-map-mask = <0xffffffff 0xffffffc0>;
69+
gpio-map-pass-thru = <0 0x3f>;
70+
gpio-map = <4 0 &ioport5 4 0>, /* LED_COL0 */
71+
<5 0 &ioport4 0 0>, /* LED_COL1 */
72+
<6 0 &ioport7 14 0>, /* LED_COL2 */
73+
<7 0 &ioport4 6 0>, /* LED_COL3 */
74+
<11 0 &ioport7 8 0>, /* LED_ROW2 */
75+
<12 0 &ioport4 15 0>, /* LED_ROW3 */
76+
<13 0 &ioport4 14 0>, /* LED_ROW0 */
77+
<14 0 &ioport0 6 0>; /* LED_ROW1 */
78+
};
79+
};
80+
81+
&ioport0 {
82+
status = "okay";
83+
};
84+
85+
&ioport1 {
86+
status = "okay";
6587
};
6688

6789
&ioport2 {
@@ -72,6 +94,18 @@
7294
status = "okay";
7395
};
7496

97+
&ioport4 {
98+
status = "okay";
99+
};
100+
101+
&ioport5 {
102+
status = "okay";
103+
};
104+
105+
&ioport7 {
106+
status = "okay";
107+
};
108+
75109
&port_irq0 {
76110
interrupts = <8 3>;
77111
status = "okay";
@@ -98,3 +132,13 @@
98132
&wdt {
99133
status = "okay";
100134
};
135+
136+
&ctsu {
137+
pinctrl-0 = <&ctsu_default>;
138+
pinctrl-names = "default";
139+
interrupts = <5 3>, <6 3>, <7 3>;
140+
interrupt-names = "ctsuwr", "ctsurd", "ctsufn";
141+
tscap-gpios = <&ioport1 12 0>;
142+
};
143+
144+
rtk0eg0019b01002bj_ctsu: &ctsu {};
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Copyright (c) 2025 Renesas Electronics Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
CONFIG_INPUT_RENESAS_RA_DEVICE_VCC=5000
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
/*
2+
* Copyright (c) 2025 Renesas Electronics Corporation
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&rtk0eg0019b01002bj_ctsu {
8+
clock-div = <1>;
9+
pwr-supply-sel = "internal-power";
10+
pwr-supply-sel2 = "pwr-supply-sel";
11+
atune1 = "normal";
12+
atune12 = <40>;
13+
measure-mode = "self-multi-scan";
14+
po-sel = "same-pulse";
15+
status = "okay";
16+
17+
group1 {
18+
ssdiv = "4.00", "4.00", "4.00";
19+
so = <0x03B>, <0x059>, <0x049>;
20+
snum = <0x07>, <0x07>, <0x07>;
21+
sdpa = <0x0F>, <0x0F>, <0x0F>;
22+
num-moving-avg = <4>;
23+
on-freq = <3>;
24+
off-freq = <3>;
25+
drift-freq = <255>;
26+
cancel-freq = <0>;
27+
status = "okay";
28+
29+
button1 {
30+
threshold = <769>;
31+
hysteresis = <38>;
32+
status = "okay";
33+
};
34+
35+
button2 {
36+
threshold = <740>;
37+
hysteresis = <37>;
38+
status = "okay";
39+
};
40+
41+
button3 {
42+
threshold = <784>;
43+
hysteresis = <39>;
44+
status = "okay";
45+
};
46+
};
47+
48+
group2 {
49+
ssdiv = "4.00", "4.00", "4.00", "4.00", "4.00";
50+
so = <0x02B>, <0x03B>, <0x036>, <0x03B>, <0x03A>;
51+
snum = <0x07>, <0x07>, <0x07>, <0x07>, <0x07>;
52+
sdpa = <0x0F>, <0x0F>, <0x0F>, <0x0F>, <0x0F>;
53+
num-moving-avg = <4>;
54+
on-freq = <3>;
55+
off-freq = <3>;
56+
drift-freq = <255>;
57+
cancel-freq = <0>;
58+
status = "okay";
59+
60+
slider {
61+
threshold = <573>;
62+
status = "okay";
63+
};
64+
};
65+
66+
group3 {
67+
ssdiv = "4.00", "4.00", "4.00", "4.00";
68+
so = <0x047>, <0x046>, <0x049>, <0x040>;
69+
snum = <0x07>, <0x07>, <0x07>, <0x07>;
70+
sdpa = <0x0F>, <0x0F>, <0x0F>, <0x0F>;
71+
num-moving-avg = <4>;
72+
on-freq = <3>;
73+
off-freq = <3>;
74+
drift-freq = <255>;
75+
cancel-freq = <0>;
76+
status = "okay";
77+
78+
wheel {
79+
threshold = <711>;
80+
status = "okay";
81+
};
82+
};
83+
};

0 commit comments

Comments
 (0)