Commit Graph

1079 Commits

Author SHA1 Message Date
yiting.deng 4b6c14e6ff clk: s7 clk bringup [1/1]
PD#SWPL-152400

Problem:
fix sys_clk_gate
fix clk measure name

Solution:
fix it

Verify:
s7

Change-Id: I3d403c0d4ae17b7a6dd768aceaf5d47054d7b0ad
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2024-01-22 12:48:44 +08:00
Shunzhou Jiang 8bf05bde3f mbox: s7 mbox bringup [1/1]
PD#SWPL-152412

Problem:
s7 mbox bringup

Solution:
s7 mbox bringup

Verify:
s7_bh201

Change-Id: I99337ebc5333cb0c3bb712641cde0cf1d5ac14e4
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
2024-01-22 12:48:44 +08:00
dian.shao da6290cfda usb: s7 bringup [1/1]
PD#SWPL-152414

Problem:
s7 silicon bringup

Solution:
dts

Verify:
s905y5_bh201

Change-Id: Ide0e60d7c064628981e8990e3879083e342b0e04
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2024-01-22 12:48:44 +08:00
Chuan Liu e6f1d9db24 clk: s7: optimize clock performance [2/2]
PD#SWPL-135780

Problem:
optimize clock performance.

Solution:
1 Optimize cpu_clk switching frequency timing;
2 Move all cpu_clk set frequency operations to bl31.

Verify:
pxp

Change-Id: I6147683b713a9b4854cd8f92e13b396f8705ea30
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2024-01-22 12:48:44 +08:00
junyi.zhao f79a3664fb pwm: add pwm tee driver for s7 [1/2]
PD#SWPL-135758

Problem:
there is no s7 pwm tee driver

Solution:
add pwm tee  driver

Verify:
s7 pxp

Change-Id: If1ec9b943340687173827e114df1207001ec2daa
Signed-off-by: junyi.zhao <junyi.zhao@amlogic.com>
2024-01-22 12:48:43 +08:00
Huqiang Qin 8f9a134b4b gpio: s7: supports cc1 and cc2 pins [1/1]
PD#SWPL-131121

Problem:
S7 PxP Bringup.

Solution:
1) Supports CC1 and CC2 pins.
2) Support TEST_N pin interrupt.

Verify:
PTM

Change-Id: Ia20a6054d09fe2218e816d6755fd9f62385e4abb
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2024-01-22 12:48:43 +08:00
junyi.zhao 83d1999010 pwm: add pwm driver for s7 [1/1]
PD#SWPL-135758

Problem:
there is no s7 pwm driver

Solution:
add s7 pwm driver

Verify:
s7 pxp

Change-Id: I794ec36605b1241e4a3fabddd4012877c73a490c
Signed-off-by: junyi.zhao <junyi.zhao@amlogic.com>
2024-01-22 12:48:43 +08:00
yiting.deng 1a55a1607d clk: specifies s7 clock name and CLKID [1/1]
PD#SWPL-137984

Problem:
need specifies s7 clock name and CLKID

Solution:
fix it

Verify:
ptm

Change-Id: Ia9e3d126d275252ece4c76b6b98450d9c2707406
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2024-01-22 12:48:43 +08:00
qinghui.jiang 88951c5fa9 amvecm: s7 pxp bringup [1/1]
PD#SWPL-135077

Problem:
s7 pxp bringup

Solution:
s7 pxp bringup

Verify:
s7

Change-Id: If46d675fa1d58a174a03263d501eaac7f78dd0bd
Signed-off-by: qinghui.jiang <qinghui.jiang@amlogic.com>
2024-01-22 12:48:43 +08:00
yuhua.lin 849a6d6704 s7: add support for codec_io/canvas/rdma [1/1]
PD#SWPL-135792

Problem:
s7 codec_io/canvas/rdma bringup

Solution:
complete it

Verify:
ptm

Change-Id: Iea6cf27abb32e332ca76856d3ccb6dc9c219eac5
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2024-01-22 12:48:43 +08:00
yiting.deng 24fbbcfdb8 clk: s7 kernel pxp clk bringup [1/2]
PD#SWPL-132405

Problem:
s7 kernel pxp clk bringup

Solution:
s7 kernel pxp clk bringup

Verify:
pxp

Change-Id: I9905c650ffc6e39d22c441d5fef4f89a78f10e3a
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2024-01-22 12:48:43 +08:00
hongyu.chen1 82db98ad69 S7: add power domain. [3/3]
PD#SWPL-131629

Problem:
s7 need power domain.

Solution:
add power domain in kernel.

Verify:
pxp

Change-Id: I4ce47b7de5d734084356a08fc1fdbebe665253ac
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2024-01-22 12:48:43 +08:00
Huqiang Qin c7bd1b3240 pinctrl: support gpio/pinmux for s7 [1/1]
PD#SWPL-131121

Problem:
S7 PxP Bringup.

Solution:
S7 PxP Bringup.

Verify:
PxP

Change-Id: I6cfd05e9af683eb5e3a488388ac76852ca740d43
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2024-01-22 12:48:43 +08:00
Zelong Dong 7a41ee0dd8 reset: add reset controller support for s7 [1/1]
PD#SWPL-131768

Problem:
don't support s7 platform

Solution:
add reset controller support for s7

Verify:
s7_pxp

Change-Id: Ibbcdd2aaa59e75cefe26baa9cf3bb7ab8106149b
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-01-22 12:48:43 +08:00
chen.xu b6d122bc1d aipq: t5m only aipq or pq do hist [1/1]
PD#SWPL-151874

Problem:
need do aipq for T5M.

Solution:
modify code to support.

Verify:
T5M

Change-Id: Ief28052e1df8f67fff4e291319511d48ca6e2075
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2024-01-18 20:55:28 -07:00
Pengcheng Chen 0684a02702 vpp: w_in size need aligned for amdv [1/1]
PD#SWPL-153961

Problem:
w_in size need aligned for amdv

Solution:
w_in size need 4 aligned for amdv 2 slice
w_in size need 2 aligned for amdv 1 slice

Verify:
t3x

Change-Id: Ia79f892db4807b0da61f7e246d0a21717d4f42d3
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-01-17 03:07:55 -07:00
Wanwei Jiang dd5ce4f5a7 chipid: read chipid fail [1/1]
PD#SWPL-152551

Problem:
read chipid fail

Solution:
the chipid can be read by reading registers, but the register address is
set in DTS, which is prone to setting errors. It can be read through a
unified command, so there will be no previous problems.

Verify:
s905x2

Change-Id: I2019a7b8201dedec1f71a1edf09f9b51b730f5c2
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2024-01-17 03:07:30 -07:00
Haotian Guo ee8c1bc0e6 hdmirx: add 480/567 format [1/1]
PD#SWPL-151288

Problem:
Driver does not support formats for 480 and 576

Solution:
Drive the addition of 480 and 576 formats

Verify:
t7c

Change-Id: I2fa54e65061752e641e03e0ea713a8f5ffd0fb14
Signed-off-by: Haotian Guo <haotian.guo@amlogic.com>
2024-01-15 06:39:38 -07:00
lukang.jia 3e61afe560 frc: frc try to fix slice switch for ces [1/1]
PD#SWPL-143397

Problem:
frc n2m and vpu slice switch question

Solution:
workaround n2m and slice switch

Verify:
T3X

Change-Id: If0ece96772b4aa89173a29395b3d456b77dca1c3
Signed-off-by: lukang.jia <lukang.jia@amlogic.com>
2024-01-15 00:29:24 -07:00
Gaowei Zhao bb65d6ad2d hdmirx: fix compile issue caused by __packed [1/1]
PD#SWPL-153477

Problem:
aml-tvserver build fail because of __packed

Solution:
delete __packed

Verify:
Yocto

Change-Id: I0068a3e9e79498e489e924d4b0421fdb19e0fcba
Signed-off-by: Gaowei Zhao <gaowei.zhao@amlogic.com>
2024-01-11 16:11:24 -07:00
Hanjie Lin 94a7d0f46c vmap: protect and alloc harder vmap pages [1/1]
PD#SWPL-153716

Problem:
vmap alloc fail cause crash

Solution:
add vmap cache size
add retry when vmap alloc failed

Verify:
t5m

Change-Id: I975022ff1b46938207d4911fb3199bab7dd7c135
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2024-01-11 16:04:43 +08:00
Xiangyu Cai 26c01843e1 vrr: change delay line when vpp crop [1/1]
PD#SWPL-147349

Problem:
vpp crop caused blurred screen

Solution:
change vrr delay line when vpp crop

Verify:
t3x

Change-Id: Iecda72b8be18883bd7eb6636b634f8eff5a3e5fb
Signed-off-by: Xiangyu Cai <xiangyu.cai@amlogic.com>
2024-01-10 22:11:22 -07:00
yao liu 21c996a636 amdv: add pre-vsync rdma interface [1/1]
PD#SWPL-141555

Problem:
add pre-vsync rdma interface

Solution:
add pre-vsync rdma interface

Verify:
t3x

Change-Id: I8ad2d4be5aab12bbdde40085ef39dad2654c6213
Signed-off-by: yao liu <yao.liu@amlogic.com>
2024-01-10 04:13:49 -07:00
Gaowei Zhao 78c7661731 hdmirx: get AVI info [1/1]
PD#SWPL-152652

Problem:
dump AVI info invalid

Solution:
update register for AVI info

Verify:
t3x

Change-Id: Ic3874d3cc269043957b0244f9cb476db77c48ced
Signed-off-by: Gaowei Zhao <gaowei.zhao@amlogic.com>
2024-01-10 00:34:22 -07:00
qiang.liu bff25cf906 tvafe: optimize format detected process [1/1]
PD#SWPL-148476

Problem:
format detected maybe error

Solution:
optimize format detected process

Verify:
t5m

Change-Id: Ic7354ad0f02503f7b33d8f1a3307e33083bedde8
Signed-off-by: qiang.liu <qiang.liu@amlogic.com>
2024-01-09 22:21:47 -07:00
Pengcheng Chen 6070f69fc6 vpp: separate vd1 slice input for amdv [1/1]
PD#SWPL-151864

Problem:
dv not support different size for two slice

Solution:
vpp config same size for vd1 two slice, it means that
dv input size is same for two slice and overlap is
fixed 96. dv output size maybe different, it depends
on vpp slice[0].hsize and slice[1].hsize

Verify:
t3x

Change-Id: I9986a84968e63939843996ae59d42d82c7707c67
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-01-09 02:17:58 -07:00
Junyi Zhao 9c1c7bcdd8 pwm: add hibernate support [1/1]
PD#SWPL-145756

Problem:
need hibernate support

Solution:
add hibernate support

Verify:
T7C an400

Change-Id: I8cfeabdcc4450daaef74b85d2e4cc277c0ddfcb3
Signed-off-by: Junyi Zhao <junyi.zhao@amlogic.com>
2024-01-08 20:11:23 -07:00
zhiwei.zhang ea9e0d7c83 camera: video support v4l2 dma buffer [1/1]
PD#SWPL-145596

Problem:
video driver not support dam buffer.

Solution:
1. using v4l2 vb2 framework. support dma buffer import & export.
2. ov5640 output 1080p 30fps. ge2d convert to video buffer.
3. support 1920x1080 1280x720 640x360 size;
4. mmap support cache. io-mode mmap ok;

Verify:
s905d3 ac200 board.

Signed-off-by: zhiwei.zhang <zhiwei.zhang@amlogic.com>
Change-Id: Ia69fd7ca313a77f72e9f3948da0c51020d84145f
2024-01-07 21:07:05 -07:00
Jian Cao cac0610c87 ge2d: add support for bandwidth adjustment [1/1]
PD#SWPL-151150

Problem:
flickering screen occurs while playing images during rotation.

Solution:
use ge2d on and off mode
to control the ratio between hardware processing and idle states

Verify:
t5

Change-Id: I4b45e5d9636310630092f09ddc5946a298277e1d
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2024-01-05 08:14:16 -07:00
donghui.wang 09b8bb6fe3 ldim: modify debug print info [1/1]
PD#SWPL-149361

Problem:
add debug print info

Solution:
add debug print info

Verify:
t5m

Change-Id: I050ae5a5d2a4919a56d5e007cef82705813e8be7
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2024-01-05 08:13:59 -07:00
donghui.wang 3c83b218a9 ldim: set pq init first before level_idx [1/1]
PD#SWPL-151074

Problem:
cause wrong pq setting

Solution:
set pq init first

Verify:
t5m

Change-Id: If0a07ed90d7e5692f06ac8a8454881213582e2d3
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2024-01-04 04:55:19 -07:00
Wenjie Qiao 255de06eb7 hdmitx: add efuse ctrl [1/1]
PD#SWPL-133056

Problem:
lack efuse ctrl hdmitx

Solution:
add efuse ctrl hdmitx

Verify:
s1a/sc2/t7

Test:
DRM-TX-87

Change-Id: I2c5438e841fc50a3dabed98d3bca51c3ac726f94
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2024-01-03 22:17:46 -07:00
yahui.liu 2710ba24cd hdmitx: update hdmitx version [1/1]
PD#SWPL-151748

Problem:
update hdmitx version for release.
sabrina u / kernel 5.15: hdmitx driver refactoring
sabrina release base from trunk11.20
audio mat question modified by cl:380286

Solution:
update hdmitx version

Verify:
verify on ohm

Test:
DRM-TX-40

Change-Id: Ie5ccf28423bbcecfdaddaf97a64fbfd692c3bf23
Signed-off-by: yahui.liu <yahui.liu@amlogic.com>
2024-01-03 00:15:28 -07:00
qinghui.jiang 19e9c0ac6b amvecm: ai pq no scene change [1/1]
PD#SWPL-150247

Problem:
cm hist no update.

Solution:
modify code flow for cm hist update.

Verify:
t3x

Change-Id: I2a4260e98dc249b60040ab914cd9a2e941c58806
Signed-off-by: qinghui.jiang <qinghui.jiang@amlogic.com>
2024-01-02 04:13:27 -07:00
Cheng Wang 5e4619b365 frc: add mvrd to solve splash screen problem [1/1]
PD#SWPL-150936

Problem:
add mvrd to solve splash screen problem

Solution:
add mvrd to solve splash screen problem

Verify:
T5M

Change-Id: I44a4ee7bd6218cc86f943ed65a6e7336a0ec3a5b
Signed-off-by: Cheng Wang <cheng.wang@amlogic.com>
2024-01-02 02:48:09 -07:00
Evoke Zhang 65b7846ab2 lcd: update timing management [2/2]
PD#SWPL-150216

Problem:
need update timing management for more application

Solution:
manage timing as dft_timing, base_timing, act_timing

Verify:
ay301

Change-Id: I09ece85c4ec778113c9cb529ec66091510def8d6
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-01-02 02:47:38 -07:00
Huijuan Xiao deb40ba9c6 aipq: new frame do aipq scene change [1/1]
PD#SWPL-150752

Problem:
repeat frame cause scene change early.

Solution:
modify new frame do scene change detection.

Verify:
t5m

Change-Id: I1c798fb8da3308c1778184ce751263062bdea81f
Signed-off-by: Huijuan Xiao <huijuan.xiao@amlogic.com>
2023-12-28 23:17:45 -07:00
Evoke Zhang 161c136d86 lcd: support pre_de config [2/2]
PD#SWPL-151072

Problem:
need support pre_de config for tconless tuning

Solution:
add pre_de config support

Verify:
ak301, ay301

Change-Id: Ib9a4e4296ceb600e16851b514f3acb4228295c18
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2023-12-26 21:11:08 -07:00
Long 279006e0bf eMMC: Add method to sd clock sample cmd signal. [1/1]
PD#SWPL-143726

Problem:
Optimize the sampling method of cmd signal.

Solution:
sd_clk sample cmd response

Verify:
txhd2

Change-Id: Id851a1c81792f4267f766b4a9b904ebbffcc84aa
Signed-off-by: Long <long.yu@amlogic.com>
2023-12-26 00:31:08 -07:00
Pengcheng Chen 77a69b7781 vpp: overlap size separate for amdv [1/1]
PD#SWPL-145367

Problem:
overlap size separate for amdv

Solution:
overlap size separate for amdv,input 96,output 32

Verify:
T3X

Change-Id: Ie643d5872955bb95aa1e177f69b8f2d5a6f3a021
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2023-12-25 22:19:50 -07:00
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