Commit Graph

2974 Commits

Author SHA1 Message Date
Huqiang Qin 0df05afc0c saradc: c1: support saradc [1/1]
PD#SWPL-121166

Problem:
C1 Bringup

Solution:
c1 Bringup

Verify:
C1/AE400

Change-Id: I3c7ade4c25ca1a13a6a49a45797b75741a6f08bb
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2023-07-07 12:49:29 +08:00
Huqiang Qin 9438079354 wdt: c1: support watchdog [1/1]
PD#SWPL-121161

Problem:
C1 Bringup

Solution:
C1 Bringup

Verify:
C1/AE400

Change-Id: Ibdcfd4ee36146bc7d91ae6b061d16c10cb28b17b
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2023-07-07 12:49:29 +08:00
Yu Tu c8506fefff uart: bringup c1 uart [1/1]
PD#SWPL-121178

Problem:
need bringup c1 uart

Solution:
add c1 uart config

Verify:
c1_ae400

Change-Id: I73594f0ab58491ea447b77dc39e03497681c7af7
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2023-07-07 12:49:29 +08:00
yiting.deng 2d15695777 vrtc: c1 vrt bringup [1/1]
PD#SWPL-121100

Problem:
c1 vrt bringup

Solution:
c1 vrt bringup

Verify:
c1_ae400

Change-Id: Ibcb198233cdb0e07caff916496b3b4a2ddd8423f
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2023-07-07 12:49:29 +08:00
dian.shao d333f08656 usb: c1bringup [1/1]
PD#SWPL-121184

Problem:
c1 boards bringup.

Solution:
modify the dts.

Verify:
ae400.

Change-Id: I994ca2192b7baca961fcba0c446e4313e65a4628
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2023-07-07 12:49:28 +08:00
Chuan Liu e3d9857b0f clk: c1: clock tree bringup [1/1]
PD#SWPL-121112

Problem:
clock tree bringup for c1

Solution:
support

Verify:
c1_ae400

Change-Id: Iaeacc52b6ac8266604614c2394d4a867e6edc203
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2023-07-07 12:49:28 +08:00
pengzhao.liu 39f8c0869b kernel: c1 enable dmc [1/1]
PD#SWPL-121081

Problem:
c1 enable dmc

Solution:
c1 enable dmc

Verify:
AE400-C308X

Change-Id: I4b05adcad18f55ba77848806dbf85cc255035901
Signed-off-by: pengzhao.liu <pengzhao.liu@amlogic.com>
2023-07-07 12:45:20 +08:00
hongyu.chen1 8efd19d573 C1: add power domain. [2/2]
PD#SWPL-121104

Problem:
need power domain support.

Solution:
add power domain in kernel.

Verify:
ae400

Change-Id: Ie75767e4c4107fffc8e085755d800342ce690a7b
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2023-07-07 12:45:20 +08:00
Zelong Dong 2064f0eb3f reset: add reset controller support for c1 [1/1]
PD#SWPL-121119

Problem:
don't support c1 platform

Solution:
add reset controller support for c1

Verify:
c1_ae400

Change-Id: Iaac065cd9ecc5f7e86b5f3f58941d41a3dac2849
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2023-07-07 12:45:20 +08:00
Qianggui Song 7c1ed0cde2 pinctrl: c1: add c1 pinctrl driver data [1/1]
PD#SWPL-121123

Problem:
Need to support c1 pinctrl driver & gpio irq function

Solution:
1.add c1 pinctrl driver data
2.gpio irq same as c2 compatible

Verify:
c1_ae400

Change-Id: I29d6553643dd0c164635ce1a0369ca8ad6b268ec
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2023-07-07 12:45:20 +08:00
pengzhao.liu e2515b3c23 kernel: c1 kernel bringup [1/1]
PD#SWPL-121076

Problem:
c1 kernel bringup

Solution:
c1 kernel bringup

Verify:
AE400-C308X

Change-Id: Ica758daab67c582a2647bb4ca1e7d9fa58d62e0c
Signed-off-by: pengzhao.liu <pengzhao.liu@amlogic.com>
2023-07-07 12:45:20 +08:00
xia.jin 75efa4a45c t7: rtos mipi irq miss frequently when booting kernel [1/1]
PD#SWPL-128739

Problem:
rtos mipi irq miss frequently when booting kernel

Solution:
mark gic distributor disable

Verify:
t7

Change-Id: I99d84ee722a71d5aa4ec3f5349e85c907b9ba229
Signed-off-by: xia.jin <xia.jin@amlogic.com>
2023-07-06 14:43:51 -07:00
haitao.liu 2630cf1a8b vdin: some chips donot need check vsync duration [1/1]
PD#SWPL-130891

Problem:
wrong vsync duration check cause black screen

Solution:
some chips do not check vsync duration temporarily

Verify:
t7&t3&t5w&t5m

Change-Id: I5d48d08374df4128be455365e005bdf4216aa1e6
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2023-07-06 14:43:47 -07:00
hai.cao df0451c307 osd: can not get uboot parameter [1/1]
PD#SWPL-129358

Problem:
drm get parameter first

Solution:
fix it

Verify:
txhd2

Test:
DRM-OSD-1 DRM-OSD-2

Change-Id: Ib0a4212380cc7e95943a5d407e9c378f8b33ded3
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2023-07-06 06:55:30 -07:00
qiang.liu a45fdbc53d adc: change be311 config value [1/1]
PD#SWPL-129869

Problem:
be311 config value not good

Solution:
change be311 config value

Verify:
txhd2

Change-Id: Ifc9163b15efd2b44dec7fc30135fbf52c67aa488
Signed-off-by: qiang.liu <qiang.liu@amlogic.com>
2023-07-06 06:55:26 -07:00
Brian Zhu fb3fe1637e vpp: improve vskip logic for prelink [1/1]
PD#SWPL-130591

Problem:
vskip check need be improved for prelink

Solution:
Change logic for vskip check

Verify:
Verified on t5m

Change-Id: I2727b527b28755e70148ddd9886a6bd01c646990
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2023-07-06 05:10:59 -07:00
Gaowei Zhao e7c59a41cc hdmirx: fix EMP DDR error [1/1]
PD#SWPL-128981

Problem:
hdr,hlg,hdr10 does not work

Solution:
fix emp parse error

Verify:
t7b

Change-Id: Id478ca3c369aac70ab68601472406b78719f5e58
Signed-off-by: Gaowei Zhao <gaowei.zhao@amlogic.com>
2023-07-06 03:06:14 -07:00
Gaowei Zhao 8b25d0deb7 hdmirx: clear emp data when only dv hdr flag change [1/1]
PD#SWPL-130545

Problem:
emp data not clear when only dv flag change

Solution:
clear emp data when only dv hdr flag change

Verify:
t5m

Change-Id: Ia04a077cc88c0d5f5bd42b0eacd8f50abebca62b
Signed-off-by: Gaowei Zhao <gaowei.zhao@amlogic.com>
2023-07-06 03:06:10 -07:00
Pengcheng Chen 88676d78f4 vpp: p010 bit_mode = 0 when decoder used high 10bit [1/1]
PD#SWPL-130452

Problem:
when decoder used high 10bit, vpp display abnormal

Solution:
p010 bit_mode = 0 when decoder used high 10bit

Verify:
t3x

Change-Id: I9dfbafb4bbfdbacce642e02694a6e16f3302e4cf
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2023-07-06 01:21:48 -07:00
Lei Yang 9023b4b6ec hdmirx: support clkrate retry [1/1]
PD#SWPL-126871

Problem:
special TX does not send scdc message after HPD high

Solution:
do software retry for scdc rate and scramble

Verify:
T7C

Change-Id: If1f1df0515272bd4f8847aca69b0f748452b8a8b
Signed-off-by: Lei Yang <lei.yang@amlogic.com>
2023-07-06 01:21:43 -07:00
Wanwei Jiang e542675e9e android: support gki2.0 gki1.0 and nonGKI [1/1]
PD#SWPL-130287

Problem:
support gki2.0 gki1.0 and nonGKI

Solution:
support gki2.0 gki1.0 and nonGKI

Verify:
ohm

Change-Id: I1529b253f58c814979fa48de4cf960b34b1aff16
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-07-05 22:45:20 -07:00
nengwen.chen b66cafed3f atv_demod: add afc enable and state IO control (V3.01) [1/1]
PD#SWPL-130623
PD#TV-71700

Problem:
add afc enable and state IO control.

Solution:
add afc enable and state IO control.
fix nicam bg output again.
AMLATVDEMOD_VER "V3.01"

Verify:
verified by t5d.

Change-Id: I909908e1f0369d2010ec92cc9c50ce33b0cd3e42
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2023-07-05 22:45:10 -07:00
Jianxiong Pan e61f35dc14 zapper: memory optimization about usb3, defconfig. [2/2]
PD#SWPL-126879

Problem:
memory optimization.

Solution:
disable usb3
delete useless config

Verify:
t215.

Change-Id: Ie23b7cd2e1ca96100a2534928293d8211917622a
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-07-05 21:03:06 -07:00
Qianggui Song d5d2ebefd2 dts: txhd2: add reva device tree [1/1]
PD#SWPL-130543

Problem:
Need to bringup txhd2 revb

Solution:
copy current txhd2 reva device tree.
owner.

Verify:
txhd2_reva

Change-Id: Ib4d290ec09da4bba4d045f9d2195f390ba1f7ce0
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2023-07-05 06:51:21 -07:00
dabing.qi 260ec6310b hwc: add more debug info in videotunnel [1/1]
PD#SWPL-125646

Problem:
add more debug info in videotunnel

Solution:
add more debug info in videotunnel

Verify:
t3

Change-Id: I1bf0cb89d9d22550a91c43d4b039c0ace0dbcd3d
Signed-off-by: dabing.qi <dabing.qi@amlogic.com>
2023-07-05 06:51:15 -07:00
haitao.liu 6822acbaed vdin: sync bug fixes code from projects [1/1]
PD#SWPL-128695

Problem:
fixed some issues on projects,need sync back into trunk
1.game mode switch cause video freezing
2.app start decoder with wrong args casue problem
3.rx signal changed fast cause app got wrong vrr state
4.app may call ioctl to control in v4l2 mode
5.vdin vsync abnormal cause afbce memory access violation

Solution:
1.recycle vf after game mode change
2.improve driver workflow
3.improve signal detect flow
4.add ioctl args check when in v4l2 mode
5.filtering abnormal vdin vsync

Verify:
t7/t5m

Change-Id: I90be40c1a16239f63dc682a34bde2b920128e62e
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2023-07-05 06:51:03 -07:00
Qianggui Song 6403737bed zapper: Memory optimizations after txhd2 merge trunk [1/1]
PD#SWPL-130072

Problem:
Zapper size increase after txhd2 merge back to trunk

Solution:
optimize some code and add macro to reduce size
module: pinctrl, clk-measure, adc, audio, tvin, dtv_demod
ddr_port_desc, and amvecm

Verify:
Zapper

Change-Id: I0c781a657811cf664ffdbb4d9c18060e9b39554e
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2023-07-05 03:10:39 -07:00
congyang.huang 951587c2fb vout: support vout meas ctrl [1/1]
PD#SWPL-125828

Problem:
no vout meas ctrl

Solution:
add vout meas ctrl

Verify:
txhd2

Change-Id: Ib6349d556104a5d557915f49aeac8ba6dd67d538
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2023-07-05 03:10:35 -07:00
yiting.deng 3b005b390a clk: fix t3 cpu clk [1/1]
PD#SWPL-128811

Problem:
When t3 describes the same frequency, the corresponding
defined frequency is different.

Solution:
unify frequency to 666666666Hz

Verify:
t3_t965d4

Change-Id: Ifd1c1deb5a21869f3fd506a7c2974a4352e3e318
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2023-07-04 23:06:46 -07:00
yi.liu ff1544e30d amlbian: recovery hdmitx dummyl mode [1/1]
PD#SWPL-130055

Problem:
the dummy connector will be as the physic connector.

Solution:
recovery hdmitx dummyl mode.

Verify:
local

Signed-off-by: yi.liu <yi.liu@amlogic.com>
Change-Id: Ie8a4cd5fb9f144dd498658a8c72edffd09579da1
2023-07-04 21:08:48 -07:00
Sunny Luo 8620a28dac spi: spicc(v2) add dma sg mode support [1/1]
PD#SWPL-119667

Problem:
spicc(v2) add dma sg mode support

Solution:
spicc(v2) add dma sg mode support

Verify:
T3X BC309

Change-Id: I9ecfcee3e8456c3d857b205cafc6a1b6130a2214
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
2023-07-04 21:08:41 -07:00
Wanwei Jiang 0a519f6984 build: support --use_prebuilt_gki [1/1]
PD#SWPL-130219

Problem:
support --use_prebuilt_gki

Solution:
support --use_prebuilt_gki

Verify:
local

Change-Id: I32515737f5663b798f23ee2c69ce4b766ee1c5e6
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-07-04 07:07:56 -07:00
chen.xu 6e3fad73b3 txhd2: config dts for picdec [1/1]
PD#SWPL-127653

Problem:
need config dts for picdec

Solution:
1.need config dts for picdec

Verify:
txhd2

Change-Id: I712c69e6e3a3ff4b0cde2d1bc7faf3405c811f80
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2023-07-04 07:07:53 -07:00
dongfei.li 8a63aefaf9 frc: frc separated film mode define [1/1]
PD#SWPL-129349

Problem:
separated film mode for drv and alg

Solution:
separated film mode for drv and alg

Verify:
T5M

Change-Id: I6fb9fe7adbe63192b9ee897a0704b4385d47b982
Signed-off-by: dongfei.li <dongfei.li@amlogic.com>
2023-07-04 07:07:49 -07:00
shaochan.liu b5ab39b2b5 lcd: provide UAPI headers for lcd module [1/1]
PD#SWPL-127314

Problem:
provide uapi headers for user space

Solution:
add lcd uapi headers

Verify:
kernel5.15

Change-Id: Ia2fdd6b0b50ecdfbe31049b21b2b1cd6f90d833a
Signed-off-by: shaochan.liu <shaochan.liu@amlogic.com>
2023-07-04 07:07:44 -07:00
dian.shao 735a564148 usb: usb3.0 not recognized [1/1]
PD#SWPL-130372

Problem:
TV cannot recognize USB3.0 udisk due to
"do not use 3.0 clock" patch of the dwc3
in the common repository.

Solution:
modify prop of the dts node dwc3:
maximum-speed = "super-speed"

Verify:
sc2

Change-Id: I2f4968140ba88dfe6ce5674db91ee87f96220ad2
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2023-07-04 03:03:18 -07:00
Brian Zhu 70cc039ffa deinterlace: update the reference buffer flow [1/1]
PD#SWPL-129271

Problem:
di use the reference buffer was been free

Solution:
modify the reference buffer flow

Verify:
t5m

Change-Id: I10030d892107e3a534ad400b1b4487ae3a90260f
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2023-07-04 03:03:13 -07:00
sky zhou a0b4946751 hdmitx: fix t7c bootup fail issue due to regression [1/1]
PD#SWPL-125155

Problem:
T7C could not bootup after applying below CLs
commit 419a23e440
("hdmitx: move format_para to hdmitx common [1/1]")
commit 1f858a9ac0
("hdmitx: move vinfo out from format_para [1/1]")

The above CLs change hdmitx21_get_fmtpara return value,
it lead to display mode setting flow fail

Solution:
reapply these two CLs and check the return value correctly.
This reverts commit 7c11b56e59
("T7C: fix unable to boot after connecting with TX")

Verify:
an400

Test:
DRM-TX-17, DRM-TX-19, DRM-TX-8

Change-Id: I8793305a919cd3979ed37cc12539102dbdb9bfe0
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
2023-07-04 03:03:05 -07:00
nengwen.chen 2c5b7d51fa dtv_demod: fixed T2 unlock on T5M/T3X (V3.2.014) [1/1]
PD#SWPL-126562

Problem:
T2 unlock first then lock when tuning.

Solution:
add t2 ddr clock reset and arbit control when tune (t5m/t3x)..
AMLDTVDEMOD_VER "V3.2.014".

Verify:
verified by T5M.

Change-Id: Ica226a058581188f1fc58983e878493cbfbf3ab2
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2023-07-04 03:03:02 -07:00
nengwen.chen 31028416a3 dts: t3x: fix r842 xtal cap [1/1]
PD#SWPL-122297

Problem:
fix r842 xtal cap.

Solution:
fix r842 xtal cap.

Verify:
T3X.

Change-Id: Id00bdbc59072498378d886b65b039c559bda76a2
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2023-07-04 03:02:45 -07:00
Jie Dai 692ec9db49 lcd: close dither function in tconless panel [1/2]
PD#SWPL-129809

Problem:
venc dither should not be opened in tconless panel

Solution:
close dither in tconless panel

Verify:
bc302

Change-Id: I40ce60746be6efdcb40eaad00eee280d43524141
Signed-off-by: Jie Dai <jie.dai@amlogic.com>
2023-07-03 21:15:34 -07:00
Pengcheng Chen bbccb4696c vpp: add vpp post in padding for t3x [1/1]
PD#SWPL-130207

Problem:
add vpp post in padding for t3x

Solution:
add vpp post in padding for t3x

Verify:
t3x

Change-Id: I7b2b9ffcfcc87ce1f15d9107ee1dab4849fffd53
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2023-07-03 21:15:30 -07:00
hongyu.chen f8769ebf3d smartcard: fix misreporting insert and remove event. [1/1]
PD#SWPL-126157

Problem:
The gpio has jitter when the system is powered on.

Solution:
GPIO without jitter, read the gpio status again after a delay.

Verify:
S905C2/AH232

Change-Id: I30a8825b225ff9af5938aaf96537b068b5b71dc7
Signed-off-by: hongyu.chen <hongyu.chen@amlogic.com>
2023-07-03 21:15:28 -07:00
Qianggui Song f5dee22780 Revert "deinterlace: vbone 4K reverse screen [1/1]"
PD#SWPL-129104

This reverts commit 700c8571a1.

Change-Id: I63b5d5e77a117ad2b9ae2037b7969b44aa6e5c4d
2023-07-03 03:11:05 -07:00
Zhuo Wang 63f04d8dcd eth: txhd2 resume eth0 link down [1/2]
PD#SWPL-128836

Problem:
txhd2 resume eth0 down

Solution:
txhd2 use new pll

Verify:
be311

Change-Id: I76559d8f82c18f1c7b54f023c1c993698f853d4b
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
2023-07-03 03:11:00 -07:00
Yongjie Zhu cc939ef831 gpu: remove clk288_cfg node [1/1]
PD#SWPL-128873

Problem:
txhd2 gpu clock warning when bootup

Solution:
remove clk288_cfg node

Verify:
txhd2

Change-Id: I1d803d1ef66148a24530abc6f651f68e23488991
Signed-off-by: Yongjie Zhu <yongjie.zhu@amlogic.com>
2023-07-03 01:46:47 -07:00
qinglin.li 7c257b8aa7 abi: remove symbol have been commit to google [1/1]
PD#SWPL-129165

Problem:
remove symbol have been commit to google

Solution:
remove symbol have been commit to google

Verify:
local

Change-Id: I25c9da6662a7ae8f2de4761dd0b98b13fc24c7ed
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-07-02 21:03:48 -07:00
dabing.qi b9dc646282 videotunnel: add support for txhd2 [1/1]
PD#SWPL-129254

Problem:
bringup video tunnel for txhd2

Solution:
enable videotunnel for txhd2

Verify:
P+5.15+TXHD2

Change-Id: I17361da4d9a0d4bd7772ab000bcf6fe0e2f4d665
Signed-off-by: dabing.qi <dabing.qi@amlogic.com>
2023-07-01 02:48:31 -07:00
jin.wang 44fb837c6b Camera: increase codec_mm to 560M [1/1]
PD#SWPL-128182

Problem:
codec mm alloc buffer fail

Solution:
increase codec_mm 52M

Verify:
T7C

Change-Id: Ia87e654b174d892491d83fcf6ffc37ed4fd48b4f
Signed-off-by: jin.wang <jin.wang@amlogic.com>
2023-07-01 02:48:21 -07:00
yi.liu 57f0e4a7d9 amlbian: T7b support debian [1/1]
PD#SWPL-129468

Problem:
T7b support debian.

Solution:
T7b support debian.

Verify:
local

Signed-off-by: yi.liu <yi.liu@amlogic.com>
Change-Id: Iad8ab7abf953028ac2c0afb0fe9c671a5001b88f
2023-06-30 14:57:33 -07:00