Commit Graph

370 Commits

Author SHA1 Message Date
Jian Hu 8b11ef34f6 t5w: add basic dts and basic driver [1/1]
PD#SWPL-113237

Problem:
t5w bringup

Solution:
1. add arm/arm64 dts
2. add clock driver
3. add gpio/pinctrl driver

Verify:
t5w at301

Change-Id: I04123e6de92f1ecd84bad81a68bc993fa73d2d2d
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2023-04-27 06:47:58 +00:00
song.han 820797e318 iotrace: add ramoops_io_dump support [1/1]
PD#SWPL-119464

Problem:
add ramoops_io_dump support

Solution:
add ramoops_io_dump bootargs to support dump iotrace log

Verify:
SC2_AH212

Change-Id: Ie0eef9bf2cb269f82d2d01872d2515695666bb15
Signed-off-by: song.han <song.han@amlogic.com>
2023-04-25 06:28:18 -07:00
hai.cao f3a4d4a616 video: add vpu_security support [1/1]
PD#SWPL-114680

Problem:
no vpu_security

Solution:
add vpu_security support

Verify:
s5

Change-Id: I5b5a692b428e46b6df4c59942db821b82f8f5024
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2023-04-23 21:09:59 -07:00
xiang.wu1 86d7b9cc94 hdmitx21: sync 5.4 code to 5.15 [1/1]
PD#SWPL-106012

Problem:
need sync 5.4 code to 5.15

Solution:
sync code

Verify:
an400.

Test:
DRM-TX-17

Change-Id: Ic4479bbf570989b98b093ca92069adea06860511
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2023-04-21 04:11:59 -07:00
haitao.liu cbf37fd649 vdin: add osd only support for screencap [1/1]
PD#SWPL-120413

Problem:
no osd only loopback point for screencap

Solution:
1.add osd only enumeration for amlvideo2.0

Verify:
T963d4

Change-Id: I60bf252275bad9007e8349dd47146f0a7a2cb830
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2023-04-20 21:14:10 -07:00
qiyao.zhou c137cb89fb aiface: support aiface [1/2]
PD#SWPL-119102

Problem:
support aiface

Solution:
sync aiface feature from 5.4 to 5.15

Verify:
t3

Change-Id: I1599ddc09bbc368c57c9c701c32f458130c122b2
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2023-04-20 06:16:07 -07:00
song.han 29925ebc8a debug: iotrace driver follow gki 2.0 [2/2]
PD#SWPL-109963

Problem:
iotrace driver need follow gki 2.0

Solution:
iotrace driver build to ko

Verify:
sc2_ah212

Change-Id: I472bc63b6594c58d7c94f74e1bf1a070978b20fd
Signed-off-by: song.han <song.han@amlogic.com>
2023-04-20 06:15:21 -07:00
xinli.gao 70482b1592 gpu: remove fixed-area [1/1]
PD#SWPL-120307

Problem:
GPU no longer uses fixed-area

Solution:
Remove fixed-ared

Verify:
t5m

Change-Id: If7634558ebf89078dc2d1eb9256f382227a2f7f5
Signed-off-by: xinli.gao <xinli.gao@amlogic.com>
2023-04-19 22:11:36 -07:00
min.yang e8e4b59479 dvb_extern: remove symbol func (V1.12) [1/1]
PD#SWPL-118484

Problem:
symbol func not be allow used in U 5.15.

Solution:
remove reference symbol function.

Verify:
verified by T + ohm.

Change-Id: If8c0561f4e5e9b7886f494f50e7c6464aa332b0e
Signed-off-by: min.yang <min.yang@amlogic.com>
2023-04-18 06:12:16 -07:00
Dezhi Kong 3192d284ef uvm: add dummy data process [1/1]
PD#SWPL-108384

Problem:
mali dma map error when exit video play

Solution:
add dummy data process

Verify:
T5M

Change-Id: I833a61fc007a0b6b620f64ee44fce8f158fb0819
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
2023-04-18 00:26:12 -07:00
Bin.Wang2 ed794d59e2 amvecm: add fw white extension [1/2]
PD#SWPL-95687

Problem:
add fw white extension feature

Solution:
add fw white extension

Verify:
verify on T3

Change-Id: Ia86d4ccb1c8c246f017a868da675c8dbeff14d71
Signed-off-by: Bin.Wang2 <bin.wang2@amlogic.com>
2023-04-17 02:23:14 -07:00
Jian Cao 2796ae1550 gdc: add endian support [1/1]
PD#SWPL-116164

Problem:
add endian support

Solution:
add this support

Verify:
t7

Change-Id: Id6934ccd7bbfb98dc95f157704f7763808f7373a
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2023-04-16 22:32:14 -07:00
chengbing.wu 29655631ae pmic: a1 k5.15 pmic and sub driver porting [1/1]
PD#SWPL-112358

Problem:
ad403 is missing pmic6b driver in kernel5.15.

Solution:
base Yu Tu 76117 and 78726;
base Jian yi 189702 and 192916,216774;
and yao jie 216898;

Verify:
A113L-AD401 #1 +Battery.
all driver use ko;

Change-Id: I911ca92dbe6f8c0f623e32fd14bdcf23a6318861
Signed-off-by: chengbing wu <chengbing.wu@amlogic.com>
2023-04-16 22:32:09 -07:00
xiang.wu1 c079e62c7e hdmitx: Add more debug info of hdmitx [1/1]
PD#SWPL-110984

Problem:
Need add more debug info of hdmitx

Solution:
Add more debug info of hdmitx
1.hdmitx_basic_config
2.hdmitx_pkt_dump
3.hdmitx_debug_reg

Verify:
ah212

Change-Id: Ie28e9842ec6a63469242450df0de413f5e5252c5
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2023-04-16 09:09:21 -07:00
Long 4791f52e8a S5: fixed sdcard timing. [1/1]
PD#SWPL-108753

Problem:
rx window compatibility is poor in sdcard sdr104 mode.

Solution:
fixed sdcard sdr104 core_phase

Verify:
S5 ax201

Change-Id: I9c4eb90001803d5dae17c9659fa261a8204e00f3
Signed-off-by: Long <long.yu@amlogic.com>
2023-04-15 08:59:04 +08:00
Wenjie Qiao e8bc8efa30 hdmitx21: s5 bringup for 5.15 [1/1]
PD#SWPL-108774

Problem:
5.15 not support s5

Solution:
add s5 support for 5.15

Verify:
s5

Test:
DRM-TX-17

Change-Id: I6d53e50dad65b95cb48b037091072fa8f5e96e27
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2023-04-15 08:59:04 +08:00
tuan zhang d410418b0c bringup: Porting S5 on kernel5.15 [1/1]
PD#SWPL-108694

Problem:
Porting S5 on kernel5.15.

Solution:
Porting S5 on kernel5.15.

Verify:
S928X-AX201

Change-Id: I0ef2bc47aa5d63752ffb70516c9fa19a8578af80
Signed-off-by: tuan zhang <tuan.zhang@amlogic.com>
2023-04-15 08:55:56 +08:00
Jianxiong Pan 08a4e70bcf mm: add support pagetrace modularization. [1/1]
PD#SWPL-112188

Problem:
pagetrace not meet gki requirement.

Solution:
add support pagetrace modularization.

Verify:
t5m_ay301.

Change-Id: If13e80713bed25b192c3a6138ed6c6d26d6939a9
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-04-13 00:50:34 -07:00
Wenjie Qiao a48675a1ac hdmitx: Adapt to low-resolution standard display [2/2]
PD#SWPL-105075

Problem:
Adapt to low-resolution standard display

Solution:
modify the clk

Verify:
g12a/sc2

Change-Id: Id6f20faca18fc5602f86768134765dc79258e6e4
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2023-04-12 04:46:31 -07:00
Long 5ec6ff86a3 sdio: config autoclock for c3. [1/1]
PD#SWPL-115224

Problem:
don't config auto clock

Solution:
config auto clock

Verify:
c3

Change-Id: I5479d9c58e8365655b89d9b98a6213a74002755b
Signed-off-by: Long <long.yu@amlogic.com>
2023-04-10 06:14:03 -07:00
jialong.jiang 5333c3be01 hdr: android U support hdr output policy [1/1]
PD#SWPL-110886

Problem:
no hdr output policy

Solution:
add get_hdr_conversion_cap
add get_hdr_cur_output
add set_hdr_output
add attr protection in dv

Verify:
android U

Test:
self-test

Change-Id: Ieaa49f92cda0a6e053b0436d5217fe9e83a825e2
Signed-off-by: jialong.jiang <jialong.jiang@amlogic.com>
2023-04-07 02:10:56 -07:00
xiang.wu1 53da4516c3 hdmitx: Extend the waiting time for the first boot hdcp authentication [1/1]
PD#SWPL-116717

Problem:
After the upgrade of aq2432 in yocto, it takes a long
time to start the service for the first time, lead hdcp
authentication failed

Solution:
Extend the waiting time for the first boot hdcp authentication

Verify:
aq2432

Change-Id: I13f541edd86b9f65fe8430fab59a4a8c266ecec2
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2023-04-06 22:17:24 -07:00
zhipeng.he ea2660a4d9 vdec: CF2 add dtv_amlvideo_amvideo pipeline [1/1]
PD#SWPL-109640

Problem:
no dtv_amlvideo_amvideo pipeline

Solution:
add dtv_amlvideo_amvideo pipeline

Verify:
AQ2432

Change-Id: If27dd75107bd5507d47a5f2a465d6cec30058772
Signed-off-by: zhipeng.he <zhipeng.he@amlogic.com>
2023-04-05 22:13:19 -07:00
shufei.zhao 7f2d3ec975 uapi: add license [2/2]
PD#SWPL-113370

Problem:
uapi file is missing a license

Solution:
Add license

Verify:
local

Change-Id: I021e400e794235ea51a1c77edf685d046b0aab9f
Signed-off-by: shufei.zhao <shufei.zhao@amlogic.com>
2023-04-05 22:13:09 -07:00
haitao.liu bf1b5d3774 vdin: porting csi on kernel branch g12bsm1_1_20221128 [1/1]
PD#SWPL-112894

Problem:
k5.15 do not support csi in tvin

Solution:
1.porting csi on k5.4,from k4.9
2.enable power domain

Verify:
sm1

Change-Id: Ia455ae888e88490a4c558bfd3fd2b7af46d907cf
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2023-04-04 19:48:17 +08:00
hongyu.chen1 1e07b011b9 sm1: add csi power domain. [1/1]
PD#SWPL-104278

Problem:
need csi power domain.

Solution:
add csi power domain.

Verify:
AC200_S905

Change-Id: Iea23513e3a5ed36be64ef95163c5a0ad3334b769
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2023-04-04 19:48:17 +08:00
junwei.ma 69cacc04bf ISP: G12B & SM1 Bringup - Kernel - Display - mipi camera of SM1 [1/1]
PD#SWPL-108141

Problem:
5. 15 no camera driver

Solution:
porting camera driver to kernel-5.15

Verify:
ok

Change-Id: I92789c946a8f2456f6bb68adc52ece77cd730f81
Signed-off-by: junwei.ma <junwei.ma@amlogic.com>
2023-04-04 19:48:16 +08:00
Chuan Liu c308b26ad6 g12b/sm1: add 24m/12m clock [1/1]
PD#SWPL-113083

Problem:
12m and 24m clock are lost

Solution:
added

Verify:
w400/ac200

Change-Id: I9e206bd76eb2da91be5c145d0274146d9253fe71
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2023-04-04 19:48:16 +08:00
xing.fang 69871e4d8c Audio: G12B & SM1 Audio Bringup [1/1]
PD#SWPL-104253

Problem:
G12B & SM1 Audio Bringup

Solution:
1) modify dts & dtsi
2) add audio clk driver for g12b
3) add audio pinctrl driver for g12b
4) add audio clk driver for sm1
5) fix PDM & Loopback clk issues for sm1

Verify:
local

Change-Id: Ic27720cc0a297610165fdb661931b00999422ab1
Signed-off-by: xing.fang <xing.fang@amlogic.com>
2023-04-04 19:48:15 +08:00
lizhi.hu 231b6c3c68 vpu: add vpu support for g12b/sm1 [1/1]
PD#SWPL-108052

Problem:
G12B & SM1 Bringup - Kernel - TV - vpu top

Solution:
add vpu support

Verify:
g12b-w400

Change-Id: I951a2dec84c5fa6b81f12ae601801b4ca2e4dcaa
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2023-04-04 19:37:02 +08:00
Chuan Liu a608f917f3 g12b/sm1: add some lost clocks [1/1]
PD#SWPL-110163

Problem:
part of the clock of g12b/sm1 is lost

Solution:
add clocks

Verify:
ac200

Change-Id: I5c021c862dc8913ad6295cb143b9400b11b97e63
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2023-04-04 19:37:02 +08:00
Yao Jie 2c5349ae4c m4: bringup m4 on sm1 [1/1]
PD#SWPL-104282

Problem:
bringup m4 on sm1

Solution:
add bl40 module driver and configuration to
bringup m4

Verify:
SM1-AC200-S905D3

Change-Id: I39afd0f91a49bd187e23cb29111f06e8c404419d
Signed-off-by: Yao Jie <jie.yao@amlogic.com>
2023-04-04 19:37:02 +08:00
Zelong Dong f61d46dfb0 pinmux: sm1&g12b: support GPIO TEST_N [1/1]
PD#SWPL-104263

Problem:
need to support sm1&g12b GPIO TEST_N

Solution:
add GPIO TEST_N for sm1&g12b

Verify:
sm1&g12b

Change-Id: Ic8faf12364f10993c614707f5d73b924ea63d72e
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2023-04-04 19:35:44 +08:00
Chuan Liu 6a4094dcf6 g12a/g12b/sm1: update clock tree [1/1]
PD#SWPL-107164

Problem:
1 sys_pll/sys1_pll does not support to 1512M
2 clkid is stored in multiple header files

Solution:
1 added frequency point support
2 clkid is placed under the same header file

Verify:
w400/ac200

Change-Id: I47d7f7c36b830285cfa4800ca0d90651629edb7e
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2023-04-04 19:35:44 +08:00
hongyu.chen1 f38f2c2a81 sm1: add power domain. [1/1]
PD#SWPL-104278

Problem:
add power domain.

Solution:
add power domain.

Verify:
sm1

Change-Id: I0aab1e2e3b65d279a4194095ded67b063cdfb7f7
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2023-04-04 19:35:44 +08:00
Chuan Liu 51c61d4047 g12b/sm1: add clock tree [1/1]
PD#SWPL-104283

Problem:
porting to kernel5.15

Solution:
fixed

Verify:
w400/ac200

Change-Id: I858a7ffd12d64dcc8e1e8082977814de070052d0
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2023-04-04 19:35:44 +08:00
Zelong Dong 557278f5f3 pinmux: sm1&g12b: support pinmux&gpio irq driver [1/1]
PD#SWPL-104263

Problem:
need to support sm1&g12b pinmux&gpio irq driver

Solution:
add pinmux & gpio irq driver for sm1&g12b

Verify:
sm1&g12b

Change-Id: I7a91be9f6e031152f9007804d8ae399c42339cc6
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2023-04-04 19:35:43 +08:00
Zelong Dong 6683a4d93d reset: sm1&g12b: support reset driver [1/1]
PD#SWPL-104262

Problem:
need to support sm1&g12b reset driver

Solution:
add reset dt-bindings and dts node for sm1&g12b

Verify:
sm1&g12b

Change-Id: I305010864a8f28af5ce4a5bd8be828ee77729931
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2023-04-04 19:35:43 +08:00
yao zhang1 d133d2ef28 bringup: Add dts and dtsi for g12b & sm1. [1/1]
PD#SWPL-104242

Problem:
Bringup g12b & sm1

Solution:
Add dts and dtsi for g12b & sm1.

Verify:
g12b & sm1

Change-Id: Ic80ce592cb8d63fa903319a9689ea65cebe0a330
Signed-off-by: yao zhang1 <yao.zhang1@amlogic.com>
2023-04-04 19:35:43 +08:00
Xiangyu Cai 1249676818 vrr: read and write in a reguar buffer [1/1]
PD#SWPL-114194

Problem:
latency have 1.5ms fluctuation read/write in 11 buffer

Solution:
read and wriye in a regular buffer

Verify:
t982_ar301

Change-Id: I9bdc274c8973e7cfd981cedb4e3996760b3028c1
Signed-off-by: Xiangyu Cai <xiangyu.cai@amlogic.com>
2023-03-30 06:24:48 -07:00
Lei Zhang df6af177d8 iotrace: __nocfi when read/write register [1/1]
PD#SWPL-115907

Problem:
read/write register cost more time

Solution:
__nocfi when read/write register

Verify:
on SC2 ah212

Change-Id: Id2737b3037f8ee2d57e11fbd195e853fe7c0541f
Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
2023-03-30 02:13:31 -07:00
MingLiang Dong a547ca9c9d hdr: fix hdr10+ packet send error issue [1/1]
PD#SWPL-116438

Problem:
hdr10+ packet send error on sc2
hdr10+ packet send delay 1 frame on s5

Solution:
1. hdr10+ packet send error
2. hdr10+ packet sent advance 1 frame

Verify:
verify on s5

Change-Id: I0e2c3a76877c8fbc092754650d56e57b6881e17d
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2023-03-29 22:19:02 -07:00
xiang.wu1 2db3271ac6 hdmitx: optimise color depth for hdr output [1/2]
PD#SWPL-113996

Problem:
there's some case output Y444/rgb,8bit mode,
if start play HDR/HLG movie at this time, it
doesn't satisfy the requirement >= 10bit

Solution:
add interface to adjust cs/cd to Y422,12bit

Verify:
ah212

Test:
ah212

Change-Id: Ife68b4b83d0864909015cdf67d61abe692469db7
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2023-03-29 06:13:47 -07:00
Dezhi Kong be7cc61fb6 uvm: add valhall support for t5m [1/3]
PD#SWPL-113559

Problem:
valhall don't support lazy map process
t5m don't support video screencap
cts accuracy will fail on t5m

Solution:
add valhall support

Verify:
T5M

Change-Id: I3ade8ff97aad9d9cb03286ed7c0a788d1a640317
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
2023-03-29 00:13:06 -07:00
qiang.liu 9d087c196d adc: add get adc status interface [1/1]
PD#SWPL-113351

Problem:
atv demod read adc register crash when tvafe reset adc module

Solution:
atv demod confirm adc work normal and then read adc register

Verify:
t5d

Signed-off-by: qiang.liu <qiang.liu@amlogic.com>
Change-Id: I5fe8a7ddc7f57ee011c1dabe26feaffdba31a51a
2023-03-24 07:07:16 -07:00
Pengcheng Chen 6ed983774e vpp: vsync_notify_video_composer update for prevsync [1/1]
PD#SWPL-115301

Problem:
vsync_notify_video_composer update for prevsync

Solution:
vsync_notify_video_composer update for prevsync

Verify:
t5m

Change-Id: Ia2ccb9c8e1506cce825caee6eea143a86b7f4038
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2023-03-24 06:12:37 -07:00
wenlong.zhu aa19568bc4 AduioBridge: porting from 4.19 to 5.15 [1/1]
PD#SWPL-114902

Problem:
1.AudioBridge module needs to be added to kernel 5.15.

Solution:
1.Makefiles, Kconfig, and code need to be adjusted in AudioBridge.

Verify:
A113L AD403 Board

Change-Id: I47ef1f7c50836c6617969dc2c37d8d340fc15f19
Signed-off-by: wenlong.zhu <wenlong.zhu@amlogic.com>
2023-03-23 22:10:18 -07:00
Pengcheng Chen 7475a7bc08 vpp: separate pre vsync and post vsync for frc [1/1]
PD#SWPL-111973

Problem:
separate pre vsync and post vsync for frc

Solution:
add separate pre vsync and post vsync for frc

Verify:
t5m

Change-Id: I3eb811030cc28d63a531d9041f922a21d8b441b7
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2023-03-23 14:18:45 -07:00
dongfei.li 42bd894ab4 frc: frc add axi_crash_function [1/1]
PD#SWPL-107293

Problem:
t5m validation item

Solution:
t5m validation item

Verify:
T5M

Change-Id: Iffb970709760a7722be243e35f25af81329654c3
Signed-off-by: dongfei.li <dongfei.li@amlogic.com>
2023-03-23 01:41:42 -07:00
jinbing.zhu 40facb7df6 amvecm: 5.15 add color matrix data [1/1]
PD#SWPL-116364

Problem:
add

Solution:
add

Verify:
adt4

Change-Id: I32475473d1397fca9937e38e2d7d670ccac4e89f
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2023-03-22 22:36:30 -07:00