-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Support kpp with rt1180 cm7 cm33 #93301
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?
Support kpp with rt1180 cm7 cm33 #93301
Conversation
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
cmake_minimum_required(VERSION 3.20.0) | ||
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) |
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.
this should go in samples/boards/<vendor>
if it's not usable on other vendor's SoCs
2d04b81
to
cec9feb
Compare
Add KPP driver support. Signed-off-by: Qiang Zhang <[email protected]>
Add KPP clock support for ccm. Signed-off-by: Qiang Zhang <[email protected]>
cec9feb
to
eb04ef9
Compare
Added support for KPP driver. Signed-off-by: Qiang Zhang <[email protected]>
add KPP driver bindings. Signed-off-by: Qiang Zhang <[email protected]>
add kpp peripheral to mimxrt1180_evk. Signed-off-by: Qiang Zhang <[email protected]>
added gpio_kpp test implementation. Signed-off-by: Qiang Zhang <[email protected]>
eb04ef9
to
578fe5e
Compare
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.
This is not how input subsystem drivers area meant to work, they should get a list of input event codes from devicetree and emit them on their own with input_report
, look at other drivers in-tree works, this needs to be reworked to function in a similar way, the sample can go, the default one should be enough to demonstrate it once the driver is written properly, also rename to input_mcux_kpp
Hi Fabio, thanks for your comment, i will modfiy the driver to adapt the input subsystem, and what is the default example for input? |
|
|
This is an implementation for KPP(keyboard port) driver on rt1180.
The KPP (Keypad port) module is a driver for managing the matrix keyboard (Keypad). It is mainly used for RT series chips and is responsible for keyboard row and column scanning.
This PR mainly support kpp drivers, test case, dts support on RT1180.
driver: kpp provides "input_kpp_init()" to initialize the module, including configuration initialization and clock enable. At the same time, the KPP module can be configured and interrupts can be enabled through "input_kpp_config()". When the kpp interrupt is triggered, you can enter "kpp_isr()' to handle the interrupt and call back. Users can use "input_kpp_scan()" in the callback to scan and obtain keypad data and analyze it.