-
Notifications
You must be signed in to change notification settings - Fork 8.3k
drivers: input: bflb IR RX #100600
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: bflb IR RX #100600
Conversation
Add binding and nodes for bflb,irx Signed-off-by: Camille BAUD <mail@massdriver.space>
Will be replaced when approved Signed-off-by: Camille BAUD <mail@massdriver.space>
Enable the gates for IRX Signed-off-by: Camille BAUD <mail@massdriver.space>
Introduces a driver for the IR receiver on BFLB socs Signed-off-by: Camille BAUD <mail@massdriver.space>
|
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. |
|
| /* enable IR clock routing */ | ||
| regval |= (1 << 22); |
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.
isn't it better to guard these with kconfig so that they don't get clocked when they aren't enabled?
| if (cfg->protocol < PW) { | ||
| bflb_irx_isr_handle_prot(data->dev); | ||
| } else { | ||
| bflb_irx_isr_handle_pw(data->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.
| if (cfg->protocol < PW) { | |
| bflb_irx_isr_handle_prot(data->dev); | |
| } else { | |
| bflb_irx_isr_handle_pw(data->dev); | |
| } | |
| if (cfg->protocol == PW) { | |
| bflb_irx_isr_handle_pw(data->dev); | |
| } else { | |
| bflb_irx_isr_handle_prot(data->dev); | |
| } |



Introduce BFLB IR rx peripheral. It does similar things to the vishay vs1838b driver and can in fact use the specific diode as input (and it works great, tested with that on bl60x and bl70x), but as a dedicated peripheral. It can measure Pulse Width additionally.