Commit Graph

3550 Commits

Author SHA1 Message Date
hongyu.chen 41f9bc5dcb demux: t5d bringup. [1/1]
PD#SWPL-129607

Problem:
t5d bringup.

Solution:
t5d bringup.

Verify:
AM301/T950D4

Change-Id: I9f13a0c9290ec1162a94764567354eaa6149bf90
Signed-off-by: hongyu.chen <hongyu.chen@amlogic.com>
2023-08-24 10:50:06 +08:00
hongyu.chen 86f74d8dd8 dvbci: t5d bringup. [1/1]
PD#SWPL-129611

Problem:
t5d bringup.

Solution:
t5d bringup.

Verify:
AM301/T950D4

Change-Id: If28f1594e67c7ae07bda7ae2792aa01888af0326
Signed-off-by: hongyu.chen <hongyu.chen@amlogic.com>
2023-08-24 10:50:06 +08:00
Wenjie Qiao 13db612a3c cec: t5d bringup for 5.15 [1/1]
PD#SWPL-129621

Problem:
t5d bringup for 5.15

Solution:
t5d bringup for 5.15

Verify:
t5d

Change-Id: Ibc26d97d7952ea9d57c0893e000b03e48b708904
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2023-08-24 10:50:06 +08:00
congyang.huang db51a27a9f drm: add drm support for t5d [1/1]
PD#SWPL-129627

Problem:
no drm support for t5d

Solution:
add drm support for t5d

Verify:
T5D_AM301

Test:
DRM-OSD-83

Change-Id: I571fbbf9fce3163b1a576c3a430ca51cbde8ddbd
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2023-08-24 10:50:06 +08:00
Yongjie Zhu de08419c1a dmaheap: enable dmaheap for t5d on k5.15 [1/1]
PD#SWPL-129625

Problem:
t5d bringup enable dmaheap

Solution:
add dmaheap heap-gfx/heap-fb

Verify:
t5d

Change-Id: I9716f5dd2841b8ddea31e98faa55b3e09077a1e5
Signed-off-by: Yongjie Zhu <yongjie.zhu@amlogic.com>
2023-08-24 10:50:06 +08:00
Yongjie Zhu 4c5d39b5e5 ion: disable ion for t5d on k5.15 [1/1]
PD#SWPL-129624

Problem:
t5d bringup disable ion

Solution:
modify ion size to 0x0

Verify:
t5d

Change-Id: If56e73dc89b9aec62ec41648e2060469ef5c6dd4
Signed-off-by: Yongjie Zhu <yongjie.zhu@amlogic.com>
2023-08-24 10:50:06 +08:00
Jian Hu 766a1372ee dts: disable cpufreq [1/1]
PD#SWPL-129562

Problem:
cpufreq crash when t5d rebase

Solution:
disable cpufreq

Verify:
t5d

Change-Id: Ifcaa4db0d2d3f47a93cc3e5e8683c718d4ff854d
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2023-08-24 10:49:46 +08:00
ziyi 5ba2512917 emmc: Add hs emmc for T5D. [1/1]
PD#SWPL-129596

Problem:
no hs emmc.

Solution:
Add dts and dtsi for T5D.

Verify:
T5D

Change-Id: Ia6a8a3924fa47867835f8e7ed0daae52a37940a9
Signed-off-by: ziyi <ziyi.huang@amlogic.com>
2023-08-24 10:49:46 +08:00
Jian Hu b627abbc06 clk: t5d: add hifi pll support [1/1]
PD#SWPL-129051

Problem:
t5d clk bringup

Solution:
add hifi pll support

Verify:
t5d

Change-Id: I5aee3b0b0fc4169b89beebcd4399ed17736fe69d
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2023-08-24 10:49:46 +08:00
Mingyen Hung 0e3cec5067 crypto: crypto driver for t5d kernel 5.15 [1/1]
PD#SWPL-129599

Problem:
Need to bring up crypto driver for t5d kernel 5.15

Solution:
1. Bring up crypto driver for t5d kernel 5.15
2. Add tdes entry(amlogic,tdes_dma) in dts for t5d

Verify:
1. t5d am309 + kernel 5.15

Change-Id: Ib39d0aa5b75e4576164109d6fec0b19912c7ff33
Signed-off-by: Mingyen Hung <mingyen.hung@amlogic.com>
2023-08-24 10:49:46 +08:00
he.he d32de99078 usb: Don't allow usb autosuspend [1/1]
PD#SWPL-129591

Problem:
Don't allow usb autosuspend

Solution:
Don't allow usb autosuspend.

Verify:
t5d

Change-Id: Ia00a19cb537a73f2b5dab1c09d3a28bafa5a5adf
Signed-off-by: he.he <he.he@amlogic.com>
2023-08-24 10:49:46 +08:00
qinglin.li 1d77000928 ddr_bandwidth: t5d kernel bring up [1/1]
PD#SWPL-129579

Problem:
t5d ddr bandwidth need config

Solution:
config t5d ddr bandwidth

Verify:
Detail info

Change-Id: Ic33ef2c3d7f004124d26db751bd4a01191c807e1
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-08-24 10:49:46 +08:00
Yao Jie 41e93ca4bd mailbox: t5d mailbox bringup [1/1]
PD#SWPL-129590

Problem:
t5d mailbox bringup

Solution:
t5d mailbox bringup

Verify:
T5D-AM311-T950X4

Change-Id: Ie1cb3d256abdd2e131f50ab8e4c46ec962ab0a5a
Signed-off-by: Yao Jie <jie.yao@amlogic.com>
2023-08-24 10:49:46 +08:00
Jian Hu 5e21640752 clk: t5d: add ao clk support [1/1]
PD#SWPL-129051

Problem:
there is no saradc clk

Solution:
add ao clk support

Verify:
t5d

Change-Id: I7d93ee2e06d10bc5cce923c5e029b784ca2d4df3
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2023-08-24 10:49:46 +08:00
chen.xu dfb1893fac bringup: Add dts and dtsi for T5D. [1/1]
PD#SWPL-129637

Problem:
Bringup T5D for 5.15 kernel.

Solution:
Add dts and dtsi for T5D.

Verify:
T5D

Change-Id: I73de5a57ead932caf3468dc5762091a1da63697d
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2023-08-24 10:49:46 +08:00
Yu Tu 90588f605e uart: check t5d uart dts config [1/1]
PD#SWPL-129593

Problem:
t5d bringup uart driver

Solution:
check t5d uart dts config

Verify:
t5d

Change-Id: I1c28926a4938e590ac940d88ea5d86920e9ed5e3
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2023-08-24 10:49:46 +08:00
Zelong Dong 6e756f8a1e pinctrl: t5d: add pinctrl driver [1/1]
PD#SWPL-128856

Problem:
Add t5d pinctrl driver

Solution:
porting t5d pinctrl driver from kernel 5.4

Verify:
t5d

Change-Id: I034b3ba2ab3aae4d99041c266ad1333663de2c03
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2023-08-24 10:49:46 +08: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
Shuai Li 2c0c11b10f audio: set earc samesource as earc is on [1/1]
PD#SWPL-135645

Problem:
Arc has no audio when pcm output.
Found that earc samesource flag is off.

Solution:
Enable spdif to earc samesource flag.

Verify:
T7C

Change-Id: Ie5da4f67c008dfee530ab02c26a35ca741a5af55
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
2023-08-23 08:03:41 -07:00
Yao Jie 8ccc691df7 mailbox: correct t3 32bit mailbox configuration [1/1]
PD#SWPL-137488

Problem:
mailbox configuration for t3 32bit platform
is not correct

Solution:
modify mailbox configuration for t3 32bit platform

Verify:
local build success

Change-Id: Ia207d127b19810490e872799bce557b8bd5f9991
Signed-off-by: Yao Jie <jie.yao@amlogic.com>
2023-08-23 06:13:35 -07: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
qinglin.li fefbde4c6c dmc_monitor: dmc irq lose when ddr access quickly [1/1]
PD#SWPL-137431

Problem:
dmc irq lose when ddr access quickly

Solution:
modify irq trigger IRQ_TYPE_LEVEL_HIGH to IRQ_TYPE_LEVEL_HIGH

Verify:
txhd2 && s1a

Change-Id: I824ce32a040321148c0feeb52ad0da40edd7e519
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-08-23 01:58:50 -07:00
shuanshuan.jiang 94c5a65a13 camera: increase adapt cma size [1/1]
PD#SWPL-132204

Problem:
1. adapter allocat cma buffer failed in dcam mode
2. using illegal cma address in dcam mode

Solution:
increase adapt cma size

Verify:
local

Signed-off-by: shuanshuan.jiang <shuanshuan.jiang@amlogic.com>
Change-Id: I5ef703d978a864ca4c59172f6bd03688c4b06a74
2023-08-23 01:58:43 -07:00
yao liu ff461f2517 amdv: add probe function [1/1]
PD#SWPL-136988

Problem:
add probe function

Solution:
add probe function

Verify:
t3x

Change-Id: Ib8372d5978418484084954312cea7e720fee6f13
Signed-off-by: yao liu <yao.liu@amlogic.com>
2023-08-23 01:58:39 -07:00
Yan Wang bcc4b5145a DTS: update S805C1A CPU node. [1/1]
PD#OTT-47803

Problem:
S805C1A system can not enter suspend mode.

Solution:
update CPU node for disabling non-boot cpus.

Verify:
BF201

Change-Id: If243e6ade536d17f293f09c3afa52e8ad5ebdf88
Signed-off-by: Yan Wang <yan.wang@amlogic.com>
2023-08-23 00:08:46 -07:00
xiaolong xu a0f3179d37 dtv_demod: Multi path interference unqualified problem(v3.5.003) [2/2]
PD#SWPL-134743

Problem:
Multi path interference unqualified problem.

Solution:
Optimize the multipath interference algorithm.
fw version "V1558.20230628"
fw md5sum "ee7f300acdc51cd564c2137625f30a86"
AMLDTVDEMOD_VER "V3.5.003"

Verify:
T965D4-AR331

Change-Id: Ife1e808b99cf948cb4b0ab4dfcbab8926fa1725f
Signed-off-by: xiaolong xu <xiaolong.xu@amlogic.com>
2023-08-23 00:08:43 -07:00
Chengbing.wu 9fd75cb1da idle: txhd2 cpuidle tuning [1/1]
PD#SWPL-136572

Problem:
1. need to tuning idle parameter at txhd2 ;

Solution:
1. change latency and residency;

Verify:
BE319 #16 +corner CHIP #17

Change-Id: I87b48b79d3e3583ed1d92e348121cac08d569d4e
Signed-off-by: chengbing.wu <chengbing.wu@amlogic.com>
2023-08-23 00:08:37 -07:00
gerrit autosubmit c665eda878 Merge "vq: txhd2 dts enable video_queue and enable drm. [1/2]" into amlogic-5.15-dev 2023-08-22 22:14:27 -07:00
hui.li 97b4c15fe7 vq: txhd2 dts enable video_queue and enable drm. [1/2]
PD#SWPL-134534

Problem:
txhd2 dts not enable video_queue and not enable drm
only android T need, android p no need.

Solution:
create a new android t txhd2 dts to enable video_queue and enable drm

Verify:
txhd2 + T

Change-Id: I590cf2095b3dc47ed58924d3c628407eaf5daed5
Signed-off-by: hui.li <hui.li@amlogic.com>
2023-08-22 22:14:23 -07:00
Xingxing Wang a3770e55bc thermal: add shutdown callback in sensor driver [1/1]
PD#SWPL-136383

Problem:
poweroff power current is high

Solution:
add shutdown callback in sensor driver

Verify:
TXHD2

Change-Id: Idd38c485b9458e3a9c7b27b959f48a17c59dc89b
Signed-off-by: Xingxing Wang <xingxing.wang@amlogic.com>
2023-08-22 22:14:11 -07:00
congyang.huang 318f521516 drm: support hdr conversion policy [1/1]
PD#SWPL-132763

Problem:
it is not reasonable to put hdr conversion cap
property into connector struct,the property
cannot be found when disconnected

Solution:
move hdr conversion cap property to crtc struct

Verify:
verify hdr conversion cap

Test:
DRM-OSD-91

Change-Id: I9a1c3fb9b3c0a8d43d9140a018be641153e2f3c2
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2023-08-22 22:14:05 -07:00
congyang.huang 78b609d0a4 drm: fix kernel panic for txhd2 hw_init [1/1]
PD#SWPL-135225

Problem:
kernel panic due to reg_ops null pointer

Solution:
1.add reg_ops for txhd2
2.add null pointer protection

Verify:
txhd2

Test:
DRM-OSD-82

Change-Id: Ic4ab18b66d7a8a6bab5804ef74a7a6c6017c088f
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2023-08-22 22:13:53 -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
Zhe Wang 84f924d8c3 audio: optimize spdif mute interface [2/3]
PD#SWPL-137289

Problem:
some AVR with pop noise when spdif out is set to mute

Solution:
On TV platform, mute spdif out with soft mute register

Verify:
T5M

Change-Id: I22c30a301c655d1fce66a7f4b6c7510d0729b945
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
2023-08-22 06:09:20 -07:00
mingxiu.sun 2b1c33ef4c vdin1: New screenshot points for amlvideo [1/1]
PD#SWPL-136370

Problem:
Customer demand increases without taking pq screenshot points

Solution:
add tvin_viu1_video screen point to amlvideo

Verify:
txhd2 kernel5.15 androidp

Change-Id: I49b666d06066f48f2cccc6c4089a7f03caadfb7d
Signed-off-by: mingxiu.sun <mingxiu.sun@amlogic.com>
2023-08-22 06:09:16 -07:00
jialong.jiang d0e6790042 amdv: zoom out, slice0 reg set error. [1/1]
PD#SWPL-136413

Problem:
4k120hz/100hz zoom out,dv slice0 reg set error.
no reset core2 causes flashing.

Solution:
set dv slice0 reg by osd_dv_core_size_set_s5.
reset core2 osd size is changed.

Verify:
s5

Test:
self-test

Change-Id: Ibb202db1dff693532133794395cca5d43410b996
Signed-off-by: jialong.jiang <jialong.jiang@amlogic.com>
2023-08-22 06:09:11 -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
Yue Wang aceb7de3e8 usb: fix crg udc panic [2/2]
PD#SWPL-111936

Problem:
crg udc panic.

Solution:
fix crg udc panic

Verify:
t7c

Change-Id: I2d2e3e19b03840c8806d99e2b6c8a8b458d818d4
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
2023-08-22 04:24:06 -07:00
jian zhou a874810a65 audio: fix arc pop and there is speaker audio when switch earc mode [1/1]
PD#SWPL-127860

Problem:
1. arc pop when switch speaker and AVR
2. there is speaker audio when switch earc mode

Solution:
1. switch to force mode for consume data when switch earc mode
2. unmute earc tx when the starem is running
3. don't send disconnect msg when switch earc mode

Verify:
t5m

Change-Id: I2d31656fbaeb3c8837ef883517524fba50e9c0c1
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2023-08-22 04:23:55 -07:00
Haotian Guo ed471f14ce hdmirx: clear coverity [1/1]
PD#SWPL-134618

Problem:
solve hdmirx, vdin and tvafe coverity.

Solution:
update code.

Verify:
t3x

Change-Id: Ifed99176c999e5e448066f14f5454ca2dd2c2566
Signed-off-by: Haotian Guo <haotian.guo@amlogic.com>
2023-08-22 04:23:50 -07:00
rong.wang de3e226e8d deinterlace: di coverity [1/1]
PD#SWPL-134595

Problem:
solve di coverity problem

Solution:
modify code

Verify:
t5m

Change-Id: I3c9d260853368cb966da43674fa2a3ca8be45043
Signed-off-by: rong.wang <rong.wang@amlogic.com>
2023-08-22 04:23:47 -07:00
yongbing.he 9da7a6fdd4 dts: CF1 nbr swupdate support. [2/2]
PD#SWPL-134034

Problem:
nbr swupdate support

Solution:
Add aw409 recovery dts

Verify:
C308L-AW409

Change-Id: I7e9f2bdd360124e13b0ed758a8bd52ca76462582
Signed-off-by: yongbing.he <yongbing.he@amlogic.com>
2023-08-22 04:23:39 -07:00
min.yang d896ffe85d dtv_demod: bringup s1a dvbc function (V3.5.002) [1/1]
PD#SWPL-133163

Problem:
should support dvbc/j83b.

Solution:
bringup dvbc.

Verify:
verified by bg201+D820.

Change-Id: Id5673cda3b7a810267abfe6e309269e36ab821e3
Signed-off-by: min.yang <min.yang@amlogic.com>
(cherry picked from commit c6846b32e0b86123f4d877dab4d14e26e6ad42fd)
2023-08-22 02:13:42 -07:00
Ao Xu 70d0d5e4ed hdmitx: fix the kasan issue for memcpy [1/1]
PD#SWPL-135997

Problem:
memcpy kasan

Solution:
check the copy size

Verify:
an400

Test:
DRM-TX-25

Change-Id: I8a3aad8b1cba15d03fafdf138bf4b3966db5fafe
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2023-08-22 02:13:38 -07:00
qiang.liu 44ec3d0d26 vdin: optimize vdin_isr debug info [1/1]
PD#SWPL-131192

Problem:
vdin_isr time not print

Solution:
optimize vdin_isr debug info

Verify:
txhd2

Change-Id: I20c66d7b2d6b809b529bef149be77d17b36c97fe
Signed-off-by: qiang.liu <qiang.liu@amlogic.com>
2023-08-21 22:54:23 -07:00
Wenjie Qiao d0c72e782a hdmitx21: don't notify drm when suspend [1/1]
PD#SWPL-137084

Problem:
suspend/resume notify drm times

Solution:
don't notify drm when suspend

Verify:
s1a

Change-Id: I73dcb19d4d26124f84d160e1495b7389d4c6b392
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2023-08-21 22:54:18 -07:00
Liming Xue 45a6212840 dsp: a1 start failed [1/1]
PD#SWPL-137033

Problem:
a1 start failed

Solution:
add mailbox channel and change reserved memory

Verify:
a1

Change-Id: Ib2e1fab0162b868727e8121ae7cc9f6d05294943
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
2023-08-21 22:54:14 -07:00
Junyi Zhao 9024efdcd9 clk: pll: change hifi pll source 400m and bypass lock_f [1/1]
PD#SWPL-137041

Problem:
hifi pll crash lock after ESD test

Solution:
bypass hifi pll lock_f bit
and change source to 400m for higher performance

Verify:
txhd2

Change-Id: Iaab34549b28b03cc277caa12b731242f22451507
Signed-off-by: junyi.zhao <junyi.zhao@amlogic.com>
2023-08-21 22:54:07 -07:00
Sunny Luo d54b3fffed spi: fix spicc timed out issue(speed low than 200K) [1/1]
PD#SWPL-137044

Problem:
transfer timed out when spicc works at low speed(200K)

Solution:
TC is triggered by tx-fifo empty, but the last data is not yet transferred
at this time. we have to wait the last data which is sending/receiving.

Verify:
C1

Change-Id: I7e0fca3fdf6ed6c3b40a8399564eae2cf6d3a9b0
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
2023-08-21 22:54:03 -07:00