Commit Graph

1285671 Commits

Author SHA1 Message Date
Weiwen Chen
9ea89e9981 arm64: configs: rv1126b_defconfig enable CONFIG_ROCKCHIP_DVBM
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: I317e67b6869542b2be70d4080979fc651970e412
2025-08-18 17:31:23 +08:00
Simon Xue
879a729b8e soc: rockchip: decompress: remove unused code
Change-Id: I878281c56ad9895989c04ed1cec5bfcf16f61fb4
Signed-off-by: Simon Xue <xxm@rock-chips.com>
2025-08-18 09:27:06 +00:00
Wei Dun
1049814eba media: rockchp: vpss: remove 16-byte alignment enforcement for input/output stride
Change-Id: I7e0cd8a7e9dc194d8acc936ed9b0395ae8e8383a
Signed-off-by: Wei Dun <willam.wei@rock-chips.com>
2025-08-18 11:17:08 +08:00
Huibin Hong
61a1da7a08 fiq_debugger: fix bug when RT linux is enabled
Set debugger irq to IRQF_NO_THREAD, or irq handler calls get_irq_regs(),
and return null.

Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Change-Id: Ic61d2bb2d233e74a2028405b80075eefabd0a9a1
2025-08-14 10:42:08 +00:00
Chen Shunqing
c538ed9ce6 power: supply: rk817-battery: add CHARGE_COUNTER for CTS
Signed-off-by: Chen Shunqing <csq@rock-chips.com>
Change-Id: Ib0b83a175c8ba2cda435260dfcc584f25c927282
2025-08-14 10:34:24 +00:00
Tao Huang
0e47a522e3 input: touchscreen: gslx680_pad: switch to devm initialization
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ice6507a29a6132e5a9fa08c02bf1c1f960126e25
2025-08-14 10:29:15 +00:00
Tao Huang
5c8264c319 input: touchscreen: gslx680_pad: make g_wake_pin/g_irq_pin/gsl1686_config_data_id static
Change-Id: Id54b29798c2d3b91429f72245e3bc045a410fd1d
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2025-08-14 10:29:15 +00:00
Hisping Lin
b6c371be83 nvmem: rockchip-otp: support hwspinlock
Signed-off-by: Hisping Lin <hisping.lin@rock-chips.com>
Change-Id: I316e21aa065fac14c839cf130e6e2e4211d58bd0
2025-08-14 08:59:02 +00:00
Hisping Lin
5fce75f316 arm64: dts: rockchip: rv1126b: Add hwlock for otp
Signed-off-by: Hisping Lin <hisping.lin@rock-chips.com>
Change-Id: Ibf043f4f8bc57fd94231e3a96e4b14dda8675699
2025-08-14 08:58:34 +00:00
Hisping Lin
ab1297f0d6 arm64: configs: rv1126b_defconfig: enable hwspinlock
Signed-off-by: Hisping Lin <hisping.lin@rock-chips.com>
Change-Id: I596a4fb36816b8fdcaf78c90a75d77e2b9d6a3c0
2025-08-14 16:57:52 +08:00
Hisping Lin
2494c27d1a ARM: configs: rv1126b_defconfig: enable hwspinlock
Signed-off-by: Hisping Lin <hisping.lin@rock-chips.com>
Change-Id: Ia96f342d802968dd4697460462a081c064395d74
2025-08-14 16:55:53 +08:00
Hisping Lin
4323bdd51b arm64: dts: rockchip: rv1126b: enable hwspinlock
Signed-off-by: Hisping Lin <hisping.lin@rock-chips.com>
Change-Id: Iadf8b0558796eadc27666c5206d888c22260a4d5
2025-08-14 16:54:30 +08:00
Hisping Lin
184b63a5f0 dt-binding: soc: Add rockchip,rv1126b-hwspinlock.h
Signed-off-by: Hisping Lin <hisping.lin@rock-chips.com>
Change-Id: I2717e4dcd89ba26ad59e82b0992b8eafabfe4bf1
2025-08-14 08:53:10 +00:00
Yu Zheng
47d4d1d0af media: i2c: imx586 add 3968x2800 crop sequence
Signed-off-by: Yu Zheng <yu.zheng@rock-chips.com>
Change-Id: Iacca10bdaa3c7fa9cc4dbf7cbab41134bbe616f2
2025-08-14 08:15:25 +00:00
Zhang Yubing
f801110706 drm/rockchip: dw-dp: fix rk3576 dp port max output height value
The rk3576 dp port max output height value is the same as vop port.
The detail config value as follow:
DP0 is the same as VP0, set the max output height as 4096;
DP1 is the same as VP1, set the max output height as 2560;
DP2 is the same as VP2, set the max output height as 1920;

Change-Id: Ie96cd8aba47ff5f4070ea902abd535a70e5608b4
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2025-08-14 08:14:49 +00:00
Zhang Yubing
9540936587 drm/rockchip: dw-dp: remove unexpected print info
Avoid print the unexpected info when a hpd irq come but
this irq is not for phy test.

Change-Id: Ia61b0cb7494df2ac7c9756ffbf78b1f9d36412b4
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2025-08-14 08:14:49 +00:00
Damon Ding
7917cd17e6 drm/rockchip: vop: Remove the flag &vop->is_iommu_needed
Through analysis of the code logic, we found that the flag
&vop->is_iommu_needed is redundant. After removing it, the iommu
will be enabled at the same time as the first atomic flush operation,
which may refresh the frame or not.

This modification can make codes more concise and allow iommu to be
initialized at an earlier time point, which may avoid the potential
problems(see commit 97e3aa256f ("drm/rockchip: vop2: Remove the
flag &vop2->is_iommu_needed"))

Change-Id: If8932de972c2a4bbd04ac6b3d6c8d363a3b2cefc
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-08-14 08:08:34 +00:00
Yifeng Zhao
ff538ea7f5 mmc: sdhci-of-dwcmshc: disable internal clock auto gate
With CMDQ enabled, issuing a DCMD as the last command before disabling
CMDQ causes the eMMC controller to auto-gate its internal clock. The
state machine mismatch after exiting CMDQ mode triggers data-timeout
errors on all subsequent reads and writes, so the auto-clock-gate
function must be disabled whenever CMDQ is enabled.

log:
mmc2: Timeout waiting for hardware interrupt.
mmc2: sdhci: ============ SDHCI REGISTER DUMP ===========
mmc2: sdhci: Sys addr:  0x00000001 | Version:  0x00000005
mmc2: sdhci: Blk size:  0x00007200 | Blk cnt:  0x00000000

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: Ibafa74fc2db29b841b5b4df21ef484478f96a44e
2025-08-14 03:46:26 +00:00
Shawn Lin
61c710bab1 arm64: dts: rockchip: rk3576: Assign pcie1's domain to one
Now the PCIe stack doesn't allow more than one root port to share
the same domain. So assign pcie1's domain to one to fix the failure.

[    3.172125] sd 0:0:0:2: [sdc] Attached SCSI disk
[    3.174805]  sda: sda1 sda2 sda3 sda4 sda5 sda6 sda7 sda8
[    3.175709] sd 0:0:0:0: [sda] Attached SCSI disk
[    3.175742] rk-pcie 2a210000.pcie: PCIe Link up, LTSSM is 0x130011
[    3.175759] rk-pcie 2a210000.pcie: PCIe Gen.2 x1 link up
[    3.175797] rk-pcie 2a210000.pcie: Scanning root bridge failed
[    3.175812] rk-pcie 2a210000.pcie: failed to initialize host

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: If933fb89d663e8c2b1337cd5886af9f730697ec1
2025-08-14 09:37:14 +08:00
Chaoyi Chen
f854f64c00 drm/rockchip: vop: Do not clear wb intr status when commit new wb
If a new wb commit is too close to the timing of wb dma complete,
clearing the wb intr status will lose the wb dma complete status.

In this case, the software process is as follows:

vop_wb_commit() -> vop_wb_irqs_enable() -> Clear wb intr ->
vop_isr() -> vop_read_and_clear_wb_irqs()

Since we had cleared the intr in vop_wb_irqs_enable(), the value read
by vop_read_and_clear_wb_irqs() is 0, and we have lost the interrupt
status.

Change-Id: Ida08e94ce1d987f7edbcb6448c0b3f034add1bce
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
2025-08-13 11:22:43 +00:00
Chaoyi Chen
89527bc745 drm/rockchip: vop: Do not commit writeback when all win disabled
Change-Id: Iaa96aebaf2d6f225ebd3a35648b219510d38f648
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
2025-08-13 11:22:43 +00:00
Chaoyi Chen
9deae3276c drm/rockchip: vop: Add enabled_win_mask to record enabled win
Change-Id: I15bc5fe018280f9cb0c1157ad3cd2b9413e854d2
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
2025-08-13 11:22:43 +00:00
Chaoyi Chen
8749235106 drm/rockchip: vop: Enable writeback complete interrupt for rv1126b
Change-Id: Ib070e905f644989f5e3a27fc53632257454560e9
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
2025-08-13 11:22:43 +00:00
Chaoyi Chen
1791848c0d drm/rockchip: vop: Remove redundant writeback cleanup
The drm_writeback_queue_job() function takes ownership of the passed
job and requires the caller to manually set the connector state
writeback_job pointer to NULL.

Therefore, there is no need to clear the writeback_job again.

Related commit:
97eb9eaeb9 ("drm: writeback: Cleanup job ownership handling when queuing job")

Change-Id: Ie56de7e3dc617daa629c4d52514ec511ecdfee53
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
2025-08-13 11:22:43 +00:00
Chaoyi Chen
51f120552c drm/rockchip: vop: Fix writeback interrupt process
Fixes: f7e3199891 ("drm/rockchip: vop: Add writeback support")
Change-Id: I6740c489e472368be4b081c5490a776de535c5e7
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
2025-08-13 11:22:43 +00:00
Jian zheng
7b808a6ad8 soc: rockchip: decompress: support user-space usage
allow the absence of memory-region

Signed-off-by: Jian zheng <zj@rock-chips.com>
Change-Id: Ib602badfc2423700614e251eeb376860ae4a1675
2025-08-13 11:04:14 +00:00
Damon Ding
97e3aa256f drm/rockchip: vop2: Remove the flag &vop2->is_iommu_needed
For a specific case, there will be unexpected abnormal display:

If the logo display is disabled and the cubit lut is updated before
refreshing the first frame, the cubit lut function will be abnormal
along with display abnormalities.

The reason is:

The 3D look-up table is allocated via iommu while the flag
&vop2->is_iommu_needed, which to initialize the iommu, is first set
before refreshing the first frame. Therefore, for the above case,
the cubit lut function is working without iommu initialized.

Through analysis of the code logic, we found that the flag
&vop2->is_iommu_needed is redundant. After removing it, the iommu
will be enabled at the same time as the first atomic flush
operation, which may refresh the frame or not.

What's more, this method also help to avoid the cubit lut abnormal
issue in above case.

Change-Id: I196c1652798164690bedbe6cc4c5fce265f1e178
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-08-13 10:57:25 +00:00
Hisping Lin
4a8f31cec6 nvmem: rockchip-secure-otp: Resolve compilation errors
Signed-off-by: Hisping Lin <hisping.lin@rock-chips.com>
Change-Id: I4ed285797a667b9721a09885556f7d0fb31869c1
2025-08-13 01:59:01 +00:00
Chaoyi Chen
89603c13c5 drm/rockchip: vop2: Remove background property for cluster window
The background of the cluster window can not be processed with csc.
Remove background property setting for them.

Change-Id: Idb4e47e327dd33536436df36eae6c5dbbfecafa7
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
2025-08-12 11:14:17 +00:00
Zhang Yubing
42fa6698bb drm/rockchip: dw-dp: optimizing strategy to select bus format
In some case, a suitable bus format may be not found under
many constraint conditions. In this case, a default bus
format is used to avoid drm atomic commit process failed.
When userspace set a target bpc, it better to get the bus
format match the target bpc, if no such bus format found,
a auto select mode is choose and print a warning info.
When userspace set a target color format, it better to get
the bus format match the target color format, if no such
bus format found, a auto select mode is choose and print
a warning info.

Change-Id: Iff2482012d5a512f4c3a7a998c1e4fcb0f07f944
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2025-08-12 11:11:29 +00:00
Liang Chen
562b449edf clk: rockchip: pll: use ULL for fvco/fout_max to compatible arm32
Change-Id: Ia7b182da2bff7a65d0473dc3e1b69b86e903324f
Signed-off-by: Liang Chen <cl@rock-chips.com>
2025-08-12 18:19:41 +08:00
LongChang Ma
2ffde49905 ARM: dts: rockchip: add rv1126b-evb1-v11-dual-cam-csi0.dts
Signed-off-by: LongChang Ma <chad.ma@rock-chips.com>
Change-Id: I07cad31a6fb10e701f325639c65e8a7cb221a12c
2025-08-12 10:36:48 +08:00
Chunsheng Zhang
56df391d68 ARM: configs: rv1126b-sdiowifi: Enable CONFIG_CFG80211_WEXT
Change-Id: Ia70f104a1e45c1405f52e5278ec15b1b215de2ae
Signed-off-by: Chunsheng Zhang <chunsheng.zhang@rock-chips.com>
2025-08-11 09:40:13 +00:00
Sugar Zhang
3713281d30 dmaengine: rockchip-dma: Add support for interleaved transfer
This patch add support for interleaved transfer which used
for interleaved audio or 2d video data transfer.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I56144d6f2316a78493ab51afea575d20b49df794
2025-08-11 09:38:40 +00:00
Sugar Zhang
4eb9e4ebb5 ASoC: rockchip: multi-dais: Assign maxburst from dai data
Assign maxburst from dai data, and then refine it per mapping.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I62382576fabd012fa69c7fb95e204b37ee9452e4
2025-08-11 09:38:40 +00:00
Damon Ding
c3a9391836 drm/rockchip: logo: Fix to use drm_atomic_add_encoder_bridges() as preparation for bridge chain check
Before calling drm_atomic_bridge_chain_check(), the all bridges in
chain, which support atomic mode, should have their own bridge states
and be added to the &drm_atomic_state. If only the state of the first
bridge is added, there will be an unexpected warning for the following
display route(tested on RK3576):

VOP -> eDP -> max96745 -> max96752 -> LVDS

WARNING: CPU: 0 PID: 10 at drivers/gpu/drm/drm_bridge.c:892 select_bus_fmt_recursive+0x1b4/0x1c0
Modules linked in:
CPU: 0 PID: 10 Comm: kworker/u8:1 Not tainted 6.1.118 #317
Hardware name: Rockchip RK3576 VEHICLE EVB V20 MOS ANDROID Board (DT)
Workqueue: events_unbound deferred_probe_work_func
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : select_bus_fmt_recursive+0x1b4/0x1c0
lr : select_bus_fmt_recursive+0x68/0x1c0
sp : ffffffc00a47b720
x29: ffffffc00a47b730 x28: ffffff80835310c0 x27: ffffff80caab1e00
x26: 0000000000000000 x25: 00000000ffffffea x24: ffffff80817387d0
x23: ffffff80817387d0 x22: 0000000000000000 x21: ffffff80cab12400
x20: ffffff8083531000 x19: 000000000000100a x18: ffffffc00a41d0b0
x17: 0000000000000074 x16: ffffffffffffffff x15: 0000000000000004
x14: ffffffc009dcc840 x13: 0000000000007fff x12: 0000000000000003
x11: 00000000ffff7fff x10: ffffff80817387d0 x9 : ffffff80817af860
x8 : ffffffc00881a66c x7 : 205b5d3730373530 x6 : 332e33202020205b
x5 : 0000000000000000 x4 : 000000000000100a x3 : ffffff8083531000
x2 : ffffff80cab12400 x1 : ffffff8081a2a040 x0 : 0000000000000000
Call trace:
 select_bus_fmt_recursive+0x1b4/0x1c0
 drm_atomic_bridge_chain_check+0x10c/0x2ac
 rockchip_drm_mode_fixup+0x98/0xf8
 rockchip_drm_show_logo+0x109c/0x1df0
 rockchip_drm_bind+0x1c0/0x284
 try_to_bring_up_aggregate_device+0x168/0x1b4
 __component_add+0xd0/0x17c
 component_add+0x14/0x20
 dw_dp_probe+0x768/0x79c
 platform_probe+0xa8/0xd0
 really_probe+0x130/0x2f4
 __driver_probe_device+0xa0/0x128
 driver_probe_device+0x44/0x210
 __device_attach_driver+0x12c/0x154
 bus_for_each_drv+0x84/0xd0
 __device_attach+0xd0/0x19c
 device_initial_probe+0x14/0x20
 bus_probe_device+0x34/0x98
 deferred_probe_work_func+0x7c/0xd8
 process_one_work+0x1a8/0x3b8
 worker_thread+0x300/0x430
 kthread+0xec/0x1b8
 ret_from_fork+0x10/0x20

Fixes: 3558926745 ("drm/rockchip: logo: call drm_atomic_bridge_chain_check() bridge in mode fixup")
Change-Id: Ia83503ad914d5298df4296155ddf3ba469009ff0
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-08-11 17:27:57 +08:00
Lin Jinhan
4730d6f58e include: rk-camera-module: add cmd RKMODULE_GET_MATCH_ID
Change-Id: I3b0698f170c5421bf29df352df3e30512ab88c51
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
2025-08-11 09:12:12 +00:00
Lin Jinhan
8c6f80cd1c include: rk-camera-module: add cmd RKMODULE_SET_DES_LINK
Change-Id: I56452413aa8b4af62a83760572618ffa7b2d00a6
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
2025-08-11 09:12:12 +00:00
Simon Xue
aa583dd38f dma-buf: rk_heaps: rk_dma_heap_cma_setup is only meaningful when CONFIG_DMABUF_HEAPS_ROCKCHIP_CMA_HEAP is enabled
Change-Id: I06c8413951508de11d40aa6f83b654e42f8c7a8e
Signed-off-by: Simon Xue <xxm@rock-chips.com>
2025-08-11 09:10:04 +00:00
Yandong Lin
88eb04a12b video: rockchip: iep: Adjust iep_power_off
Change-Id: Ia617c48db885578f5f46e91ccae603226b2372a1
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
2025-08-11 08:06:41 +00:00
Yandong Lin
aaa9e42f27 video: rockchip: iep: move procfs init to probe
Change-Id: I8817d50a2e07418e15032928996f8f3021c6f3d4
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
2025-08-11 08:06:41 +00:00
Damon Ding
a420f5ba6b drm/bridge: analogix_dp: Set the default bpc and color format
Many monitor supports two or more interfaces, such as HDMI and VGA.
They may also have two EDIDs: one for analog display and the other
for digital display. However, the analog one may not include the
information about bpc and color format. For example, the HP P24v
G4 Monitor has two EDIDs:

Analog:
00 ff ff ff ff ff ff 00 22 0e ab 36 01 01 01 01
13 20 01 03 68 35 1e 78 2a ce 65 a6 57 51 9f 27
0f 50 54 a1 08 00 d1 c0 a9 c0 81 c0 b3 00 95 00
81 00 81 80 01 01 02 3a 80 18 71 38 2d 40 58 2c
45 00 0f 28 21 00 00 1e 00 00 00 fd 00 32 3c 1e
50 11 00 0a 20 20 20 20 20 20 00 00 00 fc 00 48
50 20 50 32 34 76 20 47 34 0a 20 20 00 00 00 ff
00 31 43 52 32 31 39 30 4e 4d 43 0a 20 20 00 58

Digital:
00 ff ff ff ff ff ff 00 48 f4 52 12 01 01 01 01
02 1e 01 04 81 66 39 78 e6 c1 b0 a3 54 4c 99 26
0f 50 54 bd ef 80 d1 c0 81 c0 95 00 90 40 a9 c0
71 40 81 80 81 40 64 19 00 40 41 00 26 30 18 88
36 00 a0 5a 00 00 00 1e 0e 1f 00 80 51 00 1e 30
30 80 1b 01 a0 5a 00 00 00 1e 9e 20 00 90 51 20
1f 30 40 80 1c 01 a0 5a 00 00 00 1e 66 21 56 aa
51 00 1e 30 30 8f 1b 01 a0 5a 00 00 00 1e 00 cc

For the display route: eDP -> TR5521 -> VGA, the color format and bpc
information can not be parsed from the analog EDID. To adapt to this
case, we set the default bpc to 8 and the default color format to
DRM_COLOR_FORMAT_RGB444.

Change-Id: I376a373e543fee7698b7619a4d26f020bd3ad707
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-08-11 08:04:06 +00:00
Jianwei Fan
36323c4481 media: i2c: rk628: fix release resources when remove
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: Ie4264548e56ea7d718ed87c5648e15d2481d9336
2025-08-11 07:34:01 +00:00
Damon Ding
5760bc0a1b pwm: rockchip-test: Add demo for setting the filter
The filter function helps to filter out the interfering signals in
the input waveform, whose width is less than the filter window with
specific width in nansecond.

Change-Id: I0f0c19a8379bca723a6e1415fdca843ac5116510
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-08-11 11:04:59 +08:00
Damon Ding
0d2ba152d3 pwm: rockchip: Add support to setup filter
The filter function helps to filter out the interfering signals in
the input waveform, whose width is less than the filter window with
specific width in nansecond.

For pwm v1, one controller can only enable filter for one channel
at the same time. It can be used for capture and IR input modes.

For pwm v4, each channel can independently enable filter function.
It can be applied in capture, biphasic counter and IR input modes.

Change-Id: Ibbbe5a37ab7e591adc103036c0cfcad49b71ea0d
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-08-11 11:04:40 +08:00
Chaoyi Chen
e6b572efcc drm/rockchip: vop2: Do not clear wb intr status when commit new wb
If a new wb commit is too close to the timing of wb dma complete,
clearing the wb intr status will lose the wb dma complete status.

In this case, the software process is as follows:

vop2_wb_commit() -> vop2_wb_irqs_enable() -> Clear wb intr ->
vop3_sys_isr()/vop2_isr() -> vop2_read_and_clear_wb_irqs()

Since we had cleared the intr in vop2_wb_irqs_enable(), the value read
by vop2_read_and_clear_wb_irqs() is 0, and we have lost the interrupt
status.

Change-Id: I93bf7bd8b57336c7bb64353ce935a6991f93742b
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
2025-08-08 09:49:01 +00:00
Chaoyi Chen
75c62984c5 drm/rockchip: vop2: Do not commit writeback when all win disabled
When all win is disabled, writeback will not start.
Just skip these writeback request.

Change-Id: I80aa023b8a1e07ff37a23b4f3f76a6b88219b7aa
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
2025-08-08 09:28:17 +00:00
Chaoyi Chen
9157f6c553 drm/rockchip: vop2: Remove redundant writeback cleanup
The drm_writeback_queue_job() function takes ownership of the passed
job and requires the caller to manually set the connector state
writeback_job pointer to NULL.

Therefore, there is no need to clear the writeback_job again.

Related commit:
97eb9eaeb9 ("drm: writeback: Cleanup job ownership handling when queuing job")

Change-Id: I74c659f1dd778b5fc72c5705dee9928757f1d17e
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
2025-08-08 09:28:17 +00:00
Sandy Huang
4673e18f42 drm/rockchip: vop2: enable writeback complete interrupt for rk3576
Use writeback complete interrupt instead of software mark writeback
state and drm_writeback_signal_completion();

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I621ba684d64a89cdeb058e79745a75877029b37d
2025-08-08 09:28:17 +00:00
Lin Jinhan
8abb17057b include: rk-camera-module: add cmd RKMODULE_SET_CHANNEL_STREAM
Change-Id: I9cebdde65a9da915c30fc08b292fd38ade17a1e4
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
2025-08-08 09:12:06 +00:00