Commit Graph

1285633 Commits

Author SHA1 Message Date
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
Lin Jinhan
eccbd3d6aa include: rk-camera-module: add cmd RKMODULE_SET_CHANNEL_POWER
Change-Id: Ib0e8d9f03544e82bb1ed9f35950556e4021e0abd
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
2025-08-08 09:12:06 +00:00
Cai YiWei
1f04733d07 media: rockchip: isp: fix 3a error for multi sensor only vpss output
Change-Id: I35a7b8a1838497055c8c9f700173fe8ca25a1e92
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2025-08-08 11:04:19 +08:00
LongChang Ma
ef6778784a arm64: dts: rockchip: add rv1126b-evb1-v11-dual-cam dts
Signed-off-by: LongChang Ma <chad.ma@rock-chips.com>
Change-Id: I0f95812c3f913be292807b6ed27f2afa86a3feda
2025-08-07 12:04:57 +00:00
Chujin Zhou
dfe935e67b ARM: configs: add rv1126b-rk628 configuration
Signed-off-by: Chujin Zhou <chujin.zhou@rock-chips.com>
Change-Id: If6e0e2119ffaeec38b2536cd63b058039e627cb6
2025-08-07 06:15:39 +00:00
Jianwei Fan
79eeda1e56 media: i2c: rk628: fix debugfs NULL parameter
Fixes: 84b8365717 ("media: i2c: rk628: fix debugfs "rk628" parent directory")

Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: Ie6e0fd8439c4dcbd9e432f3ec0a47e72bce989ab
2025-08-07 03:44:47 +00:00
Cai Wenzhong
6780c6bb81 media: i2c: maxim: fix resume condition judgment error
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: Iece7263a205229f6e880549c69b3a7500738eed2
2025-08-06 10:09:45 +00:00
Ye Zhang
fc780966ae dt-bindings: pinctrl: rockchip: Add rockchips,group-info
Signed-off-by: Ye Zhang <ye.zhang@rock-chips.com>
Change-Id: I930c59e5c7f08853ce0438afb2971e075d9428d6
2025-08-06 09:50:57 +00:00
Ye Zhang
cdfc4753bf pinctrl: rockchip: support pin group check before config pin
Signed-off-by: Ye Zhang <ye.zhang@rock-chips.com>
Change-Id: I414c03f8809a8c8d182ceff81ef1530bf9e15a87
2025-08-06 09:50:57 +00:00
Ye Zhang
41309e9a75 include: dt-bindings: Add RK_GROUP_TO_BIT def for Rockchip pinctrl
Signed-off-by: Ye Zhang <ye.zhang@rock-chips.com>
Change-Id: Ia86d570e1d7a1bd706ac81b2427b3614b39a9fd2
2025-08-06 09:50:57 +00:00
Guochun Huang
c15f593970 drm/rockchip: dsi2: add support more bus format
1. add support RGB101010 bus format
2. add support DSC bpc 10bit
3. add support DSC bpp 10bit

Type: Fix
Redmine ID: N/A
Associated modifications: N/A
Test: N/A

Change-Id: If575cba6e9ffe07d75a1c4d215e4033164ca3ef0
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2025-08-06 09:48:49 +00:00
Chujin Zhou
9b72dd5881 ARM: dts: rockchip: add rv1126b-evb1-v11-fastboot-emmc-projector.dts
Signed-off-by: Chujin Zhou <chujin.zhou@rock-chips.com>
Change-Id: Icb3131b40559110621af97df363292d99bca7d52
2025-08-06 09:37:47 +00:00
Ye Zhang
52eead1a5e soc: rockchip: opp_select: Optimize leakage reading
Eliminates unnecessary get/put operations for the "leakage" cell.

Signed-off-by: Ye Zhang <ye.zhang@rock-chips.com>
Change-Id: I3b1f1047725570e9bcb7d05aa015638ccc26c27b
2025-08-06 02:12:55 +00:00
Cai YiWei
f376a80ae9 media: rockchip: isp: version v3.1.0
Change-Id: I59b1c6ce390e377724b68488bef4066b23b45fad
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2025-08-06 01:23:30 +00:00
Cai YiWei
2d9deb5480 media: rockchip: isp: clear aiisp l2 stop status
Change-Id: I29dbdd8e4790bd58e3c87472a6faf25d58f8986e
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2025-08-06 01:23:30 +00:00
Sandy Huang
cbf6a0d4e2 drm/rockchip: drv: fix encoder possible_clones check failed
possible_clones is used to indicate which other encoders can share
a CRTC with the current encoder. The default logic is that an encoder
can exclusively occupy one CRTC. However, in scenarios such as writeback
or connector mirroring, we can support multiple encoders sharing one
CRTC, hence this logic is introduced.

If less this commit, the writeback or connector mirror will commit
failed at the drm_atomic_check_valid_clones(), which is introduced by
the following commit:

commit ffb55ddf26 ("drm: Add valid clones check")

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I6b962a3eee80b6fbe80d0dbea1d765b219d70719
2025-08-06 01:19:44 +00:00
Ye Zhang
065dad5d61 dt-bindings: opp: rockchip: Fix rockchip,pvtm-sample-time
Signed-off-by: Ye Zhang <ye.zhang@rock-chips.com>
Change-Id: Id937733fc3159372766afcb0a36d1695da9a3632
2025-08-06 01:11:55 +00:00
Jon Lin
3413776424 PCI: rockchip: dw_ep: Support building as a module
Supports compiling into ko, but for scenarios where the pre-loader
completes PCIe Endpoint initialization, if the ko format is used
to load the link, the link will be reset and the RC side needs to
remove/rescan the device again.

Change-Id: I455f44e3eb522b3c1953bddc4819e5245d65b67f
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2025-08-05 09:25:54 +00:00
Jon Lin
f10e6e9719 PCI: rockchip: dw_ep: Add debugfs support
Add dump fifo and RASDES Error event count;
Enable all event by default;

Usage:
1. enter /d/fxxx0000.pcie
2. cmd
  cat dumpfifo
  cat err_event
  echo disable > err_event // disable all err event
  echo enable > err_event // enable all err event
  echo clear > err_event // clear all counter

Change-Id: Ifb70f2859f50972bd1106884b48c0fcaec6fd1aa
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2025-08-05 09:25:54 +00:00
Jon Lin
854970d62f PCI: rockchip: dw_ep: Optimize structure variables sorting
Change-Id: I82b0aed9a5f86ce7efcb984910b075f35e6cefc3
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2025-08-05 09:25:54 +00:00
Jon Lin
0527e636c4 PCI: rockchip: dw_ep: Optimize register macro definition sorting
1.Sort by register offset;
2.Sort by register/register bitfiled.

Change-Id: I6fd6c394c23778230f36944212e824c6b88fe4f0
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2025-08-05 09:25:54 +00:00
Jon Lin
6d6a8fc3df misc: rockchip: pcie-rkep: Using BAR2 as device memory
1.Usually BAR2 can be used to map endpoint registers;
2.Using the noncache attribute can effectively avoid problems
caused by improper use by users.

Change-Id: I99a11c00d59079c080f6bd53291d970c60311430
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2025-08-05 09:25:54 +00:00
Cai Wenzhong
6542cc7762 media: i2c: maxim: driver version v3.10.00
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: Ib88178d5fd02484342a3b848db32d457c3fa3034
2025-08-05 14:43:36 +08:00
Yuefu Su
56b2414e42 ARM: configs: rv1126b-tb: Support SD card mounting
Signed-off-by: Yuefu Su <yuefu.su@rock-chips.com>
Change-Id: I93397a95c54bc795d2cb3cde4f834d35fa15ae4f
2025-08-05 06:33:01 +00:00
Tom Song
59904137bc misc: vehicle: modify netlink nlmsg size
Change-Id: Ie40ffd08a78e45437a33749ac38fc8590a506d29
Signed-off-by: Tom Song <tom.song@rock-chips.com>
2025-08-05 02:48:07 +00:00
Chujin Zhou
27e40a2c2f arm64: dts: rockchip: Add rv1126b-evb1-v11-fastboot-emmc-projector.dts
Signed-off-by: Chujin Zhou <chujin.zhou@rock-chips.com>
Change-Id: I9ba99403423f2cab9efab388ad73201cb21cb294
2025-08-05 01:53:59 +00:00
LongChang Ma
99c20ba4ad arm64: dts: rockchip: rv1126b-evb-ext-rk628-hdmi2csi: add rk628 hdmiin 2 mipi csi2 dtsi
Signed-off-by: LongChang Ma <chad.ma@rock-chips.com>
Change-Id: I4ef9990d6c69bb45d386166e9b0eee777776eeea
2025-08-04 12:31:05 +00:00
LongChang Ma
232162e61e arm64: dts: rockchip: add dual sc200ai sensor for rv1126b evb dual cam
Signed-off-by: LongChang Ma <chad.ma@rock-chips.com>
Change-Id: I2075cb7a4ed4d2ff2c84924b4daa51e469a1bf2d
2025-08-04 14:53:37 +08:00
LongChang Ma
f5b1f7787a arm64: dts: rockchip: add dual sc635hai sensor for rv1126b evb dual cam
Signed-off-by: LongChang Ma <chad.ma@rock-chips.com>
Change-Id: Id5d16e2ac39d6dd0c4cde96b7c5fc0b06e0eb978
2025-08-04 14:50:10 +08:00
Cai YiWei
22f3f7646f media: rockchp: vpss: drop frame for fast
Change-Id: Id5c18bf12099967649414818e1d3fd8119a8943f
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2025-08-04 02:07:04 +00:00
Cai YiWei
ec6497d2fc media: rockchip: isp: fix fast with vpss for isp35
Change-Id: Ic430e1274e8fb41f922baf1b58f6ac5d36da3dea
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2025-08-04 02:07:04 +00:00
Zefa Chen
ea87d9c92c media: i2c: ox03c10 fixes lenc bit_width error
Change-Id: I008ebf8a3a8a3da919d56866c3bef1ef495e0a61
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2025-08-04 01:37:56 +00:00
Shengfei Xu
65ecb0038c arm64: dts: rockchip: rk817/rk809: Changing the implementation of pin functions
Change-Id: I95e9538a323547ecc1448ab27033a79b269b9dec
Signed-off-by: Shengfei Xu <xsf@rock-chips.com>
2025-08-04 01:26:41 +00:00
Shengfei Xu
dd61e4243f mfd: rk809/rk817: Modify the switching method of the PMIC sleep function
The switching method of the pmic_sleep function has been changed
from relying on the pinctrl framework to directly manipulating
registers.

Change-Id: I730846063387c3d378304d3ee1553fb990cb1604
Signed-off-by: Shengfei Xu <xsf@rock-chips.com>
2025-08-04 01:26:15 +00:00
Jon Lin
5d36ec40bf drivers: rkflash: Check unaligned sfc_request
Change-Id: I1ad5c0c34a071178e3ef52f33e5ae5b905061e2b
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2025-08-01 04:20:28 +00:00
Cai YiWei
08dcc444a4 media: rockchip: isp: fix b3dldc for isp35
Change-Id: I277bc48f132487811c28c27e6f443a4db33df9f2
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2025-08-01 11:05:28 +08:00
Hu Kejun
59f68a3106 media: rockchip: aiisp: add ioctl to clear unused iq params
Change-Id: I919881211c453d9885e76ccdf66c40dae5b96744
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2025-08-01 11:04:41 +08:00
Cai YiWei
541244ac65 media: rockchip: isp: support aibnr l2 for isp35
Change-Id: I9352221e4eacef9e00e06c1eaa36e8cad71aa7a6
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2025-08-01 11:04:32 +08:00
Hu Kejun
2eb86b9562 media: rockchip: aiisp: optimize aibnr out memory
Change-Id: I82f3bcdb4909ee429d5630249647e29b1d215b1d
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2025-08-01 11:04:20 +08:00