Commit Graph

1281639 Commits

Author SHA1 Message Date
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
Sugar Zhang
251eae1086 arm64: dts: rockchip: rv1126bp-evb: Include rv1126bp dtsi
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ia55b97d05a4a20fb4789ccd7495010353281d505
2025-06-18 10:46:41 +08:00
Sugar Zhang
7a1c10a36a arm64: dts: rockchip: Add rv1126bp dtsi
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I9cdc728f571ff10cf65e96e18d4cecb3dc564140
2025-06-18 10:46:07 +08:00
Luo Wei
449f748d6e misc: vehicle: add vehicle drivers with protobuf for vhal
it support adc,gpio,spi etc interface

Signed-off-by: Luo Wei <lw@rock-chips.com>
Signed-off-by: Tom Song <tom.song@rock-chips.com>
Change-Id: I5006c0eaa4a72eaa5ba3319c0ac1a2a6f960ede1
2025-06-17 19:28:26 +08:00
Elaine Zhang
7a1e3b7f13 arm64: dts: rockchip: rv1126b: Fix clk_aisp_pll_src init freq
Fixes: dc6b7b1715 ("arm64: dts: rockchip: rv1126b: add clk_cpll_div10 assigned clk rate")
Change-Id: I8f90672f97d8fadf2dd548e6451b926efd53569e
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2025-06-17 10:09:31 +00:00
Elaine Zhang
386638e520 clk: rockchip: rv1126b: fix clk_cpll_div10 parent clk
v0:

    gpll ----|
             |--DIV--clk_cpll_div10
    cpll ----|

v1:

    gpll --------------|
                       |--DIV--clk_cpll_div10
    clk_asip_pll_src --|

Fixes: d804f23988 ("clk: rockchip: rv1126b: fix clk_cpll_div10 parent clk")
Change-Id: I94afa93a33db16644ddab531fba1260b3bf9c48a
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2025-06-17 10:08:55 +00:00
Guochun Huang
e784010e93 arm64: dts: rockchip: rk3588/rk3576/rk3568-evb: delay init-delay-ms before panel initail code send
Change-Id: Ib7ca5868583277dd8dba7f3c328fac77c8db3042
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2025-06-17 08:31:59 +00:00
Zefa Chen
36ea4109ba media: rockchip: vicap: support reserved mem attach dma_buf with iommu
Change-Id: Ibd8d54ddda18d2cd5ac7d3d38808fd52a0048f43
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2025-06-17 08:29:34 +00:00
Oliver Peng
bb36a2c652 arm64: dts: rockchip: Add rk3576 toybrick SD0 board
Signed-off-by: Oliver Peng <oliver.peng@rock-chips.com>
Change-Id: I85ee487c1b960fc05e84e40a5973eef0a2615f78
2025-06-16 07:29:24 +00:00
Weiwen Chen
c0048603a0 ARM: configs: rv1126b-rndis support rndis config
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: Ic03129a42e63385d404f46c523b7d0c6c6a33929
2025-06-16 04:15:20 +00:00
Yuefu Su
4cb57aab9f arm64: dts: rockchip: rv1126b-evb2-v10-tb-400w: Add camera support
Signed-off-by: Yuefu Su <yuefu.su@rock-chips.com>
Change-Id: Ibe6bec939c40cfd9b7ef4ca5b115d2ed0fa9c81f
2025-06-16 03:39:07 +00:00
Yuefu Su
9d76e5f54d arm64: dts: rockchip: Add v1126b-thunder-boot-cam.dtsi
Signed-off-by: Yuefu Su <yuefu.su@rock-chips.com>
Change-Id: Ia5405cfe7ffe549bb59df495bcc5dbebe64ac826
2025-06-16 03:34:48 +00:00
Cai Wenzhong
502c6719f5 arm64: dts: rockchip: rk3576-vehicle-evb-v21: add maxim-max96712-dcphy0-ox03j10-dtsi
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: I16e902c765d539a365360defd00d3173bc4a3976
2025-06-16 02:57:07 +00:00
Joseph Chen
0439f30ead mfd: rk808: Print full chip id of rk801
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I195858d23c862d0f961acb4c04bb1102ab9954c9
2025-06-16 02:46:14 +00:00
Luo Wei
ed3dda1f9b arm64: dts: rockchip: rk3576-vehicle-evb: add v21 dts
Change-Id: Ifd8ce1732210a313e9e662bdd3b089228f076d97
Signed-off-by: Luo Wei <lw@rock-chips.com>
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
2025-06-16 10:03:37 +08:00
Weiwen Chen
19816b4be8 ARM: configs: Update rv1126b-nand
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: I41251faab46d94508e54cfaac07b75bec994cd4d
2025-06-13 19:34:33 +08:00