Commit Graph

1144 Commits

Author SHA1 Message Date
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
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
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
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
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
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
xiang.wu1 34e6388e01 hdmitx : Optimize node output size [2/2]
PD#SWPL-185799

Problem:
When the character length of the content exceeds PAGE_SIZE,
memory leaks may occur.

Solution:
Limit and check output size

Verify:
s7d/sc2

Test:
DRM-TX-79,DRM-TX-80,DRM-TX-81,DRM-TX-82

Change-Id: I538183ca41520bf5119062508f7d47b4d33b0eb6
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2024-10-09 03:50:24 -07:00
donghui.wang b5531bdf87 ldim: optimize spi interface [1/1]
PD#SWPL-183850

Problem:
1,low probability crash when dirspi_dma_trig called in isr
2,async need use coherent buf
3,low probability send unexpected data when start dma trig

Solution:
1,spicc add controller capability
2,async use coherent buf
3,rm dq2/dq3 for t3x ref board
4,optimize dma trig state management
5,alloc descriptor in controller probe but not in dirspi_dma_trig
6,fix clk div 0 error caused by CFG_BUS clearing by dirspi_dma_trig
7, optimize controller isr
8, add spin lock for smp

Verify:
t3x/t5m

Change-Id: Ic1d5c338ebc65dfa8b33add14cdbf0aff1cc0b46
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2024-10-08 19:52:35 -07:00
Hao Shi 58fc84e99e codec_mm: support reserved bak pool [2/2]
PD#SWPL-177308

Problem:
H.266 support 34bit

Solution:
add a reserved pool to alloc mv buffer

Verify:
s6_s905x5_bl201

Change-Id: Iff86b122bed9eef0c7dd8858aef7a452f02bd015
Signed-off-by: Hao Shi <hao.shi@amlogic.com>
2024-10-08 04:18:27 -07:00
Zelong Dong b79dc57e92 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-09-30 21:03:57 -07:00
Zelong Dong bc6e434c55 mailbox: support device id & command for IR [1/3]
PD#SWPL-182441

Problem:
support device id & command for IR

Solution:
support device id & command for IR

Verify:
t6d

Change-Id: I42f6a0117cf8ce3891c9a97885ad3216d54a0f29
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-09-30 21:03:16 -07:00
Doosan Baek 29fe9c3b05 kl/kt: add mid extra function [1/1]
PD#SWPL-187016

Problem:
need mid_extra
need tdes kt capability
need m2m_any kl capability

Solution:
add mid extra mode
add tdes kt capability
add m2m_any kl capability

Verify:
s6

Change-Id: I1f49890b61bf70110596c036c970d895388317c1
Signed-off-by: Doosan Baek <doosan.baek@amlogic.com>
2024-09-29 23:54:54 -07:00
Xiangyu Cai 77d26a5e1a vrr: update delay line when video axis [1/1]
PD#SWPL-182514

Problem:
update delay line when video axis

Solution:
update delay line when video axis

Verify:
t3x

Change-Id: I098e70eeae1bcb1d0152d0737df8ea4ff575113a
Signed-off-by: Xiangyu Cai <xiangyu.cai@amlogic.com>
2024-09-29 19:01:23 -07:00
lizhi.hu 0c8184bce5 lcd: fix lcd phy lock when multidisplay [1/1]
PD#SWPL-187055

Problem:
lcd phy lane_lock_total was cleared when second lcd probe

Solution:
bypass lcd lane_lock_total reset

Verify:
t3x_multidisplay

Change-Id: I7b79b6a99b18537445f022caee5a88871857809c
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2024-09-29 05:06:56 -07:00
huijie.huang a6c606d945 lcd: t6d support phy tuning [2/2]
PD#SWPL-184861

Problem:
t6d need to support phy tuning

Solution:
t6d support phy tuning driver

Verify:
T6D BR301

Change-Id: I27f090450aaa6dd1e5d1c1bc7b77bde44a67ae9a
Signed-off-by: huijie.huang <huijie.huang@amlogic.com>
2024-09-29 05:06:29 -07:00
Jianxiong Pan bf648bc096 aml_media: differentiate config according to tv and ott. [1/1]
PD#SWPL-184652

Problem:
aml_media ko too large, need to reduce the size.

Solution:
differentiate config according to TV and OTT project.

Verify:
local.

Change-Id: I2d45ed0a8021808926954590e0efeeb092089ae4
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-09-29 05:06:22 -07:00
jialong.jiang a530c19a63 amdv: add method to get dv_id from vf. [1/1]
PD#SWPL-186419

Problem:
play the DV video source,
and the picture mode is SDR

Solution:
add method to get dv_id from vf.

Verify:
s7d

Change-Id: If8836fed66b11bef012046278ce24ee6ea0db0d0
Signed-off-by: jialong.jiang <jialong.jiang@amlogic.com>
2024-09-27 01:06:53 -07:00
zhou.han 276e4dc768 hdmitx: add hdmi_used property [1/1]
PD#SWPL-99075

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

Solution:
Add hdmi_used property

Verify:
ohm

Test:
DRM-TX-20

Change-Id: Ie6f27ad380c90186275ec3af0ddfe7287ada09c8
Signed-off-by: zhou.han <zhou.han@amlogic.com>
2024-09-26 18:50:12 -07:00
chenyang.liu 10661f0a43 lcd: update bist index on t6d [2/2]
PD#SWPL-186989

Problem:
want to support x icon,but it doesn't work

Solution:
1.reserve bist index 9 to be consistent with the other chips
2.set description to Not support and the function is same as None

Verify:
T6D-BR301

Change-Id: I2992eb0a543b2840b8c1b69fbfa97d873d2ce1f9
Signed-off-by: chenyang.liu <chenyang.liu@amlogic.com>
2024-09-26 18:47:28 -07:00
jie.dai 0542982734 lcd: handle panel parameter to kernel within reserved memory [2/2]
PD#SWPL-184978

Problem:
need transmit parameter to kernel through reserved memory

Solution:
transmit parameter to kernel through reserved memory

Verify:
T5M/T5W/T6D

Change-Id: Icaf75763ac95a0e90b5ebc5e67739d6f86a35dc9
Signed-off-by: jie.dai <jie.dai@amlogic.com>
2024-09-25 01:58:34 -07:00
zhou.han 04da30af11 drm: Optimize encoder_atomic_check flow [1/1]
PD#SWPL-183146

Problem:
On RDK-S7D, westeros did not set the attr property when
switching from 1080P to 2160P on the UI. 2160p60hz+444,10bit
is an invalid combination, causing atomic_check fail and
the TV display black screen.

Solution:
The flow matching mode and attr is moved to the check flow.
meson_hdmitx_encoder_atomic_mode_set api keep in the commit flow,
because vinfo is updated here.If it is moved to the DRM check
flow, it may cause timing issues and lose vsync.

Verify:
S7D/OHM

Test:
DRM-TX-130

Change-Id: I5a1d29564fe0163f91529459ff844ca7f69ca189
Signed-off-by: zhou.han <zhou.han@amlogic.com>
2024-09-24 02:58:51 -07:00
chenyang.liu 659b134a11 lcd: update mute method for t6d [1/1]
PD#SWPL-185995

Problem:
t6d bist support vsync latch

Solution:
use black bist when putting screen black

Verify:
br301

Change-Id: I9d543a28b976652c4ebee5e8031216470653e7a3
Signed-off-by: chenyang.liu <chenyang.liu@amlogic.com>
2024-09-24 01:43:38 -07:00
ruofei.zhao eca9e67757 hdmitx: hdr log optimization [1/1]
PD#SWPL-183936

Problem:
the hdr log is not good

Solution:
hdr log optimization

Verify:
SC2
S7D

Test:
DRM-TX-78

Change-Id: Ia8d6ee9eb18388cbab2d1440ce74faa7c0a62412
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2024-09-20 08:49:26 -07:00
yuhua.lin 0cd5ecf294 dewarp: dewarp kasan issue [1/1]
PD#SWPL-178593

Problem:
current_item use after free

Solution:
us is_idle instead of current_item

Verify:
s6

Change-Id: I95051da49c0bfd7ae6feaf73f3334bd18791bd08
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2024-09-20 02:29:04 -07:00
Evoke Zhang 24c5946b31 lcd: not enable invalid lane [2/2]
PD#SWPL-182405

Problem:
only need enable valid lane

Solution:
check invalid lane and not enable them

Verify:
bc302, at301

Change-Id: Ic997ab4e7f8caacd49c5a78159d63deb369f3243
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-09-19 21:48:58 -07:00
xiang.wu1 a70042aac0 hdmitx: optimization frl stop flow [1/1]
PD#SWPL-181717

Problem:
cancel_delayed_work() may not cancel the work in time

Solution:
stop frl first at disable phy
Use the cancel_delayed_work_sync() instead
clear frl mode at hdmitx_set_frl_rate_none

Verify:
s5/ax201

Test:
DRM-TX-79,DRM-TX-80,DRM-TX-81,DRM-TX-82

Change-Id: Ifac6bce137f251c3d643afae60d567c75eee81c0
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2024-09-18 05:02:25 -07:00
zhenteng.tian 1facc03ea9 vc: drop error frame in low latency mode. [1/1]
PD#SWPL-181167

Problem:
vc need drop error frame in low latency mode

Solution:
need drop error frame in low latency mode

Verify:
T5M

Change-Id: If6b5c458f3abed2694db4238f259a21e436d2862
Signed-off-by: zhenteng.tian <zhenteng.tian@amlogic.com>
2024-09-18 02:56:44 -07:00
yiting.deng dab5a1e689 clk: s7d: update pwm_clk to secure [3/3]
PD#SWPL-175924

Problem:
secure permission needs to be set for the pwm_clk register
related to voltage regulation. Relevant clk configurations
need to be stored in bl31. kernel configurations need to
be deleted.

Solution:
fix it

Verify:
s7d

Change-Id: Ieddcf486196ad33f3b79188039de3143f22e99f4
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2024-09-12 23:02:58 -07:00
Evoke Zhang 1e7eb909af lcd: support get real state from register for phy tuning [2/2]
PD#SWPL-181614

Problem:
need get real state from register for phy tuning

Solution:
support get real state from register for phy tuning

Verify:
ay301

Change-Id: Ifffe89ac119c14049cd987e7254b64b7ad36b526
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-09-12 21:51:51 -07:00
Jiucheng Xu 70635b96bc cma: export enable interface for using cma buffer for write file [1/1]
PD#SWPL-185295

Problem:
write file cache couldn't use cma buffer.

Solution:
add module param to control the enable/disable using cma buffer for
write file cache.

Verify:
t3/t5w

Change-Id: Ief6506d24298358560f475eb2f11393989819763
Signed-off-by: Jiucheng Xu <jiucheng.xu@amlogic.com>
2024-09-11 23:03:51 -07:00
zongdong.jiao 6b9d08f2b3 hdmitx: re-format the qms related log [1/1]
PD#SWPL-183838

Problem:
re-format the qms related log

Solution:
re-format the qms related log with id

Verify:
s6/raman

Test:
DRM-TX-75

Change-Id: I8f189dc67f381971cd5ec60aae58bb4c94f9cbf9
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2024-09-11 20:55:23 -07:00
ruofei.zhao 5e9be61f17 hdmitx: update hdmitx version to 20240914 [1/1]
PD#SWPL-184893

Problem:
update hdmitx version for release

Solution:
update hdmitx version to 20240914

Verify:
S7D
S4

Test:
DRM-TX-40

Change-Id: Ibdab4d6470967ddb2dbf09f3e7b15651484446fe
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2024-09-11 04:59:53 -07:00
jing.li1 7870aac7aa Demux: Add api for multi2 [1/2]
PD#SWPL-181881

Problem:
S6 need to support multi2

Solution:
Add api for multi2

Verify:
Verified on bl201

Change-Id: I124eeda9df93d9a7f0bacba3ad5c663f341852f5
Signed-off-by: jing.li1 <jing.li1@amlogic.com>
2024-09-11 01:55:48 -07:00
dian.shao 62b68a6015 usb: 2t cmdline args force mode [1/1]
PD#SWPL-180337

Problem:
wifi/bt driver passes the kernel args in
uboot.

Solution:
Read args and if it is set, set the usb2phy to 960m mode.

Verify:
br201.

Change-Id: I07d057866441b13d451023bdcd4b5d985a6d941b
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2024-09-10 07:02:25 -07:00
song.han 23b67f45b1 IOTM: support iotm function on t6d [1/2]
PD#SWPL-170602

Problem:
support iotm function on t6d

Solution:
support iotm funciotn on t6d

Verify:
t6d

Change-Id: Ifb5e32d0ff3ee455dae60088133c01514188159f
Signed-off-by: song.han <song.han@amlogic.com>
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2024-09-10 04:47:00 -07:00
Evoke Zhang 11d1fad662 lcd: support more ufr timing switch method [1/1]
PD#SWPL-183033

Problem:
need support min switch without tcon reset for special panel

Solution:
support more ufr timing switch method

Verify:
at301

Change-Id: I7b5ab8d8e5d37d10211e744b83ac64fb76e81e4b
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-09-06 02:19:08 -07:00
zhou.han 37e8aadf54 hdmitx: add hdcp_user property [1/1]
PD#SWPL-182609

Problem:
There are some hdcp fail messages in mesondisplay logcat.
But IVCX chip don't need HWC to enable hdcp flow, SNPS chip need.

Solution:
Add hdcp_user property to notify HWC of controlling dynamically
hdcp flow

Verify:
sc2/s6

Test:
DRM-TX-37

Change-Id: I146187a7843dbd83a7531d3415fb28249a6ef086
Signed-off-by: zhou.han <zhou.han@amlogic.com>
2024-09-05 03:43:03 -07:00
qinglin.li 4b8d313875 ddr_tool: build fail if ddr_bandwidth not define [1/1]
PD#SWPL-182359

Problem:
build fail if ddr_bandwidth not define

Solution:
use static inline define function

Verify:
local

Change-Id: Iab9bb597a0c8238224c70f66cafb3c549044a3d2
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-09-04 05:40:03 -07:00
dian.shao fcdaffa1b6 usb: str power optimise [1/1]
PD#SWPL-183487

Problem:
AVDD18_AUDIO high.

Solution:
Power off controller when str.

Verify:
br301

Change-Id: I7fa56ca3449df6196cd0e6e7d0ee9ba108712928
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2024-09-03 18:52:09 -07:00
Pengcheng Chen 30ab20b79b vpp: add nv21/nv12 10bit fullpack support [1/2]
PD#SWPL-183317

Problem:
add nv21/nv12 10bit fullpack support

Solution:
add nv21/nv12 10bit fullpack support

Verify:
t6d

Change-Id: If5c866c5e3f27c79472f4a018fe6a241507f9475
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-09-03 18:52:04 -07:00
Pengcheng Chen 2a1fa15073 vpp: update vd1/vd2 in hsize/vsize for amdv [1/1]
PD#SWPL-183223

Problem:
update vd1/vd2 in hsize/vsize for amdv

Solution:
update vd1/vd2 in hsize/vsize for amdv

Verify:
s5

Change-Id: I84062711edfecf3144a0a10997375db14b98c440
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-09-03 06:02:58 -07:00
Evoke Zhang 0333fb71eb lcd: support vpu_overclk flow [1/4]
PD#SWPL-182516

Problem:
need to add vpu_overclk flow

Solution:
disable venc and switch vpu clk

Verify:
t5m

Change-Id: I08258632634c3a1cd19addd3db06edf7a8600e0a
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-09-02 23:04:15 -07:00
Jian Cao ada197bb5d vpp: dynamically modify vpu_clk when display mode changes [4/4]
PD#SWPL-182516

Problem:
need to add vpu_overclk flow

Solution:
1. add notifier event
2. set vpu clkb
3. get and check vdin status

Verify:
t5m

Change-Id: Id3a1faba9e13a6a102d6f916d9c3743476ea577a
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2024-09-02 23:04:07 -07:00
qianqian.cai d600209751 deinterlace: add interface to set vpu clkb [3/4]
PD#SWPL-182516

Problem:
need to add vpu_overclk flow

Solution:
add this interface

Verify:
t5m

Change-Id: I9783f464aa2f792672342618e6366ae713074f19
Signed-off-by: qianqian.cai <qianqian.cai@amlogic.com>
2024-09-02 23:03:55 -07:00
haitao.liu 5a5593face vdin: add interface to get and check vdin status [2/4]
PD#SWPL-182516

Problem:
need to add vpu_overclk flow

Solution:
add this interface

Verify:
t5m

Change-Id: I3e0df43f44fb817c7a53efcf11e00aa02c82cc35
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2024-09-02 23:03:47 -07:00