Commit Graph

2514 Commits

Author SHA1 Message Date
jie.dai 88df161ee0 lcd: lcd memory management [3/3]
PD#SWPL-160850

Problem:
need add driver to manage lcd memory

Solution:
1. add resman platform driver to manage lcd common resource
2. add reserved memory management driver

Verify:
t5m/t3x

Change-Id: Ia0a0590879730c327c902f739504b5a43e7063d1
Signed-off-by: jie.dai <jie.dai@amlogic.com>
2024-06-18 23:41:17 -07:00
saisai.chang bde02f695c audio: loopback config is wrong [1/1]
PD#SWPL-172268

Problem:
1.loopback configuration error
2.resample1 status is wrong

Solution:
1.reconfig loopback
2.modify resample1 status

Verify:
s5 & sm1

Change-Id: Iab65e48d8d027549ecc8d805f29e162cde4a8805
Signed-off-by: saisai.chang <saisai.chang@amlogic.com>
2024-06-18 23:41:12 -07:00
qing.zhang 8fc85981fc Audio: G12A kernel 5.15 need oe pin function [1/2]
PD#SWPL-158794

Problem:
oe pin can't work

Solution:
add oe pin control

Verify:
g12a

Change-Id: I43145d13958d9928eb839e8173e1b8fbd2dafbe2
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
2024-06-18 05:51:44 -07:00
jiebing chen 7acf1fe8b1 Audio: enable spdif in pin for s7 [1/1]
PD#SWPL-173815

Problem:
need to enable for spdif in pin for hdmi arc

Solution:
enable spdif pin in audio dtsi

Verify:
use s7

Change-Id: I85b7b02fd56550d4958a36a9e46f82a66e25f887
Signed-off-by: jiebing chen <jiebing.chen@amlogic.com>
2024-06-18 01:55:25 -07:00
yicheng shen 57729456b5 hdmirx: optimize phy rterm flow [1/2]
PD#SWPL-167196

Problem:
optimize phy rterm flow

Solution:
optimize phy rterm flow

Verify:
t3/t5m/txhd2/t3x

Change-Id: Iefba615e76a0e3a734f18f8367770030df251800
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
2024-06-17 21:25:07 -07:00
qiang.wei 815d041375 C3: aw409/aw402 256m board tee support [1/1]
PD#SWPL-163726

Problem:
aw409/aw402 256m board tee support

Solution:
aw409/aw402 256m board tee support

Verify:
C3_AW409

Change-Id: Ia53233659215fbab51712765091581f6fdada302
Signed-off-by: qiang.wei <qiang.wei@amlogic.com>
2024-06-16 23:43:11 -07:00
honghai.song 9ad3e57451 T5W: limit t5w dts cma range to 32bit ddr range [3/3]
PD#SWPL-170753

Problem:
limit t5w dts cma range to 32bit ddr range

Solution:
limit t5w dts cma range to 32bit ddr range

Verify:
on T5W

Change-Id: Ic2af320507a85a481df708006eb7287da164f202
Signed-off-by: honghai.song <honghai.song@amlogic.com>
2024-06-16 20:05:36 -07:00
Jiacai.Liu 6b63779b8f s4d: CB linux dts modify [1/1]
PD#SWPL-170979

Problem:
s4d linux platform need modify

Solution:
s4d linux dts modify

Verify:
local s4d_ap232

Signed-off-by: Jiacai.Liu <jiacai.liu@amlogic.com>
Change-Id: Iba4204265a610fae3f588401d3a32e6fc047ec72
2024-06-16 20:05:18 -07:00
dian.shao 23fbeb25e1 usb: nak retry time too long [1/1]
PD#SWPL-173238

Problem:
Nak retry time too long.

Solution:
Modify reg params.

Verify:
s7.

Change-Id: I9ab30914f44125e967ec9047e6cdb5884faf1e91
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2024-06-13 22:40:40 -07:00
zhenyu.gao 1226a16e66 yocto: CF1 Add s7_bo201 dts [1/1]
PD#SWPL-172322

Problem:
New featrue

Solution:
Add s7_s805x3_bp201_linux_1g.dts
Add s7_s805x3_bp201_linux_512M.dts

Verify:
jenkins

Signed-off-by: zhenyu.gao <zhenyu.gao@amlogic.com>
Change-Id: I0483cc418caa2f0444f7e9fb184da59f03ecc8f7
2024-06-13 22:40:32 -07:00
Jiacai.Liu 4db7b228c6 t5w_lw: add 1g t5w linux dts file [1/1]
PD#SWPL-172372

Problem:
add 1g t5w linux dts file
add linux dts check in makefile

Solution:
add 1g t5w linux dts file
add linux dts check in makefile

Verify:
local

Signed-off-by: Jiacai.Liu <jiacai.liu@amlogic.com>
Change-Id: I4bcbd645659e5badf38ec72bfb6fb1098f951396
2024-06-12 13:41:06 -07:00
xiaotao.wei b901af4b83 ion: disable ion-dev config in kernel 5.15 [1/1]
PD#SWPL-160915

Problem:
dmaheap should be used in kernel 5.15

Solution:
1.disable ion-dev config and use dmaheap instead
2.disable ion-fb/heap-fb on linux
3.resize gfx-heap to max size of fbdev and wayland-drm backend,
refer to https://confluence.amlogic.com/display/SW/dma+heap+size+for+Linux

Verify:
s7

Change-Id: I17eb17ef3a327fb9648785ac413a3e239012bde8
Signed-off-by: xiaotao.wei <xiaotao.wei@amlogic.com>
2024-06-12 13:40:36 -07:00
chao.zhang 554cc7d95a pdvfs: enable s7 cpu pdvfs [1/1]
PD#SWPL-167298

Problem:
enable s7 cpu pdvfs of s805x3

Solution:
use different index by efuse vmin

Verify:
S7

Change-Id: Ia911433c2e56b2a5394d2072b29fcd24d1fe97c3
Signed-off-by: chao.zhang <chao.zhang@amlogic.com>
2024-06-12 02:14:52 -07:00
honghai.song 136bd31a09 T5W: limit t5w dts cma range to 32bit ddr range [1/1]
PD#SWPL-170753

Problem:
limit t5w dts cma range to 32bit ddr range

Solution:
limit t5w dts cma range to 32bit ddr range

Verify:
on T5W

Change-Id: Icdc0cc7377b445f8f471b6e3711a8878c6350ca3
Signed-off-by: honghai.song <honghai.song@amlogic.com>
2024-06-11 22:35:19 -07:00
yao zhang1 0cc13fc290 dts: Synchronize dts and limit cma range [1/2]
PD#SWPL-170295

Problem:
Synchronize dts and limit cma range

Solution:
Synchronize dts and limit cma range

Verify:
all chip

Change-Id: I11f11c6a883526b031e178e58b84aac691653a4b
Signed-off-by: yao zhang1 <yao.zhang1@amlogic.com>
2024-06-07 02:06:21 -07:00
haiyang.ren 3cdd094275 audio: headphone silence issue on t3x [1/2]
PD#SWPL-170310

Problem:
1. No headphone detection;
2. The t3x json configuration is incorrect;

Solution:
1. Add headphone detection;
2. Add t3x json configuration;

Verify:
T3x_BC302

Change-Id: I667d247f29a9cc22b2d4360aa4bdb77963cf8eaf
Signed-off-by: haiyang.ren <haiyang.ren@amlogic.com>
2024-06-07 02:06:17 -07:00
Luan Yuan ffc94dd834 dts: add makefile soundbar. [1/4]
PD#SWPL-168686

Problem:
add soundbar makefile.

Solution:
add soundbar makefile.

Verify:
verify by ross.

Change-Id: I5316e13609298005eb5ff4c5def50f9e67bed63b
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2024-06-07 01:03:58 -07:00
Huqiang Qin 712e0510b9 pdd: s7: enable the new power down detection driver [1/1]
PD#SWPL-171477

Problem:
Share the same driver with S7D.

Solution:
Enable the new power down detection driver.

Verify:
S7/BH201

Change-Id: Ifa08c2d87a410732a9f67fbde9b1699a8b1410d4
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2024-06-07 01:03:40 -07:00
wenbo.wang 317510d680 amfc: amfc driver support power-domain [1/1]
PD#SWPL-164972

Problem:
add amfc power-domain

Solution:
power-domains = <&pwrdm PDID_S7D_AMFC>

Verify:
local

Change-Id: Ibc6de8bb7b13ef5e68b24533b36f6faad35a6766
Signed-off-by: wenbo.wang <wenbo.wang@amlogic.com>
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2024-06-07 01:03:32 -07:00
lijun.meng 8a1e75a86e dts: Update the DTS to reflect the changes in the codec [1/1]
PD#SWPL-162200

Problem:
cma malloc fail due to Ie8965f428b972709aae8e06e5bec0a44c4fd8ae5

Solution:
Update the DTS to reflect the changes in the codec

Verify:
S805X3

Change-Id: Ie7ea18744d9e4ecd01028669a962190ede418fcf
Signed-off-by: lijun.meng <lijun.meng@amlogic.com>
2024-06-06 08:03:32 -07:00
lele xiang 88b4b7e9fa codec_mm: CB0 Clear the codec_mm reserved memory config in T5M. [1/1]
PD#SWPL-171762

Problem:
Asymmetric codec_mm reserved memory is used

Solution:
Clear the codec_mm reserved memory config in T5M

Verify:
T5M

Change-Id: Ia390724e6f5f3793a7ba4661ac21f759dd9f4edb
Signed-off-by: lele xiang <lele.xiang@amlogic.com>
2024-06-06 02:24:50 -07:00
Jianxiong Pan 2fb527864d dts: arm: add t5m dts. [1/1]
PD#SWPL-169064

Problem:
t5m 32bit bringup.

Solution:
add t5m 32bit dts.

Verify:
t5m.

Change-Id: I3fc4d758bb13e6f5762d257682e14add5e3358cd
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-06-06 02:11:07 -07:00
Huqiang Qin 9e86fcd757 pdd: s7d: add a new power down detection driver [1/1]
PD#SWPL-169074

Problem:
Add a new power down detection driver.

Solution:
1. A new amlogic_saradc_common driver has been added for register mapping.
2. A new independent power-down detection driver has been added.

Verify:
S7D/BM201

Change-Id: I2b72e24da9e7dc288e6df7351c65a50980df3748
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2024-06-06 00:31:30 -07:00
saisai.chang 644894f7cf audio: loopback config is wrong [1/1]
PD#SWPL-172039
PD#SWPL-171255
PD#SWPL-169653

Problem:
1.loopback configuration error
2.resample1 status is wrong

Solution:
1.reconfig loopback
2.modify resample1 status

Verify:
t7c

Change-Id: I9a7161d1f8f084f689772da7a63b9d303891b884
Signed-off-by: saisai.chang <saisai.chang@amlogic.com>
2024-06-05 04:02:35 -07:00
zongdong.jiao e5955db927 hdmitx: use environment connectorX_type [1/1]
PD#SWPL-166617

Problem:
T7C has multi output interfaces and VENCs

Solution:
Replace the environment connectorX_type=HDMI-A-A/B/C with
enc_idx in dts file

Verify:
t7c/bluebell

Test:
DRM-TX-38

Change-Id: I23a4d77f12a1471e237ffa5885cd5e2df994d593
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2024-06-05 04:02:12 -07:00
lizhi.hu ee3e9b6639 lcd: tablet multi timing support 2 [1/1]
PD#SWPL-166373

Problem:
lcd meed support multi timing switch func

Solution:
1. connectorX_type based vout output control
2. outputmode no more have panel/panel1 indicator, now use timing
3. lcd list and lcd set func help to set lcd config

Verify:
t7_an400
t3x_bc302_multidisplay

Change-Id: I4881627ac083b62f26397f6d749adff2c867989e
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2024-06-05 04:01:40 -07:00
Xingxing Wang 562c6fc1b6 thermal: add indmc sensor driver to do thermal cooling [1/1]
PD#SWPL-166661

Problem:
DDR kernel refresh control patch list

Solution:
add indmc sensor driver to do ddr thermal cooling

Verify:
S7D

Change-Id: I5ba8d167f9ce83785f51af6d2809030147aaacde
Signed-off-by: Xingxing Wang <xingxing.wang@amlogic.com>
2024-06-05 04:00:52 -07:00
qing.zhang 06c91690b6 audio: bringup Speaker output for ohm/ross soundbar [1/2]
PD#SWPL-168442

Problem:
No speaker output for the new SB board.

Solution:
Bringup speaker functions.
1. sc2 soundbar enable d626 auxin,speaker, spdifin
2. sc2 soundbar enable earc RX
3. s7d soundbar enable d626 auxin, speaker, spdifin
4. std soundbar enable earc RX
5. no need kconfig/makefile
6. add build config for ad82128

Verify:
Ohm/ross + D626 board.

Change-Id: Ifcc64a46d8bebb4d28113b9e2fc6c270612f6306
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
2024-06-05 04:00:17 -07:00
dongfei.li b4fe618fe9 frc: frc chg cma size for t5m [1/1]
PD#SWPL-155488

Problem:
chg cma size for t5m

Solution:
chg cma size for t5m

Verify:
T5M

Change-Id: Ic31dcc815d77d2b4488b9798ee9e94951db9afbe
Signed-off-by: dongfei.li <dongfei.li@amlogic.com>
2024-06-05 03:59:58 -07:00
hai.cao 8ac06cb881 vpu: init arb and urgent [1/1]
PD#SWPL-169351

Problem:
set arb and urgent default val

Solution:
add arb and urgent default val

Verify:
s7d

Change-Id: I6e26821422979f45d6d92ec171b515920bf8b2ac
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2024-06-05 02:26:31 -07:00
Huqiang Qin d91ae3b4a5 adc_keypad: optimize code to reduce invalid calls to mbox [1/1]
PD#SWPL-167411

Problem:
Optimize code to reduce invalid calls to mbox.

Solution:
Only the old version of bl30 (arm core) needs to configure mbox.

Verify:
SC2/AH212

Change-Id: If6cd5aab0f21a410e19d5a77a10c2214aa8bd88f
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2024-06-04 07:58:42 -07:00
Junyi Zhao 15b4132847 led: remove blink on power [1/1]
PD#SWPL-167340

Problem:
led blink on power

Solution:
remove this related code

Verify:
sc2 ah212
s7 bm201

Change-Id: Idb21538848b3cd1ff665b3a402df986a83665bee
Signed-off-by: Junyi Zhao <junyi.zhao@amlogic.com>
2024-06-03 08:00:05 -07:00
Junyi Zhao 51167904fc pwm: fix pwm's gpio driver strength [1/1]
PD#SWPL-170380

Problem:
driver strength error

Solution:
fix it

Verify:
sc2 ah212

Change-Id: Ia0c5154de5c666e7b417865495df166b1dffeaae
Signed-off-by: Junyi Zhao <junyi.zhao@amlogic.com>
2024-06-03 00:12:34 -07:00
chao.zhang be55f79b96 regulator: add regulator for bp201 [1/1]
PD#SWPL-170471

Problem:
need to support regulator of s80x3

Solution:
add regulator config

Verify:
s7

Change-Id: I3dfdffa7a639f677bd253f57dd05eb84991ef7bf
Signed-off-by: chao.zhang <chao.zhang@amlogic.com>
2024-06-02 21:38:06 -07:00
Jie Dai 8bd77b0fc9 lcd: eliminate frame rate error caused by SS [1/1]
PD#SWPL-165366

Problem:
there is a vsync drift while open ss

Solution:
fix vsync drift by adjust frequence or vtotal

Verify:
t5d/t5m

Change-Id: I225c8ece65869d4607a3f75572ef160ccdce1adf
Signed-off-by: Jie Dai <jie.dai@amlogic.com>
2024-05-31 06:04:52 -07:00
chao.zhang 9a3b3115b0 pdvfs: enable s7 cpu pdvfs [2/2]
PD#SWPL-167298

Problem:
enable s7 cpu pdvfs

Solution:
use different index by efuse vmin

Verify:
S7

Change-Id: I572d56e9a946cd3ee60e3dfae6b81183f5dec4f7
Signed-off-by: chao.zhang <chao.zhang@amlogic.com>
2024-05-31 06:04:45 -07:00
shu.wang 17eddeff44 A1: Add squashfs support [1/1]
PD#SWPL-130530

Problem:
The current configuration does not support squashfs.

Solution:
Enable squashfs in defconfig.

Verify:
A113L-AD403

Change-Id: If9a3781e01d1aee69971151886d6c21f3e3acd14
Signed-off-by: shu.wang <shu.wang@amlogic.com>
2024-05-31 05:27:53 -07:00
saisai.chang f917850569 audio: loopback config is wrong [1/1]
PD#SWPL-169724

Problem:
1.loopback configuration error
2.resample1 status is wrong

Solution:
1.reconfig loopback
2.modify resample1 status

Verify:
t5m

Change-Id: Ie27e1ee425a70f6b5e5455a93ad07eb57e0b6770
Signed-off-by: saisai.chang <saisai.chang@amlogic.com>
2024-05-31 05:26:38 -07:00
Jiacai.Liu 564faed259 t5d: CF add t5d 1.5g linux dts [1/1]
PD#SWPL-169764

Problem:
support  1.5G PCB

Solution:
add t5d 1.5g linux dts

Verify:
local t5d_am301

Change-Id: Ia22afe0b4f7265d834dbd4f1b9b4f34978b0280d
Signed-off-by: Jiacai.Liu <jiacai.liu@amlogic.com>
2024-05-30 06:03:51 -07:00
Feng Chen cf7c866d33 spinor: update spi-nor layer [1/1]
PD#SWPL-164866

Problem:
update spi-nor layer.

Solution:
update spi-nor layer.

Verify:
C3_AW409

Change-Id: Ic93021b04cc0721d57c9c5c88e5f9e0abcdd090e
Signed-off-by: Feng Chen <feng.chen@amlogic.com>
2024-05-30 06:02:50 -07:00
lizhi.hu 03fe50f326 Revert "lcd: tablet mode multi timing support [1/1]"
This reverts commit a4994fbed5.

Change-Id: I34912d38a12ad8c21aceacb3e77e1c028cfee9d3
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2024-05-30 16:50:52 +08:00
lizhi.hu a4994fbed5 lcd: tablet mode multi timing support [1/1]
PD#SWPL-158383

Problem:
tablet mode need support multiple timing switch

Solution:
support cus_ctrl and vmode

Verify:
t7_an400

Change-Id: I64d2c6caeff914aa034f67e0d53a5b262d6c17c4
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2024-05-29 22:30:23 -07:00
Ruixuan.li c21d3736f0 emmc: emmc run hs200 153M busmode [1/1]
PD#SWPL-168713

Problem:
emmc start bit not stable

Solution:
run hs200 153M

Verify:
t5d

Change-Id: Ic2cd01cb5082d2147deb17631261acbcf3981450
Signed-off-by: Ruixuan.li <ruixuan.li@amlogic.com>
2024-05-29 22:02:41 -07:00
Long 1aacca8695 eMMC: enable inline crypto. [1/1]
PD#SWPL-168577

Problem:
need enable inlinecrypt

Solution:
enable inlinecrypt function

Verify:
S7,S7D

Change-Id: Idd072bf0e9f7155ba13cd4f34c28010dad7d0773
Signed-off-by: Long <long.yu@amlogic.com>
2024-05-29 19:10:36 -07:00
qing.zhang 9b6c39d14b audio: ad82128 gpio control [1/1]
PD#SWPL-170755

Problem:
od pin can not control

Solution:
1. use gpiod api
2. modify dts pin reset config

Verify:
Ohm/ross + D626 board.

Change-Id: I9ff8cda3ee17b3cd65fb96e7466c24c0a3fc26b7
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
2024-05-29 01:59:25 -07:00
changpeng.jiang 82c7393a22 S7: pm: enable pm [1/1]
PD#SWPL-170696

Problem:
enable pm node

Solution:
enable pm node

Verify:
s7_bh201

Change-Id: Ied89c5fe6b58e53af14cf613e7c50a8c6d82e525
Signed-off-by: changpeng Jiang <changpeng.jiang@amlogic.com>
2024-05-29 01:59:04 -07:00
Jianxiong Pan 039f2618fa dts: set the default cma pool size to 4M. [1/1]
PD#SWPL-170753

Problem:
reduce cma size.

Solution:
set the default cma size from 8M to 4M.

Verify:
local.

Change-Id: Ib031a1411ae8378fea5f46fbfe621cfcbaff8da2
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-05-28 03:58:23 -07:00
Long 953cd02338 eMMC: fix source clock as 1536mhz. [1/1]
PD#SWPL-160685

Problem:
vpu needs to share the gp0 clock source with emmc

Solution:
fix source clock as 1536mhz

Verify:
T5m ay301

Change-Id: Ie5de22c9aa7afc158ee44eb6d1d552bfb984a51d
Signed-off-by: Long <long.yu@amlogic.com>
2024-05-28 01:48:39 -07:00
Liming Xue 816c9d52aa host driver: m4 reconstruction [1/1]
PD#SWPL-163428

Problem:
1.kernel5.15 M4 reconstruction
2.bl40/mfh start smc uses different cmd
3.dsp start/suspend/remap smc uses different cmd
but there are dsp functions, so need to use the same cmd together

Solution:
1.kernel5.15 M4 reconstruction
2.bl40 and mfh smc cmd uses the same
3.dsp start/suspend/remap smc cmd uses the same

Verify:
a1/a5/c1/c2/sc2/sm1/g12a/t3/t3x/t7/t7c/

Change-Id: I103e6c8d1df824188dfa8e1d4ba443551ce1265c
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
2024-05-27 07:32:42 -07:00
Huqiang Qin fcb589b800 adc_keypad: support adc keypad [1/1]
PD#SWPL-170469

Problem:
Need ADC Keypad.

Solution:
Copy the adc_keypad node from BH201.

Verify:
Build pass

Change-Id: Ief466e00dec6bba3086764afc75e77a3c1c382c2
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2024-05-27 01:53:22 -07:00