Commit Graph

746 Commits

Author SHA1 Message Date
yiting.deng ffc3550fbd clk: s7: clk upgrade clk-scmi [2/2]
PD#SWPL-152400

Problem:
s7 clk upgrade clk-scmi

Solution:
s7 clk upgrade clk-scmi

Verify:
s7

Change-Id: I4b9d5bc69e6da1000314741eedc22842aa7768b5
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
2024-01-22 20:29:09 +08:00
hongyu.chen1 0ab4724ee1 S7: power domain: Clear configuration. [3/3]
PD#SWPL-152429

Problem:
not need hcodec domain.

Solution:
cancel hcodec configuration in kernel.

Verify:
bh209.

Change-Id: Iac25da9014c4a84a1b144af20c79681735957847
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2024-01-22 20:29:09 +08:00
yiting.deng 04159cb54c 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 20:29:08 +08:00
Shunzhou Jiang 610368df9a 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 20:29:08 +08:00
dian.shao 57248cecc8 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 20:29:08 +08:00
Chuan Liu 809820c44f 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 20:29:08 +08:00
junyi.zhao ee9246b915 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 20:26:23 +08:00
Huqiang Qin 0d9abc2217 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 20:26:23 +08:00
junyi.zhao 3c18b3a3a6 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 20:26:22 +08:00
yiting.deng b24273b295 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 20:26:22 +08:00
qinghui.jiang 58362fe7f2 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 20:26:22 +08:00
yuhua.lin ad6f27d599 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 20:26:22 +08:00
yiting.deng a7bdba632d 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>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2024-01-22 20:24:49 +08:00
hongyu.chen1 56b6a5b10c 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 20:23:53 +08:00
Huqiang Qin b875ed6f52 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>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2024-01-22 20:23:40 +08:00
Zelong Dong 6e6df1165c 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 20:21:25 +08:00
Jian Hu ce47fa82ab 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>
2024-01-22 16:43:19 +08:00
chen.xu 398fdf7541 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-20 20:40:37 +08:00
Pengcheng Chen 1b2dd43c00 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-20 20:40:37 +08:00
Haotian Guo 260599fed4 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-20 19:53:51 +08:00
Gaowei Zhao 7938a66ce7 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-20 19:50:32 +08:00
yao liu 383aae0a2e 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-20 19:49:58 +08:00
Gaowei Zhao 27a526304f 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-20 19:49:38 +08:00
qiang.liu d6141554e2 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-20 19:49:03 +08:00
Pengcheng Chen 5fbf4fc8fe 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-20 19:48:24 +08:00
Junyi Zhao b7953885b1 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-20 19:47:45 +08:00
zhiwei.zhang f135c0582e 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-20 19:46:05 +08:00
yahui.liu a5bb03ae66 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-20 19:42:30 +08:00
qinghui.jiang 03db59458b 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-20 19:41:34 +08:00
Huijuan Xiao 2602e965a6 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>
2024-01-20 19:40:17 +08:00
Pengcheng Chen d9b84ca7be 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>
2024-01-20 19:34:31 +08:00
Yao Jie b579909e3d 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>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2024-01-20 19:29:17 +08:00
Huijuan Xiao dbaf140d3c 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>
2024-01-20 18:45:40 +08:00
xinli.gao c454cd4d9e 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>
2024-01-20 18:44:19 +08:00
congyang.huang f2515d1ced 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>
2024-01-20 18:41:34 +08:00
Sunny Luo aa090fe953 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>
2024-01-20 18:37:23 +08:00
jialong.jiang 2ee1d70ab8 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>
2024-01-20 18:35:59 +08:00
MingLiang Dong f8c915c3c1 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>
2024-01-20 18:35:55 +08:00
MingLiang Dong 90faf15a52 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>
2024-01-20 18:32:54 +08:00
Doosan Baek 8fb448c3f0 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>
2024-01-20 18:26:42 +08:00
Liang Yang 8c6534c33a 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>
2024-01-20 18:25:59 +08:00
mingxiu.sun c5a4d0286e 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>
2024-01-20 18:25:17 +08:00
Feng Chen f35d3cad48 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>
2024-01-20 18:22:58 +08:00
yao liu 6cb5f3e5f1 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>
2024-01-20 15:18:45 +08:00
shufei.zhao d458c3658c 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>
2024-01-20 15:17:05 +08:00
Huijuan Xiao 5d9ad35b1b 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>
2024-01-20 15:13:38 +08:00
Jian Cao 72f7f8c176 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>
2024-01-20 15:13:07 +08:00
zhikui.cui dd33b6c7fd 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>
2024-01-20 15:07:39 +08:00
Gaowei Zhao eecc6da060 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>
2024-01-20 15:07:28 +08:00
jian zhou bc820b20fb 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>
2024-01-20 15:07:05 +08:00