Commit Graph

889 Commits

Author SHA1 Message Date
jiebing chen 780a67fc6e Audio: disable audio clk when suspend for sc2 [1/1]
PD#SWPL-142871

Problem:
disable audio clk when suspend for sc2

Solution:
disable audio clk when suspend for sc2

Verify:
use sc2

Signed-off-by: jiebing chen <jiebing.chen@amlogic.com>
Change-Id: I493a5e7bf7ed826da76a4eb6cb6324314bc008ac
2023-11-13 19:46:50 +08:00
Lei Zhang 4e2bf1c9bf sysrq: enable sysrq function [1/1]
PD#SWPL-143851

Problem:
n/a

Solution:
enable sysrq function by default

Verify:
on sc2

Change-Id: Iff20f64ebc6736a6bbcbd7ff94eee1c83e435cc6
Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
2023-11-06 18:51:52 +08:00
Hangyu Li f33d01db43 dts: add secure_vdec_reserved dts node for t7/t7c bluebell [1/1]
PD#SWPL-143746

Problem:
Netflix play fail.
As there is no secure_vdec_reserved node in dts.

Solution:
Add secure_vdec_reserved dts node.

Verify:
Android U + bluebell

Change-Id: Iac9c985b4d4a5102203c075bf8ed19db4c9f4336
Signed-off-by: Hangyu Li <hangyu.li@amlogic.com>
2023-10-31 19:19:08 +08:00
hang cheng 37106fbfb4 hdmitx: abstract disable output flow [1/1]
PD#SWPL-142486

Problem:
need to abstract disable output flow

Solution:
abstract common disable output flow

Verify:
Ohm + android U

Test:
DRM-TX-38

Change-Id: I26812288a9b11ae1002de43f10437d357ac77844
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
2023-10-18 14:53:58 +08:00
Pengcheng Chen aef84c9221 vpu: enable down vpu_clk when suspend with sc2 [1/1]
PD#SWPL-132992

Problem:
sc2 need down vpu_clk when suspend

Solution:
enable down vpu_clk when suspend with sc2

Verify:
sc2

Change-Id: I2d69d1de06acd05005c697f0c94b65b98ebf5631
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2023-10-17 15:34:47 +08:00
Liming Xue 172057d4b0 host driver: reconstruct dsp host driver [1/1]
PD#SWPL-99041

Problem:
reconstruct dsp host driver

Solution:
config CONFIG_AMLOGIC_MCU_DRIVER to enable mcu driver
the new driver support multiple dsp/m4 cores

Verify:
a1/c1/c2/sc2/t3/t3x/t7/t7c

Change-Id: Ib1e666e615260bb5b7377a18eeaaf8daa65de86f
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2023-10-07 17:40:07 +08:00
zongdong.jiao 365de2b1f5 hdmitx: unify the edid 2.0 and 2.1 [1/1]
PD#SWPL-98813

Problem:
Need to unify the edid 2.0 and 2.1

Solution:
Unify the edid 2.0 and 2.1

Verify:
t7/sc2

Test:
DRM-TX-34

Change-Id: Id145c0343279489b82316f22322d48a41c2df33c
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2023-10-07 17:35:44 +08:00
qianqian.cai 35ab697b97 deinterlace: update di dts number [1/1]
PD#SWPL-137618

Problem:
di post count not update

Solution:
add post number for dts update

Verify:
sc2

Change-Id: If57517c9b38df99edef837c2d2f7994607abc157
Signed-off-by: qianqian.cai <qianqian.cai@amlogic.com>
2023-09-14 21:18:19 +08:00
fuqing.chen 507d864222 T7C: enable active config for OTT platform [1/1]
PD#SWPL-137619

Problem:
T7C OTT platform HDMITX only enable active
config

Solution:
add heap-fb size adapt 4K UI

Verify:
T7C OTT

Change-Id: I7c2f3e4cd5e316064c1f647322d64272ca1575c3
Signed-off-by: fuqing.chen <fuqing.chen@amlogic.com>
2023-09-14 13:51:10 +08:00
linfang.zhao a3352bedea drm: fix black screen in recovery [1/1]
PD#SWPL-138138

Problem:
Black screen when enter reboot recovery

Solution:
set correct display mode in recovery

Verify:
S905X4-AH212

Test:
DRM-OSD-96

Change-Id: I1be0b8385037c506e2bdc270dd4665901ae11be8
Signed-off-by: linfang.zhao <linfang.zhao@amlogic.com>
2023-09-13 23:10:08 +08:00
rong.wang ee812b9da5 deinterlace: confirm post buffer size [1/1]
PD#SWPL-135526

Problem:
special test find post buffer size wrong

Solution:
add po_fmt = 0

Verify:
t5m

Change-Id: Iea19a0a3630800735c26e70d73c36892ad1e46d9
Signed-off-by: rong.wang <rong.wang@amlogic.com>
2023-09-13 22:31:05 +08:00
Wenjie Qiao e94eaec621 hdmitx: s5 can not start [1/1]
PD#SWPL-137661

Problem:
s5 hpd wrong, s1a and s5 use the same pinctrl name

Solution:
modify s5/s1a hpd pinctrl

Verify:
s5

Change-Id: I44b2794212c3338b7c18166497a95cf15c71190c
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2023-09-13 20:34:25 +08:00
Jian Cao a9a44e3236 vpp: video lowlatency optimize [1/1]
PD#SWPL-132066

Problem:
need to support video lowlatency

Solution:
video lowlatency optimize

Verify:
s1a-bg201

Signed-off-by: Jian Cao <jian.cao@amlogic.com>
Change-Id: Ie8a6f4c72314f9acf7202e7d86721403842d5499
2023-09-13 15:08:05 +08:00
shuanshuan.jiang 94c5a65a13 camera: increase adapt cma size [1/1]
PD#SWPL-132204

Problem:
1. adapter allocat cma buffer failed in dcam mode
2. using illegal cma address in dcam mode

Solution:
increase adapt cma size

Verify:
local

Signed-off-by: shuanshuan.jiang <shuanshuan.jiang@amlogic.com>
Change-Id: I5ef703d978a864ca4c59172f6bd03688c4b06a74
2023-08-23 01:58:43 -07:00
Zhe Wang 84f924d8c3 audio: optimize spdif mute interface [2/3]
PD#SWPL-137289

Problem:
some AVR with pop noise when spdif out is set to mute

Solution:
On TV platform, mute spdif out with soft mute register

Verify:
T5M

Change-Id: I22c30a301c655d1fce66a7f4b6c7510d0729b945
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
2023-08-22 06:09:20 -07:00
Liming Xue 45a6212840 dsp: a1 start failed [1/1]
PD#SWPL-137033

Problem:
a1 start failed

Solution:
add mailbox channel and change reserved memory

Verify:
a1

Change-Id: Ib2e1fab0162b868727e8121ae7cc9f6d05294943
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
2023-08-21 22:54:14 -07:00
jintao xu 6e5a389962 di_process: support di in display side [1/4]
PD#SWPL-136316

Problem:
support di backend

Solution:
support di backend

Verify:
ohm

Change-Id: Iad72c1ebc5e33bade4e6efb87167defd4bc405b6
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
2023-08-19 18:08:44 -07:00
yaoyu.xu 6d723f6f2b hdmirx: enable rx phy trim config flow [2/2]
PD#SWPL-134805

Problem:
enable rx phy trim config flow

Solution:
enable rx phy trim config flow

Verify:
T3X

Change-Id: Ib0e1e381d719d0a8b785ac126dc930e66b6bb156
Signed-off-by: yaoyu.xu <yaoyu.xu@amlogic.com>
2023-08-18 00:23:46 -07:00
ziyi e641ab3cb4 emmc: add hs200 hs400 to AP222 S905Y4 [1/1]
PD#SWPL-133315

Problem:
no hs200 hs400 mode in AP222 S905Y4

Solution:
revise dtb

Verify:
s4d

Change-Id: I7b504d62af6604e64606e2e25a8486fecb913910
Signed-off-by: ziyi <ziyi.huang@amlogic.com>
2023-08-17 22:09:43 -07:00
Ao Xu 7ca239cc55 dts: enable drm driver dts node [1/1]
PD#SWPL-128362

Problem:
ac214 board did not enable drm dts node

Solution:
enable drm dts node for ac214 board

Verify:
ac214

Test:
DRM-OSD-86

Change-Id: I6da775d3cb5e6f24747baf7a152efcd9cc8ee09f
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2023-08-17 06:14:37 -07:00
donghui.wang 7e1e3fb48e ldim: add ldim panel type for linux dts [1/1]
PD#SWPL-131721

Problem:
miss ldim panel type

Solution:
add panel type for ldim

Verify:
t3

Change-Id: I1efb09c2e080297529aea351a474f36286d367bb
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2023-08-17 06:14:33 -07:00
Huqiang Qin 1a3fd93535 saradc: c1: fixed clock mismatch [1/1]
PD#SWPL-134274

Problem:
Clock mismatch.

Solution:
Kernel 5.15 clock naming has the following changes:
|  Old name        |    New name      | DT match name |
-------------------------------------------------------
| CLKID_SAR_ADC      CLKID_SYS_SARADC    "core"       |
| CLKID_SARADC_MUX   CLKID_SARADC_MUX    "adc_sel"    |
| CLKID_SARADC_DIV   CLKID_SARADC_DIV     unused      |
| CLKID_SARADC_GATE  CLKID_SARADC        "adc_clk"    |

Verify:
C1/AE400

Change-Id: I97e72049618ad66792eeea562cb9b99c4329406e
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2023-08-17 02:29:16 -07:00
lizhi.hu 4d15016b30 lcd: eDP full link training & EDID timing 5.15 [1/1]
PD#SWPL-134539

Problem:
add full link training adn EDID timing process for T7

Solution:
add

Verify:
t7_an400

Change-Id: Ib82f8c7e9b3bd178489c1ef1c43bd35cade9bf47
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2023-08-17 00:18:45 -07:00
Shunzhou Jiang 5f585853c5 c1: mbox driver bringup [1/1]
PD#SWPL-87115

Problem:
mbox driver bringup

Solution:
mbox driver bringup

Verify:
c1

Change-Id: I506d7c901f3786a3e79db62f0c4f80ccabe0b383
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
2023-08-15 20:08:43 -07:00
min.zhu a07ee61c09 vdin1: revert the configs for vdin1 [2/2]
PD#SWPL-134480

Problem:
disable record hdmi content

Solution:
revert the configs for vdin1

Verify:
t7c

Change-Id: Ib045d8305f2ccbbbe0cbbdf1f24648ab5ad64389
Signed-off-by: min.zhu <min.zhu@amlogic.com>
2023-08-15 04:20:00 -07:00
Sunny Luo c48e7843e4 spi: back sync with t5m openliux/tv/s-amlogic [1/1]
PD#SWPL-136205

Problem:
back sync with t5m openliux/tv/s-amlogic

Solution:
- configure spicc1 ss leading/trailing gap for local-dimming;
- add dirspi support in test entry;
- remove the limit of min_speed_hz.

Verify:
t5m

Change-Id: If84e2a5a5cac080f543c18988524da58fabeda0a
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
2023-08-15 04:19:20 -07:00
Song Zhang ca5eec3f6c Audio: enable earc [1/2]
PD#SWPL-125362

Problem:
enable earc

Solution:
enable earc

Verify:
use A311D2_AN400 revC

Change-Id: Id208dc20e3e2d9d4b86d22199980cbe1176f079d
Signed-off-by: Song Zhang <song.zhang@amlogic.com>
2023-08-11 01:15:30 -07:00
qing.zhang 4457fb8451 audio: pdm clk issue for lower/normal power [1/1]
PD#SWPL-128467

Problem:
1. when suspend && resume, the dclk sometimes not change to hifi

Solution:
add set parent instead of write reg directly

Verify:
t5m

Change-Id: I62509c2d71a4d3710e9f9fd9359c78397d0e8461
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
2023-08-09 04:28:43 -07:00
junyi.zhao 16f8a44381 led: aw9523: optimize reset flow [1/1]
PD#SWPL-133498

Problem:
some board do not apply gpio for reset

Solution:
add soft reset flow

Verify:
sc2 ah212

Change-Id: I95c7f00b66dc7cd69209f1f8bc4e6e7447bf4535
Signed-off-by: junyi.zhao <junyi.zhao@amlogic.com>
2023-08-08 08:09:21 -07:00
jiebing chen 1e307bf77e Audio: t3 disable audio clk and hifipll when enter into suspend [1/1]
PD#SWPL-128233

Problem:
hifipll need to disabled when suspend

Solution:
disable audio clk and hifipll when enter into suspend

Verify:
use T3

Signed-off-by: jiebing chen <jiebing.chen@amlogic.com>
Change-Id: Ie36eb6314afd5997be6f3a59ff4ac512b7002cf6
2023-08-08 02:57:58 -07:00
Shunzhou Jiang 855b70c393 mbox: mbox driver refactoring [1/2]
PD#SWPL-87115

Problem:
mbox driver refactoring

Solution:
mbox driver refactoring

Verify:
t7/t7c/t5m/sc2/s4/s4d/a1/c2/s5/t3x/t5w/g12b/sm1/txhd2

Change-Id: Ia3e5f9ff2b6de16a082e7f028fcc36dc4268856a
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
2023-08-08 02:57:29 -07:00
qiang.cheng d19294a5dc uart: fix uart too many interrupt [1/1]
PD#SWPL-131844

Problem:
BT uart too many interrupt, lead to BT work abnormal

Solution:
use interrupt bottom half

Verify:
sm1_debian t7c_debian

Signed-off-by: qiang.cheng <qiang.cheng@amlogic.com>
Change-Id: I7427f65a3d29afe11c1d2831b74d0b4280fc9485
2023-08-07 19:58:39 -07:00
min.zhu ad2348088a vdin1: Configure the memory required for loopback [2/5]
PD#SWPL-130504

Problem:
using android api to record video layer content

Solution:
Configure the memory required for vdin1

Verify:
t7c

Change-Id: Id0a84dc8012f44a978ed08f9640c0c43845fb65c
Signed-off-by: min.zhu <min.zhu@amlogic.com>
2023-08-07 19:58:36 -07:00
zhiwei.zhang ac8689e9dc amlbian: fix mipi camera crash and preview [1/1]
PD#SWPL-133805

Problem:
null pointer access in ov5640 close function;.

Solution:
increase vm0 for mipi camera.
ov5640: no close if not open success;
ov5640: open & close function - allow only 1 user;

Verify:
local

Signed-off-by: zhiwei.zhang <zhiwei.zhang@amlogic.com>
Change-Id: I4bfc6520e8beaa90580fa6f8407eec592675a6bf
2023-08-07 04:18:39 -07:00
ziyi 350baab7d3 emmc: t3x: the tuning result of sdcard is not good [1/1]
PD#SWPL-133187

Problem:
the tuning result of sdcard is not good

Solution:
change the tuning method

Verify:
t3x

Change-Id: I6dfa108e7f9af9879a8f219b456f44e3054aeba3
Signed-off-by: ziyi <ziyi.huang@amlogic.com>
2023-08-07 00:18:54 -07:00
shu.wang 0dc4e70502 A1: Fixed TDM can't be recorded by ACODEC [1/1]
PD#SWPL-131864

Problem:
Currently A1 TMD cannot record sound through ACODEC.

Solution:
Modify A1 TDMIN register configuration.

Verify:
A1-A113L-T404

Change-Id: I131c8aa518ecce6f46454ffa3cd454f10f65801b
Signed-off-by: shu.wang <shu.wang@amlogic.com>
2023-08-06 03:58:41 -07:00
jialong.jiang 383596a279 dv: get osd status from blend reg. [1/1]
PD#SWPL-132893

Problem:
is_graphics_output_off error,
causing dv not reset core2a.

Solution:
get osd status from blend reg.
sc2/s4d not support multi core1.

Verify:
sc2/s5/t7.

Change-Id: I1a16a67c58044a979a27d824e17636243509dd42
Signed-off-by: jialong.jiang <jialong.jiang@amlogic.com>
2023-08-04 00:39:01 -07:00
haitao.liu 3c49de47b4 vdin: t5m enable scatter and enable double write while hdmi dolby input [1/1]
PD#SWPL-132134

Problem:
afbce was closed when hdmi input dolby

Solution:
1.t5m enable scatter by default
2.allow afbce+mif output when dolby input

Verify:
t5m

Change-Id: I92612719c8092e8e20e5bcd7ce93949d638dcaee
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2023-08-04 00:38:44 -07:00
jian zhou da3c49f0e6 audio: delete earc tx clock for chip which is only supported earc rx [1/1]
PD#SWPL-120286

Problem:
delete earc tx clock for chip which is only supported earc rx

Solution:
delete earc tx clock for chip which is only supported earc rx

Verify:
sm1

Change-Id: If9311761b89048d543d229a1e3d6998124f201a8
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2023-08-02 22:29:10 -07:00
jian zhou 58ea78bc8e audio: config sc2 earc interrupt num [1/1]
PD#SWPL-134445

Problem:
sc2 earc interrupt num is wrong

Solution:
config sc2 earc interrupt num

Verify:
sc2

Change-Id: Id3bfefda8b0afe6344494435ad72ff903542afad
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2023-08-02 00:48:44 -07:00
chengbing.wu 7d63f5f16a s5: npu dvo dos vpu setting by u-boot at k5.15 [1/1]
PD#SWPL-91114

Problem:
Actual voltage at customer new version is not
mated for design;

Solution:
delete kernel setting vddnpu regulator;

Verify:
build,v1+revA,v2+revB chao zhang & yu tong k5.4;
need verify suspend vddnpu and k5.15;

Change-Id: I90646ad91b55eea6864c8d4bb01e5d7b8588bc0d
Signed-off-by: chengbing.wu <chengbing.wu@amlogic.com>
2023-08-01 04:28:36 -07:00
yuyin.wei ea18bd1e70 NNA: S5 k5.15 revA enable gpio regulator [1/1]
PD#SWPL-109023

Problem:
S5 revB disable pwm regulator
S5 revA enable gpio regulator

Solution:
S5 revB disable pwm regulator
S5 revA enable gpio regulator

Verify:
s5

Signed-off-by: yuyin.wei <yuyin.wei@amlogic.com>
Change-Id: I9b316774324835a5af4ae61e3aeea719229b565a
2023-08-01 00:18:45 -07:00
Pengcheng Chen c58214ff22 vpu: enable down vapb_clk when suspend with t3x [1/1]
PD#SWPL-133606

Problem:
sc2 need change to lowest vapb_clk when suspend

Solution:
enable down vapb_clk when suspend with t3x

Verify:
t3x

Change-Id: I2d56cec53ed162aff97f41c04695f3153198b689
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2023-07-31 02:38:34 -07:00
yujun.zhang d3327b6147 drm: SM1 & G12B drm hdmitx & mipi display [1/1]
PD#SWPL-126349

Problem:
No drm support for 2nd MIPI display

Solution:
Config DTS and some codes

Verify:
SM1 & G12B

Test:
DRM-OSD-78

Change-Id: I735857ddf2dec67f45617a5dec970efa75032d5f
Signed-off-by: yujun.zhang <yujun.zhang@amlogic.com>
2023-07-26 00:11:40 -07:00
Hangyu Li 950fe51d2b dts: add secure_vdec_reserved dts node for Android U/T Codec2 [1/1]
PD#SWPL-133296

Problem:
Android U/T codec2 secure vdec pool changed from dynamic alloc/free to
use secmem v2 pool implementation.
Secure vdec memory need to be reserved.

Solution:
Add secure_vdec_reserved dts node
to reserve secure vdec memory in dts instead of BL32

Verify:
Android T/U + kernel5.15

Change-Id: I469ec36facb33a51b3529ceeecf968365faae6f9
Signed-off-by: Hangyu Li <hangyu.li@amlogic.com>
2023-07-25 20:10:21 -07:00
yi.liu 470c469cfe amlbian: Vbyone only supprt 25hz [1/1]
PD#SWPL-130526

Problem:
Vbyone only supprt refresh rate of 25hz.

Solution:
fr_adj_type(0xff):Fixed mode of refresh rate.
pixel_clk:4400*2250*25(hz).

Verify:
local

Change-Id: I858d5d0682356beb2da3ff005018c5a479bcdcc3
Signed-off-by: yi.liu <yi.liu@amlogic.com>
2023-07-25 03:55:04 -07:00
Gongwei Chen 8435116d95 dts: add A311D2 bluebell dts [5/6]
PD#SWPL-132842

Problem:
need add A311D2 bluebell on Android U

Solution:
add A311D2 bluebell on Android U

Verify:
verify by bluebell

Change-Id: Iee640463968f8b9b3a8ad4b2a6aa539780d7691e
Signed-off-by: Gongwei Chen <gongwei.chen@amlogic.com>
2023-07-25 00:19:38 -07:00
Hangyu Li 82354569a2 dts: fix t5w secure_vdec_reserved dts node [1/1]
PD#SWPL-132425

Problem:
syntax error caused compilation fail.

Solution:
fix syntax error, add ";" after no-map

Verify:
t5w

Change-Id: Ia939384bb243e622663582971b0da4defffaa96e
Signed-off-by: Hangyu Li <hangyu.li@amlogic.com>
2023-07-24 05:08:40 -07:00
Hangyu Li bebc2f465a dts: config secure_vdec_reserved dts node [1/1]
PD#SWPL-132425

Problem:
1.secure_vdec_reserved memory should be reserved as no-map.
2.in some devices secure_vdec_reserved may exceed 4G.
3.tee_register_mem() in codec_mm.c should not force parameter as u32 type.

Solution:
1.add no-map attribute for secure_vdec_reserved dts node.
2.limit secure_vdec_reserved reserved in 0x0-0xe0000000 for some devices.
3.remove u32 type casting when call tee_register_mem().

Verify:
Android R + kernel5.15

Change-Id: Ife8cac2c4a4821a310d998766e69677c6eb2984e
Signed-off-by: Hangyu Li <hangyu.li@amlogic.com>
2023-07-19 21:22:55 -07:00
qiang.cheng 0157cfe92e debian: fix meson-fb can not allocate memory [1/1]
PD#SWPL-131625

Problem:
meson-fb can not allocate memory

Solution:
fix allocate address

Verify:
local

Signed-off-by: qiang.cheng <qiang.cheng@amlogic.com>
Change-Id: I0f9ec98bda6a35e06e358ae0f9d955c0eae6b110
2023-07-18 07:15:04 -07:00