-
Notifications
You must be signed in to change notification settings - Fork 8k
drivers: input: Add input driver support on RSK-RX130 #96559
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
drivers: input: Add input driver support on RSK-RX130 #96559
Conversation
Update commit ID for CTSU support on Renesas HAL Signed-off-by: Quy Tran <[email protected]>
The following west manifest projects have changed revision in this Pull Request:
⛔ DNM label due to: 1 project with PR revision Note: This message is automatically posted and updated by the Manifest GitHub Action. |
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]>
f304555
to
d4c5731
Compare
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]>
d4c5731
to
4dd7324
Compare
|
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); |
There was a problem hiding this comment.
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) \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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) \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
static void map_component_cfgs##idx(const struct device *dev) \ | |
static void map_component_cfgs##idx(void) \ |
int err = renesas_rx_ctsu_init(dev); \ | ||
return err; \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
int err = renesas_rx_ctsu_init(dev); \ | |
return err; \ | |
return renesas_rx_ctsu_init(dev); \ |
|
||
void button1_task(void) | ||
{ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add Input subsys support on Renesas RX CTSU HWIP