zephyr/boards/renesas/ek_ra2a1/ek_ra2a1.dts
The Nguyen 7720a6a47f boards: renesas: ek_ra2a1: add support for ctsu on Renesas RA
Enable support for CTSU button on ek_ra2a1 board

Signed-off-by: The Nguyen <the.nguyen.yf@renesas.com>
2025-07-29 11:19:20 +01:00

164 lines
2.7 KiB
Plaintext

/*
* Copyright (c) 2024 TOKITA Hiroshi
* SPDX-License-Identifier: Apache-2.0
*/
/dts-v1/;
#include <renesas/ra/ra2/r7fa2a1ab3cfm.dtsi>
#include <zephyr/dt-bindings/gpio/gpio.h>
#include <zephyr/dt-bindings/input/input-event-codes.h>
#include "ek_ra2a1-pinctrl.dtsi"
/ {
model = "Renesas EK-RA2A1";
compatible = "renesas,ra2a1", "renesas,ra2";
chosen {
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
zephyr,entropy = &trng;
};
leds {
compatible = "gpio-leds";
led1: led1 {
gpios = <&ioport2 5 GPIO_ACTIVE_HIGH>;
label = "LED1";
};
};
buttons {
compatible = "gpio-keys";
button0: s1 {
gpios = <&ioport2 6 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "Push button switch 1";
zephyr,code = <INPUT_KEY_0>;
};
};
aliases {
led0 = &led1;
sw0 = &button0;
watchdog0 = &wdt;
};
};
&xtal {
clock-frequency = <DT_FREQ_M(12)>;
mosel = <0>;
#clock-cells = <0>;
status = "okay";
};
&subclk {
status = "okay";
};
&ioport2 {
status = "okay";
};
&sci0 {
pinctrl-0 = <&sci0_default>;
pinctrl-names = "default";
status = "okay";
uart0: uart {
current-speed = <115200>;
status = "okay";
};
};
&spi1 {
pinctrl-0 = <&spi1_default>;
pinctrl-names = "default";
cs-gpios = <&ioport1 2 GPIO_ACTIVE_LOW>;
status = "okay";
};
&ioport1 {
status = "okay";
};
&ioport4 {
status = "okay";
};
&port_irq6 {
interrupts = <29 3>;
status = "okay";
};
&pwm0 {
pinctrl-0 = <&pwm0_default>;
pinctrl-names = "default";
interrupts = <28 1>, <31 1>;
interrupt-names = "gtioca", "overflow";
status = "okay";
};
&trng {
status = "okay";
};
&iic0 {
pinctrl-0 = <&iic0_default>;
pinctrl-names = "default";
#address-cells = <1>;
#size-cells = <0>;
clock-frequency = <DT_FREQ_M(1)>;
interrupts = <0 1>, <1 1>, <2 1>, <3 1>;
interrupt-names = "rxi", "txi", "tei", "eri";
status = "okay";
};
&dac0 {
pinctrl-0 = <&dac0_default>;
pinctrl-names = "default";
status = "okay";
};
&wdt {
status = "okay";
};
&ctsu {
pinctrl-0 = <&ctsu_default>;
pinctrl-names = "default";
interrupts = <10 3>, <11 3>, <12 3>;
interrupt-names = "ctsuwr", "ctsurd", "ctsufn";
clock-div = <1>;
pwr-supply-sel = "vcc";
atune1 = "normal";
measure-mode = "self-multi-scan";
tscap-gpios = <&ioport4 9 0>;
status = "okay";
group1 {
ctsuchac = <0x00>, <0x80>, <0x00>, <0x00>, <0x00>;
ctsuchtrc = <0x00>, <0x00>, <0x00>, <0x00>, <0x00>;
rx-count = <1>;
tx-count = <0>;
ssdiv = "1.00";
so = <0x108>;
snum = <0x01>;
sdpa = <0x0B>;
on-freq = <3>;
off-freq = <3>;
drift-freq = <255>;
cancel-freq = <0>;
num-moving-avg = <4>;
ts1: button1 {
compatible = "renesas,ra-ctsu-button";
event-code = <INPUT_KEY_1>;
elements = <0>;
threshold = <2305>;
hysteresis = <115>;
};
};
};