Commit Graph

1075770 Commits

Author SHA1 Message Date
f8457b3515 ODROID-C5: config: enable config for mcp2221, USB to I2C
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
Change-Id: I3f3ba500a4e98fdadc83069664b33b60e4933fcf
2025-05-25 08:15:35 +09:00
665213cea5 ODROID-C5: config: enable config USB to TTL driver
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
Change-Id: I693146d95a97a585675a19c1c54a25b47d51b002
2025-05-25 08:15:35 +09:00
Dongjin Kim
67818c2a29 ODROID-C5: config: select default kernel config
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Id841b74717e5d65a48daed97b1ec4949d74d0cd3
2025-05-25 08:15:35 +09:00
6508aa290e ODROID-C5: config: Enable sysfs gpio
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
Change-Id: I4940abe2202b92deee1882ec3a85b0bbfd886378
2025-05-25 08:15:35 +09:00
6850d29279 ODROID-C5: config: change config CONFIG_AMLOGIC_INPUT builtin
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
Change-Id: If272e0dd3861b8ca5c8f84704f26df0b70b1e6a9
2025-05-25 08:15:35 +09:00
Dongjin Kim
ec6f7e26d6 ODROID-C5: config: fixup on top of BSP 202501
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I52729ec5f9b7035d900b5a2e076dbb6aceff009b
2025-05-25 08:15:34 +09:00
7642637f96 ODROID-C5: touchscreen: Add support ads7846
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
Change-Id: I2215059bd9a9daad3f3218d95b47379db1b7b06f
2025-05-25 08:15:34 +09:00
c61e7281c6 ODROID-C5: tft: Add Hardkernel 3.2inch TFT LCD
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
Change-Id: If48bd4bda5b5281717accdb9d65faa9ca472758f
2025-05-25 08:15:34 +09:00
c449f77675 ODROID-C5: touchscreen: ads7846: Add spi device ids
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
Change-Id: I9a9488d02003ae82b3457848072829a60d465278
2025-05-25 08:15:34 +09:00
Dongjin Kim
957dd4c6e9 ODROID-C5: config: improve to support multimedia features
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I7f39b300787f99fa13f245485626551ebd29b55e
2025-05-25 08:15:34 +09:00
Dongjin Kim
5d60b1adbb ODROID-C5: config: convert driver module to static driver
SoC level driver bugs to manage kernel binaries as well as import them
to initramfs to make them load very early, this could cause boot failure
when one fails to update initramfs. So such driver must be in kernel
blob itself, not to miss.

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Iea67d3fa3a97146db47cae25b2a7d5eb5b938f5c
2025-05-25 08:15:34 +09:00
Dongjin Kim
07e6a14655 ODROID-C5: config: remove none ODROID supported configs
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I86c86a406511b310fbbee4d975177e5a270192ed
2025-05-25 08:15:34 +09:00
13032636e2 ODROID-C5: defconfig: shtc1: Add config shtc1
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
Change-Id: I2ed4074057ec9d52381568930b6c27388ade48ad
2025-05-25 08:15:34 +09:00
f23baca83b ODROID-C5: defconfig: dht11: Add config dht11
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
Change-Id: Ia5c4e7d0ac15787513d183ffaef584e16af355e3
2025-05-25 08:15:34 +09:00
874b72b25e ODROID-C5: defconfig: onewire: Add config onewire
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
Change-Id: I5346db6dab7d4c264aca97b23eed076a9e889d4a
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
2025-05-25 08:15:34 +09:00
ffced6227f ODROID-C5: defconfig: can: Add module config MCP251X
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
Change-Id: Id6aa4f1e970937f03bfddfa08f437c35d060cfe5
2025-05-25 08:15:34 +09:00
93f5c81c6f ODROID-C5: spi: Add compatible name "linux,spidev"
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
Change-Id: I13f0a3d2ff898f0e8e3b504a38ea84666dcbf8d0
2025-05-25 08:15:34 +09:00
6281e175f7 ODROID-C5: Change flag for dt overlay
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
Change-Id: Ic5f9dea9fa288bb83010a429fc5c58413f539ae0
2025-05-25 08:15:34 +09:00
036de41f2a ODROID-C5: defconfig: spi: spidev set module
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
Change-Id: I320e6710edb8dbd2134d0638a7b597546610a283
2025-05-25 08:15:34 +09:00
Dongjin Kim
f86bfce026 ODROID-C5: arch/arm64: add 'ARCH_MESON_ODROID{C5|_COMMON}*'
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ice6bb36f197bc445d8595b18e45110cfbfafe7b2
2025-05-25 08:15:34 +09:00
22d3742909 ODROID-C5: defconfig: Edit config for blue/red leds
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
Change-Id: I30d7ddfeb64350ac65a8a7256bb558939665c03f
2025-05-25 08:15:34 +09:00
16fd7594fd ODROID-C5: gpiomem: defconfig: Add gpiomem
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
Change-Id: I977be3880cd8520a8eccffc45d477595af34b284
2025-05-25 08:15:34 +09:00
Dongjin Kim
d3c2844d0c ODROID-C5: config: enable ARM Mali GPU drivers
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I5b34b4c57bd1ec70cd8011667239b36e68c0d6cf
2025-05-25 08:15:34 +09:00
Dongjin Kim
22479b00dc ODROID-C5: config: very first kernel config
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2025-05-25 08:15:34 +09:00
Dongjin Kim
59f4cc1f49 ODROID-C5: not adding git commit value to kernel version
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2025-05-25 08:15:34 +09:00
Dongjin Kim
25f2b89664 ODROID-C5: Add new submodule 'media_modules' to media drivers
Change-Id: I683fd590315157ce77b1672ab1b947b1104641d9
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2025-05-25 08:15:34 +09:00
Dongjin Kim
6945ef66ba ODROID-C5: Add new submodule 'media_modules' to media drivers
Change-Id: I683fd590315157ce77b1672ab1b947b1104641d9
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2025-05-25 08:15:21 +09:00
Dongjin Kim
ba40bf8f64 Revert "amlbian: Support making dtb-deb [1/1]"
This reverts commit d22cc183af54b1539b856a387e43d86688941eba.
2025-01-17 15:23:45 +09:00
tuan zhang
62dff0c86a Add rumble support to latest xbox controllers
PD#SWPL-185765

Currently, rumble is only supported via bluetooth on a single xbox
controller, called 'model 1708'. On the back of the device, it's named
'wireless controller for xbox one'. However, in 2021, Microsoft released
a firmware update for this controller. As part of this update, the HID
descriptor of the device changed. The product ID was also changed from
0x02fd to 0x0b20. On this controller, rumble was supported via
hid-microsoft, which matched against the old product id (0x02fd). As a
result, the firmware update broke rumble support on this controller.

The hid-microsoft driver actually supports rumble on the new firmware,
as well. So simply adding new product id is sufficient to bring back
this support.

After discussing further with the xbox team, it was pointed out that
another xbox controller, xbox elite series 2, can be supported in a
similar way.

Add rumble support for all of these devices in this patch. Two of the
devices have received firmware updates that caused their product id's to
change. Both old and new firmware versions of these devices were tested.

The tested controllers are:

1. 'wireless controller for xbox one', model 1708
2. 'xbox wireless controller', model 1914. This is also sometimes
   referred to as 'xbox series S|X'.
3. 'elite series 2', model 1797.

The tested configurations are:
1. model 1708, pid 0x02fd (old firmware)
2. model 1708, pid 0x0b20 (new firmware)
3. model 1914, pid 0x0b13
4. model 1797, pid 0x0b05 (old firmware)
5. model 1797, pid 0x0b22 (new firmware)

I verified rumble support on both bluetooth and usb.

Change-Id: Ia84736e95dadc61e442276ae943f370fe0cb6526
Reviewed-by: Bastien Nocera <hadess@hadess.net>
Signed-off-by: Siarhei Vishniakou <svv@google.com>
2025-01-17 15:07:03 +09:00
Fabio M. De Francesco
b5108d86fa UPSTREAM: binder: Use memset_page() in binder_alloc_clear_buf()
The use of kmap() is being deprecated in favor of kmap_local_page()
where it is feasible. With kmap_local_page(), the mapping is per
thread, CPU local and not globally visible.

binder_alloc_clear_buf() is a function where the use of kmap_local_page()
in place of kmap() is correctly suited because the mapping is local to the
thread.

Therefore, use kmap_local_page() / kunmap_local() but, instead of open
coding these two functions and adding a memset() of the virtual address
of the mapping, prefer memset_page().

Cc: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Todd Kjos <tkjos@google.com>
Signed-off-by: Fabio M. De Francesco <fmdefrancesco@gmail.com>
Link: https://lore.kernel.org/r/20220425175754.8180-2-fmdefrancesco@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Bug: 368205746
Bug: 365876437
(cherry picked from commit 26eff2d66a)
Change-Id: I7bc041db662ee1e8758c173861b2229d6ad8eb1e
Signed-off-by: yenchia.chen <yenchia.chen@mediatek.com>
Signed-off-by: Carlos Llamas <cmllamas@google.com>
2025-01-17 15:07:03 +09:00
Fabio M. De Francesco
e38087f053 UPSTREAM: binder: Use kmap_local_page() in binder_alloc_copy_user_to_buffer()
The use of kmap() is being deprecated in favor of kmap_local_page()
where it is feasible. With kmap_local_page(), the mapping is per
thread, CPU local and not globally visible.

binder_alloc_copy_user_to_buffer() is a function where the use of
kmap_local_page() in place of kmap() is correctly suited because
the mapping is local to the thread.

Therefore, use kmap_local_page() / kunmap_local().

Cc: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Todd Kjos <tkjos@google.com>
Signed-off-by: Fabio M. De Francesco <fmdefrancesco@gmail.com>
Link: https://lore.kernel.org/r/20220425175754.8180-3-fmdefrancesco@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Bug: 365876437
Bug: 367895677
(cherry picked from commit 1d625960e4)
Change-Id: I49739365cf5dcf584be1aab0c93848aa9ce886a8
Signed-off-by: Carlos Llamas <cmllamas@google.com>
2025-01-17 15:07:03 +09:00
qinglin.li
88e297173c ntfs3: ntfs3 fs_umode_to_dtype not in abi list [1/1]
PD#SWPL-169224

Problem:
ntfs3 fs_umode_to_dtype not in abi list

Solution:
ntfs3 fs_umode_to_dtype not in abi list

Verify:
local

Change-Id: Ibf190585f7606539b5df98151e8dd617ad66c9da
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-01-17 15:07:03 +09:00
Long
6b489068ae eMMC: run work queue asynchronous. [1/1]
PD#SWPL-170009

Problem:
Synchronous run queues cause eMMC performance degradation.

Solution:
Asynchronous Run work queue.

Verify:
T3

Change-Id: I214f2d813373b46fd5fc64f050e00a395dd35828
Signed-off-by: Long <long.yu@amlogic.com>
2025-01-17 15:07:03 +09:00
yao zhang1
0a80f1482b Revert "f2fs: preserve direct write semantics when buffering is forced"
This reverts commit 82ab408329.

Change-Id: Ia0ad2463619b391a6589ba637edca394ff7b71eb
Signed-off-by: yao zhang1 <yao.zhang1@amlogic.com>
2025-01-17 15:07:03 +09:00
Hao Shi
c3e8d5f88b v4l: Adjust gfp_flag according to the order [1/1]
PD#SWPL-153208
PD#SWPL-131346

Problem:
1.When the memory is in short supply, if the
order is too large, the memory will not be
allocated at one time, which will increase
the allocation time.
2.Modify in vb2 did not following gki2.0

Solution:
1.According to the degree of memory shortage,
adjust the size of the order, so as to allocate
memory in small amounts and multiple times to
improve efficiency.
2.The modify in vb2 only for versions prior to
androidT and do not need to follow gki2.0. Now
use the new config to pass gki check.

Verify:
ohm

Change-Id: I4be66b8b06f9870041afefe9506d1e9f480c0bdd
Signed-off-by: Hao Shi <hao.shi@amlogic.com>
2025-01-17 15:07:03 +09:00
haotian.qu
affab35f9e fdtoverlay: fdtoverlay support delete dts node [1/2]
PD#SWPL-150301

Problem:
Fdtoverlay cann't support remove unnecessary dts node.

Solution:
Add __removenode__ key work to support the function.

Verify:
local

Change-Id: I3819a82663a90ae7a4da1d9c30c990af2d3a5fa0
Signed-off-by: haotian.qu <haotian.qu@amlogic.com>
2025-01-17 15:07:03 +09:00
Greg Kroah-Hartman
38f5e3535d Revert "ANDROID: sched/rt: Add support for rt sync wakeups"
This reverts commit 3a94958894.

It conflicts with scheduler changes going into 6.3-rc1 so it must be
removed.  If it is still needed it can be brought back after 6.3-rc1 is
merged into android-mainline.

Bug: 157906395
Cc: J. Avila <elavila@google.com>
Cc: Stephen Dickey <quic_dickey@quicinc.com>
Cc: Lee Jones <joneslee@google.com>
Change-Id: I9870034226407bc811db9c36802f0446289f13f0
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2025-01-17 15:07:03 +09:00
yi.liu
c1a3ae4526 amlbian: Support making dtb-deb [1/1]
PD#SWPL-106598

Problem:
Support making dtb-deb.

Solution:
Support making dtb-deb.

Verify:
local

Change-Id: I3cb8e8d5666f073468e55e4a4e8862f12e60b15f
Signed-off-by: yi.liu <yi.liu@amlogic.com>
2025-01-17 15:07:03 +09:00
Mingyen Hung
82ea56cf8c fscrypt: Restrict access to files protected by FBE [1/1]
PD#SWPL-130061

Problem:
RDK reference design wants to restrict accessing to files
protected by FBE

Solution:
Only owner of master key is allowed to access encrypted file

Verify:
1. on SC2(ah212) + RDK(firebolt-dunfell) + kernel 5.15

Change-Id: I136bf11ee8ae6e81fb8f6dab2af801a7ff984697
Signed-off-by: Mingyen Hung <mingyen.hung@amlogic.com>
2025-01-17 15:07:03 +09:00
Mingyen Hung
a531d58543 Crypto: Allow trusted key to be used by FBE [1/1]
PD#SWPL-130061

Problem:
Need to support trusted key for FBE.

Solution:
Hook trusted key to fscrypt

Verify:
1. fscryptctl(add_key)
2. on SC2(ah212)

Change-Id: Ie40df4ec2506f4fc4d6f7c2a52863db6e3bc661c
Signed-off-by: Mingyen Hung <mingyen.hung@amlogic.com>
2025-01-17 15:07:03 +09:00
chengbing.wu
efbc706ae6 regulator: k5.15 common driver bringup patches [1/1]
PD#SWPL-135783

Problem:
1. need use regulator to delay dvfs voltage set;
2. for boot to kernel vddcpu/vddee voltage
change to max problem;

Solution:
1. add dvfs delay time at s7 pxp;
2. add init voltage at txhd2 trunk;

Verify:
build pass

Change-Id: I877e9affaced264b57c887c05f4545ad22816789
Signed-off-by: chengbing.wu <chengbing.wu@amlogic.com>
2025-01-17 15:07:03 +09:00
Long
adefbf8e72 eMMC: support CQE [2/2]
PD#SWPL-119703
PD#SWPL-160981

Problem:
1.support CQE-v1
2.support CQE-v2
The CQE v1 does not support placing tasks in memory
and does not support data encryption.

Solution:
support CQE-v1 and v2

Verify:
T5m

Change-Id: Ifa79b3365259d4423f526fef902f3dc60eeed62f
Signed-off-by: Long <long.yu@amlogic.com>
2025-01-17 15:07:03 +09:00
Hanjie Lin
a3f8993ae8 smp: add APU support [1/2]
PD#SWPL-119162

Problem:
APU should not be seen except audio

Solution:
add APU support

Verify:
t5m

Change-Id: I03828c60962a16cdf801c8ddabeb7e05b4a4f232
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2025-01-17 15:07:03 +09:00
lei.chen
82e8aff54a BT: fix kernel 5.15 issue for RDK linux system [1/1]
PD#SWPL-128975 SWPL-118242

Problem:
1.rdk kernel 5.15 bt not support deep sleep wake-up
2.rdk kernel 5.15 need user confirm

Solution:
support it

Verify:
T5W T3X

Change-Id: Id900189d0a1b66b4c42cf0ca2eb6a9e479b9440c
Signed-off-by: lei.chen <lei.chen@amlogic.com>
2025-01-17 15:07:03 +09:00
Bichao Zheng
e4fe4d2af5 nand: fix nand bugs [1/1]
PD#SWPL-120491
PD#SWPL-129754
PD#SWPL-155674
PD#SWPL-183416

Problem:
1.wrong select onfi mode
2.erase flash error during OTA upgrade
3.strncmp can't match full id 01h,DCh,00h,05h,04h(S34ML04G300BHI00)
and 01h,DCh,00h,1Ah,00h(S34ML04G300TFI000)
4.mtd_device_parse_register panic when parse_mtd_partitions return -EPROBE_DEFER

Solution:
1.get onfi mode from id table
2.change the check way of badblock
3.use memcmp to compare ID memory instead strncmp
4.nvmem_unregister otp_user_nvmem/otp_factory_nvmem if them existing

Verify:
1-2:s4
3:AT301_T962D4-K35E(1.5G) #256
4:BR309-T950D5_SOCKET #48

Change-Id: Ie747ceb95f1045c2acaaf2afb6862c9b05d36d8b
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
Signed-off-by: zhikui.cui <zhikui.cui@amlogic.com>
2025-01-17 15:07:03 +09:00
wenlong.zhu
146c08e2ed UAC: uac related files update to kernel 5.15 [1/1]
PD#SWPL-114902

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

Solution:
1. Adjust the uac related files that AudioBridge depends on.

Verify:
A113L AD403 Board

Change-Id: Ibd32c020c4feea085c65fb6c781467ff87c83b67
Signed-off-by: wenlong.zhu <wenlong.zhu@amlogic.com>
2025-01-17 15:07:02 +09:00
Feng Chen
b8b551b8eb mtdblock: modify for squashfs mount [1/2]
PD#SWPL-116004
PD#SWPL-157951
PD#SWPL-168212
PD#SWPL-169271

Problem:
1.squashfs don't handle bad block
2.partition size returned from mtdblock
is incorrect
3.mtdblock io performance
4.mtdblock report partition size wrong when meet bad block
5.wrong poniter reference is used in container_of()

Solution:
1.mtdblock handle bad block
2.fix mtdblock size
3.mtd disk block size set to mtd writesize
4.correct the decrease size when meet bad block
5.fix the wrong poniter reference

Verify:
s4_aq2432
AT301_962D4-K35(1.5G) #256
C3_C308L_AW419_SOCKET_V01_R05
s1a_bg201

Change-Id: Icbaec2b6679727ebe0d12fd92bf4d21cc4d5f3fe
Signed-off-by: Feng Chen <feng.chen@amlogic.com>
Signed-off-by: zhikui.cui <zhikui.cui@amlogic.com>
Signed-off-by: Liang Yang <liang.yang@amlogic.com>
2025-01-17 15:07:02 +09:00
jing.li1
1d37bfb90f Demux: Add api for multi2 [1/2]
PD#SWPL-181881

Problem:
S6 need to support multi2

Solution:
Add api for multi2

Verify:
Verified on bl201

Change-Id: I132e295efd808eed0c360ae2362dfddcdd70f56a
Signed-off-by: jing.li1 <jing.li1@amlogic.com>
2025-01-17 15:07:02 +09:00
jing.li1
d435157c99 Demux: Demux support dma buffer [1/2]
PD#SWPL-177903

Problem:
Demux driver needs to manage secure es data with dma buffer

Solution:
Update demux driver to support dma buffer

Verify:
Verified on bl201

Change-Id: I9e721bb33fc4ea08598e62fe124e8af4ca2074f0
Signed-off-by: jing.li1 <jing.li1@amlogic.com>
2025-01-17 15:07:02 +09:00
nengwen.chen
1c06345d4a dvb: add FEC_1_4 and FEC_1_3 define [1/1]
PD#SWPL-176015

Problem:
add FEC_1_4 and FEC_1_3 define.

Solution:
add FEC_1_4 and FEC_1_3 define.

Verify:
T5M/S4D.

Change-Id: I0da28d3ff7f670427c0d864da0c59578eb2d7056
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2025-01-17 15:07:02 +09:00