Skip to content

Conversation

quytranpzz
Copy link
Contributor

Add Input subsys support on Renesas RX CTSU HWIP

Update commit ID for CTSU support on Renesas HAL

Signed-off-by: Quy Tran <[email protected]>
Copy link

github-actions bot commented Sep 25, 2025

The following west manifest projects have changed revision in this Pull Request:

Name Old Revision New Revision Diff
hal_renesas zephyrproject-rtos/hal_renesas@d8ee5f1 (main) zephyrproject-rtos/hal_renesas#145 zephyrproject-rtos/hal_renesas#145/files

DNM label due to: 1 project with PR revision

Note: This message is automatically posted and updated by the Manifest GitHub Action.

@github-actions github-actions bot added manifest manifest-hal_renesas DNM (manifest) This PR should not be merged (controlled by action-manifest) labels Sep 25, 2025
Minh Tang added 2 commits September 26, 2025 04:35
Add support for Capatitive Touch Sensing Unit driver for RX MCUs

Signed-off-by: Minh Tang <[email protected]>
Add support CTSU device tree node for Renesas RX130

Signed-off-by: Minh Tang <[email protected]>
@quytranpzz quytranpzz force-pushed the rx_zephyr_support_ctsu branch from f304555 to d4c5731 Compare September 26, 2025 04:41
Minh Tang added 2 commits September 26, 2025 06:38
Add Pinctrl, status okay for CTSU node on RSK-RX130

Signed-off-by: Minh Tang <[email protected]>
Add sample for CTSU input driver using QE config files on
RSK-RX130-512KB

Signed-off-by: Minh Tang <[email protected]>
@quytranpzz quytranpzz force-pushed the rx_zephyr_support_ctsu branch from d4c5731 to 4dd7324 Compare September 26, 2025 06:40
Copy link

Comment on lines +292 to +301
do {
ret = RM_TOUCH_ScanStart(data->touch_instance.p_ctrl);
if (ret != FSP_SUCCESS) {
LOG_ERR("CTSU: Failed to start scan");
return -EIO;
}
k_sem_take(&data->tune_scan_end, K_FOREVER);
ret = RM_TOUCH_DataGet(data->touch_instance.p_ctrl, &data->curr_buttons_data,
data->curr_sliders_position, data->curr_wheels_position);
} while (ret != FSP_SUCCESS);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add a maximum wait retries?

\
static ctsu_element_cfg_t ctsu_element_cfgs_##idx[NUM_ELEMENTS(idx)]; \
\
static void sort_configs_by_channel_num##idx(const struct device *dev) \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
static void sort_configs_by_channel_num##idx(const struct device *dev) \
static void sort_configs_by_channel_num##idx(void) \

static uint8_t button_position_to_cfg_index##idx[COMPONENT_GET_COUNT_BY_TYPE( \
idx, BUTTON_TYPE)] = {0}; \
\
static void map_component_cfgs##idx(const struct device *dev) \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
static void map_component_cfgs##idx(const struct device *dev) \
static void map_component_cfgs##idx(void) \

Comment on lines +618 to +619
int err = renesas_rx_ctsu_init(dev); \
return err; \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
int err = renesas_rx_ctsu_init(dev); \
return err; \
return renesas_rx_ctsu_init(dev); \


void button1_task(void)
{

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Input Input Subsystem and Drivers area: RX area: Samples Samples DNM (manifest) This PR should not be merged (controlled by action-manifest) manifest manifest-hal_renesas platform: Renesas RA Renesas Electronics Corporation, RA platform: Renesas Renesas
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants