Commit Graph

585 Commits

Author SHA1 Message Date
Evoke Zhang 56b1900890 lcd: add high resolution vsync measure debug function [1/1]
PD#SWPL-134937

Problem:
need high resolution vsync measure debug function for lcd

Solution:
add high resolution vsync measure debug function

Verify:
am301

Change-Id: I1b1391a6210e2132ce36ebb27df83398b583f1f2
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2023-08-28 20:13:37 -07:00
lizhi.hu 70b22cbbc6 lcd: add support ZS101NI4050J4H8II-A [1/1]
PD#SWPL-137167

Problem:
support panel ZS101NI4050J4H8II-A

Solution:
add

Verify:
t7_an400
txhd2_be311

Change-Id: I24e35e659ad77545903a854b4a734f4665a3c6e8
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2023-08-25 01:54:07 -07:00
Pengcheng Chen bd1bc39010 vpp: fix display blurred in lowlatency mode [1/1]
PD#SWPL-132411

Problem:
video buffer put back when in lowlatency proc

Solution:
only put video buffer in vsync_isr

Verify:
ohm

Change-Id: If78ef47a58fa93d44303d49c84c4079a1b1e321c
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2023-08-25 01:53:54 -07:00
Jian Cao e11d976bb9 vpp: video lowlatency optimize [1/1]
PD#SWPL-132066

Problem:
need to support video lowlatency

Solution:
video lowlatency optimize

Verify:
s1a-bg201

Signed-off-by: Jian Cao <jian.cao@amlogic.com>
Change-Id: Ie8a6f4c72314f9acf7202e7d86721403842d5499
2023-08-24 23:00:24 -07:00
qiang.liu 86d706df8f vdin: if fmt is null send nosig [1/1]
PD#SWPL-137116

Problem:
fmt is null vdin send unstable will black screen

Solution:
if fmt is null send nosig

Verify:
txhd2

Change-Id: I482068d6bbc6aeb867c6c59528d9d8edf3dd79dd
Signed-off-by: qiang.liu <qiang.liu@amlogic.com>
2023-08-24 21:58:41 -07:00
Chuan Liu 631a6fc5a9 clk: g12a/g12b/sm1: standard the naming of the clock [1/1]
PD#SWPL-137162

Problem:
Some clock names are ambiguous

Solution:
fixed

Verify:
w400

Change-Id: Ia5cba038a1b57d2274f9bfff931fcb0d49d421b9
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2023-08-24 03:54:11 -07:00
zhicheng.huang 1c4734b5fd dtv_demod: bring up new dvbc blind scan feature(V3.5.4) [1/1]
PD#SWPL-79478

Problem:
old DVB-C blind scan is too slow

Solution:
1.new dvbc blind scan feature time usage about 11min30s,
the speed has increased by about 65%.
2.AMLDTVDEMOD_VER V3.5.4

Verify:
s905c3 t214/ap232

Change-Id: I9197ed12844dff36ccb0a79488899f8872e04fed
Signed-off-by: zhicheng.huang <zhicheng.huang@amlogic.com>
2023-08-24 03:53:52 -07:00
Jie Dai 77713835a4 lcd: lut_dma driver support [2/2]
PD#SWPL-124798

Problem:
lut flush dma is better than cpu

Solution:
add lut dma driver

Verify:
ay301

Change-Id: Id8d9faf309767f6a7f6ac665081f1d27d34108ad
Signed-off-by: Jie Dai <jie.dai@amlogic.com>
2023-08-24 03:53:45 -07:00
Jian Hu 554b203a3c dts: add t5d device tree [1/1]
PD#SWPL-128885

Problem:
kernel 5.15 t5d bringup

Solution:
add dts support

Verify:
t5d

Change-Id: Ia3bf3a2923d0a949389d1397b952a343da8a8da6
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2023-08-24 10:49:21 +08:00
congyang.huang 0aba26a6cd vout: move vout ioctls to uapi [1/1]
PD#SWPL-134166

Problem:
move vout ioctls to uapi

Solution:
move vout ioctls to uapi

Verify:
T5W

Change-Id: Idcb298b99738883cbb9b5e6486248fa698fbfb33
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2023-08-23 04:14:24 -07:00
Evoke Zhang d58a333fe2 lcd: update clk ss support [2/2]
PD#SWPL-136272

Problem:
1.txhd2 need support lcd ss
2.ss support need update

Solution:
update clk ss support

Verify:
be311, ar301

Change-Id: Ia1462905734f79b6dad9bea8c25681dd596fa1a1
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2023-08-22 22:13:48 -07:00
chen.xu f839fde0ca amlvideo2: get width and height for only video [1/1]
PD#SWPL-136140

Problem:
need screencap for only video of point 7.

Solution:
get width and height for only video of point 7.

Verify:
TXHD2

Change-Id: I534baa5201191cc4324d8f1c914df39c548ccf40
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2023-08-22 06:09:06 -07:00
hai.cao 9259040a9d video: get input size before pps and sr [1/1]
PD#SWPL-136132

Problem:
provide api to get input size

Solution:
provide api for it

Verify:
TXHD2

Change-Id: Ifcf7f18ce6b806cc8f68cf985172e46bc2625f76
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2023-08-22 06:09:03 -07:00
miaohong chen 962cb42a2c v4ldec: CF1 dma buffer alloc delay for interlaced stream. [1/3]
PD#SWPL-119524

Problem:
Due to the post-positioning of di,
the vb2 buffer is directly thrown from the decoder to the upper layer.
Since each vb2 buffer can only be returned by the upper layer,
it can be thrown to the upper layer again. For interlaced streams,
two fields need to be output, so the second field cannot be output.

Solution:
The capture dma buffer is allocated in the decoder.
uvm only allocates an empty shell,
which is actually allocated by the decoder and replaces the dma buffer.

Verify:
ohm

Change-Id: Ic93fc379ad35d873ed3ef2bb0c5312254a08dee5
Signed-off-by: miaohong chen <miaohong.chen@amlogic.com>
2023-08-20 23:03:36 -07:00
Brian Zhu b3c819711f di_multi: support crop with prelink and dct function [1/1]
PD#SWPL-128700

Problem:
When prelink and dct, do not support crop function

Solution:
1. add alignment for dct and prelink case
2. When grid crop did not match for dct post, bypass dct
3. add crop function in grid and dct post
4. when afbc and crop source, adjust nr write afbce and mem afbcd scope

Verify:
verified on t5m

Change-Id: Id4cb63bb91e168f540dce22a3834ba70b052f128
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2023-08-20 16:03:39 -07:00
jintao xu 6e5a389962 di_process: support di in display side [1/4]
PD#SWPL-136316

Problem:
support di backend

Solution:
support di backend

Verify:
ohm

Change-Id: Iad72c1ebc5e33bade4e6efb87167defd4bc405b6
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
2023-08-19 18:08:44 -07:00
Evoke Zhang 1e91981dbe lcd: optimize clk accuracy [2/2]
PD#SWPL-134401

Problem:
the accuracy of lcd vfreq is not quite high for 59hz

Solution:
calc clk with 64bit to improve the accuracy

Verify:
am301

Change-Id: I6f5460f7e40307c50ba5eaa0d624c342df2485c9
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2023-08-18 04:04:10 -07:00
yufei.huan cfdb95cb0e deinterlace: 5.15 pq_api move to uapi [1/1]
PD#SWPL-127313

Problem:
move pq_api to uapi path

Solution:
move pq_api to uapi path

Verify:
verify on t5m

Change-Id: I253a8fce92feb84b630ea5d1199b2b1c724b57b3
Signed-off-by: yufei.huan <yufei.huan@amlogic.com>
2023-08-18 00:23:39 -07:00
rong.wang 15a5d215b1 deinterlace: add di super urgent setting [1/1]
PD#SWPL-134074

Problem:
need to set di super urgent

Solution:
add di super urgent setting

Verify:
txhd2

Change-Id: I6b18850b05b493fc973a513d681d6481912cb564
Signed-off-by: rong.wang <rong.wang@amlogic.com>
2023-08-17 02:28:51 -07:00
Brian Zhu 96c08956d3 deinterlace: add more state check when bypass pre-link [1/1]
PD#SWPL-134420

Problem:
when di just reg,not ready,the pre-link flow is not correct

Solution:
add link_in_busy status

Verify:
t5m

Change-Id: I67f32834b516107115467feeaf8a053071b83e8d
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2023-08-17 00:18:55 -07:00
yao liu 3aa0c96b5c amdv: idk5.1 case5306 fail [1/1]
PD#SWPL-136814

Problem:
1.some idk5.1 case fail
2.play top1+top2 case fail by mediaplayer
3.top1 special case

Solution:
1.update hdmi dynamic cfg
2.optimize top1+top2 process
3.add drm-bt2020 support

Verify:
t3x

Change-Id: Ie6c1fcfe078eddc3279c7993ff5e5059c3ce41dd
Signed-off-by: yao liu <yao.liu@amlogic.com>
2023-08-17 00:18:51 -07:00
lizhi.hu 4d15016b30 lcd: eDP full link training & EDID timing 5.15 [1/1]
PD#SWPL-134539

Problem:
add full link training adn EDID timing process for T7

Solution:
add

Verify:
t7_an400

Change-Id: Ib82f8c7e9b3bd178489c1ef1c43bd35cade9bf47
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2023-08-17 00:18:45 -07:00
Shunzhou Jiang 098bf7992e s1a: mbox driver bringup [1/1]
PD#SWPL-87115

Problem:
mbox driver bringup

Solution:
mbox driver bringup

Verify:
s1a

Change-Id: I99b5e45eea575cf133b8f8228916e5505936c473
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
2023-08-15 20:08:59 -07:00
Shunzhou Jiang 5f585853c5 c1: mbox driver bringup [1/1]
PD#SWPL-87115

Problem:
mbox driver bringup

Solution:
mbox driver bringup

Verify:
c1

Change-Id: I506d7c901f3786a3e79db62f0c4f80ccabe0b383
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
2023-08-15 20:08:43 -07:00
Gaowei Zhao 711cf53fd3 hdmirx: Android-U implement new hal IHdmiConnection [1/1]
PD#SWPL-130241

Problem:
not support setHpdSignal and getHpdSignal

Solution:
provide 2 ioctrl commands to setHpdSignal and getHpdSignal

Verify:
ohm

Change-Id: I8d2844b492b8e788388e3d1e7e25994bea14b4b8
Signed-off-by: Gaowei Zhao <gaowei.zhao@amlogic.com>
2023-08-15 20:08:38 -07:00
Bichao Zheng ccc09fb175 spinand: adjust meson bbt [1/1]
PD#SWPL-136164

Problem:
if oob bit flips, may misidentify bad blocks

Solution:
find meson bbt directly.

Verify:
c3

Change-Id: I66e168963a3210052d154256c6b9ec0f6a1b862f
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
2023-08-15 04:19:30 -07:00
hai.cao a22c87c260 canvas: for drm dynamic alloc [1/1]
PD#SWPL-133418

Problem:
drm alloc error

Solution:
reduce display and osd canvas

Verify:
s1a

Change-Id: I72c6c3e52260efbc56efdc20376d12c90d853f7b
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2023-08-15 10:37:50 +08:00
hai.cao fe3d2aa974 canvas: change canvas max number [1/1]
PD#SWPL-133418

Problem:
di dynamic alloc canvas_id over 128

Solution:
chang canvas max number

Verify:
s1a

Change-Id: I0d9f594d65d80fd09133edce415c857160b48ad6
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2023-08-15 10:37:50 +08:00
Chuan Liu 0377ab14a9 clk: s1a: lost sar_adc clock [1/1]
PD#SWPL-133117

Problem:
lost sar_adc clock

Solution:
add

Verify:
s1a_bg209

Change-Id: Ie6d3f62cdecc64e113fed51e2c41f93a679aad67
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2023-08-15 10:37:49 +08:00
Huijuan Xiao 904fe9a507 amvecm: modify dts for s1a bringup [1/1]
PD#SWPL-133175

Problem:
s1a bringup

Solution:
modify dts for amvecm probe

Verify:
s1a

Change-Id: I9decb39c91204af6092c9d623c99c828871de409
Signed-off-by: Huijuan Xiao <huijuan.xiao@amlogic.com>
2023-08-15 10:36:50 +08:00
Chuan Liu b713a7059f clk: s1a: fix known issues [1/2]
PD#SWPL-133117

Problem:
1 adapts to the new driver
2 some clock descriptions are incorrect
3 unified clock naming Convention

Solution:
fixed

Verify:
s1a_bg209

Change-Id: I4a7296a81b4662978b9aab225bf615ef4ec8747e
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2023-08-15 10:36:50 +08:00
Bichao Zheng 540d825988 spinfc: add new spi nfc driver [1/1]
PD#SWPL-133132

Problem:
adopt new spi flash controller with ecc engine

Solution:
add a new spi nfc flash driver

Verify:
s1a

Change-Id: I551d27ac29effe2bd0bb090a8cc9bc9897080a20
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
2023-08-15 10:36:49 +08:00
Wenjie Qiao 334933f183 hdmitx: s1a bring up [2/2]
PD#SWPL-120803

Problem:
s1a bring up

Solution:
s1a bring up for kernel

Verify:
s1a pxp

Change-Id: I491a975da54d3ba3043fd416b7147870de8966ef
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2023-08-15 10:36:48 +08:00
shihong.zheng 980d4b4001 s1a: s1a decoder bringup. [1/1]
PD#SWPL-120725

Problem:
s1a decoder bringup

Solution:
s1a decoder dts config

Verify:
pxp

Change-Id: I6c67e6437185ee60fb9f489ca890380369d35fb8
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
2023-08-15 10:36:48 +08:00
Zelong Dong 73127f71a3 pinctrl: s1a: support pinctrl & gpio function [1/1]
PD#SWPL-120775

Problem:
s1a need support gpio & pinctrl

Solution:
add s1a pinctrl data

Verify:
s1a_pxp

Change-Id: I06e789a2ab621d4bf3756dcdff6e13ec4a13d8f9
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2023-08-15 10:36:03 +08:00
Chuan Liu 43b35e9123 clk: s1a: clock tree bringup [1/2]
PD#SWPL-120773

Problem:
clock tree bringup for s1a

Solution:
add support

Verify:
pxp

Change-Id: I21040ed89cbd969bf71c250ef97b55592e4a43cb
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2023-08-15 10:36:03 +08:00
hongyu.chen1 5f473e322c S1A: add power domain. [3/3]
PD#SWPL-120910

Problem:
s1a need power domain.

Solution:
add power domain in kernel.

Verify:
pxp

Change-Id: Iffb97862c55034de94806a21aace59aab023526e
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2023-08-15 10:36:03 +08:00
Qianggui Song d258a3a585 reset: add s1a reset driver data [1/1]
PD#SWPL-120780

Problem:
s1a bringup need reset driver support

Solution:
add s1a reset driver data

Verify:
s1a_z1

Change-Id: I563a230435169795bf28990781c9029367fcea8c
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2023-08-15 10:36:03 +08:00
yuhua.lin b9eb5881e9 video: add src_crop struct for decorder source crop [1/1]
PD#SWPL-130228

Problem:
tunnel mode need support src_crop for AFBC compress.

Solution:
add scr_crop struct

Verify:
SC2

Change-Id: Id8066efd57ba32cb92b87276fc77cda342662fea
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2023-08-13 23:48:43 -07:00
chen.xu e135acff51 amlvideo2: support screencap only video [1/1]
PD#SWPL-128910

Problem:
amlvideo2 need support screencap for main and sub screens.

Solution:
amlvideo2 support screencap for main and sub screens.

Verify:
T7C

Change-Id: Iabd1450d1c65a98544e92f2be20f7b34fdd95e2a
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2023-08-08 20:08:40 -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
sky zhou 40b2554ecb hdmitx: delete tx20 timing table [1/1]
PD#SWPL-132966

Problem:
tx20&tx21 have different tables.

Solution:
refact to share timing table.

Verify:
verify on ohm.

Test:
DRM-TX-20, DRM-TX-22, DRM-TX-25, DRM-TX-24

Change-Id: Ib4b3e0f9cb0338b806cfbb32728e37ce8eaeff01
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
2023-08-07 00:18:45 -07:00
sky zhou 8755fbfed0 hdmitx: tx20 move to new hdmi timing table [1/1]
PD#SWPL-126462

Problem:
tx20&tx21 have different tables.

Solution:
refact to share timing table.

Verify:
verify on ohm.

Test:
DRM-TX-20, DRM-TX-22, DRM-TX-25, DRM-TX-24

Change-Id: Ieb4fb60f60784148ebc35364c06b88fd7aebd195
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
2023-08-05 03:58:34 -07:00
yaoyu.xu a9b6f6943b hdmirx: default close 5v wake up [1/1]
PD#SWPL-127580

Problem:
need close 5v wake up function.

Solution:
add ctl to open/close 5v wake up function.

Verify:
txhd2.

Change-Id: Ib61e5c75d1f3c5560dbb4f286b0d2319bcf4e1c8
Signed-off-by: yaoyu.xu <yaoyu.xu@amlogic.com>
2023-08-03 03:58:35 -07:00
donghui.wang 9bdbcbfe4c ldim: add uapi for get bl_matrix [1/1]
PD#SWPL-132375

Problem:
provide uapi for get bl_matrix

Solution:
add ldim uapi

Verify:
t5m

Change-Id: I79206ba1cb28133ece4633817e9a03423796d576
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2023-08-03 01:58:40 -07:00
sky zhou 27d2e239fb hdmitx: remove 420 vic in tx20 [1/1]
PD#SWPL-132192

Problem:
In tx20, still use y420 vic for 4k 420 modes.
It is not necessary to add new vics for such cases.

Solution:
Remove y420 modes, use para.cs + vic instead.

Verify:
verify on ohm.

Test:
DRM-TX-26, DRM-TX-8

Change-Id: Icf91c77b7134df548f29ef03afa6ec34f8b27a24
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
2023-08-02 22:28:57 -07:00
xing.xu 0541849d33 decoder: CF1 Provide UAPI headers for AMSTREAM (DECODER) module [1/1]
PD#SWPL-130933

Problem:
Provide UAPI headers for AMSTREAM (DECODER) module

Solution:
Provide UAPI headers for AMSTREAM (DECODER) module

Verify:
ohm

Change-Id: I943967d8abeba8d88ed2c5a76961b6ddbb227d9b
Signed-off-by: xing.xu <xing.xu@amlogic.com>
2023-08-02 03:32:21 -07:00
he.he 7a2ae9ab56 usb: unplug full speed device on m31phy with and panic [1/1]
PD#SWPL-134215

Problem:
unplug full speed device on m31phy with and panic

Solution:
there is no amlogic_usb_v2 struct in usb_phy_trim_tuning for m31phy,
so it needs to do some filtering.

Verify:
t5m, t3

Change-Id: I65a6f968229ef41da8aaa0024cd7438693d5a935
Signed-off-by: he.he <he.he@amlogic.com>
2023-07-31 06:08:42 -07:00
haitao.liu 11a126ffde vdin: sync the code from projects to the trunk branch [1/1]
PD#SWPL-133608

Problem:
fixed some issues on projects,need sync back into trunk
1.vdin vf lost when game mode change from game 2 to game 1
cause video freezing
2.keeper failed when using scatter memory
3.The first frame of vdin1 abnormal on g12b
4.latency may unstable in game mode 5,due to CPU schedule
5.vdin write is low priority cause video abnormal in some situation
6.request memory form codec_mm may takes long time cause av out of sync
7.new feature, dmc notifier debug method
8.1440x480p60 and 1440x480p50,vdin and hdmirx repeated decimation cause
video abnormal

Solution:
1.recycle all vf in write mode list when game mode change
2.set the right right hand to mem_handle in vf
3.drop the first frame
4.use one fixed phy address,eliminate software scheduling effects
5.set vdin write priority to super urgent
6.notify app after codec_mm_alloc
7.add dmc notifier debug method
8.1440x480p60 and 1440x480p50,hdmirx do not notify vdin decimation,
and 1440x480p60 and 1440x480p50,hdmirx do not notify vdin decimation

Verify:
t7/t5m

Change-Id: I40d6c56fe64e389e0ee6e493e8b7d1e1503f686b
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2023-07-29 23:53:44 -07:00
rong.wang 751c8abcb1 deinterlace: add API to get pre-link on/off status in DI [1/1]
PD#SWPL-132901

Problem:
add API to get pre-link on/off status in DI

Solution:
add API to get pre-link on/off status

Verify:
t5m

Change-Id: I2daf1c8f034d6543b057df9ab6f452481001856e
Signed-off-by: rong.wang <rong.wang@amlogic.com>
2023-07-28 00:32:40 -07:00