Commit Graph

26 Commits

Author SHA1 Message Date
Huqiang Qin 6c878f646b saradc: s7d: support saradc [1/1]
PD#SWPL-163056

Problem:
S7D Silicon Bringup.

Solution:
Add a new SARADC driver.

Verify:
S7D/BM201

Change-Id: I5049a6f741bcc72691c931bc10830b30dc53913c
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2024-04-17 19:31:21 +08:00
Zelong Dong f349ec882b ir: support 2 multi-format ir controller [1/1]
PD#SWPL-163059

Problem:
legacy ir controller was updated to multi-format ir controller
and each controller have a IRQ

Solution:
support 2 IRQs in ir driver

Verify:
s7d_bm201

Change-Id: I268562144440d642e4f635dbe76bb45f799d6bee
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-04-17 19:31:21 +08:00
Huqiang Qin c3530a332b adc_keypad: support blink led [1/1]
PD#SWPL-152938

Problem:
When the button is pressed, the LED will flash.

Solution:
New function.

Verify:
SC2/AH212

Change-Id: I4c4ff83b4b23a138b503647b20b5af09a6fb4336
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2024-02-21 04:05:58 -07:00
Huqiang Qin 6b08567df2 keypad: support hibernate [1/1]
PD#SWPL-145761

Problem:
Kernel 5.15 STD for keypad.

Solution:
1. suspend/resume changed to standard pm interface.
2. re-request GPIO on restore.

Verify:
S5/AX208 T7/AN400

Change-Id: I71a1dde2f3a436f480ea9c728a010b8705d8e976
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2024-01-31 22:15:58 -07:00
Zelong Dong 7af9ab22a1 ir: support hibernate mode for ir [1/1]
PD#SWPL-145760

Problem:
support hibernate mode for ir

Solution:
support hibernate mode for ir

Verify:
s4

Change-Id: Ied8d29fc620b6650583b10b7bb30b309e697fcc3
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-01-29 04:01:39 -07:00
Zelong Dong 4f532e8539 ir: add BTN_* event for input device [1/1]
PD#SWPL-148643

Problem:
ir mouse mode need BTN_* event

Solution:
add BTN_* event for ir input device

Verify:
s4_ap229

Change-Id: Ic078fb2b842fc91e6b7df55f5bc184a25b696c39
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2023-12-11 06:19:05 -07:00
Jianxiong Pan 455d10eff1 zapper: disable hdmitx20 and mbox. [1/1]
PD#SWPL-126879

Problem:
s1a memory optimization.

Solution:
disable hdmitx20 and mbox.

Verify:
s1a.

Test:
s1a.

Change-Id: I317718936fdc14ec3b30faae7672fea66ac4541c
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-12-03 04:25:04 -07:00
Huqiang Qin 8ac449d82e input: coverity clean [1/1]
PD#SWPL-141997

Problem:
Have coverity issue.

Solution:
Modify the code based on scan results.

Verify:
Kernel 5.15

Change-Id: I15cc6077c83e8ea6b88f33e8f51f1285a9f1af2e
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2023-10-20 04:44:13 -07:00
Shunzhou Jiang 855b70c393 mbox: mbox driver refactoring [1/2]
PD#SWPL-87115

Problem:
mbox driver refactoring

Solution:
mbox driver refactoring

Verify:
t7/t7c/t5m/sc2/s4/s4d/a1/c2/s5/t3x/t5w/g12b/sm1/txhd2

Change-Id: Ia3e5f9ff2b6de16a082e7f028fcc36dc4268856a
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
2023-08-08 02:57:29 -07:00
Zelong Dong 8e475942ad ir: optimize ir input driver keybit [1/1]
PD#SWPL-113695

Problem:
the length of uevent env string was exceed
because of too many keybits.

Solution:
optimize ir input driver keybit.

Verify:
t7_an400

Change-Id: Ib1292c65fdd7444d4158d46dbd3b36fefdeffebb
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2023-06-20 01:52:09 -07:00
shu.wang 808c4ee4ee Input: Porting csk05 touch button driver from kernel4.19 [1/1]
PD#SWPL-124757

Problem:
The csk05 touch button driver is currently missing.

Solution:
Porting csk05 touch button driver from kernel4.19.

Verify:
A113L-T404

Change-Id: Ifd94fe06a133822d1d0d55c97ec5e946ce438e26
Signed-off-by: shu.wang <shu.wang@amlogic.com>
2023-05-30 20:55:45 -07:00
chengbing.wu 29655631ae pmic: a1 k5.15 pmic and sub driver porting [1/1]
PD#SWPL-112358

Problem:
ad403 is missing pmic6b driver in kernel5.15.

Solution:
base Yu Tu 76117 and 78726;
base Jian yi 189702 and 192916,216774;
and yao jie 216898;

Verify:
A113L-AD401 #1 +Battery.
all driver use ko;

Change-Id: I911ca92dbe6f8c0f623e32fd14bdcf23a6318861
Signed-off-by: chengbing wu <chengbing.wu@amlogic.com>
2023-04-16 22:32:09 -07:00
Zelong Dong 79b2e8f1f6 ir: support custom vendor and product id [1/1]
PD#SWPL-115519

Problem:
support custom vendor and product id

Solution:
support custom vendor and product id

Verify:
t7_an400

Change-Id: I916ef9e0bc3f8a2e21f02e92d9dd31f1319a8e0d
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2023-03-27 04:16:47 -07:00
Huqiang Qin e04bfc0192 adc_keypad: can't wakeup in android [1/1]
PD#SWPL-114618

Problem:
No press event reported after wakeup.

Solution:
Refer to Kernel 5.4 to modify.

Verify:
S4/AP222

Change-Id: I2ae8ca275f1db95a05419bb73eef205997bae9d0
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2023-03-22 00:24:21 -07:00
Zelong Dong 424885550f ir: support EV_REL only when enable ir mouse mode [1/1]
PD#SWPL-108487

Problem:
not allow to support EV_REL in CTS test

Solution:
support EV_REL only when enable ir mouse mode

Verify:
t7_an400

Change-Id: Ia1228038e48dc04fa0a02a94bee9edc711b3fdf2
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2023-03-08 23:16:09 -08:00
Zelong Dong f3b5d54aae typo check: fix ir&jtag driver typo error [1/1]
PD#SWPL-103902

Problem:
cl check has false positives word

Solution:
fix ir&jtag driver typo error

Verify:
ohm

Change-Id: I0b05b50d800f694c63afef3b329bc437ec850bf4
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2022-12-29 00:41:07 -08:00
qinglin.li 67ec74de0d input: combine input modules [1/1]
PD#SWPL-95684

Problem:
combine input modules

Solution:
result:
	amlogic-input.ko
original:
	amlogic-input-gpiokey.ko
	amlogic-input-adckey.ko
	amlogic-input-ir.ko

Verify:
sc2

Change-Id: Ia8bdb007f4769bd627c9c9493b1d2dff7ffcb9f8
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2022-11-05 12:07:15 +08:00
pengzhao.liu b946ffb848 typo: clear typo problem [1/1]
PD#SWPL-89627

Problem:
clear typo problem

Solution:
clear typo problem

Verify:
s4d

Signed-off-by: pengzhao.liu <pengzhao.liu@amlogic.com>
Change-Id: I9121c9d4b54df9b9a7c244182693e0fd616f5a9e
2022-09-07 20:06:45 +08:00
wanwei.jiang 7ef5fd4983 build: directory customization [1/3]
PD#SWPL-72631

Problem:
common, build and common_drivers directories are not under the same directory

Solution:
common, build and common_drivers directories customization

Verify:
s4d and C2 AF400

Change-Id: I8e29737a0a791d58454691e922dda949098595bb
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-02-22 11:00:37 +08:00
qinglin.li 7c6316bebd printk : printk optimization [2/2]
PD#SWPL-70486

Problem:
use common tag in driver when printf

Solution:
set common pr_fmt in driver

Verify:
s4d

Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Change-Id: Ieee271d289e4d2f81258875d36288046b996a5d2
2022-02-14 19:55:32 -07:00
Lei Zhang b641c4ee8b adckey,gpiokey: support adc key and gpio key driver for c2 [1/1]
PD#SWPL-71098

Problem:
support adc key and gpio key driver

Solution:
support adc key and gpio key driver

Verify:
on C2 AF400

Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
Change-Id: Ibd3c7d706f4abe62fc293ffab2d4a16ab394b9df
2022-01-27 10:27:48 +08:00
wanwei.jiang 0919991d54 makefile: modify makefile format [1/1]
PD#SWPL-64232

Problem:
modify makefile format

Solution:
modify makefile format

Verify:
s4d

Change-Id: Ibf39aa40f8673c3a50adacc4b502a5eea70bee02
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-01-13 18:43:07 +08:00
wanwei.jiang 1c6ed6969b key: porting adc key driver [1/1]
PD#SWPL-68631

Problem:
porting adc key driver

Solution:
porting adc key driver

Verify:
s4d

Change-Id: Ib65478bacd49d008020d8c3dbc00ce698b4056d4
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-01-12 10:42:11 +08:00
wanwei.jiang f57f2b94be ir: porting ir driver [1/1]
PD#SWPL-68760

Problem:
porting ir driver

Solution:
1. porting ir driver
2. porting struct tasklet_struct

Verify:
s4d

Change-Id: I5db4e2404718d0ecdde2c2efa013564c7c5a9298
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2021-12-28 15:33:46 +08:00
wanwei.jiang 3b5e277b9f gpiokey: porting gpiokey driver [2/2]
PD#SWPL-65870

Problem:
modify the code to meet the checkpatch requirements

Solution:
1. modify dev_info to dev_dbg

Verify:
s4d

Change-Id: I23de35a0990ebf054b777d1fcad0592804cf8f4d
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2021-12-21 11:08:26 +08:00
wanwei.jiang 2248073b65 gpiokey: porting gpiokey driver [1/2]
PD#SWPL-65870

Problem:
porting gpiokey driver

Solution:
porting gpiokey driver

Verify:
s4d

Change-Id: I05fb390d2960ed000b7bed4726f13f7d581556ec
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2021-12-21 10:15:47 +08:00