Commit Graph

742 Commits

Author SHA1 Message Date
Jie Dai 8bd77b0fc9 lcd: eliminate frame rate error caused by SS [1/1]
PD#SWPL-165366

Problem:
there is a vsync drift while open ss

Solution:
fix vsync drift by adjust frequence or vtotal

Verify:
t5d/t5m

Change-Id: I225c8ece65869d4607a3f75572ef160ccdce1adf
Signed-off-by: Jie Dai <jie.dai@amlogic.com>
2024-05-31 06:04:52 -07:00
Cheng Wang 674a647d35 frc: rectify the identified defects [3/3]
PD#SWPL-169168

Problem:
forced type conversion error

Solution:
rectify the identified defects

Verify:
master

Change-Id: Ia33867554bbdf85167338a325b959116d8757366
Signed-off-by: Cheng Wang <cheng.wang@amlogic.com>
2024-05-31 05:26:52 -07:00
Feng Chen cf7c866d33 spinor: update spi-nor layer [1/1]
PD#SWPL-164866

Problem:
update spi-nor layer.

Solution:
update spi-nor layer.

Verify:
C3_AW409

Change-Id: Ic93021b04cc0721d57c9c5c88e5f9e0abcdd090e
Signed-off-by: Feng Chen <feng.chen@amlogic.com>
2024-05-30 06:02:50 -07:00
lizhi.hu 03fe50f326 Revert "lcd: tablet mode multi timing support [1/1]"
This reverts commit a4994fbed5.

Change-Id: I34912d38a12ad8c21aceacb3e77e1c028cfee9d3
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2024-05-30 16:50:52 +08:00
lizhi.hu a4994fbed5 lcd: tablet mode multi timing support [1/1]
PD#SWPL-158383

Problem:
tablet mode need support multiple timing switch

Solution:
support cus_ctrl and vmode

Verify:
t7_an400

Change-Id: I64d2c6caeff914aa034f67e0d53a5b262d6c17c4
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2024-05-29 22:30:23 -07:00
congyang.huang b0de672bd4 vout: support connector type interface [1/1]
PD#SWPL-166618

Problem:
connectors can not get connector type

Solution:
add connector type interface for connectors to get value

Verify:
t7c txhd2

Test:
DRM-OSD-44

Change-Id: Ic6fe152d419bc1a9381ada21dfa9a808e4e2c84c
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2024-05-29 22:02:31 -07:00
dezhi kong f7cc250dbf uvm: add dummy buffer skip process [1/1]
PD#SWPL-167401

Problem:
uvm dummy data use too memory

Solution:
manage dummy buffer separate

Verify:
OHM-T

Change-Id: I0915573b4a0b75cc073aaa376381add8837d3381
Signed-off-by: dezhi kong <dezhi.kong@amlogic.com>
2024-05-28 08:02:36 -07:00
jinbing.zhu 05d50eaa10 amvecm: add colorimetry delivery method [1/1]
PD#SWPL-140663

Problem:
add ext signal type

Solution:
add ext signal type

Verify:
t965d4

Change-Id: Ibe681cdcef8194328282a31af09096f8cb961424
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2024-05-28 05:54:40 -07:00
zongdong.jiao c757911d43 hdmitx: add brr_duration in vinfo struct [1/1]
PD#SWPL-170855

Problem:
When QMS is enabled, the BRR may 120hz. When switches to lower rate,
video player will run under lower rate and display abnormal.

Solution:
Add brr_duration and video still run BRR rate to avoid abnormal display.

Verify:
s7

Test:
DRM-TX-38

Change-Id: I03f3588f89648145ae06b66fe4db4bb9701559b3
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2024-05-28 03:58:38 -07:00
Evoke Zhang 7720858226 lcd: update ufr switch flow [1/1]
PD#SWPL-168193

Problem:
lcd ufr switch flow can be update

Solution:
1.update lcd ufr switch flow
2.update lcd process time record

Verify:
ay301

Change-Id: I59f1d55e06f0b449105c272c2fad34cc431cda76
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-05-27 05:59:12 -07:00
hai.cao e3a8158c8a video: add vd2 mute support for vdin [1/1]
PD#SWPL-162281

Problem:
vd2 can not mute

Solution:
add vd2 mute support according vdin channel

Verify:
t3x

Change-Id: I3d291d58fcdf9b171892f88513996dc63591a522
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2024-05-27 05:59:03 -07:00
Bin.Wang2 86d95dc4b4 vpp: add Dual channel display video mute function [1/2]
PD#SWPL-160856

Problem:
vd2 no video mute

Solution:
add dual channel display video mute function

Verify:
T3x

Change-Id: I7c68ace48e5af8870b69ca3e2a03f7b1bf62ff59
Signed-off-by: Bin.Wang2 <bin.wang2@amlogic.com>
2024-05-27 05:58:53 -07:00
Long abdeb4129a eMMC: add sg-link descriptors for crypto. [1/1]
PD#SWPL-168640

Problem:
The old descriptor chain will cause dun to not be updated.

Solution:
add sg-link descriptors.

Verify:
S7

Change-Id: I50ccca0f441c4df4945a350cfdf9779497d9bba5
Signed-off-by: Long <long.yu@amlogic.com>
2024-05-26 23:03:04 -07:00
Evoke Zhang 1a2c33a53e lcd_extern: support more option for tcon pmic usage [2/2]
PD#SWPL-164936

Problem:
need more option for tcon pmic usage

Solution:
support more option for tcon pmic usage
1.check i2c data by section
2.multi list bypass for power on default
3.wait gpio

Verify:
ay301

Change-Id: Ib0f849796f2d79931cd421a51fcf29d1132fd9b8
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-05-23 20:01:10 -07:00
Xiangyu Cai da1e33dcb4 vrr: vdin add vrr instead vlock [1/1]
PD#SWPL-168556

Problem:
not disable vrr when quit game mode

Solution:
disable vrr when quit game mode

Verify:
t5m

Change-Id: Ia4e4b6a6b9944ae576029e0aef58b8270f942d35
Signed-off-by: Xiangyu Cai <xiangyu.cai@amlogic.com>
2024-05-23 02:02:28 -07:00
Junyi Zhao 51a3007a16 pwm: fix hibernate clock reg [1/1]
PD#SWPL-170512

Problem:
clock config for hibernate

Solution:
add hibernate clock support

Verify:
T7C an400

Change-Id: I362522e91ea4e6f1aaa77216a686438d5876716e
Signed-off-by: Junyi Zhao <junyi.zhao@amlogic.com>
2024-05-23 02:02:20 -07:00
Xingxing Wang 46199b50cc thermal: ddr thermal param update of t5d&t5w [1/1]
PD#SWPL-169759

Problem:
align 20nm ddr thermal params to kernel5.4

Solution:
1. align 20nm ddr thermal params to kernel5.4
2. update ddr status when coolingdevice registerd

Verify:
t5d&t5w

Change-Id: Ib33b715e790a72f2969dc69c3dec159589ae0d3f
Signed-off-by: Xingxing Wang <xingxing.wang@amlogic.com>
2024-05-22 03:59:31 -07:00
Evoke Zhang cbbc251b91 lcd: driver resource sync for init on [1/1]
PD#SWPL-169761

Problem:
lcd driver resource not ready sometime when kernel init on

Solution:
add lcd driver resource sync function

Verify:
ay301

Change-Id: I98cece77e4f35911cea6deb191353078a6720189
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-05-21 23:59:55 -07:00
jialong.jiang 4109c94ecc amdv: compilation failure problem. [1/1]
PD#SWPL-167603

Problem:
compilation failure problem.

Solution:
compilation failure problem.

Verify:
redi_wv4

Change-Id: Ia2077b1d4e2956a16a2c3a73d82bd5a0e20c78db
Signed-off-by: jialong.jiang <jialong.jiang@amlogic.com>
2024-05-20 06:39:53 -07:00
Tao Zeng c2ce371c4a amfc: add amfc driver support [1/1]
PD#SWPL-137614
PD#SWPL-163213

Problem:
No amfc driver

Solution:
add it:
1, basic driver for AMFC
2, EROFS support
3, kernel compressed by ZSTD support

Verify:
pxp

Change-Id: I45d2e308d209e35edba626619072aae93c4d0f56
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2024-05-15 02:28:22 -07:00
Evoke Zhang a0968ba05f lcd: tcon: update ufr switch mode 3 flow [1/1]
PD#SWPL-168832

Problem:
some tconless panel maybe flash screen when ufr switch with scrb enabled

Solution:
update ufr switch mode 3 flow to avoid flash screen

Verify:
ay301, bc302

Change-Id: I4b2831af588927ef88813f99279693a28d1b0b1d
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-05-13 22:03:40 -07:00
zijie.lin 03b65068b0 ldim: ldim suspend/resume and spi fix [1/1]
PD#SWPL-165259

Problem:
1. T5W/T3 do not support SPI_LSB_FIRST.
2. T5W suspend/resume will reset the reg.
3. ldim_pwm_level is 0 when power on.

Solution:
1. ldim software implementation of big-endian
and little-endian data conversion.
2. ldim send mode base on spi controller.
3. When resume ldim_fw reset the reg value again.
4. Set ldim_set_duty_pwm after set pwm pinmux.

Verify:
T5W/T5M

Change-Id: I409c4d378fc972f7f643ee64a6588119e1494e1b
Signed-off-by: zijie.lin <zijie.lin@amlogic.com>
2024-05-13 05:53:35 -07:00
ruofei.zhao 1cfe29b51a hdmitx: update hdmitx version [1/1]
PD#SWPL-168367

Problem:
update hdmitx version for release

Solution:
update hdmitx version

Verify:
S7D
SC2

Test:
DRM-TX-40

Change-Id: I6115555010b8303d44e2a4d422e1319cb436a79a
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2024-05-09 21:54:58 -07:00
Long 0697ee9bb3 eMMC: support inlinecrypt feature. [1/1]
PD#SWPL-166960

Problem:
need inlinecrypt for emmc

Solution:
support inlinecrypt feature

Verify:
S7

Change-Id: I1d328d527a714b1f4661b0d0c328ecedec30d0d4
Signed-off-by: Long <long.yu@amlogic.com>
2024-05-07 04:04:59 -07:00
hang cheng fbb8083336 cvbs: add video mute test api [1/1]
PD#SWPL-167292

Problem:
need cvbs video mute api for special test

Solution:
add cvbs video mute api for drm: call
cvbs_video_mute(true / false) to mute/unmute
CVBS video output, it will keep video mute
even set cvbs output again, until drm call unmute.

Verify:
s1a

Test:
CVBS video mute/unmute + hotplug hdmitx and check cvbs mute

Change-Id: I5f6d5c28596f0cdf26c9356a2500b1fe8fe43fd7
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
2024-04-30 02:35:40 -07:00
xing.xu ecb7e8f56c vdec: S5 Secure + no Secure play no smooth [2/3]
PD#SWPL-164404

Problem:
Back permissions are not separated from
front permissions.

Solution:
Separate back's permissions from front
and control them separately

Verify:
s5

Change-Id: I9e6465d5b8b45143a51c440d1a24160ad80087fb
Signed-off-by: xing.xu <xing.xu@amlogic.com>
2024-04-29 21:55:35 -07:00
Qianggui Song 77cc50034b gpio: porting gpiolib-sysfs from common [1/1]
PD#SWPL-166758

Problem:
Some customer neeed to support gpio sysfs in gki mode

Solution:
Porting common gpiolib-sysfs to common_driver

Verify:
T7_an400 & txhd2_be311

Change-Id: I72f60644fa383abe05409bfe0bf978c7ea901d92
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2024-04-28 06:08:17 -07:00
ruofei.zhao 321b9f49b6 hdmitx21: auto change the color depth to support HDR under DV_STD [1/1]
PD#SWPL-160150

Problem:
play HDR video under DV_STD, output as SDR

Solution:
auto change the color depth to support HDR under DV_STD

Verify:
SC2
S5

Test:
DRM-TX-90

Change-Id: Ifd830c91c68a600f5ac4c3b9e00b0709083b74e8
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2024-04-27 21:59:38 -07:00
brian.zhu ac238cf56e di: add new post-link function [1/1]
PD#SWPL-151581

Problem:
Need di post-link mode

Solution:
add new DI post-link flow

Verify:
Verified on txhd2

Change-Id: I37b9c080699844a472859a1e2aced82434c82739
Signed-off-by: brian.zhu <brian.zhu@amlogic.com>
2024-04-27 14:33:33 -07:00
hang cheng 8bb6faf7ab hdmitx: not send uevent after suspend [1/1]
PD#SWPL-158050

Problem:
it will block suspend if send kobject uevent
when suspend

Solution:
not send uevent after suspend

Verify:
ohm

Test:
DRM-TX-105

Change-Id: I66f13e24076290f99defca8badb8d94d8b2e3e2a
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
2024-04-25 00:02:10 -07:00
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
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
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
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
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
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
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
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
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
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