ligd
354abd4e8e
uinput: fix uinput compile failed, if no define CONFIG_UINPUT_TOUCH
...
input/uinput.c:81:28: error: field 'lower' has incomplete type
81 | struct touch_lowerhalf_s lower;
| ^~~~~
CC: pipes/pipe.c
Signed-off-by: ligd <liguiding1@xiaomi.com>
2023-01-17 10:55:52 +08:00
Lee Lup Yuen
6de5a862cd
drivers/input: Add driver for Goodix GT9XX Touch Panel
...
This PR adds the driver for Goodix GT9XX I2C Touch Panel, which will be called by PINE64 PinePhone.
Our driver follows the design of the NuttX Driver for [Cypress MBR3108](https://github.com/apache/nuttx/blob/master/drivers/input/cypress_mbr3108.c ).
We have documented our driver here: ["NuttX Touch Panel Driver for PinePhone"](https://lupyuen.github.io/articles/touch2#appendix-nuttx-touch-panel-driver-for-pinephone )
`drivers/input/Kconfig`: Added option `INPUT_GT9XX` to select GT9XX Driver
`drivers/input/Make.defs`: Added GT9XX Driver to Makefile
`drivers/input/gt9xx.c`, `gt9xx.h`: I2C Driver for GT9XX Touch Panel
2023-01-13 12:19:53 +08:00
Xiang Xiao
b0a0ba3ad7
fs: Move mmap callback before truncate in [file|mountpt]_operations
...
since mmap may exist in block_operations, but truncate may not,
moving mmap beforee truncate could make three struct more compatible
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-04 17:43:59 +02:00
Xiang Xiao
779a610ca3
Remove the unnecessary NULL fields in global instance definition of file_operations
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-04 00:32:13 +02:00
Jukka Laitinen
f33dc4df3f
Change FIOC_MMAP into file operation call
...
- Add mmap into file_operations and remove it from ioctl definitions.
- Add mm_map structure definitions to support future unmapping
- Modify all drivers to initialize the operations struct accordingly
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2023-01-02 11:23:20 -03:00
Jukka Laitinen
41e9df2f3e
Add ftruncate into file operation calls
...
- Add truncate into file_operations
- Move truncate to be common for mountpt_operations and file_operations
- Modify all drivers to initialize the operations struct accordingly
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2023-01-02 11:23:20 -03:00
pengyiqiang
c4535ee66a
drivers/input/touchscreen_upper: add missing function code comments
...
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-12-01 10:26:11 +08:00
Xiang Xiao
a446b5816f
mm/circbuf: Remove MM_CIRCBUF option from Kconfig
...
since the linker can remove the unused object file from the final image
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-08 10:18:27 -03:00
yinshengkai
85f727f232
tools: replace INCDIR to Makefile variable
...
In the past, header file paths were generated by the incdir command
Now they are generated by concatenating environment variables
In this way, when executing makefile, no shell command will be executed,
it will improve the speed of executing makfile
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2022-11-03 19:59:55 +08:00
anjiahao
d7b4e91dda
Call nxsem_destroy or nxmutex_destry in the error path
...
1.Don't check the return value of nxsem_init or nxmutex_init
2.Fix some style issue
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-30 13:56:52 +01:00
anjiahao
5724c6b2e4
sem:remove sem default protocl
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2022-10-22 14:50:48 +08:00
Xiang Xiao
dca5a3483f
drivers: Destroy mutex and sem in the error path
...
also correct the order to ensure the memory free is last step
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-17 15:59:46 +09:00
anjiahao
dee38ce3e8
arch: Replace critical section with nxmutex in i2c/spi/1wire initialization
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-17 15:59:46 +09:00
anjiahao
d1d46335df
Replace nxsem API when used as a lock with nxmutex API
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-17 15:59:46 +09:00
Fotis Panagiotopoulos
bbf3f2866d
Fixed non-UTF8 characters.
2022-09-28 09:38:55 +08:00
wangbowen6
344c8be049
poll: add poll_notify() api and call it in all drivers
...
Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
2022-09-26 12:06:32 +08:00
Nathan Hartman
1913163c64
drivers: Fix some Kconfig help texts
2022-09-13 23:25:47 +08:00
ligd
8a3683fb9f
rptun: add ns_match callback to resolve rptun deadlock
...
thread A: accept -> net_lock -> socket_rpmsg_accept
-> rpmsg_register_callabck -> rptun_lock
thread B: ns_bind -> rpmsg_socket_ns_bind -> get_tx_payload_buffer
-> rptun_wait_tx -> usrsock_rpmsg_ept_cb -> usrsockdev_write
-> net_lock -> deadlock
fix:
add ns_match callback
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-07-27 20:36:51 +08:00
Petro Karashchenko
09b3fb25ab
drivers: remove unimplemented open/close/ioctl interfaces
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-04-15 16:56:25 +08:00
Jiuzhu Dong
d87cf8d4ca
fs/poll: change format for type pollevent_t
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-04-07 12:14:06 +08:00
yinshengkai
dfbf06e250
fix uinput rpmsg logic error
2022-04-06 14:36:11 +03:00
Xiang Xiao
7b97b3ad70
input/touchscreen: Fix the typo error
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-03-28 12:33:48 +03:00
Petro Karashchenko
98ba65c422
c89: get rid of designated initializers in common code
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-03-28 13:39:27 +08:00
Xiang Xiao
7ea14aa8f8
input/keyboard: Make each instance could have a different buffer size
...
just like what is done for touch screen driver
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-03-21 09:03:05 +02:00
Xiang Xiao
7de9b879a1
input/touchscreen: Change the type of touch_upperhalf_s::nums from uint32_t to uint8_t
...
to align with the type of touch_register
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-03-21 09:03:05 +02:00
Xiang Xiao
9b2c89fc0e
input/uinput: Remove the argument from initialization function
...
since each type of uinput just need Instantiate one instance
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-03-21 09:03:05 +02:00
Xiang Xiao
fd5fb26f51
input/uinput: Rename UINPUT_TOUCHSCREEN to UINPUT_TOUCH
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-03-21 09:03:05 +02:00
yinshengkai
bfe29c8d1f
driver/uinput: add uinput keyboard support
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2022-03-17 19:44:17 +02:00
yinshengkai
a0fa07c275
driver/keyboard: add keyboard upperhalf driver
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2022-03-17 19:44:17 +02:00
yinshengkai
c3c6b64cc3
driver/uinput: Add cross core control function
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2022-03-17 19:44:17 +02:00
yinshengkai
eebd736891
board/sim: update uinput init & Kconfig
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2022-03-17 19:44:17 +02:00
yinshengkai
0c2f86f74d
driver/touchscreen: Add multithreaded read support
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2022-03-17 19:44:17 +02:00
Xiang Xiao
b690262aac
input/buttons: Always protect the resource by critical section
...
it's wrong to protect the resource by bu_exclsem
in some case and critical section in others
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-03-09 10:10:38 +02:00
Xiang Xiao
f884e647ec
input/djoystck: Always protect the resource by critical section
...
it's wrong to protect the resource by du_exclsem
in some case and critical section in others
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-03-09 10:10:38 +02:00
Xiang Xiao
a924d7a17e
input/ajoystck: Always protect the resource by critical section
...
it's wrong to protect the resource by au_exclsem
in some case and critical section in others
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-03-09 10:10:38 +02:00
xueyanhong
b953296de7
input/buttons: Fix the event lose between the invocation of poll
...
Signed-off-by: xueyanhong <xueyanhong@xiaomi.com>
2022-03-03 10:38:00 +02:00
Xiang Xiao
2c8437151f
input/djoystick: Fix the event lose between the invocation of poll
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-03-03 10:38:00 +02:00
Xiang Xiao
9436a78a5f
input/ajoystick: Fix the event lose between the invocation of poll
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-03-03 10:38:00 +02:00
Xiang Xiao
36909f5f6c
input/buttons: Remove the unused bu_enabled from btn_upperhalf_s
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-03-01 01:08:13 +08:00
Xiang Xiao
70d90340c7
input/djoystick: Remove the unused du_enabled from djoy_upperhalf_s
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-03-01 01:08:13 +08:00
Xiang Xiao
f4b1b1262f
input/ajoystick: Remove the unused au_enabled from ajoy_upperhalf_s
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-03-01 01:08:13 +08:00
Xiang Xiao
478b292a87
input/buttons: Remove btn_enable from btn_sample
...
since btn_sample doesn't change the status
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-03-01 01:08:13 +08:00
Xiang Xiao
207249afdc
input/djoystck: Remove djoy_enable from djoy_sample
...
since djoy_sample doesn't change the status
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-03-01 01:08:13 +08:00
Xiang Xiao
aac9c4b78a
input/ajoystck: Remove ajoy_enable from ajoy_sample
...
since ajoy_sample doesn't change the status
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-03-01 01:08:13 +08:00
Xiang Xiao
f42b56b1c4
input/touch: Remove the couple from uinput
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-27 22:19:23 +01:00
Xiang Xiao
63c911fb56
input/button: Remove the couple from uinput
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-27 22:19:23 +01:00
Jiuzhu Dong
ef66c620c4
input/uinput: fix codesyle issue
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-02-11 11:58:49 +08:00
yinshengkai
3bb4e053fe
driver/uinput: add uinput button support
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2022-01-20 01:20:19 +08:00
yinshengkai
377c15955e
driver: add uinput support
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2022-01-20 01:20:19 +08:00
yinshengkai
676b735c4a
driver/touchscreen: Add support for write operations
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2022-01-20 01:20:19 +08:00