Zorro Liu
cfc8a04804
arm64: dts: rockchip: update touch config for board rk3566-rk817-eink-w103
...
Change-Id: I542d3b1c12d8aab551425150930be37d88eedff9
Signed-off-by: Zorro Liu <lyx@rock-chips.com >
2025-06-24 10:10:45 +00:00
Sandy Huang
c611c46c47
drm/rockchip: vop2: Fix plane mask check for shared mode
...
For shared mode, we only need to care plane define at vop2->shared_mode_res.plane_mask
for current os.
Signed-off-by: Sandy Huang <hjc@rock-chips.com >
Change-Id: I81753be80ef1b4e7628c6a7869a7c4a465dbdf7f
2025-06-24 10:06:43 +00:00
Sandy Huang
ada5d7851d
drm/rockchip: vop2: add support one vop dual os
...
VOP can be used in dual OS by config the following property at dts:
example:
linux dts:
&vop {
iommus = <&vop_mmu1>;
rockchip,shared-mode-axi-id = <1>;
rockchip,shared-mode = <(ROCKCHIP_VOP2_SHARED_MODE_PRIMARY)>;
rockchip,shared-mode-vp-mask = <(1 << ROCKCHIP_VOP_VP2)>;
rockchip,shared-mode-plane-mask = <(1 << ROCKCHIP_VOP2_ESMART2 | 1 << ROCKCHIP_VOP2_ESMART3)>;
};
android dts:
&vop {
iommus = <&vop_mmu>;
rockchip,shared-mode-axi-id = <0>;
rockchip,shared-mode = <(ROCKCHIP_VOP2_SHARED_MODE_SECONDARY)>;
rockchip,shared-mode-vp-mask = <(1 << ROCKCHIP_VOP_VP0 | 1 << ROCKCHIP_VOP_VP1)>;
rockchip,shared-mode-plane-mask = <(1 << ROCKCHIP_VOP2_CLUSTER0 | 1 << ROCKCHIP_VOP2_CLUSTER1 |
1 << ROCKCHIP_VOP2_ESMART0 | 1 <<ROCKCHIP_VOP2_ESMART1)>;
};
Signed-off-by: Sandy Huang <hjc@rock-chips.com >
Change-Id: I68bf6f8f6302b8edabff096599e04bc8b6ece91a
2025-06-24 10:06:43 +00:00
Ziyuan Xu
f43b43935f
arm64: dts: rockchip: rv1126b: Rectify rkcif register address range
...
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com >
Change-Id: I375637beec9b83127e58db3bf20b7b200c58536c
2025-06-24 06:46:26 +00:00
Cliff Chen
4d9b36c6eb
arm64: dts: rockchip: rk3576: Add CCI PMU support
...
Change-Id: I7127d15658fdb78fd2cc9e07c3c8bdd7d87fc8d7
Signed-off-by: Cliff Chen <cliff.chen@rock-chips.com >
2025-06-24 02:19:47 +00:00
Yao Xiao
142a87921c
net: rfkill: rk: fixed crash during rmmod
...
Change-Id: Ie8c3c02f36e7a61bffaeb7a06f8dc80f5bc04f40
Signed-off-by: Yao Xiao <xiaoyao@rock-chips.com >
2025-06-23 10:04:14 +00:00
Tom Song
6e0ea9d79a
misc: vehicle: add vehicle_spi_protocol
...
Change-Id: Iee7464746ae118f3cf8aafb565db5aac6fb6c2b6
Signed-off-by: Tom Song <tom.song@rock-chips.com >
2025-06-23 06:27:51 +00:00
David Wu
d3f8109044
net: phy: rockchip-fephy: Fix amplitude control for 100/10 Base-t
...
Based on the hardware test results, the amplitude is corrected
Change-Id: I9eeb1a09019948c5a618a8b2defdfcc24feb6046
Signed-off-by: David Wu <david.wu@rock-chips.com >
2025-06-23 03:22:07 +00:00
David Wu
9be9f31152
arm64: dts: rockchip: rv1126b: Fix driving strength for RGMII interface
...
Based on the hardware test results, the driving strength is corrected.
Change-Id: I9d3b5b3df38759e2a61018256eb5e5e295314a71
Signed-off-by: David Wu <david.wu@rock-chips.com >
2025-06-23 03:22:07 +00:00
Chaoyi Chen
e032a514eb
arm64: dts: rockchip: rv1126bp: Make rgb output compatible with RV1126
...
Change-Id: I9ff1031939ad7e53b5e583c5febb6a8ab551d20e
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com >
2025-06-23 01:10:01 +00:00
Zefa Chen
e57205222f
media: rockchip: vicap used yuv packet fmt to capture rgb888
...
Change-Id: I9b089434aa8c69e80dfa6fa8e43c574c4288989b
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
2025-06-20 10:58:27 +00:00
William Wu
26c623e209
arm64: dts: rockchip: rv1126bp: Add usb2 drd node
...
Change-Id: I865ad093bed2fba3c73ff9d317ef18bc862bc8bd
Signed-off-by: William Wu <william.wu@rock-chips.com >
2025-06-20 10:57:11 +00:00
Zefa Chen
83f72daaae
media: rockchip: vicap fixes sof not increase after loss frame
...
Change-Id: I0f7f90fd6206b414ff5c24a6ffd282606498e527
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
2025-06-20 17:42:02 +08:00
Zefa Chen
d2b4477a1d
media: i2c: ox03c10 support set cmps mode
...
Change-Id: Ic8833240c4ec25d6e8483c2421e6b3a99dbcac9b
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
2025-06-20 09:04:50 +00:00
Zefa Chen
1f80fbfaaf
include: uapi: rk-camera-module.h add RKMODULE_SET_CMPS_MODE
...
Change-Id: I73e5af5fda20a19ccb77748fb2468d73f3cc2f3b
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
2025-06-20 09:04:45 +00:00
Zefa Chen
ff534bafc9
media: i2c: ox03c10 support record wbgain before streaming
...
Change-Id: I564a33db0c8999f662ba9b6bc09f92ac550e77dc
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
2025-06-20 09:00:15 +00:00
Zefa Chen
bb803da76b
media: i2c: ox03c10 support get wbgain/blc info
...
Change-Id: I020ee7e162d963f10c357be7e1844fbec5660d55
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
2025-06-20 08:59:49 +00:00
Zefa Chen
46cc26e4fc
include: uapi: rk-camera-module.h add RKMODULE_GET_WB_GAIN_INFO/RKMODULE_GET_BLC_INFO
...
Change-Id: Ib82ea1b0225ace149c984eece9d4b8dc525ab875
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
2025-06-20 08:59:45 +00:00
Zefa Chen
a5aa772ab6
media: i2c: ox03c10 modify gain range
...
Change-Id: I2892302a808573cf720f9e698c4d9ae61c5873de
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
2025-06-20 08:58:48 +00:00
Zefa Chen
ef4c973c42
media: i2c: ox03c10 support linear raw10
...
Change-Id: Ia55493433605c65cd6d4dd06ee2bf8d7a88441be
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
2025-06-20 08:58:19 +00:00
Zefa Chen
b38fd22b7f
media: i2c: os12d40 support 2256x1256@30fps
...
Change-Id: I60f32208f1ebce130a225666b785bab80862b08c
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
2025-06-20 08:57:54 +00:00
Zefa Chen
6a37cd10c6
media: rockchip: vicap fixes error of destroy dummy buffer
...
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
Change-Id: I25180eaeedb72c5b75c348ac65810e0d93c49c5e
2025-06-20 08:57:44 +00:00
Zefa Chen
9ae0cc05fa
arm64: dts: rockchip: rv1126b-evb-dual-cam-csi0: sc450ai support sync mode
...
Change-Id: I5a4e7b8364646c9a2cf604f19762e12854d7341b
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
2025-06-20 08:37:19 +00:00
Zefa Chen
f4d69d1d68
media: i2c: sc450ai support sync mode
...
Change-Id: Ic9e64e0efe6b7e9e658b36631f32a3cbb6a4e0d1
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
2025-06-20 08:36:35 +00:00
Zefa Chen
2eb903302f
arm64: dts: rockchip: rv1126b-evb-dual-cam-csi0: fixes error of compilation
...
Change-Id: Ie09f5b45f2a9a772137fbe7b051bbf45081ae65b
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
2025-06-20 08:35:18 +00:00
Yuefu Su
2189ef0884
ARM: configs: rv1126b-tb: Build in RKNPU
...
Signed-off-by: Yuefu Su <yuefu.su@rock-chips.com >
Change-Id: Ib7916cb9b705cb1f64e5194aac2b723e25975926
2025-06-20 15:40:40 +08:00
Weiwen Chen
c9ecffc1c5
arm64: dts: rockchip: rv1126bp-evb-v14 enable rkfec and rkavsp
...
Signed-off-by: Weiwen Chen <cww@rock-chips.com >
Change-Id: I7467ffecaadc514e36052d24144d126999d3375b
2025-06-20 11:20:32 +08:00
Shengfei Xu
b542ca741a
mfd: rk806: Solve the problem of directly accessing the bus before it's fully restored
...
The RK806 features wake-up functionality. The current patch ensures
that device interrupts are processed only after the device has been
awakened, without compromising the wake-up functionality.
Change-Id: I478717af3e6ce297ce7d2bb43781e53d9393aae6
Signed-off-by: Shengfei Xu <xsf@rock-chips.com >
2025-06-20 09:59:24 +08:00
Yuefu Su
a8d46129a9
arm64: dts: rockchip: rv1126b-thunder-boot: fix rkisp_thunderboot base address error
...
Fixes: 4491f53eac ("arm64: dts: rockchip: rv1126b-thunder-boot: Enlarge meta memory size to 0xe0000")
Signed-off-by: Yuefu Su <yuefu.su@rock-chips.com >
Change-Id: I0ea6b0480296c7e3f931e34388c5f49665e05ec6
2025-06-19 10:12:37 +00:00
Yu Qiaowei
5a4197c84d
video: rockchip: rga3: fix RGA3 RB is inverse when output FBC RGBA8888
...
Change-Id: I4baaf4bca2332b792fdd8ab17cda9c85caee3bfc
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com >
2025-06-19 08:47:28 +00:00
Yu Qiaowei
ca76b3c855
video: rockchip: rga3: RGA3 support XRGB/XBGR8888/ARGB8888(AFBC)/ABGR8888(AFBC)
...
Change-Id: I02f9f3ad159c63a30ec6d19deef7a37f88a841d8
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com >
2025-06-19 08:47:28 +00:00
Yu Qiaowei
6717f122bd
video: rockchip: rga3: remove win0 FBC limit on RGA3
...
Change-Id: Iec2242bc928786969ffe4c82b4be49491f240678
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com >
2025-06-19 08:47:28 +00:00
Weixin Zhou
1d7e45abc3
MALI: bifrost: Fix kctx kobj UAF
...
In a multi kctx scenario, the kobj is freed when one kctx is released,
but the node remains. Accessing it leads to a use-after-free
(invalid pointer) issue.
Fixes: fe59c73bbf ("MALI: bifrost: Optimize gpu mem sysfs entry")
Signed-off-by: Weixin Zhou <zwx@rock-chips.com >
Change-Id: I9d00b660c4ca4693606fbf4f70888cf6809a781d
2025-06-19 08:47:07 +00:00
Zitong Cai
d91c7665f9
mfd: display-serdes: Add serdes debug node
...
Change-Id: Ieeb8590e184cfa45d32ff72a69b0c2ac8e43a3bc
Signed-off-by: Zitong Cai <zitong.cai@rock-chips.com >
2025-06-19 08:38:17 +00:00
XiaoDong Huang
ba953750af
arm64: dts: rockchip: rv1126b-evb3/4-v10: enable sleep-debug
...
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com >
Change-Id: If5e5517bf76b3bce21b3ef20aaddb7b8fd2e2d96
2025-06-19 07:41:41 +00:00
Yuefu Su
a3f4c0fba4
ARM: dts: rockchip: rv1126b-evb2-v10-tb-400w: Enlarge ramdisk size for some algorithm files
...
Signed-off-by: Yuefu Su <yuefu.su@rock-chips.com >
Change-Id: Ic7e96e688dd7c357ed82b4760a4a43d7ab8fe49f
2025-06-19 03:44:30 +00:00
Yuefu Su
2b322acaa7
arm64: dts: rockchip: rv1126b-evb2-v10-tb-400w: Add rndis support
...
Signed-off-by: Yuefu Su <yuefu.su@rock-chips.com >
Change-Id: I40cea32b83f01a407a426cce3fcef1b0ee643089
2025-06-19 03:13:40 +00:00
Yuefu Su
9ea14b98a6
arm64: dts: rockchip: rv1126b-evb2-v10-tb-400w: Adjust rkisp_thunderboot address to 0x41320000
...
Signed-off-by: Yuefu Su <yuefu.su@rock-chips.com >
Change-Id: Ia5ac0ca90046a43fe0efa42aad6c957e1106ab86
2025-06-18 13:15:32 +00:00
Yuefu Su
4491f53eac
arm64: dts: rockchip: rv1126b-thunder-boot: Enlarge meta memory size to 0xe0000
...
Signed-off-by: Yuefu Su <yuefu.su@rock-chips.com >
Change-Id: Ib0d2af98ab3bfbda9f853b53dd2dbc297ba9437e
2025-06-18 13:15:32 +00:00
Andy Yan
66cc998fcf
drm/rockchip: vop2: Fix vcstate for splice vp
...
The vcstate for the splice vp may be NULL if this
vp not registered as a crtc, this may trigger a null
pointer access in the 8K mode:
[ 84.267856] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000040
[ 84.344984] Mem abort info:
[ 84.347778] ESR = 0x0000000096000005
[ 84.392721] Internal error: Oops: 0000000096000005 [#1 ] SMP
[ 84.398289] Modules linked in:
[ 84.401347] CPU: 6 PID: 779 Comm: weston Not tainted 6.1.99 #21
[ 84.407263] Hardware name: IP11HH-8K-104 V0.4 (DT)
[ 84.412048] pstate: 60400009 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[ 84.419005] pc : vop2_setup_dly_for_vp+0x1c/0x270
[ 84.423705] lr : vop2_crtc_atomic_begin+0xe90/0x2bb0
[ 84.428667] sp : ffffffc00c8db850
[ 84.431974] x29: ffffffc00c8db850 x28: 0000000000000001 x27:0000000000000000
[ 84.439101] x26: ffffff8005960080 x25: ffffff8006ae9600 x24:ffffff8005961458
[ 84.446226] x23: ffffffc009842850 x22: ffffff80059600f8 x21:ffffffc009823410
[ 84.453355] x20: ffffff8006ae9500 x19: ffffff8002054800 x18:0000000000000030
[ 84.460485] x17: 393431313a632e32 x16: 706f765f6d72645f x15:ffffffffffffffff
[ 84.467614] x14: 0000000000000000 x13: 30393431313a632e x12:32706f765f6d7264
[ 84.474738] x11: 5f706968636b636f x10: ffffffc00a2438d8 x9 :ffffffc008813420
[ 84.481865] x8 : 0000000000000000 x7 : ffffffc00a2438d8 x6 :ffffff8005960080
[ 84.488989] x5 : 0000000000017ff4 x4 : ffffffc009418f68 x3 :0000000000000000
[ 84.496118] x2 : 0000000000000001 x1 : ffffff80072cd280 x0 :ffffff8005961458
[ 84.503246] Call trace:
[ 84.505693] vop2_setup_dly_for_vp+0x1c/0x270
[ 84.510051] drm_atomic_helper_commit_planes+0x80/0x210
[ 84.515274] rockchip_drm_atomic_helper_commit_tail_rpm+0x19c/0x2fc
[ 84.521540] commit_tail+0xa4/0x180
[ 84.525022] drm_atomic_helper_commit+0x16c/0x190
[ 84.529725] drm_atomic_commit+0xac/0xe0
[ 84.533652] drm_atomic_helper_set_config+0xd8/0x110
[ 84.538609] drm_mode_setcrtc+0x1b4/0x690
[ 84.542617] drm_ioctl_kernel+0xb4/0x100
[ 84.546542] drm_ioctl+0x208/0x440
[ 84.549947] __arm64_sys_ioctl+0xb4/0xdc
[ 84.553869] invoke_syscall+0x4c/0x114
[ 84.557617] el0_svc_common.constprop.0+0x54/0x180
[ 84.562407] do_el0_svc+0x20/0x2c
[ 84.565724] el0_svc+0x14/0x80
[ 84.568784] el0t_64_sync_handler+0xb0/0xb4
[ 84.572961] el0t_64_sync+0x158/0x15c
Change-Id: Ic654f121cc180fb3f57834774eca856c3b87ecc1
Signed-off-by: Andy Yan <andy.yan@rock-chips.com >
2025-06-18 09:30:11 +00:00
Weixin Zhou
fe59c73bbf
MALI: bifrost: Optimize gpu mem sysfs entry
...
One process corresponds to only one node,
simplifying the upper-level access.
ls -l sys/class/misc/mali0/device/kprcs/(pid)/
-r--r--r-- 1 root root 4096 2025-06-16 09:47 private_gpu_mem
-r--r--r-- 1 root root 4096 2025-06-16 09:47 total_gpu_mem
Signed-off-by: Weixin Zhou <zwx@rock-chips.com >
Change-Id: Ia198059560c84c5097bfb04f9a16c056db1edaf3
2025-06-18 07:47:58 +00:00
Luo Wei
8ea643bc7c
arm64: configs: vehicle.config: enable vehicle driver default
...
Signed-off-by: Luo Wei <lw@rock-chips.com >
Change-Id: I28878e58eab57fd5cc6e23bfd9bf09adceed8791
2025-06-18 07:43:06 +00:00
Zhibin Huang
82a3cc4aed
input: touchscreen: gt1x: return error when initialization fails
...
Type: Fix
Redmine ID: #N/A
Associated modifications: N/A
Test: N/A
Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com >
Change-Id: Ib6d46df548e0448855e6088bc2e8fa2f7df2d352
2025-06-18 06:11:25 +00:00
Zhen Chen
2e1afa3ce5
Mali: valhall: from ARM: Fix UAF issue of user IO pages after group fatal error
...
The user IO page mappings were not unmapped properly when a group is
terminated, which could lead to the pages being accessed after
termination. With this change, the driver shall remap a group's shared
page to the dummy page during termination to ensure that accesses to
it will not cause the application to crash, but also these accesses will
be rendered harmless.
For RK, this modification is derived from the kernel_patch_from_Eric_250412
provided by ARM in support case 03504455.
It is originally intended to address the issue
that the GKI of kernel 5.10 does not provide 'zap_vma_ptes'
which the r54 driver depends on.
Change-Id: I28a6946436343d2b44fe7e4df9b4bb8bbd3bafe1
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com >
2025-06-18 06:10:05 +00:00
Zhen Chen
fb91362a23
MALI: valhall: upgrade DDK to g29p0-00eac0, from g28p0-00eac0
...
mali_csffw.bin from Valhall DDK g29(r54) is included.
In addition, in kbase_device_runtime_suspend(), some lines of codes added by r54 was removed.
If these lines of code are executed together with
"the code for powering off the GPU with a delay on the RK platform",
it will lead to a deadlock.
Change-Id: I96ef4071d31f0742148cd80eba93aa0a3520daf6
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com >
2025-06-18 06:10:05 +00:00
Chaoyi Chen
4940ad2c42
arm64: dts: rockchip: rv1126b-evb2: Add explicit data-map-mode for RGB output
...
Change-Id: I772479830d546cfcf2416f76191685b7f09cef32
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com >
2025-06-18 06:09:12 +00:00
Chaoyi Chen
c54e57f476
arm64: dts: rockchip: rv1126bp-evb: Make rgb output compatible with RV1126
...
Change-Id: I346c746a18454bf2e912ad777edcd55d25525690
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com >
2025-06-18 06:09:12 +00:00
Chaoyi Chen
1dbf2d1f5e
dt-bindings: display: Add rockchip MCU/BT1120/BT656 data map
...
Change-Id: Ib38aa21f2752026bf395130620c2f279bfea2f74
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com >
2025-06-18 06:08:13 +00:00
Chaoyi Chen
8854402436
drm/rockchip: vop: Add support for set data map mode for RV1126B
...
The RV1126B introduce data map mode for BT1120/BT656/MCU.
MCU:
- 1'b0: mcu_data[23:0]
- 1'b1: {mcu_data[7:3],3'b0,mcu_data[2:0], mcu_data[7:5],2'b0,mcu_data[4:0],3'b0}
BT1120:
- 2'b00: {8'd0,bt1120[15:0]}
- 2'b01: {bt1120[15:0],8'd0}
- 2'b10: reserved
- 2'b11: {bt1120[15:11],3'd0,bt1120[10:5],2'd0,bt1120[4:0],3'b0}
BT656:
- 2'b00: {16'd0,bt656[7:0]}
- 2'b01: {8'd0,bt656[7:0],8'd0}
- 2'b10: {bt656[7:0],16'd0}
- 2'b11: {bt656[7:3],3'd0,bt656[2:0],bt656[7:5],2'd0,bt656[4:0],3'd0}
Change-Id: I875a2675004c25a3382135af337c2fb82c0d2563
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com >
2025-06-18 06:08:13 +00:00
Chaoyi Chen
19e54153f8
drm/rockchip: rgb: Add support for set data map mode
...
The RV1126B introduces a data map mechanism, allowing MCU/BT1120/BT656
pin data map data to be set. This makes pin connections compatible
with both earlier and new platforms.
Change-Id: I5acbe9e36116c07857c808ad7de1dd14b1214e04
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com >
2025-06-18 06:08:13 +00:00