Commit Graph

1089 Commits

Author SHA1 Message Date
donghui.wang ed7fe68586 ldim: add fw iparam [1/1]
PD#SWPL-179609

Problem:
miss fw iparam

Solution:
add fw iparam

Verify:
t5m

Change-Id: I8c7663b75173cea55117b69cf9ebabab745b6f43
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2024-08-30 09:10:38 -07:00
Yongjie Zhu b748b917a2 uvm: add v4lvideo data copy size check [1/1]
PD#SWPL-183012

Problem:
https://scgit.amlogic.com/#/c/453410/
cts regression issue

Solution:
add size check before v4lvideo data copy

Verify:
t7c+U

Change-Id: Idee2f161f1605cb5f99c78430084b42a9315551d
Signed-off-by: Yongjie Zhu <yongjie.zhu@amlogic.com>
2024-08-30 03:30:33 -07:00
shufei.zhao b0d6124b0c uapi: fix build warning [1/1]
PD#SWPL-183190

Problem:
kernel5.15 have warnings

Solution:
change // to /**/

Verify:
build

Change-Id: I8ea6da7490033f8fd85cd6020bbd26acf8ae52f6
Signed-off-by: shufei.zhao <shufei.zhao@amlogic.com>
2024-08-30 02:08:36 -07:00
wenlong.zhang ce20c6081e drm: encoder possible_crtc filled with real vout index [1/1]
PD#SWPL-180866

Problem:
encoder possible_crtc is mismatched with real vout index, which
caused change mode failed.

Solution:
encoder possible_crtc filled with real vout index

Verify:
t7c s6

Test:
DRM-OSD-80

Change-Id: I71b2655991aa30d883915b82da6813b41f9a8798
Signed-off-by: wenlong.zhang <wenlong.zhang@amlogic.com>
2024-08-29 03:12:22 -07:00
Chuan Liu e76dceefdd clk: s6: Update the axi_clk register bits definition [1/1]
PD#SWPL-183185

Problem:
VLSI updated the axi_clk register bits definition in the document.

Solution:
Fixed

Verify:
s6_bl201

Change-Id: Ibb3e5f9c5a8d7cfce58932568f26ae3dc80e4c3c
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2024-08-29 02:43:38 -07:00
yuhua.lin 1e1d898692 gdc: add uvswap for dewarp [1/1]
PD#SWPL-182203

Problem:
input format and output format are different
dewarp need to support swap U/V

Solution:
complete it

Verify:
s6

Change-Id: Ied820eca7f6690c707318317657c9e6d5edcbd89
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2024-08-28 05:45:30 -07:00
gerrit autosubmit a46a232cc5 Merge "vout: add vout cap get func [1/1]" into amlogic-5.15-dev 2024-08-28 04:10:56 -07:00
ruofei.zhao bb6ad77940 hdmitx: add is_hdr10plus_enable flag [1/1]
PD#SWPL-181888

Problem:
HDR10plus is only supported by OTT when
is_hdr10plus_enable is 1

Solution:
add is_hdr10plus_enable flag

Verify:
S6
S4

Test:
DRM-TX-73

Change-Id: I3998c9aa62baae836431e2fe649af5a97bd49650
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2024-08-28 03:56:01 -07:00
xing.xu 864ead8d83 bandwidth: CF1 Single-frame Bandwidth Sampling [1/1]
PD#SWPL-179304

Problem:
Getting bandwidth data

Solution:
Getting bandwidth data

Verify:
s6.s7

Change-Id: I64e0bdc57456e6e17cb542b608eec5e952eac9ec
Signed-off-by: xing.xu <xing.xu@amlogic.com>
2024-08-28 03:55:28 -07:00
lizhi.hu d3357a984c vout: add vout cap get func [1/1]
PD#SWPL-178530

Problem:
other module need get vout cap to set mode
especially lcd

Solution:
add get_vout_mode_cap func

Verify:
c3

Test:
DRM-LCD-2

Change-Id: I2fdfa1ed56db07b2473f47320e7816d2b4db96b1
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2024-08-27 20:59:05 -07:00
Jing Li1 64c7e3bfb1 Revert "Demux: Add api for multi2 [1/2]"
This reverts commit febc85e083.

PD#SWPL-183570

Revert multi2 api because it is not compatible with some old projects.

Change-Id: I209e83a07af6096234789ff7993ea3f6befa3d45
Signed-off-by: jing.li1 <jing.li1@amlogic.com>
2024-08-27 05:57:23 -07:00
qinglin.li 0a9e20de35 ddr_tool: add t6d outstanding support [1/1]
PD#SWPL-182359

Problem:
add t6d outstanding support

Solution:
add t6d outstanding support

Verify:
local

Change-Id: Ia9173cbfb0cc2b1861d1a3dc7ae1cfafebe65b5b
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-08-27 02:47:34 -07:00
qinglin.li 7b2e4c5340 ddr_tool: use aml_ddr_tool.h as ddr_tool drivers common head file [1/1]
PD#SWPL-182359

Problem:
use aml_ddr_tool.h as ddr_tool drivers common head file

Solution:
use aml_ddr_tool.h as ddr_tool drivers common head file

Verify:
local

Change-Id: Ie2abc7e3405192192b9de65374371b6301934933
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-08-27 02:47:29 -07:00
can.zhang ac3d7fe01f amvecm: disable hdr10plus ability [1/1]
PD#SWPL-181880

Problem:
hdr10plus func need open or not

Solution:
add code

Verify:
local

Change-Id: I30696cb2ac0df9e98e99f5ac9b57ffdeccd3b95d
Signed-off-by: can.zhang <can.zhang@amlogic.com>
2024-08-26 05:47:31 -07:00
Wenjie Qiao 34ef11fd45 hdmitx: set segment 0 when read block0/1 under kernel [2/2]
PD#SWPL-169569

Problem:
read edid error after reboot under kernel

Solution:
set segment 0 when read block0/1
read edid use DDC master access in HW TPI mode

Verify:
s5/s7

Test:
DRM-HDMITX-104

Change-Id: I885081b383c041986c54684d0b9225e24dd1e233
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2024-08-23 02:05:00 -07:00
jing.li1 febc85e083 Demux: Add api for multi2 [1/2]
PD#SWPL-181881

Problem:
S6 need to support multi2

Solution:
Add api for multi2

Verify:
Verified on bl201

Change-Id: Ifb6d02d198efacea99c1360ec37d2d5de7b79086
Signed-off-by: jing.li1 <jing.li1@amlogic.com>
2024-08-22 23:49:05 -07:00
Sunny Luo d30056cc9f spicc: reset controller when busy [1/1]
PD#SWPL-183022

Problem:
ldim crash caused by spi abnormal transfer

Solution:
reset spicc controller when busy

Verify:
t5m

Change-Id: I1317e8e5b2ddec6198126e8cd4a9c569f13eb4d5
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
2024-08-22 07:40:49 -07:00
Tao Zeng 187ca993ca t6d: amfc: use device config and compress uImage
PD#SWPL-181954

Problem:
uImage not decompressed by AMFC

Solution:
1, change zstd tools to append size at end of uImage;
2, change scripts to support uImage decomperss by AMFC

Verify:
t6d

Change-Id: I2f2465a2247085c150a1c7f42ede688011745071
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2024-08-22 14:40:36 +08:00
huijie.huang dc16c0cc20 lcd: t6d tcon support [2/2]
PD#SWPL-180353

Problem:
t6d lcd tcon bringup

Solution:
support tcon driver

Verify:
t6d br301

Change-Id: If52b51bf609a17de138fb76b840bf865e15a4cfc
Signed-off-by: huijie.huang <huijie.huang@amlogic.com>
Signed-off-by: chenyang.liu <chenyang.liu@amlogic.com>
2024-08-22 14:27:53 +08:00
Zhongfu Luo 8542413395 efuse: T6D: efuse driver bringup [1/1]
PD#SWPL-180289

Problem:
T6D: efuse driver bringup

Solution:
update efuse node
update efuse cali subitem

Verify:
T6D BR309

Change-Id: I025dd508a630cfad3596f0ca3d7ff2165f84b468
Signed-off-by: Zhongfu Luo <zhongfu.luo@amlogic.com>
2024-08-22 14:27:53 +08:00
jian.hu 03c0bd6aae clk: fix global-out-of-bounds in rtc clk [1/1]
PD#SWPL-180321

Problem:
there is global-out-of-bounds

Solution:
1.fix rtc global-out-of-bounds
2.update rtc clocks

Verify:
t6d br301

Change-Id: I08ada01d6c055e6983a33b6c2db99e4c70125508
Signed-off-by: jian.hu <jian.hu@amlogic.com>
2024-08-22 14:27:53 +08:00
Junyi Zhao 8ac817f3bc led: dcon_led: add flip function and mode select [1/1]
PD#SWPL-180332

Problem:
add flip function for led
add data mode select for led

Solution:
add this config

Verify:
t6d br301
t5m ay301

Change-Id: Ice3e3ff86d2b0823e1f2b1aea852f4bafc9fd3b7
Signed-off-by: Junyi Zhao <junyi.zhao@amlogic.com>
2024-08-22 14:27:53 +08:00
dian.shao fb2db42f7f usb: t6d usb2t controller clks update [1/1]
PD#SWPL-180337

Problem:
S6 usb2t controller clks need update.

Solution:
Add clk mux codes & dts nodes.

Verify:
br201.

Change-Id: I5342898a9864601f58f3ba6aa49f113ca1e81642
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2024-08-22 14:27:53 +08:00
hongyu.chen1 3b11400a3d Soc: T6D: add hwspinlock config. [3/3]
PD#SWPL-180596

Problem:
t6d need hwspinlock support.

Solution:
add hwspinlock config in kernel.

Verify:
BR301 & BR309

Change-Id: I03e61903b1a2ed3226b0ced593f3a018957a4195
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2024-08-22 14:27:52 +08:00
jian.hu 4733a6fb58 clk: add usb pll and usb clock [1/1]
PD#SWPL-180321

Problem:
there are no usb pll and usb clock

Solution:
add usb pll and usb clock

Verify:
t6d br301

Change-Id: I24f381493a3f8d7d3510252fdc35ab2eb9b09b7e
Signed-off-by: jian.hu <jian.hu@amlogic.com>
2024-08-22 14:27:52 +08:00
Tao Zeng d601d7ea09 t6d: enable amfc [1/3]
PD#SWPL-181159

Problem:
AMFC not enabled

Solution:
enable it

Verify:
t6d

Change-Id: I710887e1d00b296e8c0e804ce62cf0dccf5c8957
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2024-08-22 14:27:52 +08:00
Huqiang Qin 1a8eb82a73 pinctrl: t6d: support analog pins [1/1]
PD#SWPL-180323

Problem:
T6D Silicon Bringup.

Solution:
CVBS_IOUT for headphone insertion detection.

Verify:
T6D/BR301

Change-Id: Ic544c9aa400e847401875fa993bcb2b360485d15
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2024-08-22 14:27:52 +08:00
jian.hu db9d456652 clk: add amfc clk support [1/1]
PD#SWPL-180321

Problem:
it does not support amfc

Solution:
add amfc support

Verify:
t6d br301

Change-Id: Idb0d1d8aa3571402a636bd75018735fcb82bc489
Signed-off-by: jian.hu <jian.hu@amlogic.com>
2024-08-22 14:27:52 +08:00
jian.hu b97695c773 clk: correct eth phy clock name [1/1]
PD#SWPL-180321

Problem:
there is no eth phy clock

Solution:
correct eth phy clock name

Verify:
t6d br301

Change-Id: Ie8ff90cf998c4a8064f01e4e52d63b7e284b4dd3
Signed-off-by: jian.hu <jian.hu@amlogic.com>
2024-08-22 14:27:51 +08:00
dian.shao 5bdcf2ac78 usb: t6d bringup [1/1]
PD#SWPL-180337

Problem:
T6D Silicon Bringup
- Kernel
- High speed peripheral driver
- USB

Solution:
Add dt nodes & driver.

Verify:
t6d.

Change-Id: Ib714eda2d9ccc0b247d8a6dee9851e31150f7a3f
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2024-08-22 14:27:51 +08:00
Huijuan Xiao 3e6b6bb78e amvecm: t6d bringup [1/1]
PD#SWPL-167798

Problem:
add t6d pxp bringup flow

Solution:
probe lut1 gmt_comp lut3d osd_mtx

Verify:
t6d

Change-Id: I72b493cc8ecdf12d42bef495e6c49abee9a90439
Signed-off-by: Huijuan Xiao <huijuan.xiao@amlogic.com>
2024-08-22 14:27:51 +08:00
Pengcheng Chen b4bf41313b video: add t6d video support [1/1]
PD#SWPL-167810

Problem:
add support for t6d

Solution:
complete it

Verify:
t6d

Change-Id: I4529e7871f85abde6c2cd22ce955aadff27d5c9c
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-08-22 14:27:51 +08:00
yuhua.lin 3626f20998 canvas: add support for t6d [1/1]
PD#SWPL-163819

Problem:
add support for t6d

Solution:
complete it

Verify:
t6d

Change-Id: Ia6228907993326e8c3bc22495ac8d17b075df6cf
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2024-08-22 14:27:50 +08:00
huijie.huang 6fda565ebf lcd: support t6d [1/1]
PD#SWPL-167796

Problem:
t6d pxp bring up

Solution:
Support t6d pxp bring up

Verify:
t6d

Change-Id: I92a30523dd75594e78c45caa2fda64f88fe51906
Signed-off-by: huijie.huang <huijie.huang@amlogic.com>
2024-08-22 14:27:50 +08:00
yuhua.lin 17413ae0d8 vpp: add codec_io/canvas/rdma support for t6d [1/1]
PD#SWPL-167808

Problem:
add support fot t6d

Solution:
complete it

Verify:
ptm

Change-Id: I27a292260e8b7e8a644b2dcd43dab5acd721a9f1
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2024-08-22 14:27:50 +08:00
Jian Hu 3e86a15c72 clk: add cpu clock [1/2]
PD#SWPL-166006

Problem:
t6d bringup

Solution:
1.fix rtc_32k
2.add cpu clk

Verify:
pxp

Change-Id: If0156b569b577fce2b01a8f8f4d2f1d510cfdd23
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2024-08-22 14:27:50 +08:00
Zelong Dong 8f2ba077e5 reset: t6d: support reset [1/1]
PD#SWPL-165710

Problem:
need to support reset

Solution:
support reset

Verify:
t6d

Change-Id: I909fc7a0417cb753c47a142e288946d9a59d45da
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-08-22 14:27:49 +08:00
Yao Jie 7c44a8164f mailbox: t6d pxp mailbox bringup [1/1]
PD#SWPL-167324

Problem:
T6D pxp mailbox bringup

Solution:
T6D pxp mailbox bringup

Verify:
T6D-PXP

Change-Id: I130affe4c46601ad1c0cca7cb50408ccc568ef89
Signed-off-by: Yao Jie <jie.yao@amlogic.com>
2024-08-22 14:27:49 +08:00
Jian Hu 822ddf5a2b clk: add t6d support [1/1]
PD#SWPL-166006

Problem:
t6d bringup

Solution:
add clk support

Verify:
pxp

Change-Id: Ia365d5a4aa389dbcd6f57b0df6da07f799e28790
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2024-08-22 14:27:49 +08:00
Huqiang Qin 7f8def29f1 pinctrl: t6d: support gpio/pinmux/gpio_intc [1/1]
PD#SWPL-165463

Problem:
T6D PxP Bringup.

Solution:
Feature support for new SoC.

Verify:
PxP

Change-Id: I038373eba3b6ef4cf7af48026521a3aa1ee75366
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2024-08-22 14:27:49 +08:00
hongyu.chen1 7fc0924582 T6D: add power domain config. [3/3]
PD#SWPL-164469

Problem:
t6d need power domain support.

Solution:
add power domain config in kernel.

Verify:
pxp

Change-Id: Idbafb1d0d68e444d846dfb07440c99f0d3cfeca7
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2024-08-22 14:27:49 +08:00
gerrit autosubmit a8f3c5ce7b Merge "hdmitx: add edid_valid property [1/1]" into amlogic-5.15-dev 2024-08-21 21:24:07 -07:00
zhou.han 659a8d1dc2 hdmitx: add edid_valid property [1/1]
PD#SWPL-99060

Problem:
Try to limit the external module directly r/w  the driver node.

Solution:
Add edid_valid property

Verify:
ohm

Test:
DRM-TX-20

Change-Id: I3bc300e0a8c0ec019d2ef10db976584140de4588
Signed-off-by: zhou.han <zhou.han@amlogic.com>
2024-08-19 22:49:10 -07:00
Pengcheng Chen 62829a4a25 vpp: fix src_fmt_str overflow issue [1/1]
PD#SWPL-182110

Problem:
fix src_fmt_str overflow issue

Solution:
fix src_fmt_str overflow issue

Verify:
t5w

Change-Id: Ie4d2b709a027f5297e4f941df00b2971eb552422
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-08-19 21:53:07 -07:00
Feng Chen 932190b3f1 spinand: F35SQA001G QPL qualify [1/1]
PD#SWPL-148920

Problem:
STB QPL qualify

Solution:
add F35SQA001G to flash id table.

Verify:
S1A_BG201

Change-Id: I3da23fa93396f96822a3bb32fc3d2332b9e9a7fd
Signed-off-by: Feng Chen <feng.chen@amlogic.com>
2024-08-19 07:42:40 -07:00
zhenteng.tian ac4d783d72 vc: notify frame display info to mediaproxy. [1/1]
PD#SWPL-177588

Problem:
video_composer need notify frame display info to mediaproxy

Solution:
notify frame display info to mediaproxy

Verify:
T5M

Change-Id: Icd7f8f030a78245086dd0c3eba5cd1e7d3761e70
Signed-off-by: zhenteng.tian <zhenteng.tian@amlogic.com>
2024-08-15 21:45:31 -07:00
wenlong.zhang 2745334200 drm: amvecm ctm update [1/1]
PD#SWPL-180143

Problem:
drm should not call rdma write register by video channel.

Solution:
re-implement ctm api, drm just set matrix parameters, then amvecm
will write register in vsync isr.

Verify:
t7c

Change-Id: I68700d65fa494fab2552414044b011c2ef21bdeb
Signed-off-by: wenlong.zhang <wenlong.zhang@amlogic.com>
2024-08-15 19:46:40 -07:00
lizhi.hu e2f3ba505f lcd: projection mode support [1/1]
PD#SWPL-173046

Problem:
projection broken after lcd multi-timing support 1

Solution:
1. divide panel dtsi to tv/tablet/projection
2. add vout regist ctrl to force regist multi vout

Verify:
txhd2_be311

Change-Id: I163818378fc762c961926dac84b11c4c28404842
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2024-08-15 19:46:34 -07:00
congyang.huang 64d2722e6f drm: optimize qms_brr_viclist function [1/1]
PD#SWPL-178271

Problem:
optimize qms brr viclist

Solution:
optimize get_modes function
vrr range equals hdmitx and lcd group freq divided by 100

Verify:
s5 t5m

Test:
DRM-OSD-45
DRM-OSD-47

Change-Id: I72d1a2588fb761f21b1b56039c1cb37d5b55ce60
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2024-08-15 04:00:48 -07:00
jinbiao b6bce37072 SD: control sd io-related GPIO output low when reboot. [1/1]
PD#SWPL-164281

Problem:
SD io-related GPIO always output high when reboot.

Solution:
control sd io related GPIO output low via Pinctrl.

Verify:
C3_AW419

Change-Id: I487b5be27e2248b709c709c3bd7e3beb6d9adeee
Signed-off-by: jinbiao <jinbiao.ou@amlogic.com>
2024-08-15 01:42:32 -07:00