Commit Graph

879 Commits

Author SHA1 Message Date
yaoyu.xu 7781955e71 hdmirx: hdmi dsc sw flow [1/1]
PD#SWPL-154080

Problem:
hdmi do not support cvtem packet.

Solution:
hdmi dsc sw flow add.

Verify:
t3x.

Change-Id: I4252048ec4cd08199f4aa12e12a017cd9ad94d36
Signed-off-by: yaoyu.xu <yaoyu.xu@amlogic.com>
2024-04-18 04:54:43 -07:00
Huijuan Xiao cf5c6c68b5 amvecm: add sbtm feature [1/1]
PD#SWPL-163931

Problem:
new feature of hdmi source based tone mapping.

Solution:
add sbtm corresponding flow and APIs.

Verify:
s5

Change-Id: Iee87b4762bfacff94856b972569e03cf0796b031
Signed-off-by: Huijuan Xiao <huijuan.xiao@amlogic.com>
2024-04-18 04:52:43 -07:00
Haotian Guo 23704bf705 hdmirx: edid block checksum [1/1]
PD#SWPL-162491

Problem:
calculating checksum error when there are more than 2 blocks

Solution:
Change the calculation method

Verify:
t3x

Change-Id: I71d212144273705a8eba62823fc27b0cdbec75d5
Signed-off-by: Haotian Guo <haotian.guo@amlogic.com>
2024-04-18 04:49:13 -07:00
yao zhang1 6619b5500d bringup: Fixed s7d build error [1/1]
PD#SWPL-165213

Problem:
Fixed s7d build error

Solution:
Fixed s7d build error

Verify:
s7d

Change-Id: Ic5cc56c134821e5710f00d32fe82eb7d404b07aa
Signed-off-by: yao zhang1 <yao.zhang1@amlogic.com>
2024-04-17 19:31:22 +08:00
wenlong.zhang b3436bfa11 drm: change afbc format [1/1]
PD#SWPL-163150

Problem:
support DRM_FORMAT_ABGR1010102

Solution:
support DRM_FORMAT_ABGR1010102

Verify:
S7D

Test:
DRM-OSD-6

Change-Id: I20a2b0080dd99baafd9fff4b0c6a9a32a99df58a
Signed-off-by: wenlong.zhang <wenlong.zhang@amlogic.com>
2024-04-17 19:31:22 +08:00
hongyu.chen1 af8b89097e S7D: Clean up power domain state. [3/3]
PD#SWPL-163896

Problem:
1.need to clean out the power that
is always on to save power.
2.Some modules related to mempd have
been added for debugging later.

Solution:
1.Clean up an open power supply.
2.add power domain config.

Verify:
S7D

Change-Id: Ic313a24168041cb925483202bc26f9c53c6b1548
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2024-04-17 19:31:22 +08:00
Zelong Dong f349ec882b ir: support 2 multi-format ir controller [1/1]
PD#SWPL-163059

Problem:
legacy ir controller was updated to multi-format ir controller
and each controller have a IRQ

Solution:
support 2 IRQs in ir driver

Verify:
s7d_bm201

Change-Id: I268562144440d642e4f635dbe76bb45f799d6bee
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-04-17 19:31:21 +08:00
jinbing.zhu 1ff02de630 amvecm: s7d add demo safa reg interface [1/1]
PD#SWPL-163847

Problem:
add demo safa reg interface

Solution:
add demo safa reg interface

Verify:
verify on s7d

Change-Id: Ide58e5efbf68b609fe39269ce7f4c252d0b9c585
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2024-04-17 19:31:21 +08:00
Yao Jie 5a9dbd20b6 mailbox: s7d add aocpu alive check mechanism [1/1]
PD#SWPL-163760

Problem:
When modules send mailbox message to aocpu, sometimes
aocpu can not response because of stuck or interrupt
signal lost, at this time driver modules need to know
whether aocpu is alive or not, this is helpful to debug.

Solution:
Add aocpu alive check mechanism, when aocpu did not
response, system will check and print aocpu status.

Verify:
S7D-BM209

Change-Id: I285a300313c1439be2ed50fafc58c4a92fa032ac
Signed-off-by: Yao Jie <jie.yao@amlogic.com>
2024-04-17 19:31:21 +08:00
Chuan Liu ae4943530e clk: s7d: Fix known issue [1/1]
PD#SWPL-163050

Problem:
1 PLL driver adds rstn features
2 Add ACLKM clock
3 Adapts to pll_v4_ops

Solution:
Fixed

Verify:
s7d_bm209

Change-Id: Ide5199539d388d9ee415ecf65f3c162b2e4c881c
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2024-04-17 19:31:21 +08:00
jinbing.zhu e2afb0976b amvecm: s7d amvecm bringup support [1/1]
PD#SWPL-163099

Problem:
s7d amvecm bringup support

Solution:
s7d amvecm bringup support

Verify:
verify on s7d

Change-Id: I3a6ed3bc4b7bd411420c89eafc06a212de2c6148
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2024-04-17 19:31:21 +08:00
Yao Jie a01e0cf416 mailbox: s7d mailbox bringup [1/1]
PD#SWPL-163061

Problem:
If there are more requirements of mailbox channels
application for other modules, mailbox driver should
be changed to add more channels, this is inconvenient
for other drivers usage

Solution:
Allocate more reserved mailbox channels for other
modules application in the future

Verify:
S7D-BM209

Change-Id: I669d42aa386676d959e27ebb51c6d7dedd7d54ac
Signed-off-by: Yao Jie <jie.yao@amlogic.com>
2024-04-17 19:31:20 +08:00
hongyu.chen1 a1d1313fb6 S7D: add power domain config in kernel. [1/1]
PD#SWPL-163077

Problem:
Some new power domains have been added.

Solution:
Add the relevant configuration.

Verify:
S7D

Change-Id: I7f5bc148d0034ffad96b1f04f00417ec5796dced
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2024-04-17 19:31:20 +08:00
zhou.han fe60fc3494 hdmitx: s7d pxp kernel [1/1]
PD#SWPL-147320

Problem:
s7d kernel hdmitx bringup

Solution:
Based on 5.15 code refactoring, sync with s7 and s1a

Verify:
pxp/s7d

Test:
pxp

Change-Id: I8e298f08a7b7f0b4302211785e6ecdfea178ec18
Signed-off-by: zhou.han <zhou.han@amlogic.com>
2024-04-17 19:31:20 +08:00
wenlong.zhang 560bdbdbac drm: s7d bringup & support gfcd [1/1]
PD#SWPL-147645

Problem:
s7d bringup & support gfcd

Solution:
s7d bringup & support gfcd

Verify:
s7d

Test:
DRM-OSD-138

Change-Id: I6e8f268f0fa42a6906f18a21d923ec059b749954
Signed-off-by: wenlong.zhang <wenlong.zhang@amlogic.com>
2024-04-17 19:31:20 +08:00
Chuan Liu 5c2c80108d clk: s7d: add scmi clocks [2/2]
PD#SWPL-158288

Problem:
1 Adding the logic associated with the en0p5 member makes the driver's
processing more complicated and messy.
2 Added clocks with security permissions.

Solution:
1 Only add CLK_MESON_PLL_FIXED_EN0P5 flag to implement the functions
of en0p5, so that the driver change cost is minimal.
2 Determine whether to add the CLK_MESON_PLL_FIXED_EN0P5 flag based
on whether en0p5 is enabled in init_regs.
3 Added scmi clocks

Verify:
pxp

Change-Id: I2f9e258569f4bed44cb5fd9b57368dbfa3c425cb
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2024-04-17 19:31:20 +08:00
hongyu.chen1 683c742a61 S7D: power domain: modify config. [1/1]
PD#SWPL-154090

Problem:
The S7D and S7 power domain names overlap
and need to be repaired.

Solution:
modify config.

Verify:
Compile through.

Change-Id: Ia0d18a5a2684184b8c5938c77b8b7adccd8b0ad6
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2024-04-17 19:31:20 +08:00
Zelong Dong 0d992a2110 reset: add reset controller support for s7d [1/1]
PD#SWPL-147281

Problem:
don't support s7d platform

Solution:
add reset controller support for s7d

Verify:
s7d_pxp

Change-Id: I29250fbe165b6f51f61bac180f0eb47bb2151fa3
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-04-17 19:31:20 +08:00
hai.cao e092d4a059 video: debug vsr for s7d [1/1]
PD#SWPL-149452

Problem:
s7d video bringup

Solution:
complete it

Verify:
ptm

Change-Id: Ic59ed825b97d030949a5e85f060b1f2218d61c60
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2024-04-17 19:31:20 +08:00
hai.cao a2b8fc39bb video: add video support for s7d [1/1]
PD#SWPL-147310

Problem:
s7d video bringup

Solution:
complete it

Verify:
ptm s7d

Change-Id: I2f9929c75ee5fe72827640ced4f82516e81e159a
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2024-04-17 19:31:19 +08:00
Yao Jie 041d15adc7 mailbox: s7d mailbox pxp bringup [1/1]
PD#SWPL-147284

Problem:
s7d mailbox pxp bringup

Solution:
s7d mailbox pxp bringup

Verify:
S7D-PXP

Change-Id: Ibbba899fb22cc21701a9555684c9e8cd314265a4
Signed-off-by: Yao Jie <jie.yao@amlogic.com>
2024-04-17 19:29:59 +08:00
hai.cao cc42a5ec63 media_common: add support for codec_io/canvas/rdma [1/1]
PD#SWPL-147308

Problem:
s7d codec_io/canvas/rdma bringup

Solution:
complete it

Verify:
pxp

Change-Id: I154905159339d255af2d542563d5dc0d7d262f0e
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2024-04-17 19:29:59 +08:00
Chuan Liu 1c692807f3 clk: s7d: clock tree bringup [2/2]
PD#SWPL-147273

Problem:
clock tree bringup for s7d

Solution:
added

Verify:
pxp

Change-Id: I629a0465ad61aa7935fea2d850fbd3418f7a840e
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2024-04-17 19:29:58 +08:00
Huqiang Qin e7b35c7fa5 gpio: s7d: support gpio and irq [1/1]
PD#SWPL-146832

Problem:
S7D PxP Bringup.

Solution:
S7D PxP Bringup.

Verify:
PxP

Change-Id: I5954932f83e4cfb1aded18c90879c27522ca550d
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2024-04-17 19:29:58 +08:00
hongyu.chen1 129b6f74fa S7D: power domain: add support in kernel. [3/3]
PD#SWPL-146595

Problem:
S7D need power domain in kernel.

Solution:
add power domain in kernel.

Verify:
pxp

Change-Id: Ia05ec9960f38388444ae14869576f8cd1d51cf78
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2024-04-17 19:29:58 +08:00
congyang.huang c7983badd4 drm: dummy_panel connector drm_display_mode should match lcd's timing [1/1]
PD#SWPL-158147

Problem:
not hardcode dummy_panel timing

Solution:
get vinfo2 timing and set for dummy_panel

Verify:
txhd2

Test:
DRM-OSD-55

Change-Id: I6b899edfc9445f880cb217d6b1e96d63acbdd249
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2024-04-15 00:35:53 -07:00
Ao Xu 3e79ef53f5 drm: add get_vrr_range function for lcd connector [1/1]
PD#SWPL-156902

Problem:
hwc need get lcd connector's vrr range info

Solution:
add get_vrr_range function for lcd connector

Verify:
t3x

Test:
DRM-LCD-1

Change-Id: I562929b06bdfcfc4bb514b2d67e93e84a6925814
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2024-04-12 16:39:52 +08:00
lukang.jia efafc3bc24 frc: frc modify urgent control [1/1]
PD#SWPL-163867

Problem:
modify FRC urgent control function

Solution:
modify FRC urgent control function

Verify:
T3X

Change-Id: I1f992ce77937733f10df1eaa0ed005e43619d302
Signed-off-by: lukang.jia <lukang.jia@amlogic.com>
2024-04-11 20:37:53 -07:00
yao liu c58211d886 amdv: add precision api [1/1]
PD#SWPL-161721

Problem:
new function

Solution:
1.DV_IOC_GET_DV_PRECISION_DETAIL_SUPPORT get cap from cfg
2.DV_IOC_SET_DV_PRECISION_DETAIL_BYPASS set bypass

Verify:
t3x

Change-Id: I01e1f01e942349aa2241df6748100015603e185b
Signed-off-by: yao liu <yao.liu@amlogic.com>
2024-04-10 20:39:54 -07:00
Huijuan Xiao bb1d771dfe amvecm: STD for amvecm driver [1/1]
PD#SWPL-152218

Problem:
need add suspend and resume flow.

Solution:
add suspend and resume flow.

Verify:
t5m

Change-Id: I2da60ca9493d599db58839af0300a33b54360447
Signed-off-by: Huijuan Xiao <huijuan.xiao@amlogic.com>
2024-04-10 01:54:07 -07:00
Evoke Zhang 883703f40e lcd: bypass ufr mode switch when power off [1/1]
PD#SWPL-161946

Problem:
ufr mode switch maybe unexpectedly light on panel after early_suspend

Solution:
bypass ufr mode switch when lcd_if off

Verify:
ay301

Change-Id: I7704690d795f2a1ba57cc46a10babc9e2f71fa9b
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-04-09 21:47:11 -07:00
Gaowei Zhao a54e3fca89 hdmirx: support qms [1/1]
PD#SWPL-154454
PD#SWPL-160882

Problem:
not support qms

Solution:
support qms

Verify:
t3x

Change-Id: I3f373014962a06788ae9b0185555d8a8e0cf5725
Signed-off-by: Gaowei Zhao <gaowei.zhao@amlogic.com>
2024-04-09 19:48:57 -07:00
haitao.liu c20b47558c vdin: fix failed to compile zapper issue [1/1]
PD#SWPL-161512

Problem:
mk_zapper32.sh execution failed

Solution:
resolve code dependencies

Verify:
s1a

Test:
compile pass

Change-Id: Id2453a4414b768580ced0a57453dd29609fed86b
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2024-04-09 13:44:59 -07:00
Wenjie Qiao 8d5a638b93 hdmitx: set frac 0 when brr mode [1/1]
PD#SWPL-163844

Problem:
switch to 59.94hz, not set 60hz mode when qms enable
because frac mode

Solution:
set frac 0 when brr mode

Verify:
s7d

Test:
DRM-TX-75

Change-Id: I69fc38ffee456d2a917f586e7ed04dad3aa8a22d
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2024-04-07 21:54:09 -07:00
jinbing.zhu d7c8c44b1c amvecm: need optimize vframe for 5.15 [1/1]
PD#SWPL-161639

Problem:
need optimize vframe for 5.15

Solution:
.need optimize vframe for 5.15

Verify:
t3

Change-Id: I7ecb26b4d602c3620a4064831e23fea961d74ff9
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2024-04-06 21:46:57 -07:00
Pengcheng Chen c8f5991026 vpp: add no_compress info and bitdepth_dw [1/1]
PD#SWPL-160446

Problem:
1.add no_compress info for amdv
2.afbc and mif data format maybe different

Solution:
1.add no_compress info for amdv
2.add bitdepth_dw for dw data

Verify:
t3x

Change-Id: Ia47d24744dd1e87768e1b856d95ddb3e2e41780f
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-04-03 00:14:59 -07:00
haitao.liu e27f5937c4 vdin: Configurable dw output width and height for dv hw5 [1/1]
PD#SWPL-159909

Problem:
Need debug cmd to set the h/v of double write frame

Solution:
Add debug cmd

Verify:
T3x

Change-Id: Ie93c1dfed65670d79f75553f892abad78a22a671
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2024-04-02 05:53:08 -07:00
mingyang.he cf15989a9f drm: kasan failed for slab-out-of-bounds [1/1]
PD#SWPL-151540

Problem:
kasan failed
cat/echo sysfs osd node crash in s5
cat fbdump return zero size file in s5

Solution:
reset BLOCK_ID_MAX with 32
sysfs node should according to vpu block by index
set correct plane index

Verify:
s5, t5m

Test:
DRM-OSD-17

Change-Id: I02094c9044b172af46ab9b5bd5688a12f18ce96a
Signed-off-by: mingyang.he <mingyang.he@amlogic.com>
2024-04-01 04:39:02 -07:00
Evoke Zhang da28ba7b30 lcd: fix clk mistake for vmode switch [2/2]
PD#SWPL-161892

Problem:
lcd clk incorrect when 2160p60hz switch to 3840x1080p240hz

Solution:
fix clk mistake for vmode switch

Verify:
bc302

Change-Id: I8077b8755c6a34680888adc99ce7d4c1beed884e
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-03-31 21:45:22 -07:00
rong.wang 549a6d1cde deinterlace: add api to get input param for vpp [1/1]
PD#SWPL-160157

Problem:
add api to get input param for vpp when pre-link

Solution:
add api to get input param for vpp

Verify:
t5m

Change-Id: I5f1198c94dfc840f5024d1fdb61bda2f5c5e8f4e
Signed-off-by: rong.wang <rong.wang@amlogic.com>
2024-03-29 04:33:05 -07:00
yahui.liu 8f9e15f3c3 hdmitx: [hpd] add system time id in hdmitx state [1/1]
PD#SWPL-158042

Problem:
drm module automic-check and automic-enable use differnet hpd status
information when hdmitx hotplug

Solution:
[hpd] add system timein hdmitx state

Verify:
S5/SC2

Test:
DRM-TX-103

Change-Id: Id0f37cf01c5266a720f2881ee8cd9fab274b79b9
Signed-off-by: yahui.liu <yahui.liu@amlogic.com>
2024-03-28 19:44:59 -07:00
Cheng Wang 218b29f9bd frc: frc sync motion from fw [1/1]
PD#SWPL-158938

Problem:
frc sync motion from fw

Solution:
frc sync motion from fw

Verify:
T3X

Change-Id: I12c5b10ee15f71ed5bcc962ba2eb02b62cc5d412
Signed-off-by: Cheng Wang <cheng.wang@amlogic.com>
2024-03-28 03:57:16 -07:00
gan.zhang 6fca55e0c8 codec_mm: add config for scatter alloc from DMA32. [1/1]
PD#SWPL-143076

Problem:
mmu copy cannot access address over 4G.

Solution:
set alloc from dma32 zone when config_alloc_flags bit0 is set.

Verify:
S5

Change-Id: I142f182dff1509e591d20ed0e440a6851f8d7029
Signed-off-by: gan.zhang <gan.zhang@amlogic.com>
2024-03-28 03:57:07 -07:00
jinbing.zhu 1ec1c74c7a amvecm: 5.15 add vpp yuv/rgb format switch for hdmitx [1/1]
PD#SWPL-151057

Problem:
hdmitx can't convert to rgb when dsc enable

Solution:
add vpp yuv/rgb format switch for hdmitx

Verify:
s5

Change-Id: I2416c44f80abc9e9d3c4a7afbb740b167b3c7b21
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2024-03-28 03:57:01 -07:00
yunmin.chen 905e5ed92f tsync: CB2 stream_input Driver loading exception [1/1]
PD#SWPL-148389

Problem:
Disable the tsync module,
stream_input Driver loading exception

Solution:
Adjust tsync_pcr_stop() implementation.

Verify:
BG201

Change-Id: Iadf943a29394fb89f27db9c590e648233eec07e1
Signed-off-by: yunmin.chen <yunmin.chen@amlogic.com>
2024-03-27 02:13:05 -07:00
xiang.wu1 6f4ff66381 hdmitx21: Optimization of standby power consumption [1/1]
PD#SWPL-161016

Problem:
When s7 is in standby and wakes up, it will turn off and on the vpu
power domain. When it is turned off, the reg of the relevant modules
will be reset, the output no signal when it wakes up.

Solution:
hdmitx driver needs to reinitialize the required top register when
it wake up

Verify:
s7

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

Change-Id: Ie9d458087fcc9ea672ec477d46b88a6d7ddcec81
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2024-03-26 23:55:50 -07:00
dongfei.li f68672dd56 frc: frc configure buf num [1/1]
PD#SWPL-151267

Problem:
drv set buf num

Solution:
drv set buf num

Verify:
T3X

Change-Id: I2e8ee518adddb969c499b285ceb0988f13ab7a00
Signed-off-by: dongfei.li <dongfei.li@amlogic.com>
2024-03-25 11:33:02 +00:00
yiting.deng d64b311bb5 clk: s5: fix k5.15 wrong clk config [1/1]
PD#SWPL-161479

Problem:
fix s5 kernel5.15 clk wrong config

Solution:
fix it

Verify:
s5

Change-Id: I5d9fb22d5d9d15d00adfa92975ad332add647fa2
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2024-03-25 03:13:18 -07:00
hai.cao 6a85e338fe vpu: init arb and urgent [1/1]
PD#SWPL-161276

Problem:
set arb and urgent default val

Solution:
add arb and urgent default val

Verify:
s7

Change-Id: Ic0dd2f35e65e9b1580970d82096d067e9a15da5c
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2024-03-23 05:51:09 -07:00
zhou.han 51c1b26426 hdmitx: fix 4x3 and 16x9 mode priority issue [1/1]
PD#SWPL-157220

Problem:
When the edid only supports 576p 16x9 and hwc set to 576p50hz,
576p 4x3 is selected as the output mode, resulting in output failure.

Solution:
When mode match timing name, 16x9 timing is preferred.
EDID only support 4x3,  match 4x3  timing
EDID only support 16x9, match 16x9 timing
EDID support 4x3 and 16x9, match 16x9 timing

Verify:
bluebell

Test:
DRM-TX-107

Change-Id: I49fb7114edbde884c14724dbc403df5384968059
Signed-off-by: zhou.han <zhou.han@amlogic.com>
2024-03-21 22:01:55 -07:00