Commit Graph

739 Commits

Author SHA1 Message Date
donghui.wang b852e8c024 ldim: config spi_line_n [1/3]
PD#SWPL-150706

Problem:
set spi_line_n & spi_sync mode configurable

Solution:
set spi_line_n & spi_sync mode configurable

Verify:
t3x

Change-Id: Ib38a2d3e509d09569d07624a1c1d45e4aa916f71
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2023-12-22 08:33:48 -07:00
xiang.wu1 810712a506 hdmitx: Adjust the disable phy timing during mode switching [1/1]
PD#SWPL-144353

Problem:
During the mode switching process, when systemctrl writes the
node to close phy, the phy action is to close it immediately.
At this time, part of the video data may have been transmitted,
but the data is incomplete. At this time, rx got part of the image.
Some TVs did not perform frame dropping processing after getting part
of the data and parsed it, but the solution was wrong, which may
cause some display abnormalities.

Solution:
Referring to the processing method of the Apple box,
during the mode switching process, when systemctrl issues
a shutdown phy command, we will wait until vsync is
interrupted before shutting down the phy. At this time,
there is no video data transmission, which is relatively safe.

Verify:
ohm/T7

Test:
DRM-TX-67, DRM-TX-78, DRM-TX-79, DRM-TX-80, DRM-TX-81

Change-Id: I25162448f6d8f432bc48e0e038bac9a108bf8151
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2023-12-22 08:33:10 -07:00
Yao Jie c988798e0d mailbox: tm2 mailbox bringup [1/1]
PD#SWPL-143660

Problem:
tm2 mailbox bringup

Solution:
tm2 mailbox bringup

Verify:
TM2-AB301

Change-Id: Icd1ddaee5d15f4b18ca887f386091d79e1013a2e
Signed-off-by: Yao Jie <jie.yao@amlogic.com>
2023-12-22 16:08:59 +08:00
junyi.zhao 0639855d82 clk: support sys pll and dsu clk for tm2 [1/1]
PD#SWPL-143585

Problem:
need support sys pll 1404M and 1500M
dsu clk need parent sys pll

Solution:
support sys pll and dsu clk

Verify:
tm2 ab311

Change-Id: I20dc2922d6f90bacad66542edc75b64a1f3b0b4c
Signed-off-by: Junyi Zhao <junyi.zhao@amlogic.com>
2023-12-22 16:08:59 +08:00
Qianggui Song 34c7c4751d dtb: tm2: bringup to console [1/1]
PD#SWPL-143601

Problem:
Need to bringup to console

Solution:
bringup to console for ab301

Verify:
tm2_ab301

Change-Id: I8f78a322da984eafa71ee21bee330eeccc224058
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2023-12-22 16:08:59 +08:00
shipeng.sun 0ed1ff0963 resourcemanage: Add res_sys_debug node to report debug level [3/4]
PD#SWPL-145651

Problem:
Add res_sys_debug node to report debug level

Solution:
Add res_sys_debug node to report debug level

Verify:
ohm

Change-Id: I07e86aa1c3c747232a5fbe2cdf5a2d06814888d3
Signed-off-by: shipeng.sun <shipeng.sun@amlogic.com>
2023-12-21 02:35:11 -07:00
donghui.wang 28b312904c ldim: support spi dma trig method [1/1]
PD#SWPL-149294

Problem:
match with 377662
support spi dma trig

Solution:
support spi dma trig

Verify:
t5m

Change-Id: Id33930074cbba0837fcb3259fea86cb111986218
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2023-12-20 00:27:33 -07:00
Huijuan Xiao 57524869bc amvecm: add osd pq setting [1/1]
PD#SWPL-141758

Problem:
add brightness contrast color adjust for osd.

Solution:
add brightness contrast color APIs for osd.

Verify:
t5m

Change-Id: Ie2e2b463adf920aeb7ed5fa9e972325cbf778f01
Signed-off-by: Huijuan Xiao <huijuan.xiao@amlogic.com>
2023-12-19 00:19:09 -07:00
Doosan Baek d7d4979d9d KL: add etsi challenge-response function [1/1]
PD#SWPL-149012

Problem:
KL driver should be able to check
if KL's fuse is okay without M2M or descrambler in REE.

Solution:
add etsi challenge-response function

Verify:
T5D

Change-Id: I8492896086ba3e6e4701ee4511794e803ed6d900
Signed-off-by: Doosan Baek <doosan.baek@amlogic.com>
2023-12-18 20:28:21 -07:00
jialong.jiang b568c8ef03 amdv: hdr dv policy problem. [1/1]
PD#SWPL-148414

Problem:
hdr dv policy problem.

Solution:
get amdv hdr policy return false for 8k.

Verify:
s5

Change-Id: I2695926a8d0503e43da1e702ba6ec2eb73fbf3ab
Signed-off-by: jialong.jiang <jialong.jiang@amlogic.com>
2023-12-18 06:33:51 -07:00
Wenjie Qiao fd23f16148 hdmitx: delete cinemavrr [2/2]
PD#SWPL-148293

Problem:
hdmi spec2.1b Table 10-7, cinemavrr, pb5 bit4 should always be 0

Solution:
delete cinemavrr

Verify:
T7

Test:
DRM-TX-77 DRM-TX-75

Change-Id: I85e8a68f1c3e6252a8787633f6b3840a8a21c1ae
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2023-12-18 04:47:30 -07:00
xinli.gao b947308611 uvm: set parameters for gralloc [5/5]
PD#SWPL-145570

Problem:
code refactoring to determine allocating
buffer's size between Gralloc and Codec2

Solution:
set parameters to node for gralloc

Verify:
txhd2

Change-Id: I5812b4bf23b2697ebaf33674b7cb2dcc88025eba
Signed-off-by: xinli.gao <xinli.gao@amlogic.com>
2023-12-18 04:47:16 -07:00
yahui.liu dc986b9fdd hdmitx: add tracer for hdr/dv [1/1]
PD#SWPL-142521

Problem:
no event for hdr/dv

Solution:
add tracer for hdr/dv

Verify:
verify on oppen

Test:
DRM-TX-73

Change-Id: Iec5fc64b641a87c237c6f413760361b2924e644f
Signed-off-by: yahui.liu <yahui.liu@amlogic.com>
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2023-12-15 02:45:27 -07:00
yahui.liu fd14e1eb0d hdmitx: add tracer for audio [1/1]
PD#SWPL-142522

Problem:
no event for audio

Solution:
add audio trace event

Verify:
s5

Test:
DRM-TX-71

Change-Id: Ic2592cd06f1ef392adb29131a45f72af3ae2933a
Signed-off-by: yahui.liu <yahui.liu@amlogic.com>
2023-12-14 04:29:14 -07:00
congyang.huang c0fa7f03bf drm: add vrr range getting ioctl [1/1]
PD#SWPL-147629

Problem:
no ioctl to get vrr range

Solution:
add ioctl to get vrr range

Verify:
t7c

Test:
DRM-TX-75

Change-Id: If6dab5d69b90ff63acf9617c61a452a6f25bd5d9
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2023-12-13 20:59:09 -07:00
hang cheng 5558be45a3 hdmitx: add driver mode setting test [1/1]
PD#SWPL-148833

Problem:
there's no method to set hdmi mode for
hdmitx driver level check on PXP

Solution:
add driver mode setting test interface
cd /sys/class/amhdmitx/amhdmitx0
echo 444,8bit > test_attr
echo 1080p60hz > disp_mode
echo bistauto > debug

Verify:
S5

Test:
DRM-TX-74

Change-Id: I44410ace6a0fdf2801373ba25099a3e7e344f9a2
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
2023-12-13 02:43:07 -07:00
ruofei.zhao 3da6cea635 hdmitx: fix hdmitx DDC GPIO level interface [1/1]
PD#SWPL-149201

Problem:
DDC's SDA and SCL are always LOW

Solution:
fix hdmitx DDC GPIO level interface

Verify:
S4

Test:
DRM-TX-54

Change-Id: I304167eae488d98358807d1cac63911428fa22c1
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2023-12-12 06:11:38 -07:00
dezhi kong e5a79e30bb uvm: fix memory leak [1/2]
PD#SWPL-143214

Problem:
uvm sgt memory leak

Solution:
add free for sgt
add skip debug interface

Verify:
AndroidT kernel5.15 ohm

Change-Id: I8419e60318409a15bdec41d3918e875fc547778c
Signed-off-by: dezhi kong <dezhi.kong@amlogic.com>
2023-12-11 20:43:05 -07:00
zongdong.jiao f6816fda60 hdmitx: add debug interface for testing edid [1/1]
PD#SWPL-147036

Problem:
Lack debug interface for testing edid

Solution:
Add debug interface for testing edid
echo 00ffffffffffff00.... > /sys/class/amhdmitx/amhdmitx0/edid

Verify:
t7/an400

Test:
DRM-TX-9

Change-Id: I67553180ea3c4d805706ea52978d0eba4a464a82
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2023-12-11 04:24:09 -07:00
Sunny Luo 0f3f980eaf spicc: add dma transfer by vsync/line-n triggering support [1/1]
PD#SWPL-147512

Problem:
LDIM requires a strict timing sequence to match with the vsync signal

Solution:
SPICC supports vsync/line-n triggering control, Add a interface to
start/stop the vsync triggering transfer for LDIM
Porting from 5.4 1f62b7d1

Verify:
t3 t982

Change-Id: Ida2f63cbe318dceebbe97514e41a588e4ea143d4
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
2023-12-07 04:41:17 -07:00
Evoke Zhang 51bd6f249e lcd: add lcd config valid check [2/2]
PD#SWPL-147830

Problem:
sometime there are invalid config cause panel display abnormal

Solution:
add lcd config check function
1.lcd timing & tcon setting valid condition is decided by driver itself
2.display path timing_req_min is configured in dts, with alert_level
3.auto check after load lcd config, driver will be blocked by fatal err
4.manual cmd: echo check >/sys/class/lcd/debug

Verify:
am301

Change-Id: Iddd21f31f654ef99ae51465788c11a8d4a4e7446
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2023-12-07 00:09:26 -07:00
jialong.jiang 45af8ab3f9 dv: AISDK needs to be merged into trunk. [1/1]
PD#SWPL-134510

Problem:
End-User Calibration.
automatic playback potimization.
lightsensor.

Solution:
add user sample cfg interface,
apo driver reports content type by uevent.
lightsensor.

Verify:
t5m.

Change-Id: Idc193083424f6420ae774abf3b3e39181f127c05
Signed-off-by: jialong.jiang <jialong.jiang@amlogic.com>
2023-12-05 20:27:07 -07:00
MingLiang Dong 4b66977202 amvecm: fix dma dnlp hist error [1/1]
PD#SWPL-142489

Problem:
dnlp hist get error from dma table.
root cause is size config error

Solution:
fix error size

Verify:
verify on T3X

Change-Id: If568a30d9274a2ea30098b51046875d1e226f579
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2023-12-05 06:19:54 -07:00
MingLiang Dong 6e5ffd03df amvecm: fix flicker when enable ai color [1/1]
PD#SWPL-147148

Problem:
enable ai color flicker

Solution:
change to rdma write regs

Verify:
verify on T3X

Change-Id: Ic81067a458a2fd3320ef917b9d90e31b7cecb156
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2023-12-04 22:25:40 -07:00
sky zhou 4fb47a422e hdmitx: add kms/edid trace event [1/1]
PD#SWPL-142523

Problem:
no event for modesetting

Solution:
add kms/edid trace event

Verify:
verify on ohm.

Test:
DRM-TX-39

Change-Id: Ide543ed7928bfd94e11a520bb9401cdb543c93de
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
2023-12-04 02:27:19 -07:00
Doosan Baek c52457801a KT: modify key clean for IV slot [1/1]
PD#SWPL-147883

Problem:
IV slot does not need cleaning.

Solution:
IV slot is not clean.

Verify:
S1A

Change-Id: Id5f9bf3b95573cacb53de2e85796b10ce96ea7be
Signed-off-by: Doosan Baek <doosan.baek@amlogic.com>
2023-11-29 00:33:37 -07:00
Liang Yang a856f9ff4a spi-nand: device encryption [1/1]
PD#SWPL-130883

Problem:
need to support inline partition encryption

Solution:
add support inline partition encryption in
spi nand driver

Verify:
s1a

Change-Id: Iadb9b9ae121939ef37a3abbd603a5eec17500739
Signed-off-by: Liang Yang <liang.yang@amlogic.com>
2023-11-29 00:33:11 -07:00
mingxiu.sun 15a3f407ab vdin & hdmirx: modify colorimetry delivery method [1/1]
PD#SWPL-125462

Problem:
open the HDMI2.0 ,the color of image is changed

Solution:
add vf info for colorimetry

Verify:
t5m kernel5.15

Change-Id: I126786f130d59fe2977ad8ea46b921aadd302d67
Signed-off-by: mingxiu.sun <mingxiu.sun@amlogic.com>
2023-11-28 08:19:14 -07:00
Bichao Zheng 92da8aaea5 spinand: add DS35Q2GB support [2/2]
PD#SWPL-134893

Problem:
need add DS35Q2GB support

Solution:
add DS35Q2GB id

Verify:
a1

Change-Id: I18eef2cae78a2e672ee6ea8a0b3e1bac734b53b5
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
2023-11-28 02:15:14 -07:00
Feng Chen b68a304179 nand: slcnand & spinand: fix mutex deadlock [1/1]
PD#SWPL-142875

Problem:
deadlock will happen in mark bad block process.

Solution:
add rsv-ops interface in rsv-manage to avoid deadlock.

Verify:
c3

Change-Id: I3841a8d3ca8c8f48142828b03ba9aefdf21adc62
Signed-off-by: Feng Chen <feng.chen@amlogic.com>
2023-11-27 20:09:21 -07:00
yao liu 47d848537b amdv: hdmi in top1+top2 idk case [1/1]
PD#SWPL-141054

Problem:
hdmi in top1+top2 idk case fail

Solution:
1.add top1 rdmif config for hdmi
2.modify chroma fmt to p444 for hdmi
because vdin dw is 444-10
3.support variable_fps
4.update hist read id only when vf content changed, to match
hist delay with cmodel

Verify:
t3x

Change-Id: Ib5a9bbb266d2105f4729afa12347ee8eb80fae3a
Signed-off-by: yao liu <yao.liu@amlogic.com>
2023-11-24 16:39:06 -07:00
shufei.zhao 92ffe3e6aa unifykey: auto attach after flash probe [1/1]
PD#SWPL-143927

Problem:
unifykey ready too late

Solution:
attach after flash probe

Verify:
g12b

Change-Id: I637874304ea70f34074d32ac08c4728a1b80cef8
Signed-off-by: shufei.zhao <shufei.zhao@amlogic.com>
2023-11-21 22:39:17 -07:00
Huijuan Xiao 51f15ed7a3 aipq: t5m support aipq [1/1]
PD#SWPL-138322

Problem:
t5m support aipq.

Solution:
add t5m aipq flow.

Verify:
t5m

Change-Id: Iaf01c6edb512bbea01ebedeedd770869a25b7ad4
Signed-off-by: Huijuan Xiao <huijuan.xiao@amlogic.com>
2023-11-17 04:23:35 -07:00
chen.xu 7e0a996ccb uvm_aipq: need modify for aipq of GPU [1/6]
PD#SWPL-138653

Problem:
need modify for aipq of GPU.

Solution:
modify for aipq of GPU.

Verify:
T5M

Change-Id: I2703b3bba282eae827255793e9a94b659b37dc37
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2023-11-17 04:23:30 -07:00
Jian Cao 56be7cb185 media: delay clk/power/irq init for ge2d/dewarp [1/1]
PD#SWPL-144572

Problem:
dewarp/ge2d interrupt resource usage between RTOS and Linux

Solution:
To avoid interfering with RTOS clock/power/interrupt resources,
turn on and keep power/clk first.
Poll the status of rtos,
then turn off power/clk and register interrupt.

Verify:
T7C

Change-Id: Ie2a3ae61df97c594324ffb3dde68d41250c946e3
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2023-11-16 22:11:17 -07:00
ruofei.zhao 19abf54369 hdmitx: add SVD_VIC to store SVD in VDB [1/1]
PD#SWPL-145586

Problem:
When the vic of VSDB is stored first, the vic of video data block
is inserted at the end, and an error occurs in 420 capability map

Solution:
add SVD_VIC, used to store SVD in VDB, mapped with 420 CMDB

Verify:
S5/AX201-S928X

Test:
DRM-TX-44

Change-Id: I18b42e9c304b01b6712d9640f4bc08020595f305
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2023-11-16 20:15:33 -07:00
Nanxin Qin e8045f9b34 media: CF1 Adds debugfs for codec status management. [1/1]
PD#SWPL-145646

Problem:
Adds debugfs for codec status management.

Solution:
Add codec state module, mainly collect and
manage codec status information, and facilitate
the management of the configuration of each module.

Verify:
ohm

Change-Id: I8f877a954f9873c4aa4d632e007a67c0a41ff2b1
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
2023-11-15 20:27:47 -07:00
yahui.liu 9198211c96 hdmitx: update hdmitx version [1/1]
PD#SWPL-142528

Problem:
update hdmitx version for release.

Solution:
update hdmitx version

Verify:
verify on ohm

Test:
DRM-TX-40

Change-Id: I8ba7e32e165b6a45cd0a30d9ab8e4494ac333475
Signed-off-by: yahui.liu <yahui.liu@amlogic.com>
2023-11-15 03:07:29 -07:00
donghui.wang 9593ac7960 ldim: fix power on duty on kernel [1/1]
PD#SWPL-144978

Problem:
duty change when enter kernel

Solution:
keep duty until get level_idx

Verify:
t3x bc302

Change-Id: I747f6389420d367d34e009f4758110ae49a28220
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2023-11-13 20:37:36 -07:00
hang cheng c04b4575db hdmitx: not clear edid when suspend [1/1]
PD#SWPL-144627

Problem:
when kernel goes to early suspend, need keep the edid data

Solution:
Keep edid data during the suspend state. If there is HPD in
early suspend, there will update the EDID in the bottom of
hpd ISR

Verify:
ohm

Test:
DRM-TX-38

Change-Id: If1975a68da8c7431bb7867359bc5368b37dbc1f3
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
2023-11-13 02:59:19 -07:00
lele xiang 79835ce49e decoder: CF1 decoder transfer fcc flag to DI. [1/2]
PD#SWPL-144474

Problem:
For fcc,don't need keep di_multi memory

Solution:
Decoder transfer fcc flag to DI.

Verify:
ohm

Change-Id: I37d1da0dc5c99dd086ee1291d403525a009bc64b
Signed-off-by: lele xiang <lele.xiang@amlogic.com>
2023-11-13 00:02:52 -07:00
rong.quan 04275ad21a common: CB2 fix typo error . [1/1]
PD#SWPL-144466

Problem:
function name has typo error.

Solution:
fix typo error.

Verify:
ohm

Change-Id: I89e3d79da8ada1d445bc0e5a32b7502baaef3b46
Signed-off-by: rong.quan <rong.quan@amlogic.com>
2023-11-13 00:01:39 -07:00
zhikui.cui 6996aaf408 nand: support driver for T5D [1/1]
PD#SWPL-129598

Problem:
need support nand driver for T5D bringup

Solution:
select FixDiv2PLL clock source in module

Verify:
AM301_T950D4

Change-Id: Ida6b579062937fc3089583de300a69ec8ddfde91
Signed-off-by: zhikui.cui <zhikui.cui@amlogic.com>
2023-11-10 08:17:22 -07:00
Gaowei Zhao 9dd6f6e994 hdmirx: dual hdmi input [1/1]
PD#SWPL-134200

Problem:
new feature,dual hdmi input on t3x

Solution:
add code

Verify:
t3x

Change-Id: Ic51e37520a752e122deb7f5ef885456e1ab49781
Signed-off-by: Gaowei Zhao <gaowei.zhao@amlogic.com>
Signed-off-by: Lei Yang <lei.yang@amlogic.com>
2023-11-10 06:47:06 -07:00
jian zhou 39b14aea33 audio: reset hpd when earc resume [1/1]
PD#SWPL-145468

Problem:
when suspend & resume, heartbeat lost,so earc disconnected

Solution:
when resume, reset hpd for earc discovery.

Verify:
t5m

Change-Id: I522108773d1f0262b2503e9c48126bd043184ea2
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2023-11-10 02:06:07 -07:00
jintao xu 28735aa3a3 di: free buffer when REG_STEP1 [1/1]
PD#SWPL-137948

Problem:
fcc 3 channel has di buffer

Solution:
free buffer when REG_STEP1

Verify:
sc2

Change-Id: I921fece2180357c6fb986a459475081a15239d20
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
2023-11-10 02:05:23 -07:00
yufei.huan bcb0e2ba8f deinterlace: di prelink frc splash screen [1/1]
PD#SWPL-143172

Problem:
Splash screen when switching resolution

Solution:
Determine the output to screen ratio setting prehold

Verify:
T5m

Change-Id: I8c027e107287e5583923dcb271b1810fe00112ab
Signed-off-by: yufei.huan <yufei.huan@amlogic.com>
2023-11-09 23:01:11 -07:00
lizhi.hu a7a934b019 lcd: support 4lane edp panel [1/1]
PD#SWPL-143094

Problem:
add support for 4 lane edp panel

Solution:
enable enhanced frame by DPCD

Verify:
t7_an400

Change-Id: I534eb2d0dbab9f38a99968a2e3a8ab16598a1e64
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2023-11-08 00:39:29 -07:00
linfang.zhao d44cc4a246 drm: add mute plane interface [3/3]
PD#SWPL-143936

Problem:
show or hide video does not work

Solution:
add mute plane interface

Verify:
AP222

Test:
DRM-OSD-111

Change-Id: Ib5898c9a0bc3201d397a3a33a9c073f0799c3aee
Signed-off-by: linfang.zhao <linfang.zhao@amlogic.com>
2023-11-07 04:51:50 -07:00
xiang.wu1 da7016341e hdmitx: check the box frl capability [1/1]
PD#SWPL-143972

Problem:
when clac_tmds_clk > max_tmds_clk, only check whether
the edid support frl, not check the box frl capability

Solution:
add check the box frl capability

Verify:
s905x4

Test:
DRM-TX-42

Change-Id: I502b130c7fc613d020566af35438465c52ee3b60
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2023-11-07 02:09:10 -07:00