Commit Graph

7667 Commits

Author SHA1 Message Date
Jianxiong Pan 102ac3d4ea mm: fix build error for memory optimization. [1/1]
PD#SWPL-188274

Problem:
fix build failed problem.

Solution:
fix build failed problem.

Verify:
local.

Change-Id: Id37ab5fe80d21e63cd759f84c7ebb0067b0492ee
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-10-16 23:00:17 -07:00
shaohui sheng 12368896dd audio: EARC & Headphone both output sound [1/1]
PD#SWPL-187684

Problem:
The configuration of the DTS file is incorrect.

Solution:
Reconfigure the DTS file.

Verify:
test on T3X

Change-Id: I449179bfbb8fd63dc28bb45ce7ffd5714a10a856
Signed-off-by: shaohui sheng <shaohui.sheng@amlogic.com>
2024-10-16 23:00:10 -07:00
Evoke Zhang 18efa2d94b lcd: update multi lcd support for phy [2/2]
PD#SWPL-187631

Problem:
lcd1 phy setting incorrect

Solution:
update multi lcd support for phy

Verify:
bc302 multi_display

Change-Id: I26803de76bab03ba2a158bcf758016343ad3b6f5
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-10-16 22:59:47 -07:00
Evoke Zhang 9b02cc1fda lcd: update dfr config for cus_ctrl [2/2]
PD#SWPL-186202

Problem:
need update dfr config for cus_ctrl

Solution:
update dfr config for cus_ctrl

Verify:
bc302

Change-Id: I6c4d0d73d00c210581dec154e723ce2eb5221e1c
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-10-16 22:59:34 -07:00
zhou.han d34b5b1fa9 hdmitx: add hdr_cap_rx and dv_cap_rx property [1/1]
PD#SWPL-185671

Problem:
Try to limit the external module directly r/w  the driver node.

Solution:
Add hdr_cap_rx and dv_cap_rx property

Verify:
ohm

Test:
DRM-TX-20

Change-Id: I236157d968f0ada10cd91156c1dd24671443f84c
Signed-off-by: zhou.han <zhou.han@amlogic.com>
2024-10-16 22:59:12 -07:00
Evoke Zhang 49bfac2068 lcd: support max 820M clk for t3x tconless [2/2]
PD#SWPL-186202

Problem:
need support max 820M pclk for t3x

Solution:
support max 820M clk for t3x

Verify:
bc302

Change-Id: If116f930ae78fc58edd3cbbf0a1b683d184ffa99
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-10-16 22:59:05 -07:00
nengwen.chen cc2f26081c dtv_demod: fix ambus setting when enter dtmb (V3.6.008) [1/1]
PD#SWPL-183315

Problem:
dtmb itself or conflicts with SPI ambus DDR access.

Solution:
fix ambus setting when enter dtmb.
use T5M new ambus handle method (abus_en delay logic).
AMLDTVDEMOD_VER "V3.6.008".

Verify:
T5M.

Change-Id: I5abc0cf04cb56c5386d4f6d27c06b3115c9b99e7
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2024-10-16 21:51:04 -07:00
Huqiang Qin c2e7d6f78c wdt: t6d: support pretimeout [1/1]
PD#SWPL-180411

Problem:
Does not support pretimeout.

Solution:
Support it.

Verify:
T6D/BR301

Change-Id: I350a4948f853503c16fb0bc9abb43c0cf5496814
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2024-10-16 21:50:23 -07:00
Pengcheng Chen 9e9fd34673 vpp: set videoqueue_pcrscr_update in vppx [1/1]
PD#SWPL-185106

Problem:
set videoqueue_pcrscr_update in vppx

Solution:
set videoqueue_pcrscr_update in vppx

Verify:
t7c

Change-Id: I026508e80a06550ce934b65d8a48d9b25d996c6a
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-10-16 21:49:55 -07:00
yufei.huan 5d950f25de deinterlace: reverse source i abnormal [1/1]
PD#SWPL-187243

Problem:
reverse source i abnormal

Solution:
force top bottom

Verify:
t950s

Change-Id: Ic414b84a6736fd08d4d45045a9f8d861828f3837
Signed-off-by: yufei.huan <yufei.huan@amlogic.com>
2024-10-16 21:49:28 -07:00
Yiming Sun 94edf70cf6 dts: correct heap-fb size for virtual display on t7c [1/1]
PD#SWPL-188677

Problem:
heap-fb size for virtual display on t7c is not correct

Solution:
modify heap-fb to 432M

Verify:
t7c

Change-Id: If1cb9f7c4a458fa60b811c5df6341db8b3de2a72
Signed-off-by: Yiming Sun <yiming.sun@amlogic.com>
2024-10-16 20:56:43 -07:00
dongqing.li e33a3d7517 ramdump: enable bl33z dts node for ker5.15-32bit [1/1]
PD#SWPL-182182

Problem:
There are no ram-dump and ramdump_blb33z nodes in the
32-bit kernel. And ramdump function is not enabled.

Solution:
enable the ramdump dts node.

Verify:
sc2, A1, C1, S1A, T5D, T5W, TXHD2

Change-Id: I77a102c448fc5de4a5af2a0d21e6ad990dcb1308
Signed-off-by: dongqing.li <dongqing.li@amlogic.com>
2024-10-16 09:32:44 -07:00
lizhi.hu 3d759d2b0a lcd: fix t7 debug error [1/1]
PD#SWPL-188061

Problem:
t7 debug interface reg print error

Solution:
fix

Verify:
t7_an400

Change-Id: I6bb8a9ffa26636ed214b55a24159f9c32072b88c
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2024-10-15 20:09:50 -07:00
caiyi.xu a6008e4c54 dtv_demod: fix atsc signal check failed (v3.6.7) [1/1]
PD#SWPL-185103

Problem:
miss channel when atsc scan

Solution:
increase the signal detection time

Verify:
AM301-Loki

Change-Id: If56c619d767d393b786796f51c27563952b747d1
Signed-off-by: caiyi.xu <caiyi.xu@amlogic.com>
2024-10-15 18:58:42 -07:00
donghui.wang b5c96baac8 ldim: add boost feature [1/1]
PD#SWPL-183366

Problem:
add boost feature

Solution:
add boost feature

Verify:
t5m

Change-Id: I9a4eb869031ab36c756a777fa08d0bf068a9ec56
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2024-10-15 18:57:20 -07:00
chenyang.liu 1a22d87d56 lcd: close tcon_pll when early suspend [1/1]
PD#SWPL-184971

Problem:
High power consumption when early suspend

Solution:
1.change clk source to fclk_div4
2.change resolution to 720*480p50fps
3.close tcon_pll

Verify:
t6d

Change-Id: I992e98c19416a7318d7bf061a6dfc31838c2cd5a
Signed-off-by: chenyang.liu <chenyang.liu@amlogic.com>
2024-10-15 18:56:38 -07:00
jie.dai 0c1897d715 lcd: timing & phy management [2/2]
PD#SWPL-187677

Problem:
need add timing and phy management driver

Solution:
add timing and phy management driver

Verify:
T5M/T3X/T6D

Change-Id: I02e995d15eb0c9658b35c11130fb5a9948624ab8
Signed-off-by: jie.dai <jie.dai@amlogic.com>
2024-10-15 18:56:32 -07:00
yiting.deng f702df39a6 clk: g12a: optimize clk.ko insmod time [1/1]
PD#SWPL-188271

Problem:
g12a clk has two ko, insmod ko consume CPU time, and both ko
are insmod when actually used. In order to optimize startup
time, the two ko are merge into one.

Solution:
fixed one ko to insmod

Verify:
g12a_u212, g12b_w400, sm1_ac215

Change-Id: I97cf96e6e00e502225ef8521b8c51b9b0253a360
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2024-10-15 18:53:08 -07:00
congyang.huang 2534d15a15 drm: the framebuffer size under recovery exceeds the hardware capacity [1/1]
PD#SWPL-178656

Problem:
the screen flashes in recovery mode

Solution:
1.when recovery is set to a mode greater than 1080p but the osd not
support, return virtual 1080p timing to minui,it can allocate 1920x1080
fb according to the virtual timing
2.set dst_w and dst_h based on the real hdisplay and vdisplay of the
lcd's timing

Verify:
t5w t5m t3

Test:
DRM-OSD-44

Change-Id: I481c841b98637611d1e537f0695a24c6c43bfb9f
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2024-10-15 18:53:00 -07:00
lizhi.hu 0be008a86c lcd: fix s6 pll reg set [1/1]
PD#SWPL-189108

Problem:
pll unable to lock in specific freq

Solution:
pll reg setting adjust from vlsi

Verify:
s6_bq201

Change-Id: I36b900801245f91332b39f8ce330b3b9393e59bb
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2024-10-15 05:42:57 -07:00
Hao Shi 0a9add85ca codec_mm: cma_res release optimize [1/1]
PD#SWPL-187928

Problem:
release cma_res failed when buffer in
cma_res not free.

Solution:
try to release cma_res if cma_res is
not enable when free cma_res buffer.

Verify:
ah212

Change-Id: I20064a2910528376f6e48c158d1402fcf315e760
Signed-off-by: Hao Shi <hao.shi@amlogic.com>
2024-10-15 01:53:10 -07:00
Feng Chen 15f5c31110 spicc: driver optimization [1/1]
PD#TV-134026

Problem:
1.compatible with controller chip select and GPIO chip select
2.support configurable cs-clk、clk-cs delay time for ldim user

Solution:
support it.

Verify:
T5M

Change-Id: I3e7c73b7748d987e19def5e823c4d91550eff6e8
Signed-off-by: Feng Chen <feng.chen@amlogic.com>
2024-10-14 23:05:17 -07:00
shufei.zhao 8c8fcb5c64 PMU: support pmu for kernel5.15 32bit [1/1]
PD#SWPL-188708

Problem:
support pmu for kernel5.15

Solution:
change dts

Verify:
sc2

Change-Id: I00439d69764913a1f748eb6f2d3a68da05210111
Signed-off-by: shufei.zhao <shufei.zhao@amlogic.com>
2024-10-14 19:58:26 -07:00
kun.liu 470b0dde7c codec mm: alloc fb buffer memory limited to within 4GB. [2/2]
PD#SWPL-183309

Problem:
When small memory is allocated through codec mm and perfectly meets
the 4KB alignment, memory will be allocated from the system, and the
allocated buffer's physical address may exceed the 4GB limit.

Solution:
__get_free_pages adds a GFP_DMA32 restriction, ensuring that the
allocated buffer is limited to within 4GB.

Verify:
ah212

Change-Id: I7b9f77a642f4c54245a9f6897e43c833974fa81b
Signed-off-by: kun.liu <kun.liu@amlogic.com>
2024-10-14 19:26:17 -07:00
Huijuan Xiao ca138e1ca0 amvecm: add resume hdr clk gate [1/1]
PD#SWPL-185322

Problem:
recovery hdr clk gate

Solution:
recovery hdr clk gate

Verify:
t5w

Change-Id: I78d27cf6211e65cf5b7fb25e79d913dcad2becff
Signed-off-by: Huijuan Xiao <huijuan.xiao@amlogic.com>
2024-10-14 18:58:51 -07:00
chen.xu e75895364a video_composer: fix video_composer panic [1/1]
PD#SWPL-188021

Problem:
video_composer panic while not dma vf

Solution:
support

Verify:
T982

Change-Id: Iaf740512dbde5492fe7ac72d7f32bfcd87322d73
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2024-10-14 18:58:45 -07:00
Junyi Zhao 17c80c0f84 dts: i2c: open i2c3 in bp201 [1/1]
PD#SWPL-188081

Problem:
Need support.

Solution:
Support it

Verify:
s7 bp201

Change-Id: I8093c265a6fb42bad7b56a6940d2d363e1650af2
Signed-off-by: Junyi Zhao <junyi.zhao@amlogic.com>
2024-10-14 18:58:34 -07:00
qianqian.cai d60ddfb7bf deinterlace: dct need gate clock on [1/1]
PD#SWPL-184651

Problem:
the first time,video is not correct

Solution:
dct need gate clock on
bit21/16:dctnr.gclk ctrl
bit17:dcnt reg
bit19/18:dcntr core
bit21/20:dctr intf

Verify:
t5w

Change-Id: I26e6c8efde9e2a200ef92ad2bed280ad23cf0cef
Signed-off-by: qianqian.cai <qianqian.cai@amlogic.com>
2024-10-14 18:58:28 -07:00
haitao.liu ad500402c3 vdin: Fix streamon failed issue [1/1]
PD#SWPL-187264
PD#SWPL-187026

Problem:
signal status is not stable causing streamon failed

Solution:
always set status to stable in loopback case

Verify:
t7c

Change-Id: Ia5d1477f35e3a558f501f2a3d5cd53cef55b3532
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2024-10-14 18:58:18 -07:00
Xiangyu Cai 876dda2395 vdin: add 165hz vrr signal support [1/1]
PD#SWPL-188034

Problem:
not support 165hz vrr signal

Solution:
add support 165hz vrr signal

Verify:
T3x

Change-Id: I3c460121285a4f91becb54d90d939c949ee19823
Signed-off-by: Xiangyu Cai <xiangyu.cai@amlogic.com>
2024-10-14 18:58:10 -07:00
hang cheng efb9ea2374 hdmitx: add api for hibernate [1/1]
PD#SWPL-184488

Problem:
1.need api for hibernate
2.need to enhance check of hdmitx output status

Solution:
1.add api for hibernate
2.besides hdmitx phy setting, add check of tmds
and pixel clk enable status when check hdmitx
output status of uboot, and add basic clk check
before access top/core registers

Verify:
t7

Test:
DRM-TX-132

Change-Id: If4233f4c73eddbed385f0297c7110d3941c2fe18
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
2024-10-14 18:57:21 -07:00
huijie.huang f04528aded lcd: t6d support tcon rdma driver [1/1]
PD#SWPL-182402

Problem:
t6d need to support tcon rdma driver

Solution:
t6d add tcon rdma driver

Verify:
t6d br301

Change-Id: I0f114dff13eea3684101ce451cdf65bc5fbe6691
Signed-off-by: huijie.huang <huijie.huang@amlogic.com>
2024-10-14 18:57:16 -07:00
Nanxin Qin f204b76888 media: CF1 Adds DHP(The Data Handler Proxy) device major ID. [2/5]
PD#SWPL-188016

Problem:
Adds DHP device major DI.

Solution:
Add a new device ID for generic media data processing.

Verify:
ohm

Change-Id: I4dfd879c35201f0812914e4f702d8fa44bcd5330
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
2024-10-14 18:27:33 -07:00
yuhua.lin 620d7c7480 dummy_video: add dummy video support for arch 32 [1/1]
PD#OPS-8604

Problem:
add dummy video support for arch 32

Solution:
add dummy video config in amlogic_a32.fragment

Verify:
t6d

Change-Id: Iad89a8506abcd41c6ea2e4c781ed90aacf5ec216
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2024-10-14 15:09:41 -07:00
jian zhou fd6639bb19 audio: set tdmout frddr select mask by the chip [1/1]
PD#SWPL-188060

Problem:
from sm1, the frddr select mask is bit 24-26,
before sm1, the frddr select mask is bit 24-25,
the bit 26 is for gain control.

Solution:
set tdmout frddr select mask by the chip,
before sm1, it is 0x3, from sm1, it is 0x7.

Verify:
a4

Change-Id: Icf92904ad94b18897d6c8687168e126e605224cd
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2024-10-14 15:09:33 -07:00
Jihong Sui 44e1bef272 deinterlace: fix mem afbcd setting issue [1/1]
PD#SWPL-188273

Problem:
Changing the size resulted in a blurred screen

Solution:
trig mem afbcd reset after changing size;

Verify:
T5M

Change-Id: Id2f6f2688fdd30fa64c5748cc442ee6f176e7061
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
2024-10-14 15:08:57 -07:00
nengwen.chen f6f1d993ee dtv_demod: fix mplp init state (V3.6.006) [1/1]
PD#SWPL-188191

Problem:
can not get mplp.

Solution:
fix mplp init state.
AMLDTVDEMOD_VER "V3.6.006".

Verify:
T5W.

Change-Id: I6aa2d75e46e903386cee0d2329ab21847c8532ee
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2024-10-14 15:08:51 -07:00
yaoyu.xu 89bf7610ab hdmirx: reduce fsm print [1/1]
PD#SWPL-175373

Problem:
reduce fsm print.

Solution:
reduce fsm print.

Verify:
t3x

Change-Id: I83080e3bfac9b22da149d6ed1a15ce002cad3bac
Signed-off-by: yaoyu.xu <yaoyu.xu@amlogic.com>
2024-10-14 15:07:54 -07:00
yuhua.lin 4956b2e935 vpu: add vpu_overclock 912M support for t3x [1/1]
PD#SWPL-186199

Problem:
add vpu_overclock 912M support for t3x

Solution:
add vpu_overclock 912M support for t3x

Verify:
t3x

Change-Id: Ie924715a58b4311665bdb056b76ee6a668c1ee3c
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2024-10-14 15:06:15 -07:00
jinbing.zhu 931b29588f amvecm: add slt for t6d [1/1]
PD#OPS-8743

Problem:
add slt for t6d

Solution:
add slt for t6d

Verify:
t6d

Change-Id: I8cfcaef075774818fa865e93e7bf897d6acc414e
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2024-10-14 05:04:50 -07:00
Sunny Luo 3a37611a9d spisg: add std support [1/1]
PD#SWPL-185388

Problem:
add std support for spisg

Solution:
add std support for spisg

Verify:
bh201

Change-Id: I40de0fae5cf3b6ab0bb6cce5bc79e2fae1105f1f
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
2024-10-14 05:04:22 -07:00
qianqian.cai 2f467f7d45 deinterlace: fg bypass link [1/1]
PD#SWPL-187907

Problem:
fg bypass link

Solution:
fg bypass link

Verify:
t5m

Change-Id: I8ceb6dbfc4d075f729cd8f28340ee25d72f7044b
Signed-off-by: qianqian.cai <qianqian.cai@amlogic.com>
2024-10-14 05:03:47 -07:00
Jian Cao f3b506a2d6 vpu_security: correct abnormal VPU security values after enabling prevsync [1/1]
PD#SWPL-187270

Problem:
encrypted video displays abnormally

Solution:
correct the security values

Verify:
t5m

Change-Id: Id64275e58d1f1023b71f3a13abfad37c7d73c4df
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2024-10-14 04:40:18 -07:00
yiting.deng 20c713319c clk: t3x: support std [2/2]
PD#TV-129966

Problem:
t3x need support std

Solution:
add syscore_suspend/syscore_resume ops, and register hibernate
notify to distinguish std and str

Verify:
t3x

Change-Id: Ib3d42725efb2d245460078fa0ba9db86cdcae2fb
Signed-off-by: Junyi Zhao <junyi.zhao@amlogic.com>
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2024-10-14 03:40:18 -07:00
Yu Tu fb47882b68 pcie: modify clock to pll1 [1/1]
PD#SWPL-188251

Problem:
HW test clock pll1 signal better than pll0

Solution:
modify clock to pll1

Verify:
bl208

Change-Id: I4900f969f2c6b9e9ec04e63dd105686936822de2
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2024-10-12 02:53:02 -07:00
jinbiao 1a3ea78f21 eMMC: The argument of CMD12 is set to 0. [1/1]
PD#SWPL-188326

Problem:
When the argument of the last command was non-zero,
the argument of CMD12 was non-zero because it was not cleared.

Solution:
The argument of CMD12 is set to 0.

Verify:
S7_S905Y5

Change-Id: I987f0579afbeb7b93fe8e33662207c0d72d3e095
Signed-off-by: jinbiao <jinbiao.ou@amlogic.com>
2024-10-12 00:59:51 -07:00
bowen cheng 6893d35e8c cec: std pm need use noirq [1/1]
PD#SWPL-185412
PD#SWPL-185406

Problem:
std resume irq print error

Solution:
std pm follow str

Verify:
t3x s7

Change-Id: Ide53b38b8fff66af54e397389dfdaaab3e4fdd8d
Signed-off-by: bowen cheng <bowen.cheng@amlogic.com>
2024-10-12 00:58:07 -07:00
shihong.zheng 0a9e2137d6 dos: fix t6d bus hangup when play error video stream. [1/2]
PD#SWPL-183839

Problem:
t6d bus hangup when play some error video stream.

Solution:
iomap sysctrl reg range.
wait sysctrl reg status to confirm axi bus idle
before reset.

Verify:
T950D5

Change-Id: I1e61b6b22942b5c47706de97bf3ceeaf3b6dee27
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
2024-10-12 00:57:58 -07:00
rong.wang 79ab7b6ee3 deinterlace: dct timeout when resume [1/1]
PD#SWPL-183723

Problem:
suspend in prelink mode,dct not unreg all

Solution:
dct unreg all when suspend in prelink mode

Verify:
t5m

Change-Id: Icd448b85ed863a3def1c9f638699368176f98593
Signed-off-by: rong.wang <rong.wang@amlogic.com>
2024-10-11 21:08:46 -07:00
Jiacai.Liu 55397f3093 s7d-dongle: add linux s7d_bm202 dts [1/1]
PD#SWPL-188537

Problem:
add linux s7d_bm202 dts

Solution:
add linux s7d_bm202 dts

Verify:
local

Change-Id: I6246e15add518aedb598fd17713fabf95368ac97
Signed-off-by: Jiacai.Liu <jiacai.liu@amlogic.com>
2024-10-11 20:55:09 -07:00