Commit Graph

114 Commits

Author SHA1 Message Date
shufei.zhao 1e5344bcc0 dts: sync dts from k5.15 to k6.6 [1/1]
PD#SWPL-191996

Problem:
sync dts from k5.15 to k6.6

Solution:
sync dts

Verify:
s7

Change-Id: Ia4a3b5e0c03d135a7960eb8c2f1a1315ac665287
Signed-off-by: shufei.zhao <shufei.zhao@amlogic.com>
2024-11-24 20:03:52 -08:00
Junyi Zhao 983a835b0c led: sync patch from 5.15 [1/1]
PD#SWPL-191876

Problem:
kernel6.12 bring up

Solution:
sync tee patch
sync std hib patch
sync optimize patch

Verify:
sc2 ah212

Change-Id: I444307ae06a94a3f6e67d28936ad5b59a8817c29
Signed-off-by: Junyi Zhao <junyi.zhao@amlogic.com>
2024-11-15 04:39:24 -08:00
Qianggui Song e35a5f1e4f pinctrl: sync 5.15u to 6.12 [1/1]
PD#SWPL-192254

Problem:
Need to sync code to latest 6.12

Solution:
sync 5.15u pinctrl driver to 6.12
platform: tm2/s6/s7/s7d/t6d

Verify:
sc2 local

Change-Id: I68643dc025ca9aa35c311a7fb50b154ea4f852a2
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2024-11-12 04:09:04 -08:00
Liming Xue 7483c429d0 host driver: synchronize fixed code from kernel5.15 [1/1]
PD#SWPL-192261

Problem:
need synchronize fixed code from kernel5.15 to kernel6.12

Solution:
fixed

Verify:
sc2

Change-Id: I9247afced7ae103ca84cda95a962622c5511dfd6
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
2024-11-11 22:06:32 -08:00
Yao Jie 584b583516 mailbox: t5m add aocpu alive check mechanism [1/1]
PD#SWPL-192199

Problem:
When modules send mailbox message to aocpu, sometimes
aocpu can not response because of stuck or interrupt
signal lost, at this time driver modules need to know
whether aocpu is alive or not, this is helpful to debug.

Solution:
Add aocpu alive check mechanism, when aocpu did not
response, system will check and print aocpu status.

Verify:
T5M-AY309

Change-Id: Ibe29fc3d25e0f8b868bb3863417df88215692a93
Signed-off-by: Yao Jie <jie.yao@amlogic.com>
2024-11-08 06:03:06 -08:00
yiting.deng 5eba435db6 clk: synchronize fixed code from kernel5.15 [1/1]
PD#SWPL-192113

Problem:
need synchronize fixed code from kernel5.15 to kernel6.12

Solution:
fix code

Verify:
mk.sh check

Change-Id: I6d14893bf361dbb7215134adff5b1b5c1ca28c63
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2024-11-08 00:07:57 -08:00
Yao Jie 5f868c9719 mailbox: bringup g12a mailbox on new mailbox architecture [1/1]
PD#SWPL-192182

Problem:
The g12a mailbox dtsi configuration does not
accommodate the new mailbox driver architecture

Solution:
Change g12a mailbox dtsi to accommodate the new
mailbox driver architecture

Verify:
G12A

Change-Id: I0e6b34a2ea8529ea22aed8afcb5e8107bc7d93e3
Signed-off-by: Yao Jie <jie.yao@amlogic.com>
2024-11-07 19:50:07 -08:00
hongyu.chen1 41b2e92b8a Power: add domain config and std modify. [1/1]
PD#SWPL-192039

Problem:
Kernel6.12 need config power domain.

Solution:
add config.

Verify:
Compiled successfully

Change-Id: Ia5bdd8c1c330f21498972606574f3f8debfb8646
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2024-11-07 03:54:16 -08:00
Liming Xue d64c1cade0 thermal: kernel6.12 add ddr thermal control driver [1/1]
PD#SWPL-185025

Problem:
refactoring ddr control driver

Solution:
add ddr control driver

Verify:
sc2

Change-Id: I4a04a49064d88aff0cd90784dcdc6e5b05a53920
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
2024-11-01 00:50:36 -07:00
jian zhou 56fa9d7c2b audio: sync audio code from k5.15 [1/1]
PD#SWPL-188427

Problem:
sync audio code from k5.15

Solution:
sync audio code from k5.15

Verify:
sc2

Change-Id: I60fe2598f46a9a9c64e14ab80aa840169935e8d7
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2024-10-30 19:12:01 -07:00
Zelong Dong faad4e8d5b ir: support mbox for some func [2/3]
PD#SWPL-182441

Problem:
need to support mbox for some func

Solution:
1. get wakeup framecode
2. enable/disable debug log
3. set wakeup key table
4. enable/disable bl30 ir
5. get the last powerkey

Verify:
t6d_br301

Change-Id: I40e3d6eb08903533f975eba87e18a24148055b70
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-10-28 17:06:56 +08:00
Zelong Dong 18410be2c8 mailbox: support device id & command for IR [1/3]
PD#SWPL-182441

Problem:
support device id & command for IR

Solution:
support device id & command for IR

Verify:
t6d

Change-Id: I42f6a0117cf8ce3891c9a97885ad3216d54a0f29
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-10-28 17:05:03 +08:00
Zelong Dong a79dfe7890 ir: support 2 multi-format ir controller [1/1]
PD#SWPL-163059

Problem:
legacy ir controller was updated to multi-format ir controller
and each controller have a IRQ

Solution:
support 2 IRQs in ir driver

Verify:
s7d_bm201

Change-Id: I268562144440d642e4f635dbe76bb45f799d6bee
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-10-28 15:55:32 +08:00
yiting.deng 5afc832897 clk: optimize pll driver to adapts 32bit and 64bit [1/1]
PD#SWPL-188367

Problem:
1. Optimized pll clk_ops for 32bit and 64bit compatibility
2. use the integrated pll clk_ops to adapt supported chips

Solution:
1. already integrated into pll clk_ops
2. supported chips already adapted.

Verify:
sc2

Change-Id: Ie202432ea962135c000d63eb254e9a5e100d2ab0
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2024-10-27 23:09:23 -07:00
Ao Xu 6cc9aab0a3 drm: sync 5.15 CL to 6.12 drm driver [1/1]
PD#SWPL-188410

Problem:
6.12 drm driver bringup

Solution:
sync 5.15 CL to 6.12 drm driver
delete CONFIG_AMLOGIC_KERNEL_VERSION related code

Verify:
sc2

Test:
DRM-OSD5,DRM-OSD-16

Change-Id: I27819e8d5c733961e0816a84050d0367f22df8fe
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2024-10-17 22:46:45 -07:00
Chuan Liu 80e6ab68ea clk: a4: Update scmi-clk [1/1]
PD#SWPL-171039
PD#SWPL-166131

Problem:
scmi-clk in bl31 has been updated, and the kernel also needs to be updated.

Solution:
1 Move fixpll, sys_clk and axi_clk to bl31;
2 Add oscin, sys_pll_div16 and cpu_clk_div16.

Verify:
a4_ba400

Change-Id: I6fcfa71420fd1c3147e0a874ed91f7ffa053f3ab
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2024-07-12 15:05:51 +08:00
jiebing chen ba4f6edc6a Audio: SM1 kernel 6.6 need support oe pin function [1/1]
PD#SWPL-160450

Problem:
oe pin can't work

Solution:
add oe pin control

Verify:
sm1-s905d3-ac200

Change-Id: I2eef3dbaf43f6fa2c4f231b0ab629ad4a80404d6
Signed-off-by: jiebing chen <jiebing.chen@amlogic.com>
2024-06-27 12:13:25 +00:00
Ao Xu aaf207f308 drm: sync drm driver [1/1]
PD#SWPL-160959

Problem:
need sync drm driver

Solution:
need sync drm driver

Verify:
sc2

Test:
DRM-OSD7, DRM-OSD-8, DRM-OSD-9

Change-Id: I328292635bffce869dd05c2f5f75bb348cc32921
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2024-06-27 12:12:06 +00:00
yiting.deng 50e103fc8a clk: a4: kernel6.6 upgrade clk-scmi [2/2]
PD#SWPL-161078

Problem:
a4 kernel6.6 upgrade clk-scmi

Solution:
1. update clk scmi(bl31 and kernel)
2. change to dvfs v2 to adapt scmi clk

Verify:
a4_ba400

Change-Id: I8b05e9c6aad5a18a9f64bb17f174915193c54446
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2024-04-02 01:51:06 -07:00
hongyu.chen1 c20fac41a4 spinlock: porting spinlock to kernel 6.6. [1/1]
PD#SWPL-157145

Problem:
kernel6.6 need support bak spinlock

Solution:
1.Migrate the driver to ensure normal functions.
2.Add the mbox communication configuration address

Verify:
ba400 and av400

Change-Id: I35f29a83aacb6f8366aa226abd60d4dfea41f8b2
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2024-03-07 17:53:11 +08:00
Yao Jie 3e50c8b359 mailbox: A4 and A5 mailbox bringup [1/1]
PD#SWPL-149443

Problem:
A4 and A5 mailbox bringup

Solution:
A4 and A5 mailbox bringup

Verify:
A4-BA409
A5-AV409

Change-Id: Id7be65a6baf621bf10e72b3a0a8ec16a21f7eeb1
Signed-off-by: Yao Jie <jie.yao@amlogic.com>
2023-12-20 01:52:30 -07:00
Wanwei Jiang b5524e8e6c kernel6.6: bring up to console for a4 and a5 [1/1]
PD#SWPL-149306

Problem:
bring up to console

Solution:
1. poritng dts from kernel5.4
2. modify build script for kernel6.6

Verify:
local

Change-Id: I41748eedb1592c01b54c0b7c4a96623df99fa5ec
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-12-15 18:34:04 +08:00
Long 89c6649032 G12a: enable emmc/sdcard/sdio. [1/1]
PD#SWPL-133324

Problem:
not support emmc/sdcard/sdio function.

Solution:
enable emmc/sdcard/sdio function.

Verify:
g12a_u211

Change-Id: Ifa30eb5b7d2b3f9f817576290fd154ebf59ea9d7
Signed-off-by: Long <long.yu@amlogic.com>
2023-11-02 11:15:49 +08:00
Chuan Liu 9ecf96e6a7 clk: g12a/g12b/sm1: lost gen_clk [1/1]
PD#SH-16937

Problem:
gen_clk is missing from the clock tree.

Solution:
added

Verify:
g12b

Change-Id: I66f2bd0b98ba0e4f05bb502ea72fe6b64ac45887
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2023-10-30 02:27:46 -07:00
Liming Xue d70741d666 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>
2023-09-25 00:13:42 -07:00
Yao Jie e8d273a61f mailbox: change t5d mailbox configuration [1/1]
PD#SWPL-137756

Problem:
The current t5d mailbox configuration is not suitable for the
reconstructed mailbox driver

Solution:
Change t5d mailbox configuration

Verify:
T5D-T950X4-AM311

Change-Id: I691358da6c85ff0c2a000a0b641718517349452a
Signed-off-by: Yao Jie <jie.yao@amlogic.com>
2023-08-29 06:19:06 -07:00
Chuan Liu 631a6fc5a9 clk: g12a/g12b/sm1: standard the naming of the clock [1/1]
PD#SWPL-137162

Problem:
Some clock names are ambiguous

Solution:
fixed

Verify:
w400

Change-Id: Ia5cba038a1b57d2274f9bfff931fcb0d49d421b9
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2023-08-24 03:54:11 -07:00
Jian Hu 554b203a3c dts: add t5d device tree [1/1]
PD#SWPL-128885

Problem:
kernel 5.15 t5d bringup

Solution:
add dts support

Verify:
t5d

Change-Id: Ia3bf3a2923d0a949389d1397b952a343da8a8da6
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2023-08-24 10:49:21 +08:00
Shunzhou Jiang 098bf7992e s1a: mbox driver bringup [1/1]
PD#SWPL-87115

Problem:
mbox driver bringup

Solution:
mbox driver bringup

Verify:
s1a

Change-Id: I99b5e45eea575cf133b8f8228916e5505936c473
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
2023-08-15 20:08:59 -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
Chuan Liu 0377ab14a9 clk: s1a: lost sar_adc clock [1/1]
PD#SWPL-133117

Problem:
lost sar_adc clock

Solution:
add

Verify:
s1a_bg209

Change-Id: Ie6d3f62cdecc64e113fed51e2c41f93a679aad67
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2023-08-15 10:37:49 +08:00
Chuan Liu b713a7059f clk: s1a: fix known issues [1/2]
PD#SWPL-133117

Problem:
1 adapts to the new driver
2 some clock descriptions are incorrect
3 unified clock naming Convention

Solution:
fixed

Verify:
s1a_bg209

Change-Id: I4a7296a81b4662978b9aab225bf615ef4ec8747e
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2023-08-15 10:36:50 +08:00
Zelong Dong 73127f71a3 pinctrl: s1a: support pinctrl & gpio function [1/1]
PD#SWPL-120775

Problem:
s1a need support gpio & pinctrl

Solution:
add s1a pinctrl data

Verify:
s1a_pxp

Change-Id: I06e789a2ab621d4bf3756dcdff6e13ec4a13d8f9
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2023-08-15 10:36:03 +08:00
Chuan Liu 43b35e9123 clk: s1a: clock tree bringup [1/2]
PD#SWPL-120773

Problem:
clock tree bringup for s1a

Solution:
add support

Verify:
pxp

Change-Id: I21040ed89cbd969bf71c250ef97b55592e4a43cb
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2023-08-15 10:36:03 +08:00
hongyu.chen1 5f473e322c S1A: add power domain. [3/3]
PD#SWPL-120910

Problem:
s1a need power domain.

Solution:
add power domain in kernel.

Verify:
pxp

Change-Id: Iffb97862c55034de94806a21aace59aab023526e
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2023-08-15 10:36:03 +08:00
Qianggui Song d258a3a585 reset: add s1a reset driver data [1/1]
PD#SWPL-120780

Problem:
s1a bringup need reset driver support

Solution:
add s1a reset driver data

Verify:
s1a_z1

Change-Id: I563a230435169795bf28990781c9029367fcea8c
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2023-08-15 10:36:03 +08: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
Jian Hu a117903841 clk: t3x: add gp1 support [1/1]
PD#SWPL-130649

Problem:
there is no gp1 pll

Solution:
add gp1 support

Verify:
t3x

Change-Id: I47954709035c28e20079de481a960924e68d3629
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2023-07-09 15:08:35 -07:00
yiting.deng 1439098f49 clk: adapt cpu_dyn_clk in c1 branch [1/1]
PD#SWPL-128494

Problem:
1 not support non-secure ops function for cpu_cyn_clk
2 When c1 describes the same frequency, the corresponding
defined frequency is different.

Solution:
1 add non-secure ops function for cpu_cyn_clk
2 unify frequency to 666666666Hz

Verify:
c1_ae400

Change-Id: Idec9a54d7010e18336be02fd488239dd7114986b
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2023-07-07 14:33:12 +08:00
Chuan Liu b5a9102fa4 clk: c1: update clock tree [1/1]
PD#SWPL-124230

Problem:
1 fclk50m is not added to clock tree;
2 dsp clk failed to set the frequency;
3 clkid incorrectly defined.

Solution:
fixed

Verify:
c1_ae400

Change-Id: Ieef2f603f72a6b0104b295b37c4a9ec448923d7c
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2023-07-07 14:28:26 +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 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
junyi.zhao 091fa0738d clk: support pll range driver on 32bit os [1/1]
PD#SWPL-125774

Problem:
there is no range driver on 32bit os

Solution:
support

Verify:
TXHD2 be319

Change-Id: Ie8e40ade1c577d62a5cb551a4b3b08dd9d6056ac
Signed-off-by: junyi.zhao <junyi.zhao@amlogic.com>
2023-06-30 03:15:07 -07:00
junyi.zhao 0a028a6b56 clk: fix vapb_1 register fail [1/1]
PD#SWPL-130041

Problem:
vapb_1 clk is invalid

Solution:
fix it CLK_ID

Verify:
T3X BC302

Change-Id: I1b196cbfcebe57fa7ea3d6b5e26820d66d59636b
Signed-off-by: junyi.zhao <junyi.zhao@amlogic.com>
2023-06-30 01:51:13 -07:00
junyi.zhao c69ea1ba48 clk: add dmux clk [1/1]
PD#SWPL-125774

Problem:
there is no dmux

Solution:
fix it

Verify:
TXHD2 be319

Signed-off-by: junyi.zhao <junyi.zhao@amlogic.com>
Change-Id: Idc946009ed96e9d718f191f2d6ec02b01a1e6894
2023-06-29 10:34:02 +08:00
hongyu.chen1 7f963d3f8c TXHD2: add vdec power domain. [3/3]
PD#SWPL-126459

Problem:
need vdec power domain.

Solution:
add virtual power domain vdec.

Verify:
be319

Change-Id: Iea8f4d29771d1199099f87ecccf7138eb0ccf9e6
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2023-06-29 10:34:02 +08:00
Jian Hu ae557798a5 clk: add sys pll and cpu clk support [1/1]
PD#SWPL-125774

Problem:
txhd2 bringup

Solution:
add sys pll and cpu clk support

Verify:
txhd2 be311

Change-Id: I6283d3c12729382b5e1c69c0de1d7c54ae4f20f1
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2023-06-29 10:34:02 +08:00
jiebing chen 440fb802d2 Audio: bringup txhd2 audio [1/1]
PD#SWPL-124883

Problem:
bringup txhd2 audio

Solution:
bringup txhd2 audio

Verify:
use txhd2

Change-Id: I63bcd61778cb7f89ad44bf01854d93d163c77630
Signed-off-by: jiebing chen <jiebing.chen@amlogic.com>
2023-06-29 10:34:01 +08:00
Huqiang Qin c560f44b22 gpio: txhd2: fixed testn pin issue [1/1]
PD#SWPL-125776

Problem:
TXHD2 Silicon Bringup

Solution:
TXHD2 Silicon Bringup

Verify:
TXHD2/BE319

Change-Id: I21b1f2070cb8f0830b8fa007de6cf3ac6d577a28
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.co
2023-06-29 10:34:00 +08:00
Huqiang Qin b54e9e5d7d pinctrl: txhd2: support testn pin [1/1]
PD#SWPL-118807

Problem:
TXHD2 PxP Bringup.

Solution:
TXHD2 PxP Bringup.

Verify:
PTM

Change-Id: I655636c6039e1b8e6b63605c2fce22707c140dc2
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2023-06-29 10:33:58 +08:00