Commit Graph

1252 Commits

Author SHA1 Message Date
shinys000114 d73a0803be ODROID-C5: hdmitx: add Vu12 support
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
Change-Id: I2129a728e05814f7845cbde0654911252887b4de
2025-11-07 14:39:28 +09:00
Dongjin Kim e7f0cbeb41 (DO NOT MERGE) ODROID-C5: gki: fix compile error when AMLOGIC_GKI_TOOL' is disabled
Change-Id: I09173412aa62dfa433f740581427c55b7a5695e4
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2025-11-07 14:39:28 +09:00
Dongjin Kim 8a7a8cfd11 ODROID-C5: gpu/arm: Mali update from 'yocto-kirkstone-bsp-202501'
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I622c662f450662b4b006163fb0b0cac6ffe57bdc
2025-11-07 14:39:28 +09:00
Dongjin Kim 24145b7953 ODROID-C5: gpu/arm: Add Mali GPU driver from Amlogic BSP
REPO: yocto/platform/hardware/arm/gpu
	HEAD: 518f143adcb6e3a361e4bf1c6b69aa4f082a8908
	FROM: valhall/r41p0/kernel

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Icbb57998b8e040f590024d22bb72b4647c782352
2025-11-07 14:39:27 +09:00
joy.rao 2f8342b77d resman: CF2 counter resource index manage [1/1]
PD#SWPL-219331

Problem:
need add new resource

Solution:
add new resource
add counter resource index manage

Verify:
sc2

Change-Id: Iaf1532bd98e14d805c655a66fc23e19ba1cdcf72
Signed-off-by: joy.rao <joy.rao@amlogic.com>
2025-08-14 19:23:28 -07:00
zhikui.cui 37742c9260 nand: fix compile failure [2/2]
PD#SWPL-202841

Problem:
1. Compile failure if CONFIG_AMLOGIC_SPI=y and
CONFIG_AMLOGIC_MTD_COMMON=m
2. Compile failure if CONFIG_AMLOGIC_EFUSE_UNIFYKEY=m
but CONFIG_AMLOGIC_MTD_COMMON=y

Solution:
1. The resources (page_info.c) in amlogic-mtd-common is by they
spinand controller driver and slcnand driver depends on.
So it defaults to configure build-in or ko according to spinand
controller driver and slcnand driver. if they have on configuration
as build-in, then amlogic-mtd-common is configured as build-in,
and if they are ko. then amlogic-mtd-common is configure as ko.

2. Adjust dependency relationships, it Maybe more reasonable for
unifykey depends on mmc/nand. mmc/nand export symbol uk_nand/uk_mmc
to unifykey.
2. put the rsv check to rsv init.

Verify:
T6D

Change-Id: Ibb14852d5dabfac451f3ccd907ae603ce3ff6a31
Signed-off-by: zhikui.cui <zhikui.cui@amlogic.com>
(cherry picked from commit 3f5e2e619c005d7fe32a626012def85b7b2bf92a)
2025-08-12 03:50:21 -07:00
shufei.zhao c140837220 unifykey: fix compile failure [1/2]
PD#SWPL-202841

Problem:
Compile failure if CONFIG_AMLOGIC_EFUSE_UNIFYKEY=m
but CONFIG_AMLOGIC_MTD_COMMON=y

Solution:
Adjust the dependencies between
UnifyKey and MMC/NAND

Verify:
t7c

Change-Id: I8ec5e47d473493e82f5c8d586d1d2dfebe6e9511
Signed-off-by: shufei.zhao <shufei.zhao@amlogic.com>
(cherry picked from commit 2878f3251c4e0eca7039ec2688dd92fd57a8f198)
2025-08-12 03:50:03 -07:00
can.zhang 321137bbe9 amdv: add policy ioctl [1/1]
PD#SWPL-221572

Problem:
need add ioctl

Solution:
add code

Verify:
Verified on local

Change-Id: I3a8b802bfe2a05fb60ab92e9b79fe4334655fb12
Signed-off-by: can.zhang <can.zhang@amlogic.com>
2025-08-12 00:21:03 -07:00
jinbing.zhu 226c5f0ac4 amvecm: new ioctl cmd for get force output [1/1]
PD#SWPL-220920

Problem:
new ioctl cmd for get force output.

Solution:
add new ioctl cmd and flow.

Verify:
t5w

Change-Id: I0958926e66ae9dc4e5a4d4a12efa74f642fb4e33
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2025-08-12 00:20:53 -07:00
hualing chen a1df1f0cfd media_proxy: CF0 add inject cc and get cc api. [2/2]
PD#SWPL-185979

Problem:
1 CF0 add inject cc and get cc api.

Solution:
1 add add inject cc and get cc api.

Verify:
ohm

Change-Id: Ib801f6ace0a87fcb68461286876f5924d88eb9d5
Signed-off-by: hualing.chen <hualing.chen@amlogic.com>
2025-08-07 14:10:32 +08:00
ruofei.zhao 55d90ba9a5 hdmitx: remove the is_hdr10plus_enable judgment logic [1/1]
PD#OTT-75696
PD#OTT-82344
PD#SWPL-207086

Problem:
When OTT is connected to a TV that supports hdr10plus and it is
turned on for the first time, it shows that it does not support
hdr10plus

Solution:
remove the is_hdr10plus_enable judgment logic,
add the enable_hdr10plus node in the amhdmitx device tree to
perform hdr10plus logic judgment

Verify:
S905X5

Test:
DRM-TX-78

Change-Id: Ie4bf4d0d9d61287a339b35f1b8c5ad973e2b855f
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2025-08-06 22:52:39 -07:00
can.zhang 43bd0528cb amvecm: fix is_hdr10plus_enable value [1/1]
PD#OTT-82344

Problem:
When OTT is connected to a TV that supports hdr10plus and it is
turned on for the first time, it shows that it does not support
hdr10plus

Solution:
remove the is_hdr10plus_enable judgment logic,
HDR10plus strategy selection by HDR module

Verify:
S905X5

Change-Id: I895a50655b103b3b55aee561e22f4ceb9b9c4727
Signed-off-by: can.zhang <can.zhang@amlogic.com>
2025-08-07 10:43:50 +08:00
jinbing.zhu 41835eaacc amvecm: modify vadj config when load dv ko and sync sr flow. [1/1]
PD#SWPL-220922

Problem:
modify vadj config when load dv ko and sync sr flow

Solution:
modify vadj config when load dv ko and sync sr flow

Verify:
s7d

Change-Id: I1c2caefb8f35dd5b10722f8a6d94bbf00c210352
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2025-07-24 02:25:02 -07:00
Mingliang Dong 5696db4462 amvecm: align vd1 mute and vadj1 control [1/1]
PD#SWPL-214361

Problem:
vadj1 setting affect vd1 mute

Solution:
disable vadj1 when vd1 mute

Verify:
T5W

Change-Id: I8f1845aa1f1eeb67a46070fc48c7743db32bd343
Signed-off-by: Mingliang Dong <mingliang.dong@amlogic.com>
2025-06-16 20:44:14 -07:00
Huqiang Qin 89cd3089b7 saradc: s6: fix possible sampling bug [1/1]
PD#SWPL-177668

Problem:
Unable to sample the correct voltage.

Solution:
Follow the steps below to use the workaround sampling method
Step1: Delay 50us
Step2: ADC_EN set to 1
Step3: Delay 200us
Step4: Reset analog
Step5: Delay 20us
Step6: Trigger sampling

Verify:
S6/BL201 S7D/BM201

Change-Id: I20a777515d5230627c9b557e2452a656456976d1
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2025-06-16 04:37:57 -07:00
Pengcheng Chen 8dae4733e4 vpp: add bitdepth to video_state [1/1]
PD#SWPL-216090

Problem:
add bitdepth to video_state

Solution:
add bitdepth to video_state

Verify:
t6d

Change-Id: Idbc8f115ed1ce423e942933f974b455de3c2d0d9
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2025-06-03 01:43:25 -07:00
jianhua.yi 274174a63f PQ: pq xml by hdr type [1/2]
PD#TV-159332

Problem:
pq xml by hdr type

Solution:
pq xml by hdr type

Verify:
Yocto

Change-Id: I765106b22c86359516b85d43be095765cecd285b
Signed-off-by: jianhua.yi <jianhua.yi@amlogic.com>
(cherry picked from commit c9f73279294dc8d9a511dab291122f7c71e9c56a)
2025-05-07 19:49:55 -07:00
Jian Cao 4058cb32a1 vpp: add aisr_en ioctl [1/1]
PD#SWPL-209170

Problem:
add IOC Interface to replace direct module parameter access

Solution:
complete it

Verify:
t5m

Change-Id: I611d76f43af8c932788953f9a43788e8d29cd88a
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2025-04-22 00:47:23 -07:00
zhicheng.huang a9fc670c36 dvb_extern: add tuner CXD6866ER(V1.28) [1/2]
PD#OTT-74677

Problem:
add tuner CXD6866ER

Solution:
1.add tuner CXD6866ER
2.version V1.28

Verify:
s7d

Change-Id: I7d5be5911f7da97c7803ce0b7e24a1b286001007
Signed-off-by: zhicheng.huang <zhicheng.huang@amlogic.com>
2025-03-27 15:00:17 +08:00
zongdong.jiao bd78ce9559 hdmitx: add game vrr function [1/1]
PD#SWPL-134041
PD#SWPL-188697

Problem:
Lack game vrr function

Solution:
Add game vrr function
Add game brr vic

Verify:
s5/tyson

Test:
DRM-TX-75

Change-Id: Ieecd0abdd99ac86f39ad43702a1aba3383d6d7e5
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2025-03-18 15:41:56 +08:00
mingyang.he a8657529c1 drm: combine libdrm meson_drm.h and kernel meson_drm.h [1/1]
PD#SWPL-199967

Problem:
include kernel meson_drm.h in libdrm

Solution:
combine libdrm meson_drm.h and kernel meson_drm.h

Verify:
sc2

Test:
DRM-OSD-44

Change-Id: Iec6b2ea1926a0696bd4f2b43f3237a23cdcfd21e
Signed-off-by: mingyang.he <mingyang.he@amlogic.com>
(cherry picked from commit c60eea1f4179796ba89519a1daf45e189589b7d7)
2025-03-14 00:26:54 -08:00
chen.xu 62d7ae6b5e amlvideo2: screencap support random buffer num [1/1]
PD#SWPL-201711

Problem:
screencap need support random buffer num.

Solution:
support.

Verify:
T982

Change-Id: Icfe2d5d0e65837c164a113aefb3e0b249c5279e5
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2025-03-13 01:03:04 -08:00
qinghui.jiang 5e93b93e46 amvecm: add ioctl for params [1/1]
PD#SWPL-197567

Problem:
Add IOC interface for parameter access.

Solution:
Add IOC interface for parameter access.

Verify:
T950D5

Change-Id: I8ff2f6b409c65703a4aec765555853fea088ff2a
Signed-off-by: qinghui.jiang <qinghui.jiang@amlogic.com>
2025-03-06 00:24:21 -08:00
can.zhang 64ae87eeaa amdv: add IOC Interface to replace direct module parameter access [1/1]
PD#SWPL-197568

Problem:
need add IOC Interface

Solution:
add code

Verify:
sc2

Change-Id: Iff33dee840ba66e259170b0947b00e355d1b18fe
Signed-off-by: can.zhang <can.zhang@amlogic.com>
2025-03-06 00:24:12 -08:00
mingyang.he 8c2a5de15e drm: set connector force by ioctl instead of write node [1/1]
PD#SWPL-197569

Problem:
write/read nodes in libdrm is no longer allowed

Solution:
use ioctl instead of the connector's status node function

Verify:
sc2

Test:
DRM-OSD-44

Change-Id: I6a2433854f69e5be993be8d7455532fe5c178b45
Signed-off-by: mingyang.he <mingyang.he@amlogic.com>
2025-03-06 00:24:02 -08:00
hai.cao 377cbf1ec6 vpp: add ioctl for some module parameters [1/1]
PD#SWPL-198205

Problem:
add ioctl for some module parameters

Solution:
add ioctl for some module parameters

Verify:
all platforms

Change-Id: I0b8203f3ff32f05efa57e59ce37ceb261c6f9f8a
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2025-03-06 00:23:52 -08:00
zhan.wang 028ca86a00 amvecm: pi & safa reg control [1/1]
PD#SWPL-201224

Problem:
Both pq and vpp control pi_en

Solution:
pq don't control pi_en reg

Verify:
verify on s7d

Change-Id: Ib33e435742c8bf909accf94e7728a7ef6294d891
Signed-off-by: zhan.wang <zhan.wang@amlogic.com>
2025-02-25 02:39:24 -08:00
Zelong Dong f82bcc98aa ir: update IOCTL cmds [1/1]
PD#SWPL-195993

Problem:
move ir header file to include/uapi/ & update IOCTL cmds

Solution:
move ir header file to include/uapi/ & update IOCTL cmds

Verify:
sc2

Change-Id: Ib98ccb26746a67d6bc040666101193bd104eee6a
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2025-02-20 17:17:24 +08:00
yajing.li af6615f3c2 uvm: add interface for info sync [1/1]
PD#SWPL-197008

Problem:
metadata miss after do rotation with ge2d

Solution:
add interface for info sync

Verify:
Yocto 5.15

Change-Id: I935e4930fea97455d77210e886be93d88e01ffbf
Signed-off-by: yajing.li <yajing.li@amlogic.com>
2025-02-20 17:16:38 +08:00
rong.wang dfa9bc84fe deinterlace: modify motion param for link mode [1/1]
PD#SWPL-187819

Problem:
PQ problem happened when link mode

Solution:
modify motion param for link mode

Verify:
t6d

Change-Id: I654938a6cc26b520654ed81f9185515371c957e4
Signed-off-by: rong.wang <rong.wang@amlogic.com>
2025-01-01 17:26:28 -08:00
zijie.lin 19fd2159d4 lcd: add preboot mode [1/1]
PD#SWPL-186970

Problem:
add new feature: preboot mode
lcd on, bl off in uboot and kernel

Solution:
add init level ctrl

Verify:
t5m

Change-Id: I5fba2dc23fd2090afb5b699e471e2448a0b80124
Signed-off-by: zijie.lin <zijie.lin@amlogic.com>
2025-01-01 17:24:11 -08:00
Gerrit Code Review 6fc2019e00 Merge "rdma: optimize rdma write time consuming [1/1]" into amlogic-5.15-dev 2024-12-31 02:57:19 -08:00
Tao Zeng b44e41fa7c amfc: coverity clean for amfc driver [1/1]
PD#SWPL-197988

Problem:
AMFC have coverity issues

Solution:
fix following issues:
338199	Uninitialized
338198	Unused value
338197	Unused value
338196	Uninitialized scalar variable
369089	Thread deadlock	Medium

Verify:
S7D

Change-Id: I9a8adb6487d472ae2678d03bcc70064ec99fe399
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2024-12-31 02:56:10 -08:00
hai.cao fea1b1eb88 rdma: optimize rdma write time consuming [1/1]
PD#SWPL-176955

Problem:
rdma write reg time consuming too long

Solution:
write reg by different table to reduce time consuming

Verify:
all chip

Change-Id: Iba5254de3039958afcca33c0813ed6d479e8414c
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2024-12-31 02:50:32 -08:00
lizhi.hu 2617e08f33 DisplayPortTX: isolate driver and interface IP ctrl [1/1]
PD#SWPL-197920

Problem:
be ready for next DPTX chip
be ready for dual-port(master and slave) interface ctrl

Solution:
isolate driver and interface IP ctrl

Verify:
t7_an400

Change-Id: I4dfe179326098dcbd8c4bfa151be63904dd2001c
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2024-12-29 22:28:28 -08:00
Evoke Zhang d95cd37b49 lcd: update ini parser version [2/2]
PD#SWPL-190740

Problem:
need update ini parser version

Solution:
update ini parser version

Verify:
ay301

Change-Id: I009bdb41e0e169904199b1d75be0f6aba7a296a7
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-12-29 22:28:19 -08:00
Tao Zeng c1cf3a672e amfc: do not run ko on soc which not support amfc [1/1]
PD#SWPL-197993

Problem:
boot crash due to amfc driver run on sm1

Solution:
check if soc support amfc before run

Verify:
local

Change-Id: Ia10bd62ebbe65fecf10a7488ec38db601be5dd34
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2024-12-27 03:13:10 -08:00
Junyi Zhao 13fca4e045 pwm: open double channel for tee [1/1]
PD#SWPL-196869

Problem:
when pwm's clk be locked by tee, all pwm should follow tee.
so, should support wifi 32K on pwm tee module.
in case of clk of wifi's pwm channel being locked.

Solution:
add  double channel to match wifi 32K legacy used.

Verify:
s6

Change-Id: I09a0ccbdf191ed31f86a6e3fc006672368eedd15
Signed-off-by: Junyi Zhao <junyi.zhao@amlogic.com>
2024-12-26 19:36:30 -08:00
donghui.wang 49fe639a1e ldim: multiple spi support [1/2]
PD#SWPL-193315

Problem:
need multiple spi support

Solution:
add multiple spi

Verify:
t3x

Change-Id: Ia5323f0260872343859ce9ba289c61e7c7705707
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2024-12-25 03:01:58 -08:00
Yongjie Zhu d460db6d07 dmaheap: add t6d cma secure [1/1]
PD#SWPL-183499

Problem:
t6d new secure gpu

Solution:
heap-secure change to cma memory

Verify:
t6d

Test:
t6d gpu secure test

Change-Id: I7b227e3dde35be4eb4d112828a8c42f8a05e8fff
Signed-off-by: Yongjie Zhu <yongjie.zhu@amlogic.com>
2024-12-25 03:01:22 -08:00
lukang.jia 1db0f137b3 vrr: add vrr support ioc [1/1]
PD#SWPL-196427

Problem:
add vrr support ioc

Solution:
add vrr support ioc

Verify:
t6d

Change-Id: I4fb2b0683d33e5c8b456675da92ee406955003a9
Signed-off-by: lukang.jia <lukang.jia@amlogic.com>
2024-12-24 00:41:14 -08:00
ruofei.zhao 43236a595c hdmitx: sync hdmitx_edid_parse.c from kernel 6.12 to kernel 5.15 [2/2]
PD#SWPL-197049

Problem:
The hdmitx_edid_parse.c of kernel 5.15 and kernel 6.12 need to be the same

Solution:
sync hdmitx_edid_parse.c from kernel 6.12 to kernel 5.15

Verify:
S905Y5-BH201

Test:
DRM-TX-78

Change-Id: I27a6f624df64450111f9a764659985305d13d425
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2024-12-23 18:11:16 -08:00
qiankun.wang 20e1de1b2c IOTM: support iotm_v2 function on t6w [1/2]
PD#SWPL-188937

Problem:
support iotm function on t6w

Solution:
support iotm funciotn on t6w

Verify:
t6w,t6d

Change-Id: I89c835ea502bfe13612f270e095307cc0bdb898b
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2024-12-19 23:16:49 -08:00
qiyao.zhou 5caba87741 di_process: support for vdec core interlace [1/1]
PD#SWPL-189234

Problem:
support for vdec core interlace.

Solution:
support for vdec core interlace.

Verify:
S905X4

Change-Id: I64ecff0b113ca14ba64a455d465fcaadbad5fca3
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2024-12-19 20:54:53 -08:00
haitao.liu e99b7c2b96 vdin: optimize the cropping function [1/1]
PD#SWPL-194265

Problem:
After enabling cropping on t6d/t3x,the video
is abnormal.

Solution:
optimize the configuration and flow of cropping function

Verify:
t3x/t6d/t5m

Change-Id: I47007d3177600a4ea7c6119c9aefbcc2cc467885
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2024-12-17 18:38:46 -08:00
Jian Cao 170cdf7d3d vpp: add check for type_ext VIDTYPE_EXT_HIGH_BANDWIDTH [1/1]
PD#SWPL-195155

Problem:
vpp needs to perform line skipping while high bandwidth

Solution:
add the corresponding flag check

Verify:
t5m

Change-Id: I0663dbb6dd0fb90058f8afba4ec7d75c76d77dc6
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2024-12-12 06:12:02 -08:00
Sunny Luo b54429856b spi: optimize spicc timing [1/1]
PD#SWPL-195518

Problem:
SPI timing should be apply on each spi device independently.

Solution:
Apply SPI timing from the controller_data of spi device.

Verify:
T5M

Change-Id: If7b814e75bff88ffac75efdd6f780f0e80b791de
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
2024-12-11 22:43:21 -08:00
lizhi.hu c1db354d15 lcd: MIPI-DSI non-burst mode [1/1]
PD#SWPL-194229

Problem:
MIPI-DSI non-burst mode para error

Solution:
fix non-burst mode config

Verify:
s6
t7

Change-Id: I086e631dcb7f2b9077e5c028de66ee9722f3bdd4
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2024-12-11 21:51:33 -08:00
Hao Shi be1c18d9d1 codec_mm: add is_reserved_ext_support [1/2]
PD#SWPL-195289
PD#SWPL-195421

Problem:
codec_mm_reserved_ext will removed for  s6 board with 2GB RAM,
the h266 mv buffer needs to support without codec_mm_reserved_ext

Solution:
alloc mv buffer form codec_mm_cma when reserved_ext not exist.

Verify:
BL201-S905X5

Change-Id: I15cd60d8bbc2cd35d2a008b13f2cb8499b9aedc2
Signed-off-by: Hao Shi <hao.shi@amlogic.com>
2024-12-11 00:51:49 -08:00
Hanjie Lin 27566bfcd3 meson_atrace: add memory alloc and meminfo event [1/1]
PD#SWPL-184150

Problem:
add memory related trace info

Solution:
1, __alloc_page and __alloc_pages_slowpath: use trace event and vendor hook
2, cma_alloc: use vendor hook in aml_cma.ko
3, handle_pte_fault: use kretprobe
4, trace meminfo periodly

Verify:
sc2_ah212

Change-Id: Icf5695f421832c00c5cad7026663f66b2dcc58a5
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2024-12-09 22:47:26 -08:00