Commit Graph

895 Commits

Author SHA1 Message Date
jialong.jiang 47b69b6702 amdv: add aisdk function for hw5. [1/1]
PD#SWPL-168075
PD#SWPL-168078

Problem:
add aisdk function for hw5.

Solution:
add aisdk function for hw5.

Verify:
t3x

Change-Id: I60b3d1e3488ae7442179a7f6974134141e2f4082
Signed-off-by: jialong.jiang <jialong.jiang@amlogic.com>
2024-05-20 04:10:28 -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
yao liu 1cfc6caede amdv: SDK test case DMB fail [1/1]
PD#SWPL-167148
PD#SWPL-166753

Problem:
1.DMB level5 fail
2.PD ioctl fail

Solution:
1.correct error for reg compare
2.change ioctl parameter

Verify:
t3x

Change-Id: I74fee5fd9eca74fd2df02600d9b1a96cf00c7313
Signed-off-by: yao liu <yao.liu@amlogic.com>
2024-05-08 07:38:14 -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
Hao Shi c53c3195c6 amvdec: optimize vdec_info and vframe_counter_s [2/2]
PD#SWPL-160457

Problem:
memcpy beyond individual struct members

Solution:
create a named mirror of an anonymous struct union

Verify:
sc2&sm1

Change-Id: If86c3581ac473bb8e4c2b2021bedcbe44ad406e2
Signed-off-by: Hao Shi <hao.shi@amlogic.com>
2024-04-28 22:39:52 -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
qing.zhang 861319cbd6 Audio: add earc rx for s7d [1/1]
PD#SWPL-163105

Problem:
new earc Rx design

Solution:
changelist from https://scgit.amlogic.com/#/c/417153
1. new default setting for arc in
2. remove pll refresh when startup
3. when cmdc init, need refresh pll after pll default setting
4. force channel sync for channel mapping
5. add dmac bit29 check for common arc check
6. add iec raw channel status check
7. use chip info(arc_ch_sync/arc_in_new)

Verify:
use s7d

Change-Id: Id681334bfde57bfe71a870a16859e24712e262e3
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
2024-04-24 02:06:36 -07:00
guoqing.sun 70b5ce8ae9 CI: CB2 add ioctl CA_SET_START. [1/1]
PD#SWPL-160156

Problem:
CA_SET_START

Solution:
CA_SET_START

Verify:
android-u t5m

Change-Id: Ia67484e2f12b4260436964cd91a8a8f9deb49bd9
Signed-off-by: guoqing.sun <guoqing.sun@amlogic.com>
2024-04-23 04:08:26 -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
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