Commit Graph

102 Commits

Author SHA1 Message Date
chao.zhang a3d94dea52 pwm table: fix cpu pwm regulator config [1/1]
PD#SWPL-195669

Problem:
fix s6 cpu pwm regulator config

Solution:
fix regulator config

Verify:
s6

Change-Id: Ifdff3741e3255fa50c4c3b33f7a8cecaccc15e6e
Signed-off-by: chao.zhang <chao.zhang@amlogic.com>
2025-06-09 13:54:50 +09:00
chao.zhang 007b544ff4 pdvfs: need add tt cpu voltage of s6 [1/2]
PD#SWPL-211171

Problem:
need add tt cpu voltage for slt yield

Solution:
add tt2 cpu pdvfs table

Verify:
s6

Change-Id: Ia6ee701e07bef9a640a2b30ce15d3ace5b1f527a
Signed-off-by: chao.zhang <chao.zhang@amlogic.com>
2025-06-09 13:54:50 +09:00
zhenteng.tian 089e0f8c5b vc: send 10bit YUV data to vpp. [1/1]
PD#SWPL-192244

Problem:
vc need to send 10bit YUV data to vpp

Solution:
send 10bit YUV data to vpp

Verify:
T5M

Change-Id: Ie7c62c539b5af5f10d40fddce55afa6165fcd5a7
Signed-off-by: zhenteng.tian <zhenteng.tian@amlogic.com>
2025-06-09 13:54:50 +09:00
Wenjie Qiao 87a35d0fe9 hdmitx: revert 463048 [1/1]
PD#SWPL-150260

Problem:
nts fail, ddp test fail

Solution:
revert hdmitx cl: 463048
the cl had resolved nts fail issue: 469109

Verify:
sc2

Test:
DRM-TX-33 DRM-TX-86

Change-Id: Ifca703b59646d52b3944cdf637b8a39e7f3455a3
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2025-06-09 13:54:50 +09:00
qinghui.jiang 5679183e30 amvecm: add patch for dejaggy [1/1]
PD#SWPL-211544

Problem:
dejaggy enable control conflict.

Solution:
add patch for dejaggy.

Verify:
S905X5

Change-Id: I5d7d995de0c19232c014a5eef94b3c51ecaadd83
Signed-off-by: qinghui.jiang <qinghui.jiang@amlogic.com>
2025-06-09 13:54:49 +09:00
pengzhao.liu 9bb18cc229 kernel: add s6 dts for s905c5 [1/1]
PD#SWPL-198087

Problem:
add s6 dts for s905c5

Solution:
add s6 dts for s905c5

Verify:
s6

Change-Id: I8eee2bdf9a4756a4f365984d5b711101ac5bba4e
Signed-off-by: pengzhao.liu <pengzhao.liu@amlogic.com>
Signed-off-by: gongwei.chen <gongwei.chen@amlogic.com>
2025-06-09 13:54:49 +09:00
chuangcheng.peng 9f59cc0d49 demux: support PASS algo for scb0 [1/1]
PD#SWPL-202145

Problem:
support PASS algo for scb0

Solution:
support PASS algo for scb0

Verify:
not verified at S6

Change-Id: I4f2c6be9ee7d933937a49cbc519e7b61293e89e5
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
(cherry picked from commit c43b59626cc6be2a475611d994f44fa0c78f0bdb)
2025-06-09 13:54:49 +09:00
lele xiang 14830f550f Codec_mm: CB1 ui audio gap due to cma task occupy cpu. [1/2]
PD#SWPL-210800

Problem:
TVP pools smaller than 16MB cannot be set successfully..

Solution:
Adjust the minimum parameter of tvp_pool to 8MB.

Verify:
S7

Change-Id: I6230ec99ada3c6caedf6984a3546c64d407082f6
Signed-off-by: lele xiang <lele.xiang@amlogic.com>
2025-06-09 13:54:49 +09:00
wei wang 2198cd74bd remote: support a new key [1/3]
PD#SWPL-206536

Problem:
the remote has a new button

Solution:
support it

Verify:
Verify it on ohm_wv4

Change-Id: Ie10df98837d613811e4f0d5c5388f39986214884
Signed-off-by: wei wang <wei.wang@amlogic.com>
2025-06-09 13:54:49 +09:00
Jianxiong Pan c94ab82f9c mlock: skip the mlock optimization for rt thread. [1/2]
PD#SWPL-208030

Problem:
mlock optimization affects the performance of the rt threads.

Solution:
skip mlock optimization for rt threads.

Verify:
local.

Change-Id: Idb128ae0cc1346edfa0d649b4e0e17ab4b71860e
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2025-06-09 13:54:49 +09:00
qinglin.li 86fbdbd064 project: add amlogic_kernel_select.bzl [1/1]
PD#SWPL-208157

Problem:
add amlogic_kernel_select.bzl to select kernel_build

Solution:
add amlogic_kernel_select.bzl to select kernel_build

Verify:
local

Change-Id: Ic20221862093350b5d76c7f55525c6cd7607ba14
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-06-09 13:54:49 +09:00
Shuai Li aa3af31fc7 audio: delete tdmc samesource for soundbar [2/2]
PD#SWPL-210395

Problem:
TDMC samesource flag is wrong for soundbar board.

Solution:
Add dts config to delete the samesource property in dtsi.

Verify:
raman X5 soundbar

Change-Id: Ibe500a7880c7b0a373c45596d6dec33597945a3c
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
2025-06-09 13:54:49 +09:00
yiting.deng e234c50348 clk: s7: fix hevcf no output after enabled [1/1]
PD#SWPL-210177
PD#OTT-77737

Problem:
after hevcf clk setted rate, the loop is enabled/disabled, and
there is a probability that no output after clk is enabled
and check pass.

Solution:
after testing, it is found that it may be related to accuracy
of software delay 1ms, and delay of check is increased to 1.2ms

Verify:
s805x3

Change-Id: I733dd8dbdc6c4849fd3e39c87e34098d08bfe6fa
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2025-06-09 13:54:49 +09:00
he.he ab685b548e usb: save some parameters and handle dma=0 [1/1]
PD#SWPL-202732

Problem:
ERROR Transfer event TRB DMA ptr not

Solution:
save some parameters and handle dma=0

Verify:
T6D

Change-Id: I237868a870357ff8fb2de3e50a19432db3d52924
Signed-off-by: he.he <he.he@amlogic.com>
2025-06-09 13:54:49 +09:00
dian.shao 413260d6ed usb: crg udc stop ep timeout dead lock fix [1/1]
PD#SWPL-190054

Problem:
Crg udc stop ep timeout leads to dead lock.

Solution:
Abort if stuck.

Verify:
Customer projects.

Change-Id: I902e187e4f98b7f8dfc84d3311e4b315772f9391
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2025-06-09 13:54:49 +09:00
dian.shao cc6f090587 usb: t6d phy disc&squelch trim [1/1]
PD#SWPL-201200

Problem:
T6D phy disc&squelch trim.

Solution:
Set to max.

Verify:
T6D.

Change-Id: Iead699486b3f2bf2281d326c6bc6a01c335f61e5
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2025-06-09 13:54:49 +09:00
dian.shao aaea86117d usb: t6d udc remain power [1/1]
PD#SWPL-199585

Problem:
Seems off the power leads to
reinit bugs.

Solution:
Maintain the power.

Verify:
br301.

Change-Id: I6873e74ee4a4f6b614fa22a77270c38fd65f4e2d
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2025-06-09 13:54:49 +09:00
dian.shao 262d214ae8 usb: dwc2 std cancel err [1/1]
PD#SWPL-200276

Problem:
usb:dwc2 std cancel err.

Solution:
Fix workqueue alloc.

Verify:
br301.

Change-Id: I3948718f1045ce223715e91f6f61c9af94a994ac
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2025-06-09 13:54:49 +09:00
dian.shao b82b2fe0f0 usb: t6d resume err [1/1]
PD#SWPL-199440

Problem:
{Yocto-sdk}[T6d][stability-test]
t6d autosuspend test 1.5 h
amlogic-usb crash

Solution:
Refine crg udc remove.

Verify:
br301.

Change-Id: I1d62ed542e72cc5294736c5933669e35e218119e
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2025-06-09 13:54:49 +09:00
dian.shao c330821a7b usb: crg udc vmap leaks [1/1]
PD#SWPL-185878

Problem:
vmap allocation fail.

Solution:
Don't use devm_ioremap.
Release in remove.

Verify:
t950s

Change-Id: Ie3bd5a842b00f238f0f045f0441349e8556c1155
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2025-06-09 13:54:49 +09:00
dian.shao 16b1727b97 usb: t3 std [1/1]
PD#SWPL-194747

Problem:
T3 dwc pcd std not supported.

Solution:
Add std driver.

Verify:
T3.

Change-Id: I00e5fd0eb56a1de75a02d5d1a048030e5b223a3f
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2025-06-09 13:54:49 +09:00
dian.shao 24ba681814 usb: dwc2 shutdown err [1/1]
PD#SWPL-195276

Problem:
dwc_otg_flush_tx_fifo() HANG
dwc_otg_flush_rx_fifo() HANG

Solution:
cancel disconnect detect work.

Verify:
sc2

Change-Id: I1e01eaabd8fa1921933ddec11e0e5f38b31d4996
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2025-06-09 13:54:49 +09:00
dian.shao 5f0a2dda0a usb: m31 phy&crgu3drd role switch feature [1/1]
PD#SWPL-194901

Problem:
m31 phy&crgu3drd role switch feature.

Solution:
m31 phy driver updates.

Verify:
s5 t5m t3x.

Change-Id: Ic395e4fcc01549f9cda51acb321e843fbd578607
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2025-06-09 13:54:48 +09:00
dian.shao a95f53c607 usb: refactor crg controller reset control [1/1]
PD#SWPL-194742

Problem:
Current newly added usb controller power control in the
v0 usb2 phy driver is messy and err-prone due to code
regression issues.(i.e. any soc whose phy dts node is found
to contain the "pm-controller" will set resel level to low
in the crg_eixt path but the old version crg_udc driver does
not set it high again.)

Solution:
Refactor reset control logic to call
amlogic_crg_drd_usb2_set_controller_power
only in the controller driver.

Verify:
s6.

Change-Id: I7f635e72b2524dbdf917881913098db8d5b9a714
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2025-06-09 13:54:48 +09:00
dian.shao 9f3913accd usb: t6d usb2 phy disconnect trim [1/1]
PD#SWPL-193378

Problem:
t6d usb2 phy disconnect trim not
appropriate.

Solution:
change to 0x5

Verify:
t6d.

Change-Id: I4cc8c51788f5f3e745374e356d147daaf4461956
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2025-06-09 13:54:48 +09:00
he.he 6bf9589cbc usb: clean usb coverity [1/1]
PD#SWPL-190835

Problem:
clean usb coverity

Solution:
clean usb coverity

Verify:
all

Change-Id: I0522381ae418c83e1024c4edc1ca31eec2f6870b
Signed-off-by: he.he <he.he@amlogic.com>
2025-06-09 13:54:48 +09:00
dian.shao 932f9d56be usb: crg udc wakeup source needed in reinit scheme [1/1]
PD#SWPL-187367

Problem:
Suspend resume panic.

Solution:
Wakeup source.

Verify:
t6d

Change-Id: I317ab483c17a1320b80cc588133042a215f39c73
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2025-06-09 13:54:48 +09:00
Yue Wang 44ec748104 usb: modify the irq interval of the crg udc [1/1]
PD#SWPL-187706

Problem:
modify the irq interval of the crg udc

Solution:
crg udc irq interval from 1ms to 125us

Verify:
a5

Change-Id: I31b68a922cf06785138e60e90e32c8cb484be34b
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
2025-06-09 13:54:48 +09:00
dian.shao d8e675e2a1 usb: 2t cmdline args force mode [1/1]
PD#SWPL-180337

Problem:
wifi/bt driver passes the kernel args in
uboot.

Solution:
Read args and if it is set, set the usb2phy to 960m mode.

Verify:
br201.

Change-Id: I07d057866441b13d451023bdcd4b5d985a6d941b
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2025-06-09 13:54:48 +09:00
dian.shao 430f9bfce5 usb: set controller power bug [1/1]
PD#SWPL-183487

Problem:
m31u2phy soc kernel panic.

Solution:
don't call set controller power for old
m31u2phy platform

Verify:
s5

Change-Id: I013c47cfdce2661abc038253f518b4b91c852345
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2025-06-09 13:54:48 +09:00
dian.shao ea763435d6 usb: str power optimise [1/1]
PD#SWPL-183487

Problem:
AVDD18_AUDIO high.

Solution:
Power off controller when str.

Verify:
br301

Change-Id: I7fa56ca3449df6196cd0e6e7d0ee9ba108712928
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2025-06-09 13:54:48 +09:00
dian.shao 2be95731b1 usb: controller ost trim [1/1]
PD#SWPL-180337

Problem:
USB controller outstanding too high.
This leads to transfer halt and xhc die.

Solution:
Trim controller outstanding.

Verify:
BR301.

Change-Id: I323c8626c5caacc011f663ab6850acca802321db
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2025-06-09 13:54:48 +09:00
dian.shao 06ee648614 usb: too much logs [1/1]
PD#SWPL-183176

Problem:
Too much USB log

Solution:
Set logs funcs to private apis.

Verify:
br301

Change-Id: Ia2935fd3bfd2159db0184c6767320709a2872d85
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2025-06-09 13:54:48 +09:00
dian.shao ad1074fe42 usb: t6d udc str resume err & pll src bug [1/1]
PD#SWPL-182164

Problem:
T6D udc phy reg val reset during
STR leads to udc dead.

pll src switch mode err matching.

Solution:
Don't reset phy reg val during str.
Fix mode switch code.

Verify:
br301

Change-Id: Ibc3a788f3e3dd68e8261b7d5c6d0483eeaff9fce
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2025-06-09 13:54:48 +09:00
dian.shao c776707ef7 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>
2025-06-09 13:54:48 +09:00
dian.shao 8ca1d01484 usb: t6d otg function [1/1]
PD#SWPL-180337

Problem:
t6d otg function.

Solution:
modify driver.

Verify:
br309.

Change-Id: I1ac4bbc3fac9451a3f42cbcd84845451731a6a30
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2025-06-09 13:54:48 +09:00
dian.shao 21b08f9ed8 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>
2025-06-09 13:54:48 +09:00
he.he ad1942c11f usb: Bad Slot ID [1/1]
PD#SWPL-179969

Problem:
xhci-hcd-meson xhci-hcd-meson.0.auto:
Bad Slot ID 3

xhci-hcd-meson xhci-hcd-meson.0.auto:
Could not allocate xHCI USB device data structures

xhci-hcd-meson xhci-hcd-meson.0.auto:
Unsuccessful disable slot 0 command, status 11

usb usb1-port2: couldn't allocate usb_device

Solution:
don't disable slot 0

Verify:
t3

Change-Id: I92754abd0ddf6ec3c674c5fb714e6db1969ff1a1
Signed-off-by: he.he <he.he@amlogic.com>
2025-06-09 13:54:48 +09:00
he.he c048f491bd usb: panic [1/1]
PD#SWPL-178364

Problem:
setenv otg_device 0;
saveenv
reboot
and panic
Because 0;  can cause otg_mode_string array
out of bounds.

Solution:
Replace sprintf and strcmp with snprintf and strncmp

Verify:
c3

Change-Id: I561d4d0af7dc1068a040919fd906aa0757c19604
Signed-off-by: he.he <he.he@amlogic.com>
2025-06-09 13:54:47 +09:00
he.he 89895b664b 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>
2025-06-09 13:54:47 +09:00
he.he 26805662c4 usb: paninc when usb mode changing to device mode [1/1]
PD#SWPL-174364

Problem:
watchdog: BUG: soft lockup - CPU#0 stuck for 45s!
stuck in the mutex_lock in crg_otg_write_UDC
Bug: SH-20203

Solution:
change mutex_lock to mutex_trylock

Verify:
t7

Change-Id: I26ceb79f3ff53a47dec185d7ce71040b629d7216
Signed-off-by: he.he <he.he@amlogic.com>
2025-06-09 13:54:47 +09:00
he.he 4b47e5634c usb: black screen display after monkey test [1/1]
PD#SWPL-173442

Problem:
Memory leakage
open usb 2.0 camera fail:SH-20175

Solution:
related host 011

Verify:
t3

Change-Id: I3bd52c35f2aef31f3cb4dbb2eb50f97962d0b032
Signed-off-by: he.he <he.he@amlogic.com>
2025-06-09 13:54:47 +09:00
he.he d45c5fd684 usb: special disk causing hub_set_address hang up [1/1]
PD#SWPL-171027

Problem:
Command completion event does not match command,
since when xhci_abort_cmd_ring and
the other command enqueue at the same time
casue to wait_for_completion stuck:

xhci-hcd xhci-hcd.2.auto:
ERROR mismatched command completion event
SET ADDRESS, command->status=25
xhci-hcd xhci-hcd.2.auto:

Timeout while waiting for setup device command
address--E: hub_port_init, 4952
address--S: hub_port_init, 4950
que:CMD-TRB=000000000bd71186, deq=000000000bd71186
xhci_cleanup_command_queue, 1672
SET ADDRESS, command->status=25

xhci-hcd xhci-hcd.2.auto:
Timeout while waiting for setup device command
address--E: hub_port_init, 4952
usb 6-1: device not accepting address 67, error -62
que:CMD-TRB=00000000063428ae, deq=00000000063428ae
irq:CMD-TRB=00000000063428ae, deq=000000000bd71186

xhci-hcd xhci-hcd.2.auto:
Command completion event does not match command

xhci-hcd xhci-hcd.2.auto:
ERROR mismatched command completion event

Solution:
when xhci_complete_del_and_free_cmd must dequeue the command

Verify:
t5m

Change-Id: I401fba241bf5e0f22a680c684853ec1ec2124fe4
Signed-off-by: he.he <he.he@amlogic.com>
2025-06-09 13:54:47 +09:00
Yue Wang 7ad53ae5dc USB: dequeue do not delay in ISOC mode [1/1]
PD#SWPL-170453

Problem:
1.When UAC dequeue ISOC OUT,the mdelay will block ISOC IN transfer.

Solution:
1.dequeue do not delay in ISOC mode.

Verify:
AV400

Change-Id: I05bc712fecdc7d47e069191aed9efe2e804d5d8c
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
2025-06-09 13:54:47 +09:00
dian.shao 3fb788890c usb: std [1/1]
PD#SWPL-165147

Problem:
kernel5.15 STD for General Drivers - usb

Solution:
udc
Add thaw&pm_nb in crg_udc.c

host
Modify phy-aml-crg-drd-usb3.c, remove "return" in init.
STR: crg_suspend -> crg_resume
STD: crg_suspend -> crg_shutdown -> hw power off-> crg_resume
Since the regs lose content when powered off, phy init should be
done again. This is test to be compatible with the STR flow.

otg
Add freeze/thaw/restore methods in phy-aml-crg-drd-otg.c
Fix init/exit broken flag by introducing self-recorded flags
in crg-drd.c&crg_udc.c.

Verify:
a311d2_an400

Change-Id: I686463fd3a4167bd216aa29bfdd5c8e8c2358faa
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2025-06-09 13:54:47 +09:00
he.he d3a5c7b412 usb: xhci not responding [1/1]
PD#SWPL-155224

Problem:
irq: nobody cared (try booting with the irqpoll option)
handlers:
[<0000000065ca241a>] usb_hcd_irq
Disabling IRQ #usb

Solution:
usb interrupt is coming,
but the op_regs->status register equals 0, if exit directly,
it may cause the status to remain at 0 and cause xhci to
falsely hang.

Verify:
t3x.

Change-Id: I9b643c13b364ab86bb38384551bcb5008680c1ec
Signed-off-by: he.he <he.he@amlogic.com>
2025-06-09 13:54:47 +09:00
he.he 85e19393a8 usb: xhci died [1/1]
PD#SWPL-154920

Problem:
when suspend, xhci died

Solution:
After stopping ep completed, processing xhci suspend

Verify:
t3x

Change-Id: I0e013164acebb1516938245bb2997c20790bc71c
Signed-off-by: he.he <he.he@amlogic.com>
2025-06-09 13:54:47 +09:00
qinghui.jiang d5b3d0c8a0 amvecm: ai pq scene change wrong [1/1]
PD#SWPL-209633

Problem:
effect change blocked by color_th patch.

Solution:
remove color_th patch.

Verify:
s905x5

Change-Id: I0a32e1ffc7312216a2c5404919eac563580e78d0
Signed-off-by: qinghui.jiang <qinghui.jiang@amlogic.com>
2025-06-09 13:54:47 +09:00
chen.xu 71c516fa65 video_composer: AIPQ scene detection anomaly [1/1]
PD#SWPL-206712
PD#SWPL-206975

Problem:
decoder output NV12 format, aipq need support.

Solution:
ge2d need config NV12 format src.

Verify:
T5M

Change-Id: I73b853ff490887f610b2afd538a596dc1105c012
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2025-06-09 13:53:13 +09:00
qinghui.jiang 9723222500 amvecm: dnlp base value setting for ai pq [1/1]
PD#SWPL-206992

Problem:
no setting dnlp base value for ai pq.

Solution:
add setting flow.

Verify:
s905x5

Change-Id: I5cedbc188b93718879ba683db605b443228c126b
Signed-off-by: qinghui.jiang <qinghui.jiang@amlogic.com>
2025-06-09 13:53:13 +09:00