Commit Graph

6099 Commits

Author SHA1 Message Date
Chengbing.wu 977d8ea41a regulator: s5 k6.12 upgrade [1/1]
PD#SWPL-219437

Problem:
upgrade s5 regulator to k6.12;

Solution:
add s5 dts and pwm code with usleep time;
pwm npu debug ok;
reva npu nna no use pwm, just use gpio, delete it;
note: udelay time from gxlx4(k5.4) and t6w new soc(k5.15+);

Verify:
s5 ax201(S928x-v2+) #342 : 64bit

Change-Id: I00570ba03fa6988f570046d5d3116e6f5775fd40
Signed-off-by: Chengbing.wu <chengbing.wu@amlogic.com>
2025-06-30 05:12:45 -07:00
qiyao.zhou 7280f3f95b videodisplay: fence leak. [1/1]
PD#SWPL-214904

Problem:
fence leak in drm.

Solution:
Add fence put action for input fance.

Verify:
S7D

Change-Id: I79486fd7a8b9e4b986a9af1ba54fd2b97b8e7921
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2025-06-30 05:12:38 -07:00
yuhua.lin df5fab7cf2 vpp: fix coverity issues for media code [1/1]
PD#SWPL-217368

Problem:
fix coverity issues for media code

Solution:
fix it

Verify:
local

Change-Id: I5aed77c48ee415b43334e806bfdab650577cb12a
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2025-06-30 01:08:26 -07:00
qinglin.li aba2afd488 scripts: add nogki default config [1/1]
PD#SWPL-217825

Problem:
add nogki default config

Solution:
add nogki default config

Verify:
local

Change-Id: Iec568f6386ca5e624bc766d5c82a0d10c8783f40
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-06-29 23:56:13 -07:00
lizhi.hu 9d8730733f eDPtx: fix coverity problem [1/1]
PD#SWPL-218453

Problem:
Coverity defect

Solution:
fix

Verify:
t7_an400

Change-Id: I0ed63648f9c070ba641b28b7e9d73412b31a4808
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2025-06-28 05:11:30 -07:00
zhicheng.huang 947f859c90 dtv_demod: synchronize code from kernel5.15 (V4.0.000) [1/1]
PD#SWPL-219695

Problem:
synchronize code from kernel5.15 to 6.12

Solution:
1.synchronize code from kernel5.15 to 6.12
2.AMLDTVDEMOD_VER V4.0.000

Verify:
t5m

Change-Id: I2094deaf811b3c4ae2e08a628b1e91c78d36ca72
Signed-off-by: zhicheng.huang <zhicheng.huang@amlogic.com>
2025-06-27 21:07:15 -07:00
Wanwei Jiang f64efd123e ddr bandwidth: support lpddr5 [2/2]
PD#SWPL-191305

Problem:
the frequency and bandwidth of LPDDR5 are inaccurate

Solution:
the frequency calculation methods for LPDDR5 and DDR3/2 are different

Verify:
local

Change-Id: Idb7bc333383f094c5071c0ac71276672f92dd06f
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2025-06-27 19:07:15 -07:00
shufei.zhao 8b7f26de42 autosh: fix dts check error [1/1]
PD#SWPL-219411

Problem:
There are false positives
in the DTS check

Solution:
Remove the PXP DTS check

Verify:
auto-sh

Change-Id: Icdb68265c339276e731bcad1427f0baf9d0d63dc
Signed-off-by: shufei.zhao <shufei.zhao@amlogic.com>
2025-06-27 15:51:17 -07:00
Evoke Zhang aec551dc6e lcd: add power off delay optimization [2/2]
PD#SWPL-218847

Problem:
1.power off delay take too long time
2.wait mute timeout occurred when shutdown take too long time

Solution:
1.use sched_clock time instead of msleep
2.no waiting mute complete when shutdown

Verify:
ay301

Change-Id: If2e3b64ec4775a3228ada7c0aab3f4b918b59b5f
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2025-06-27 07:08:05 -07:00
zijie.hong 5068015006 vdin: k6.12 vf log too much [1/1]
PD#SWPL-219728

Problem:
vf log flags are defined in vf_pool
If struct not match, vf log will be too much

Solution:
vdin vf log control via gki_tool

Verify:
TXHD2

Change-Id: Ied7d5c5204dac042b7cf1ac4f72687698d24b159
Signed-off-by: zijie.hong <zijie.hong@amlogic.com>
2025-06-27 07:08:00 -07:00
xiangyang.yan 148e7097e9 eth: fix Tx broken after mdns resume [1/1]
PD#SWPL-217214

Problem:
Tx broken after mdns resume

Solution:
re-set MAC Tx/Rx enable

Verify:
S7D-S905X5M-BM209

Change-Id: Ied88aed2f806dcafa07b1fec0b83517af0b158b0
Signed-off-by: xiangyang.yan <xiangyang.yan@amlogic.com>
2025-06-27 07:07:55 -07:00
Liming Xue 7adcd323e2 dsp: dsp stops working when suspend [1/1]
PD#SWPL-220011

Problem:
The pm-support attribute in the dtsi file of kernel 6.12 does not
match the parsing of probe, resulting in the inability to obtain the
correct value and preventing the DSP from entering the predetermined
suspend processing flow.

Solution:
modify the configuration of pm-support in dtsi

Verify:
a5

Change-Id: I4a39af7d3f0e783fceedb0c88ae78184e3d6e036
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
2025-06-27 03:09:11 -07:00
lizhi.hu dd07ab8fce lcd: dsi init on command not exec [1/1]
PD#SWPL-219832

Problem:
init on return after extern invalid

Solution:
continue init on command

Verify:
t7_an400

Change-Id: I0bcbc55d45ab7c8afb8474dfe865d4e995a2b2f6
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2025-06-27 03:08:51 -07:00
mingyang.he 958b73afff drm: postblend_disable do not wait for vblank when vsync is disabled [1/1]
PD#SWPL-217601

Problem:
warning for wait for vsync to time out when suspend or mode setting

Solution:
Determine the vsync status when disabling postblend and
do not wait for vsync if it is disabled

Verify:
t7

Test:
DRM-OSD-54

Change-Id: I1ce816322bdb2adeba5d3625ad10ebf732ca4ea6
Signed-off-by: mingyang.he <mingyang.he@amlogic.com>
2025-06-27 03:08:38 -07:00
jialong.jiang fc2599cb29 amdv: update backlight when gd is from off to on. [1/1]
PD#SWPL-218997

Problem:
update backlight when gd is from off to on.

Solution:
update backlight when gd is from off to on.

Verify:
T6W

Change-Id: I1ff893827f0d5179f80c500c51ce228cdc6343d0
Signed-off-by: jialong.jiang <jialong.jiang@amlogic.com>
2025-06-26 20:19:22 -07:00
qing.zhang eb0ef53f21 Audio: audio parameters transfer error [1/1]
PD#SWPL-218572

Problem:
1. audio parameters transfer error cause tx print warning

Solution:
1. use the effect data lane mast for hdmi tx

Verify:
s7d

Change-Id: I97ad3ad4b5de536cd042d7a43ca14ae752dc0fe2
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
2025-06-26 18:02:57 -07:00
jian zhou bca2efc52b audio: fix eARC multi pcm output channel swap [1/1]
PD#SWPL-218836

Problem:
when eARC output multi pcm, mono channel data is placed the fourth
channel, but the sound from AVR is FR or RS channel.

Solution:
first biphase work clear, and then start.

Verify:
t6w

Change-Id: Ibb89140ed8cfdc2ddf7b792454b83a765c95aea2
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
(cherry picked from commit 9de94e9ac906e66e6d5aa591caac5dd8fbe18782)
2025-06-26 07:11:10 -07:00
Lei Zhang 7fc9129825 Revert "preempt_rt: bypass validate hrtimer_bases.lock when lockdep enabled [1/1]"
PD#SWPL-219002

Problem:
1, with CONFIG_PROVE_LOCKING=y, it consume ms time in validate lock,
   both in RT and !RT kernel
2, cyclictest should be test with PROVE_LOCKING disabled

Solution:
revert this commit

This reverts commit 02a9ae13bb.

Change-Id: I1bf67ee887f978a6241cb00cde0bc59e79695a8c
Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
2025-06-26 01:14:23 -07:00
lele xiang 2d1ef86ee9 common: CF1 Demo Version based on Critical Points. [1/2]
PD#SWPL-213039

Problem:
Provide a unified log/trace capture method.

Solution:
Provide a unified log/trace capture method.

depends on CL:
558669

Verify:
T6d/ohm

Change-Id: Ic150e36bc9f9a3dcff97240e859fee36085c6e5e
Signed-off-by: lele xiang <lele.xiang@amlogic.com>
2025-06-25 23:28:27 -07:00
ruofei.zhao c6aee2f41f hdmitx: s4 kernel 6.12 hdmitx bringup [1/1]
PD#SWPL-219867

Problem:
s4 kernel 6.12 hdmitx bringup

Solution:
s4 kernel 6.12 hdmitx bringup

Verify:
S905Y4

Test:
DRM-TX-78

Change-Id: I8f6b14634d3db50ffc63b9f00a868e087e55d823
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2025-06-25 23:20:37 -07:00
Luan Yuan 1f15fc9f27 dts: enable wifi and sync dvb config. [1/1]
PD#SWPL-219689

Problem:
enable wifi and sync dvb config.

Solution:
enable wifi and sync dvb config.

Verify:
verify by local.

Change-Id: Icda1ce4763b367867291287cf1d195cb49b823e2
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2025-06-25 23:20:23 -07:00
zhou ning 0d4d199542 T950S: use correct config [1/1]
PD#SWPL-217125

Problem:
wrong configuration

Solution:
32bit disable CONFIG_DEVTMPFS

Verify:
Loclly and patchbuild verified

Change-Id: I24386330b6b8df0eb5da29a9be42ad9feb4ef552
Signed-off-by: zhou ning <zhou.ning@amlogic.com>
2025-06-25 23:20:05 -07:00
mingyang.he 24826cbec7 drm: fix coverity error in kernel 6.12 [1/1]
PD#SWPL-217768

Problem:
coverity error

Solution:
fix them

Verify:
sc2

Test:
DRM-OSD-69

Change-Id: Ief5ccc4047b578ddeb7f01aad2715de74e2acafe
Signed-off-by: mingyang.he <mingyang.he@amlogic.com>
2025-06-25 20:05:21 -07:00
dian.shao aab9b7406d usb: s4/s5 devices trees [1/1]
PD#SWPL-217889

Problem:
kernel 6.12 bringup ARM64/AMR32
- S4/S5 USB drivers.

Solution:
Add s4/s5 usbphy dts nodes.

Verify:
ax201.
ap222.

Change-Id: I1c3f01c0c993d5d1bff2ab40c981b340a3042dfb
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2025-06-25 20:04:26 -07:00
jinbing.zhu 4d13756dd9 amvecm: dnlp base value setting for ai pq. [1/1]
PD#SWPL-218840

Problem:
no set dnlp base value for ai pq

Solution:
add setting flow

Verify:
s6

Change-Id: I73eb94340a4fde7552e1c86a52ca30a870a086f5
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2025-06-25 20:04:06 -07:00
dian.shao 3152f1cf31 usb: meson usb phy driver updates for s4/s5 and misc bugfixes [1/1]
PD#SWPL-217889

Problem:
kernel 6.12 bringup ARM64/AMR32
S4/S5 USB drivers

Legacy phy disconnect threshold value may need the reg write step to
validate.

t5w phy_configure not implemented.

Solution:
Add s4/s5 usb phy drivers.
Refactor disconnect trim codes.
Implement t5w phy configure.

Verify:
ax201
ap222
ay301.

Change-Id: I320d82bdd719db85c09a64bbbdb48bbf9ce01541
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2025-06-25 20:03:47 -07:00
zhou.han fcc2a112cc hdmitx: fix converty error [1/1]
PD#SWPL-217802

Problem:
fix converty error

Solution:
variables need to be initialized

Verify:
tscancode

Change-Id: I1fdf5486b64cde934f1a70e09325a07bcfc91853
Signed-off-by: zhou.han <zhou.han@amlogic.com>
2025-06-25 20:03:42 -07:00
can.zhang f88b7233ce amdv: add hdr cap debug node [1/1]
PD#SWPL-217899

Problem:
test

Solution:
test

Verify:
Verified on s6/sc2

Change-Id: I6c940cf09b7f61ea743e18c8f222f0d4372d3b2c
Signed-off-by: can.zhang <can.zhang@amlogic.com>
2025-06-25 09:11:22 -07:00
Chengbing.wu 9f4c5980ce regulator: s4 k6.12 upgrade [1/1]
PD#SWPL-217840

Problem:
upgrade s4 regulator to k6.12;

Solution:
add s4 dts and pwm code with usleep time;
note: udelay time from gxlx4(k5.4) and new soc(k5.15+);

Verify:
s4 aq222(S805X2) #33, ap222(S905Y4)V1.1: 64bit & 32bit

Change-Id: I9194ec457495acce7eca79d7494e03b1bb0242b3
Signed-off-by: Chengbing.wu <chengbing.wu@amlogic.com>
2025-06-25 02:03:28 -07:00
qinglin.li 85d4245ea5 coverity: fix coverity error [1/1]
PD#SWPL-219104

Problem:
fix coverity error

Solution:
fix coverity error

Verify:
local

Change-Id: I92c4774bf3e58e462fe49873a079c0617870ab79
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-06-24 23:48:19 -07:00
huijie.huang d98ed34f8d lcd: tcon support demura tool interface [1/1]
PD#SWPL-188355

Problem:
Demura tuning tool DDR R/W FW support

Solution:
Add demura interface support

Verify:
T5M

Change-Id: Ia873f8c057d8d6bc7372576685d6cf22fccaab0f
Signed-off-by: huijie.huang <huijie.huang@amlogic.com>
2025-06-24 23:47:09 -07:00
Liming Xue 0d2012e0a1 kernel6.12: s6 thermal typo error [1/1]
PD#SWPL-217059

Problem:
s6 soc thermal zone threshold gear name error

Solution:
fixed name

Verify:
s6

Change-Id: Icaa9b9d156725455e070e82a062cabe85de4bea2
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
2025-06-24 15:07:41 -07:00
zhou ning c1cbc28427 T950S: display configs review [1/1]
PD#SWPL-218979

Problem:
display configs review

Solution:
display configs review

Verify:
Loclly and patchbuild verified

Change-Id: I41357341631fb4d9727881212aa15c307d4755d9
Signed-off-by: zhou ning <zhou.ning@amlogic.com>
2025-06-24 13:10:09 -07:00
ruofei.zhao c88585331a cvbs: solve the problem of incorrect printing of clk tree [1/1]
PD#SWPL-219661

Problem:
clk tree error printing

Solution:
only G12 and SM1 require clk tree configuration

Verify:
S905Y4

Test:
DRM-TX-78

Change-Id: I2fee798980bc5fef9af1e2da88202b6c6da3d809
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2025-06-24 07:19:48 -07:00
Qianggui Song 3214ecc93f defconfig: txhd2: change unwind method to arm [1/1]
PD#SWPL-219666

Problem:
Using frame point to unwind under 32bit may cause
Backtrace aborted due to vmap function.

Solution:
change to arm unwinde. also see
SWPL-203341

Verify:
txhd2_be311

Change-Id: I71512b0d089e3873b00a72dbbe3fa5404052583c
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2025-06-24 05:17:23 -07:00
lele xiang 802e492674 common: CF1 Add dedicated trace recording method. [1/1]
PD#SWPL-219578

Problem:
Provide a unified trace capture method.

Solution:
Add dedicated trace recording method.

Verify:
T6d/ohm

Change-Id: Iac70be86e65f1a91b93f6892eb64ee211f4fda21
Signed-off-by: lele xiang <lele.xiang@amlogic.com>
2025-06-24 05:17:13 -07:00
jian zhou b49e9c0df9 audio: optimize the audio log [1/1]
PD#SWPL-219571

Problem:
optimize the audio log

Solution:
optimize the audio log

Verify:
T6D

Change-Id: Ic77c06371dcea243f28839fb045a99745913ccf0
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2025-06-24 05:17:07 -07:00
yiting.deng 1e33af94af clk: s5: clk update to k6.12 [2/2]
PD#SWPL-217839

Problem:
s4 clk update to k6.12

Solution:
fix it

Verify:
s5_ax201

Change-Id: Idd9456e85d72722b8688fe418688432e9ae7c6bf
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2025-06-24 05:16:55 -07:00
saisai.chang 5beaa9492c audio: Default enable ffv [1/2]
PD#SWPL-219097

Problem:
1.Default enable ffv
2.The driver for VAD can only be on either the ARM or DSP side

Solution:
1.Keep the clk of pdm always open
2.Disable VAD driver on arm

Verify:
s6

Change-Id: Iae9ac8b9c5d1547a72f4791d4146ed3fded75162
Signed-off-by: saisai.chang <saisai.chang@amlogic.com>
2025-06-24 05:16:45 -07:00
yuhua.lin 7bfb5cf561 media: fix Tscan issues for media code [1/1]
PD#SWPL-217790

Problem:
fix Tscan issues for media code

Solution:
fix it

Verify:
local

Change-Id: Ic760c0aeaa2dfa65fc39b458d3a50c27409bb09e
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2025-06-24 05:14:16 -07:00
Zelong Dong cea4d78836 ir: fix coverity issue [1/1]
PD#SWPL-217369

Problem:
fix coverity issue

Solution:
fix coverity issue

Verify:
t6w

Change-Id: I24483646f94073e15fc634ebfcc588e98d6d4c5d
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2025-06-24 05:14:06 -07:00
lizhi.hu 00c246dec6 eDPtx: compatibility improvement [1/1]
PD#SWPL-216452

Problem:
eDP compatibility problem

Solution:
fix

Verify:
t7_an400

Change-Id: Ibeb63b1b180fea6eb82d9fa8cea4855c42e4a685
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2025-06-24 02:12:01 -07:00
he.he 026aeda8ce usb: check code [1/1]
PD#SWPL-217793

Problem:
check code

Solution:
Fix coverity issues case by case.

Verify:
all

Change-Id: I1ff4b9f646ab6c74ffc09d5ed411d042ef2ad6b0
Signed-off-by: he.he <he.he@amlogic.com>
2025-06-24 00:00:39 -07:00
yang.zhou 8e7100c978 uvm: replace compress with direct_map to decide realloc [2/2]
PD#SWPL-215684

Problem:
he previous compress member could not adequately indicate whether
realloc was required, leading to errors in certain special scenarios.

Solution:
the decision to perform realloc is determined by Codec2, while Gralloc
uses the value of direct_map to confirm whether realloc is necessary

Verify:
android-16

Change-Id: Ibc72777d9f487fe402b22ee5043da422244e50b5
Signed-off-by: yang.zhou <yang.zhou@amlogic.com>
2025-06-23 23:11:47 -07:00
zhenteng.tian 64732790b5 v2d: fix coverity problem. [1/1]
PD#SWPL-218457

Problem:
fix coverity problem

Solution:
fix coverity problem

Verify:
T3X

Change-Id: Ic608785a5d51b47197ece7f2aecea4c22136e64a
Signed-off-by: zhenteng.tian <zhenteng.tian@amlogic.com>
2025-06-23 23:00:24 -07:00
yao zhang1 7ccedacd01 license: Fix amlogic license. [1/1]
PD#SWPL-217731

Problem:
Fix amlogic license.

Solution:
Fix amlogic license.

Verify:
all chip

Test:
license check pass

Change-Id: I05c47245ff58bf92abccaa7ca08a85524d73f924
Signed-off-by: yao zhang1 <yao.zhang1@amlogic.com>
2025-06-23 21:15:59 -07:00
Wanwei Jiang 7634db5521 bandwidth: support to debug wbuf_mid_level [1/1]
PD#SWPL-217338

Problem:
support to debug wbuf_mid_level

Solution:
support to debug wbuf_mid_level

Verify:
local

Change-Id: I8ddeb05776982ba6f94d9bf092965e1aff47018b
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2025-06-23 17:51:26 -07:00
Qianggui Song f4343aae45 pinctrl: add GPIO_CCn pin for I2C function [1/1]
PD#SWPL-195985

Problem:
CC1 has no i2c funciont

Solution:
Add CC1 function

Verify:
s6_bl201

Change-Id: I391c0fb1142a9a28599d783124b5eed5347fd8a8
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2025-06-23 13:08:02 -07:00
honghai.song ee6f2c4baa ko: add amfbc ko Fuzzy matching for 6.12 build [1/1]
PD#SWPL-218810

Problem:
add amfbc ko Fuzzy matching

Solution:
add amfbc ko Fuzzy matching

Verify:
ross


Change-Id: Ice1045533b5317b5549e8c77d69fe787d772b70d
Signed-off-by: honghai.song <honghai.song@amlogic.com>
2025-06-23 13:07:52 -07:00
chen.xu 7ccffa0eca video_composer: support low latency mode [1/1]
PD#SWPL-198467

Problem:
need support for low latency mode.

Solution:
1.local player P source && prelink and 1:1 game mode, while vc
push to ready_q and call vpp to get.
2.local player i source and 1:2 game, while vc push to ready_q,
current vsync will get fail, and next vpp vsync in vc will wakeup
vpp to get.

Verify:
T5M

Change-Id: I37765e6b5ecf3c991c8c7fceab5b8a49cbc91c93
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2025-06-23 11:59:29 -07:00