Commit Graph

6730 Commits

Author SHA1 Message Date
zhikui.cui fd055ee363 nand: support swupdate new boot layout [1/1]
PD#SWPL-177761

Problem:
can't boot after update bl2 in kernel

Solution:
c3 spi nand buswidth can't 1 line, set to 4 lines

Verify:
C302X_AW402 C302X_AW409 C308L_AW429

Change-Id: Ib6d04a1d8d168023c56e5713d38452ada36353a6
Signed-off-by: zhikui.cui <zhikui.cui@amlogic.com>
2024-07-17 23:57:37 -07:00
Junyi Zhao a829de1142 pwm: fix hibernate pinctrl [1/1]
PD#SWPL-174018

Problem:
pinctrl config for hibernate

Solution:
add hibernate pinctrl support

Verify:
t3x

Change-Id: Ifd014f747e85a1ffbf0ff3df8a67f2266a6ad7d3
Signed-off-by: Junyi Zhao <junyi.zhao@amlogic.com>
2024-07-17 23:57:32 -07:00
wenlong.zhang d30cc6178f drm: add rdma table for drm osd registers [1/1]
PD#SWPL-101847

Problem:
drm write registers to rdma table one by one, due to rdma table update
and rdma manager flush to real register are out of sync, so we want to
creat a fake table, the fake table will copy to rdma table after
pipeline register write done, and then config rdma vsync

Solution:
add rdma table for drm osd registers, and it can dynamic switching by
this node /sys/class/drm/card0/crtc0/rdma_table_switch.
echo 1 > /sys/class/drm/card0/crtc0/rdma_table_switch switch off
echo 0 > /sys/class/drm/card0/crtc0/rdma_table_switch switch on

Verify:
T3x s7 s5

Test:
DRM-OSD-33

Change-Id: I053daa7daaab672f8b1e9fc2c38a2d60552d6288
Signed-off-by: wenlong.zhang <wenlong.zhang@amlogic.com>
2024-07-17 23:57:23 -07:00
Tao Zeng 2eb530ff05 s6: add erofs support for amfc [1/1]
PD#SWPL-172567

Problem:
EROFS is not supported about AMFC on S6

Solution:
Add support for it

Verify:
S6 BL201

Change-Id: I06b47aa8135e06e050cdce174abde7fff18592c9
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2024-07-17 19:41:16 -07:00
qiang.wei 6e5fc83439 dts: C3 aw429 switches to C3 fastboot branch. [1/1]
PD#SWPL-177163

Problem:
C3 aw429 switches to C3 fastboot branch.

Solution:
C3 aw429 switches to C3 fastboot branch.

Verify:
C3_AW429

Change-Id: I523725a5987a38df32799aeaa4699846041a03ee
Signed-off-by: qiang.wei <qiang.wei@amlogic.com>
2024-07-17 05:57:39 -07:00
qiyao.zhou 01a822342e dp: Add LCEVC support in diprocess. [1/1]
PD#SWPL-174365

Problem:
LCEVC no need do di.

Solution:
add LCEVC support in diprocess.

Verify:
s7d

Change-Id: I0df139cdeb5827413a196a1fb6d482c127fb266f
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2024-07-17 05:57:24 -07:00
zhikui.cui ada3981ec7 nand: support new boot layout [1/1]
PD#SWPL-167197

Problem:
don't support ota the new boot layout (BOOT_DISCRETE_BL2)

Solution:
init support

Verify:
AW419-C308L-Socket #20

Change-Id: Ia2d1022f72a73f09f32c89fed4534795b0ecc49c
Signed-off-by: zhikui.cui <zhikui.cui@amlogic.com>
2024-07-17 05:57:19 -07:00
lukang.jia 993c89192c frc: release frc func at 4k1k100/120hz on 240hz screen and other [1/1]
PD#SWPL-177470

Problem:
Release FRC function at 4K1K100/120HZ on 240HZ screen

Solution:
Release FRC function at 4K1K100/120HZ on 240HZ screen

Verify:
T3X

Change-Id: I6893ac76c2d978d6d26dcfd6f953bbfa181bcc5d
Signed-off-by: lukang.jia <lukang.jia@amlogic.com>
2024-07-17 03:58:03 -07:00
Yu Tu 35b86b2623 pcie: STR power too high [1/1]
PD#SWPL-177450

Problem:
STR power too high

Solution:
close phy power register

Verify:
bl208

Change-Id: I535df46d3455e0357f3086e3ea0ae7e886d133a8
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2024-07-17 03:57:59 -07:00
Liqiang Jin 3414ca9671 S6 Watermark Bringup: add aml_watermark dts [1/1]
PD#SWPL-173128

Problem:
Need to add aml_watermark dts

Solution:
Add aml_watermark dts

Verify:
Android U + S6

Change-Id: Idef9a7f76b2cfdd103171bd677ff6e2a93bf3ab8
Signed-off-by: Liqiang Jin <liqiang.jin@amlogic.com>
2024-07-17 03:57:48 -07:00
Bin.Wang2 4843aff6c0 vlock: fix mk_zapper32 compile error [1/1]
PD#SWPL-176865

Problem:
mk_zapper32 compile error

Solution:
add protection

Verify:
T5M

Change-Id: Ib7c590a4fc3b66fbc6d7e0efa6bdbc7aab2b297f
Signed-off-by: Bin.Wang2 <bin.wang2@amlogic.com>
2024-07-17 03:57:44 -07:00
yu.xie d70bc9b4df DTS: CF1 adjust the size of codec_mm cma for android u s6. [1/1]
PD#SWPL-173096

Problem:
If scatter memory only alloc from system, the worst case is CTS P010.
Codec_mm need 444M.

Solution:
Adjust codec_mm size to 444MB.

Verify:
s6

Change-Id: I36128acd9713e91de2ed823a0de40da8694b0023
Signed-off-by: yu.xie <yu.xie@amlogic.com>
2024-07-17 03:57:40 -07:00
haitao.liu 979b07b481 vdin: support slt test [1/1]
PD#SWPL-175137

Problem:
Need to support slt test

Solution:
add debug code for slt

Verify:
t5m

Change-Id: I8be64d27669e41a609cecdb2026104488f7a4c07
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2024-07-17 03:57:34 -07:00
jinbing.zhu c7d190ce78 amvecm: add matrix to lcevc support. [1/1]
PD#SWPL-164384

Problem:
lcevc support

Solution:
lcevc support

Verify:
s7d

Change-Id: I81d196cc1f06ea63de57962412e25ff68faee075
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2024-07-17 03:57:28 -07:00
Jihong Sui 47d22c7219 deinterlace: add rotation feature [1/1]
PD#SWPL-166466

Problem:
add rotation feature for T3

Solution:
add rotation feature for T3

Verify:
t3

Change-Id: I5865ff4843c3acdada755f1529fd0c41a0da972a
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
2024-07-17 03:57:21 -07:00
he.he 3c65ee9b0c usb: plug camera and painc [1/1]
PD#SWPL-177726

Problem:
related TV-118830
plug camera and painc

Solution:
This bug is caused by host 011 commit

Verify:
t3

Change-Id: I7bf0294ef9bef1baac857c746e7e144b976701c4
Signed-off-by: he.he <he.he@amlogic.com>
2024-07-17 03:57:17 -07:00
Shunzhou Jiang 5bbe17a45b t3x: fix mbox compatible issue [1/1]
PD#SWPL-177424

Problem:
t3x mbox compatible not right

Solution:
fix it

Verify:
t3x

Change-Id: I57fd115f1f0bda10abe87d615c032f1cb6bd4ea2
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
2024-07-17 00:49:15 -07:00
lijun.meng a6be1ced43 Memory: update dts map[1/1]
PD#SWPL-177291

Problem:
Performance issues

Solution:
remap

Verify:
to be

Change-Id: I5796ad1565ba45c254d5bfcfb311d048570653f5
Signed-off-by: lijun.meng <lijun.meng@amlogic.com>
2024-07-16 05:45:18 -07:00
Zhixian Peng 2d32c53f74 Revert "Automotive U: disable tas5707 [1/1]"
PD#SWPL-177730

Problem:
disable tas5707 cause speaker no sound

Solution:
revert tas5707 disable dts

Verify:
t7c

This reverts commit 6c7645b5a2.
Change-Id: Ief08ed5d1bc67d9840b828ba1e87930adcde467a
Signed-off-by: zhixian peng <zhixian.peng@amlogic.com>
2024-07-16 05:45:14 -07:00
Yue Wang 1061911df5 USB: update usb parameter [1/1]
PD#SWPL-170068

Problem:
1.kernel update usb parameter.

Solution:
1.update usb parameter.

Verify:
BM201

Change-Id: I70b4792cdfae90699e023292c8fd729f04528762
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
2024-07-16 05:45:10 -07:00
jialong.jiang 7badbdfab9 amdv: add hw5 dts. [1/1]
PD#SWPL-177516

Problem:
add hw5 dts.

Solution:
add hw5 dts.

Verify:
t3x

Change-Id: I8c2746beda6d1e8998d68df40415193e79e0ee9a
Signed-off-by: jialong.jiang <jialong.jiang@amlogic.com>
2024-07-16 03:55:54 -07:00
hai.cao 4bbc18f0ed vpu: add vpu arb support [1/1]
PD#SWPL-176899

Problem:
add arb driver support for s6

Solution:
add support

Verify:
s6

Change-Id: Icfe0f0fdb35db8b700df7c359d31d266ede67d62
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2024-07-16 03:55:49 -07:00
dian.shao 4936003c27 usb: txrx cts calibration [1/1]
PD#SWPL-172978

Problem:
USB3 phy txrx calibration.

Solution:
Add cali codes.

Verify:
bl208.

Change-Id: I7f452f3a2cedbfc63f259611e95da4460e76bc7a
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2024-07-16 03:55:43 -07:00
hang cheng 4eb4c47234 hdmitx: skip stream type propagate if no need [1/1]
PD#SWPL-177048

Problem:
If there's no sink/repeater device connected to T7
hdcp repeater, but there's hotplug out on current
hdmirx input port, hdmirx side may request hdmitx
side to update stream type of downstream. If hdcp
of hdmitx side has not been enabled, it will enable
hdcp of hdmitx side. However, if there's no device
connected to hdmitx side, it will still enable
hdcp and then hangup as there's no tmds clk.

Solution:
check status before propagate stream type,
if currently in suspend, or hpd low/signal not
ready, then no need to propagate stream type

Verify:
T7

Test:
DRM-TX-132

Change-Id: Ib476c78a516060776abed145f747ed191cbadfa9
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
2024-07-16 03:55:38 -07:00
yujun.zhang 6f8f0bf795 drm: fix reset of mif reg VIU_OSD2_CTRL_STAT [1/1]
PD#SWPL-168643

Problem:
osd_cfg_sync_en bit of mif reg VIU_OSD2_CTRL_STAT gets
reset to be 1 after resuming.

Solution:
set osd_cfg_sync_en bit to be 0 in each commit if 1.

Verify:
s7

Test:
DRM-OSD-70

Change-Id: I7d3885eab088a597c25b41e0ce4b4377482315ba
Signed-off-by: yujun.zhang <yujun.zhang@amlogic.com>
2024-07-16 03:55:32 -07:00
zhenteng.tian c4b7be183f vc: skip vf type check for VT color buffer. [1/1]
PD#SWPL-176881

Problem:
1. kernel panic occurs in some video switching conditions
2. perform type checking on VT color buffer and print error messages

Solution:
1. fix kernel panic problem
2. skip vf type check for VT color buffer

Verify:
T7C

Change-Id: I63a02a481d36d84786d62f5d2994ea718af1ef0e
Signed-off-by: zhenteng.tian <zhenteng.tian@amlogic.com>
2024-07-16 03:55:27 -07:00
zhikui.cui 6d366b548c NAND: adjust the mechanism of register partition and get rsv parameter [1/1]
PD#SWPL-177473

Problem:
1.uboot pass partitions by cmdline in default
2.uboot pass rsv parameter by kernel dtb

Solution:
1.first register partitions from cmdline rather than dts
2.first parse rsv parameter from dts rsv part table

Verify:
AW419-C308L-Socket #020

Change-Id: Id7cb010d012768d54602be37d35940efed367d6e
Signed-off-by: zhikui.cui <zhikui.cui@amlogic.com>
2024-07-16 03:55:17 -07:00
Zhao Yi e13b97d3c7 uvm: add lcevc metadata [1/1]
PD#SWPL-166447

Problem:
LCEVC codec support

Solution:
LCEVC codec support

Verify:
AndroidU

Change-Id: Id78c411408da4a72cd5f8bc49ccc3b21c1afd0a8
Signed-off-by: Zhao Yi <zhao.yi@amlogic.com>
2024-07-16 03:55:13 -07:00
Jian Cao 6150101946 vpp: organize the relationship between rx mute and video layers [1/1]
PD#SWPL-176192

Problem:
video layer turns black when switching display modes

Solution:
record the video layer number when muting
use this number when unmuting.

Verify:
t3x

Change-Id: I3c50f390c510fd1139b284d136af3bd37a55b109
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2024-07-16 02:59:13 -07:00
yuhua.lin 657616687b video: t3 display 4k video blurry [1/1]
PD#SWPL-172529

Problem:
vskip count set 1 when play 4k video

Solution:
Adding restrictions when setting vskip count

Verify:
t3

Change-Id: Iaf4c07abc45787e21b1c852cd311f8bf0921617e
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2024-07-16 02:59:07 -07:00
yao.zhou 6ee59b4ec8 camera: using v4l2 vdin [2/5]
PD#SWPL-176110

Problem:
bring up mipi sensor in s6

Solution:
1.add csi camera dts config
2.add csi driver support
3.the fe of mipi csi configure TVIN_SIG_STATUS_STABLE status defaultly
4.fix cfmt error
5.add VDIN_WORK_MD_V4L conditional statement
6.only modify s6_s905d5_bq201.dts s6_s905d5_bq208.dts s6_s905d5_bq209.dts
s6_s905x5_bl201.dts s6_s905x5_bl208.dts s6_s905x5_bl209.dts this time

Verify:
local

Change-Id: Ia54b8bf80dcbf26b3576e6eacc43b8f0082374b6
Signed-off-by: yao.zhou <yao.zhou@amlogic.com>
2024-07-16 01:01:07 -07:00
wei wang 956d2b149c ir: add keys for G20 [1/2]
PD#SWPL-177238

Problem:
some keys were lost

Solution:
add them

Verify:
Verify it on adt4

Change-Id: Ic0392a81c0acb0fb4a2552fdd9f4300e1a4ee865
Signed-off-by: wei wang <wei.wang@amlogic.com>
2024-07-15 19:45:52 -07:00
Pengcheng Chen ec7cbe48f9 vpp: set vd2 default go field [1/1]
PD#SWPL-177292

Problem:
set vd2 default go field

Solution:
set vd2 default go field

Verify:
t3

Change-Id: I4cd402ace7b1673a5e722574709953ecfbe88eee
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-07-15 19:45:48 -07:00
yongbing.he c302f7c271 spinor: Fix c3_c30xx_aw402_256m.dtsi [1/1]
PD#SWPL-173842

Problem:
secmon and pmz anonymous address error.

Solution:
fix secmon and pmz anonymous address.

Verify:
C3_AW402


Change-Id: I66bc0930fec97de0ca5315e0b416938abb75cc64
Signed-off-by: yongbing.he <yongbing.he@amlogic.com>
2024-07-15 19:45:36 -07:00
Junyi Zhao f187cb668a i2c: optimize i2c driver [1/1]
PD#SWPL-175699

Problem:
need optimize i2c driver.

Solution:
optimize it.

Verify:
s7 skt

Change-Id: I9f212bb12568c4ce4cfbd9b2b0a00a45db4cfe71
Signed-off-by: Junyi Zhao <junyi.zhao@amlogic.com>
2024-07-15 19:45:24 -07:00
Yongjie Zhu 9b59be6d45 drm: fix drm release dmabuf issue [1/1]
PD#SH-16471

Problem:
panfrost gpu use drm to release dmabuf will
call kernel panic

Solution:
modify meson_gem_prime_get_sg_table()

Verify:
t7c+aml_debian

Test:
use panfrost gpu start kernel

Change-Id: I8e1d6c9e2e9c9928df808918ffe1b3268aed7d78
Signed-off-by: Yongjie Zhu <yongjie.zhu@amlogic.com>
2024-07-15 19:45:11 -07:00
Hao Shi 4a443340db codec_mm: scatter owner register [1/1]
PD#SWPL-176775

Problem:
scatter keep size need expand for vdin

Solution:
scatter user can set scatter keep size
by register scatter owner.

Verify:
ohm

Change-Id: I4be8af6dff0454cda9191666ec48cd1e03464127
Signed-off-by: Hao Shi <hao.shi@amlogic.com>
2024-07-15 02:11:29 -07:00
haitao.liu 630fc099d2 vdin: enable scatter memory on t5w [1/1]
PD#SWPL-176772

Problem:
AV out of sync on t5w

Solution:
1.change the vdin frame buffer number to 11
2.enable scatter memory by default on t5w
3.fix the issue of slow memory allocation

Verify:
t5w

Change-Id: I7cd3fda024b10f7036f7c92e24953273eb93adb4
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2024-07-15 02:11:21 -07:00
Yue Wang b40a3a27a9 usb: fix usb suspend panic [1/1]
PD#SWPL-173181

Problem:
1. usb suspend panic.

Solution:
1. fix usb suspend.

Verify:
t5m

Change-Id: I60a2a25297ab68f0975fb7c992c4b8d1bf083677
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
2024-07-15 02:11:12 -07:00
Xiangyu Cai 7c3566fd39 vrr: delay 9 frame when freesync switch [1/1]
PD#SWPL-175842

Problem:
frame rate error

Solution:
delay 9 frame when freesync switch

Verify:
t3x

Change-Id: I03dab86eaafe519da4bd22d016f86f60b978f825
Signed-off-by: Xiangyu Cai <xiangyu.cai@amlogic.com>
2024-07-15 00:05:31 -07:00
Xiangyu Cai e00ef0d1bf vrr: add vrr switch vlock frame [1/1]
PD#SWPL-176274

Problem:
frame rate error

Solution:
add vrr switch vlock frame

Verify:
t3x

Change-Id: Ia13242fafad3eae547bc612a3a8e6c7f7b26f911
Signed-off-by: Xiangyu Cai <xiangyu.cai@amlogic.com>
2024-07-15 00:05:26 -07:00
ruofei.zhao 3f6e4635c3 module: update hdmitx version to 20240712 [1/1]
PD#SWPL-176541

Problem:
update hdmitx version for release

Solution:
update hdmitx version to 20240712

Verify:
S6

Test:
DRM-TX-40

Change-Id: I113108804c58904be373d9bd4f264227b0d1b247
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2024-07-15 00:05:22 -07:00
Pengcheng Chen 4e60c3c1a5 vpp: for vd1 safa case, disable sr if hsize <= 45 [1/1]
PD#SWPL-176830

Problem:
for vd1 safa case, disable sr if hsize <= 45

Solution:
for vd1 safa case, disable sr if hsize <= 45

Verify:
s6

Change-Id: I6c2368c809a6c259ab059e5142636c19db58b708
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-07-15 00:05:17 -07:00
guangjun.zhu 6375feb62b dts: CF2 add codec_mm of s905x5m to 364M [1/1]
PD#SWPL-177105

Problem:
x5m codec_mm is not enough.

Solution:
add codec_mm of s905x5m from 208M to 364M.

Verify:
x5m

Signed-off-by: guangjun.zhu <guangjun.zhu@amlogic.com>
Change-Id: I4cd8ce7e6b5ed799c8d80b9b8c2006ec925c176b
2024-07-15 00:05:11 -07:00
yao liu 6bf8cf9fca amdv: blank screen when osd3 on/off [1/1]
PD#SWPL-168620

Problem:
when osd3 on/off, core2a and core2c reset, but lut
updated fail; drm enable osd3 is one vsync earlier
then dv core2c

Solution:
1.drm set core2c lut when osd3 off->on
2.add force_toggle_once debug

Verify:
s5

Test:
s5

Change-Id: I5fe2a7abd1f4b887da5f32a655a24418fee86b64
Signed-off-by: yao liu <yao.liu@amlogic.com>
2024-07-15 00:04:56 -07:00
haiyang.ren b98b1ba290 audio: mount hifi clk on ap232 [1/2]
PD#SWPL-176387

Problem:
clk config

Solution:
audio module mounted on hifi clk

Verify:
ap232

Change-Id: Ibb38dc20b770236f8a9622c0ae848d58834aa482
Signed-off-by: haiyang.ren <haiyang.ren@amlogic.com>
2024-07-15 00:03:46 -07:00
zhiwei.zhang 40abcde5e1 camera: bq201 board csi camera ov5640 support [1/1]
PD#SWPL-177169

Problem:
bq201 board need to pull up gpioa13 for 3v3 on csi slot;

Solution:
add camvdd-gpios gpioa13 in dts and pull up it.

Verify:
local

Change-Id: I11954fdc2b68ef9e56186c4631d55f8acb2dcda8
Signed-off-by: zhiwei.zhang <zhiwei.zhang@amlogic.com>
2024-07-15 00:03:40 -07:00
hang cheng 939d66f95f hdmitx: only load hdcp1.4 key once [1/1]
PD#SWPL-175124

Problem:
hdcp1.4 key load each time before hdcp1.4 auth,
as it will be always valid except for power off,
only need to load hdp1.4 key once when bootup.
As it will power down VPU domain after suspend,
so need to load hdcp1.4 key again after resume.

Solution:
only load hdcp1.4 key once when bootup and resume

Verify:
s7

Test:
DRM-TX-37

Change-Id: I246929de8aa40e2acbe9dfb3934c1c73fb65ef94
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
2024-07-15 00:03:27 -07:00
mingyang.he 1b481720f9 drm: src and dst x/y/w/h node in sysfs [1/1]
PD#SWPL-162722

Problem:
need nodes to adjust src size and dst size for osd plane

Solution:
add src and dst x/y/w/h node in sysfs

Verify:
sc2 t3x t7

Test:
DRM-OSD-16

Change-Id: I68209f9c7629e4b2d9bfc4539068655de19a5c65
Signed-off-by: mingyang.he <mingyang.he@amlogic.com>
2024-07-15 00:03:23 -07:00
qianqian.cai 1420908781 vpp: revert adjust di write urgent to super for prelink mode [1/1]
PD#SWPL-175648

Problem:
1.urgent issue when open pre-vpp link

Solution:
1.modify the urgent
2.use pre-vpp link

Verify:
t5w

Change-Id: I3bc03e84627f0099fe6b1f19cecb583dfcf53ec0
Signed-off-by: qianqian.cai <qianqian.cai@amlogic.com>
2024-07-12 13:42:58 -07:00