Commit Graph

33 Commits

Author SHA1 Message Date
Zelong Dong 133d7fdbdd ir: optimize wakeup event [1/1]
PD#SWPL-190167

Problem:
ir wakeup event would block suspend about 2s

Solution:
optimize wakeup event

Verify:
t6d

Change-Id: Ifebd3ce022f529eaff0259c7e24caf4fd6125ae7
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-11-06 19:51:16 -08:00
Zelong Dong faad4e8d5b ir: support mbox for some func [2/3]
PD#SWPL-182441

Problem:
need to support mbox for some func

Solution:
1. get wakeup framecode
2. enable/disable debug log
3. set wakeup key table
4. enable/disable bl30 ir
5. get the last powerkey

Verify:
t6d_br301

Change-Id: I40e3d6eb08903533f975eba87e18a24148055b70
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-10-28 17:06:56 +08:00
Zelong Dong b6ce03e673 ir: support all IR devices in one common input device [2/2]
PD#SWPL-180331

Problem:
there are 2 IR controllers (2x2 multi-format) in T6D

Solution:
support all IR devices in one common input device

Verify:
t6d_br301

Change-Id: Ib01291b4b3e399ae4b1d15df5aa055339b6ece6c
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-10-28 16:56:39 +08:00
Zelong Dong 5fe58c1604 ir: support multi IR devices [1/2]
PD#SWPL-180331

Problem:
there are 2 IR controllers (2x2 multi-format) in T6D

Solution:
support multi IR devices

Verify:
t6d_br301

Change-Id: I597bea15e9b919279f8267344221d5721f9559df
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-10-28 16:56:32 +08:00
Zelong Dong 741b67098d ir: optimize multi input device [1/1]
PD#SWPL-180331

Problem:
the number of input devices are fixed, up to 3.
Fixes: Ie8c857e0761 ("remote: supports ir functions of various ID")

Solution:
alloc input device dynamically

Verify:
t6d

Change-Id: Ic519000f4a8e6faf0020711ddecb56fd50aa8d80
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-10-28 16:19:08 +08:00
Zelong Dong e4b9a5c995 ir: improve the driver stability [1/1]
PD#SWPL-168630

Problem:
driver was crash when probeing

Solution:
1. allow one irq_no was declare in ir dts node
2. check raw decoder thread before wakeup

Verify:
s7d_bm201

Change-Id: If11ebe6edf84322e953c5189dfcc9594bff8ab62
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-10-28 16:15:51 +08:00
Zelong Dong a79dfe7890 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-10-28 15:55:32 +08:00
Zelong Dong 24bfe1a19b 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-10-28 15:49:19 +08:00
Zelong Dong 065feaa216 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>
2024-10-28 15:48:32 +08:00
Wanwei Jiang 911eeadc02 bringup: upgrade kernel from 6.6.10 to 6.6.11 [1/1]
PD#SWPL-183292

Problem:
upgrade kernel from 6.6.10 to 6.6.11

Solution:
1. modify auto patches
2. modify the code due to the change of
the remove function in struct platform_driver
3. modify the code due to the change of
the match function in struct bus_type
4. modify some page function to folio function
5. modify spi module due to some functions changed

Verify:
local

Change-Id: I92c266b6a1bbae363abd0ff50d7f3037e90bc624
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2024-09-26 15:05:50 +08:00
Huqiang Qin ad142fff30 adc_keypad: optimize code to reduce invalid calls to mbox [1/1]
PD#SWPL-167411

Problem:
Optimize code to reduce invalid calls to mbox.

Solution:
Only the old version of bl30 (arm core) needs to configure mbox.

Verify:
SC2/AH212

Change-Id: If6cd5aab0f21a410e19d5a77a10c2214aa8bd88f
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2024-06-04 05:57:59 -07:00
Dezhen Wang bcfa0ee2e4 bring up: revert compatibility code for kernel 6.6 [1/1]
PD#SWPL-151245

Problem:
kernel6.6 will not distinguish different versions of kernel.
so we do not make compatibility code in 6.6.

Solution:
revert compatibility code for kernel 6.6.

Verify:
local

Test:
local

Change-Id: I24b8acac62cec05ffb2f637a86f91789f1d0b905
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2024-01-11 18:46:45 -07:00
Wanwei Jiang 43461aec82 kernel6.6: bring up [1/1]
PD#SWPL-145682

Problem:
bring up kernel6.6

Solution:
1. porting kernel6.6
2. compatible with different kernel versions
3. bring up kernel6.6

Verify:
sc2 c2 a4 a5

Test:
None

Change-Id: Ie22af0abc8ea96261e8a8cc7804b58565aedd904
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-12-14 16:55:55 +08: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