Commit Graph

1285581 Commits

Author SHA1 Message Date
Cai YiWei
3d712791cd media: rockchip: isp: add iommu fault handler
Change-Id: Ic0cf002567e00dbdf2170cfcb3f6ac9bc6924d31
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2025-07-31 11:08:40 +00:00
Andy Yan
2c7f131ecb drm/rockchip: vop2: Fix error handling for get dclk_src
Fixes: f2b2283cd0 ("drm/rockchip: vop2: Support set dclk parent")
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: If0bee52a63e45584c2f65f53411ff4667bc70f6d
2025-07-31 19:00:18 +08:00
Shengfei Xu
3e3408b05a arm64: dts: rockchip: rk3576-rk806: Changing the implementation of pin functions
The functional switching of pins is implemented by drivers directly
manipulating registers‌.

Change-Id: Idfed4063feac123cb94b12680fe2c744c7dd692e
Signed-off-by: Shengfei Xu <xsf@rock-chips.com>
2025-07-31 10:37:04 +00:00
Shengfei Xu
87bf9e13ce arm64: dts: rockchip: rk3588-rk806: Changing the implementation of pin functions
The functional switching of pins is implemented by drivers directly
manipulating registers‌.

Change-Id: Ib703c24c9fdc17e0217c9b9243f0c190261d7739
Signed-off-by: Shengfei Xu <xsf@rock-chips.com>
2025-07-31 10:36:48 +00:00
Shengfei Xu
905a8088c7 regulator: rk806: Modify the implementation of RK806 shutdown
Configure the shutdown function and level by directly setting PWRCTRL1
register‌, bypassing the pinctrl subsystem. Implement PMIC reset by
toggling the RESET pin‌ of PMIC through CPU GPIO control.

Change-Id: I370fd20638ef0fa08bcb67a3304509dc058b99d6
Signed-off-by: Shengfei Xu <xsf@rock-chips.com>
2025-07-31 10:35:44 +00:00
Xing Zheng
f9b09b3737 ARM: configs: rv1126b-aoa.config: Add config and enable ROCKCHIP_AOA_MIDDLEWARE with module
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: I6b61313865fd7785ac28a7a6030755f1e245b897
2025-07-31 11:27:35 +08:00
Xing Zheng
3c09428e50 arm64: dts: rockchip: rv1126b-evb: enable AOA features
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: I082a440003acf701cd5b797028e073f5c87a4fe9
2025-07-31 11:27:35 +08:00
Xing Zheng
baa721578b arm64: dts: rockchip: rv1126b-aoa: Add aoa_middleware node and enable related modules for AOA feature
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: Iedf6208dc65461caf60b5598490fd6d1427ad378
2025-07-31 11:27:35 +08:00
Xing Zheng
ba3cbacee7 arm64: dts: rockchip: rv1126b: Add aoa/dma-lp/aoa_mmap/aoa_sram for AOA feature
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: Ie5dfb9b8add09ffa4bb9a79a455c969c51811b4a
2025-07-31 11:27:35 +08:00
Xing Zheng
e09a9363f4 soc: rockchip: aoa_middleware: Add support AOA middleware modules
The goal of this driver is to implement the minimum configuration
of AOA-related drivers and interact with AOA user-mode applications
through middleware.

Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: I60937d8b6a3b6465a3251b3b3db3d6ad676f2d6f
2025-07-31 11:27:00 +08:00
Cai YiWei
663db123ed media: rockchip: isp: fix unite div calculation
Change-Id: Iea94ff13b0cc1c3553996e22051266f4af2c1a76
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2025-07-31 02:39:36 +00:00
Hu Kejun
20a2d77c3f media: spi: add ms41908 and ms41968
Change-Id: Ib2345cb0c53783e5160600d8711b49c96661d3b9
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2025-07-31 02:36:49 +00:00
Hu Kejun
f14326d041 include: rk_vcm_head: add zoom1 field
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: Iecdce3bcd92d14b6763999464c4526c880e9729e
2025-07-31 02:36:49 +00:00
Zefa Chen
542555f717 include: uapi: rk-camera-module.h add more exp_mode of lofic
Change-Id: I88e3a704b6c123152c5696ab96a91b9b882c1c01
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2025-07-30 17:24:17 +08:00
Zefa Chen
afe3d7cd5d media: i2c: ox03c10 support get single frame info of hdr_compr
Change-Id: Icc48f81decc71a2ecf392d8867cf91cdbb36f23a
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2025-07-30 17:24:06 +08:00
Zefa Chen
719de208c4 include: uapi: rk-camera-module.h add cmd RKMODULE_GET_HDR_COMPR_SINGLE_FRAME_INFO
Change-Id: I7956a4d885302d344341b995a202a9b9c28c785a
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2025-07-30 17:23:49 +08:00
Zefa Chen
f0542d8d9c include: uapi: rk-camera-module.h add cmd RKMODULE_SET_BAYER_MODE
Change-Id: Ib7acc3dacefaebf5a2394ac6c04c660f1cb75ff0
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2025-07-30 17:23:35 +08:00
Zefa Chen
c2d1b044ee media: i2c: ox03c10 add more control of blc
Change-Id: I6e07f4dff54600499e5db7900668971ede60d8d1
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2025-07-30 17:23:12 +08:00
Zefa Chen
5d98715633 include: uapi: rk-camera-module.h: RKMODULE_SET_BLC add more param
Change-Id: Id56e2591124832631aaf3be0658a558e3c7b10cb
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2025-07-30 17:22:41 +08:00
Zefa Chen
a7f5860337 media: i2c: ox03c10 support set reg_setting config
Change-Id: I9950c2fdb4928cc2fc173485579665176e8c12ce
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2025-07-30 17:22:17 +08:00
Zefa Chen
cb1cfc0603 include: uapi: rk-camera-module.h add RKMODULE_SET_REG_SETTING
Change-Id: Ic3728af9aeeec691e17fdacd14c0db75d5ca5e25
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2025-07-30 16:30:06 +08:00
Zefa Chen
865a3ad68d media: i2c: 0x03c10 support check register setting crc
Change-Id: I2282db13b1ebf902d1c9e30fe2086e75b4e2baeb
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2025-07-30 16:30:05 +08:00
Zefa Chen
9662d2b59c media: i2c: ox03c10 support get/set lenc
Change-Id: I98f956be0b4e3461254bed4bce6068bfb152f592
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2025-07-30 16:30:05 +08:00
Zefa Chen
c710fa9ca4 media: i2c: add Lenc calibration initialization configuration
Change-Id: I1dd50ed3ed8effe5aa955ff46a09baa177c32cf7
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2025-07-30 16:30:05 +08:00
Zefa Chen
30f24d6e0d include: uapi: rk-camera-module.h support get/set sensor lenc
Change-Id: I3ae6dd52d46591e3a86716f22ab6a2827e97cb94
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2025-07-30 16:30:05 +08:00
Zefa Chen
b7f90ab741 media: i2c: ox03c10 support linear mode of lcg/hcg/vs/spd
Change-Id: I9b3cd6330cb16fba6b951cf806badf2ab5a29a18
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2025-07-30 16:30:05 +08:00
Zefa Chen
a0cd643d56 include: uapi: rk-camera-module.h add RKMODULE_SET_EXPAND_SINGLE_MODE
Change-Id: I93da3cdabee3a9b5465c70aa7e80f4854c1316b8
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2025-07-30 16:30:05 +08:00
Zefa Chen
0cdfbc8e6b media: i2c: ox03c10 skip group hold before streaming
use group hold before streaming will make register effect delay one
frmae

Change-Id: Ia28b9981d38e3fe5132a62da277495e61c7dd052
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2025-07-30 16:30:05 +08:00
Jon Lin
243363ccfd misc: rockchip: pcie-rkep: Remove redundancy vm_flags
1.It will be added by remap_pfn_range_internal;
2.Fix compile warning:
drivers/misc/rockchip/pcie-rkep.c:613:23: error: assignment of read-only member 'vm_flags'
  613 |         vma->vm_flags |= VM_IO;
      |                       ^~
drivers/misc/rockchip/pcie-rkep.c:614:23: error: assignment of read-only member 'vm_flags'
  614 |         vma->vm_flags |= (VM_DONTEXPAND | VM_DONTDUMP);
      |                       ^~

Change-Id: I3c705248b216c246a8efb25f28c44fc419110fee
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2025-07-30 06:29:57 +00:00
LongChang Ma
0c442bded1 media: i2c: add support sc485sl sensor driver
Signed-off-by: LongChang Ma <chad.ma@rock-chips.com>
Change-Id: I6893ddf907860c4f4f48365e5e0422c7bfee67d5
2025-07-30 02:34:34 +00:00
LongChang Ma
0876851019 media: i2c: add support os04e10 sensor driver for v6.1
Signed-off-by: LongChang Ma <chad.ma@rock-chips.com>
Change-Id: I94c770909e6def65c9a5257daceeb838cb9d9621
2025-07-30 02:34:07 +00:00
Zefa Chen
992ff35c2d media: rockchip: vicap support get error info
Change-Id: I61fc0834e3574876f40d563290222044550594a4
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2025-07-30 10:21:45 +08:00
Zefa Chen
95c2e9defc include: rk-camera-module: add cmd RKMODULE_GET_ERROR_INFO
Change-Id: I06c31f514f771d6e51a46eae3ee287e0c01d0956
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2025-07-30 10:21:35 +08:00
XiaoDong Huang
6dd93bf724 arm64: dts: rockchip: rv1126b-evb1-v10&rv1126b-evb2-v10: enable low power aoa
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: I5c0019df2576450fb15751ba1b83529c307ae13e
2025-07-30 01:19:25 +00:00
XiaoDong Huang
eb1d1e7885 dt-bindings: suspend: add RKPM_SLP_LP_AOA macro for rv1126b
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: I83b3d537c78e188232c95890fb4d316457ee07ac
2025-07-30 01:19:25 +00:00
Yu Qiaowei
95b8ad3b83 video: rockchip: rga3: fix error of using DMA_MAPPING_ERROR directly
Change-Id: Iefacf3223404d6806c1999c96126bc25700645e8
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
2025-07-30 01:16:38 +00:00
Yu Qiaowei
b27d0c8a15 video: rockchip: rga3: fix image size cal error in BPP format
Change-Id: I2e3ad31172e9ba5b013500927e016b88b69c87f5
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
2025-07-30 01:16:38 +00:00
Damon Ding
0b1e03cc77 arm64: dts: rockchip: Remove property support-psr of eDP nodes
Since the PSR feature can help to reduce the power consumption, the
Source device, which can support PSR function, should enable PSR if
the PSR capability of Sink device is detected rather than depending
on the user to add 'support-psr' DTS property manually.

Change-Id: I2f51312621f62519f388e06561fb61f01145256b
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-07-29 14:38:19 +08:00
Damon Ding
3b97d716d5 drm/rockchip: Move the init/cleanup of self refresh helper from VOP/VOP2 to eDP/RGB drivers
Before this commit, the drm_self_refresh_helper_init() was called
in &component_ops.bind() of VOP/VOP2 drivers. The VOP or VPs,
which do not want to enable PSR functionality, will also initialize
the self refresh helper.

Since it wastes resources(e.g., allocating &drm_self_refresh_data and
initializing &drm_self_refresh_data.entry_work), we move the init and
cleanup process from bind()/unbind() of VOP/VOP2 drivers to the ones
of eDP/RGB drivers, which can support PSR functionality.

Change-Id: Ie7643b54f42ea3d5ab7b0cdbc77ccfdb06c614b9
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-07-29 14:38:19 +08:00
Damon Ding
554eda652f drm/rockchip: vop: Add errno if &vop->lut memory allocation failed in vop_create_crtc()
If no errno assignment for this case, there will be a warning:

drivers/gpu/drm/rockchip/rockchip_drm_vop.c:5754 vop_create_crtc() warn:
missing error code 'ret'

Change-Id: I9e78fe99b3ca24d8734ee286b1dc1f0908721f25
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-07-29 14:37:31 +08:00
Damon Ding
303b0de1b8 drm/bridge: analogix_dp: Add &analogix_dp_plat_data.disable_psr to check whether to disable PSR
First of all, since the PSR feature can help to reduce the power
consumption, the Source device, which can support PSR function,
should enable PSR if the PSR capability of Sink device is detected
rather than depending on the user to add 'support-psr' DTS property
manually.

Different platforms that use the same Analogix DP bridge driver may
have different methods for parsing the PSR capability. Therefore, add
a new flag &analogix_dp_plat_data.disable_psr to disable PSR forcely,
which set in the platform side, should be more reasonable.

If the user truly does not want to enable PSR function or the Panel
has something wrong with it, the property 'rockchip,disable-psr' will
be helpful.

Fixes: 9622f2d0f1 ("drm/bridge: analogix_dp: disable PSR feature by default")
Change-Id: Id2fce34857df80de5a1ec97f342709a6e2840ed4
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-07-29 06:23:29 +00:00
Jon Lin
9f86a7a402 PCI: rockchip: dw-dmatest: Fix compile warning
drivers/pci/controller/dwc/pcie-dw-dmatest.c:157:5: error: no previous prototype for 'rk_pcie_local_dma_tobus_block' [-Werror=missing-prototypes]

Change-Id: I616a4759d856a72b469996a3c6f07e4af90d5616
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2025-07-29 06:20:54 +00:00
Damon Ding
72d923c5f8 dt-bindings: display: rockchip: analogix-dp: Add property rockchip,disable-psr
Since the PSR feature can help to reduce the power consumption, the
Source device, which can support PSR function, should enable PSR if
the PSR capability of Sink device is detected.

If the user truly does not want to enable PSR function or the Panel
has something wrong with it, the property 'rockchip,disable-psr' will
be helpful.

Change-Id: I03b3c83c7c88ea3fc3ccd447e5c5da49e16f22a9
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-07-28 11:14:14 +00:00
Damon Ding
c516e523a2 dt-bindings: display: rockchip: analogix-dp: Add properties for dual-channel/split modes
After converting analogix_dp.txt to yaml, the descriptions of
properties for dual-channel and split modes, which have been
already supported, should be added synchronously.

Change-Id: I8a66ef3ed8c469eca0c9d6e06a827c1f1a8d58a1
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-07-28 11:14:14 +00:00
Damon Ding
d191490eb5 dt-bindings: display: rockchip: analogix-dp: Add compatible for RK3568
The RK3568 eDP TX controller is almost the same as that of RK3399.
It supports RBR/HBR with 1/2/4 lanes and the max supported resolution
is 2560x1600p60.

The slight difference with RK3399 is the newly added 'apb' reset,
which is just like that of RK3588/RK3576.

Change-Id: Ifd5bc2d8f337b794a6d2983b689d2bd2271d78c2
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-07-28 11:14:14 +00:00
Damon Ding
39843b4ec3 dt-bindings: display: rockchip: analogix-dp: Add support for RK3576
The RK3576 eDP TX controller is the same as that of RK3588.

Change-Id: I3f32329866bc70f6f26132eb583f520e39f53594
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-07-28 11:14:14 +00:00
Damon Ding
a73b31a8da UPSTREAM: dt-bindings: display: rockchip: analogix-dp: Add support for RK3588
Compared with RK3288/RK3399, the HBR2 link rate support is the main
improvement of RK3588 eDP TX controller, and there are also two
independent eDP display interfaces on RK3588 Soc.

The newly added 'apb' reset is to ensure the APB bus of eDP controller
works well on the RK3588 SoC.

Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Change-Id: If3864613762898624ba39ad0395516a4ebb02732
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Link: https://lore.kernel.org/r/20250310104114.2608063-10-damon.ding@rock-chips.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
(cherry picked from commit f855146263b14abadd8d5bd0e280e54fbab3bd18)
2025-07-28 11:14:14 +00:00
Johan Jonker
57fc3e6d41 UPSTREAM: dt-bindings: display: rockchip: convert analogix_dp-rockchip.txt to yaml
Convert analogix_dp-rockchip.txt to yaml.

Changed:
  Add power-domains property
  File name

Change-Id: Ibd1493c5b35697e37a7b22b454dbafc3e035ab9e
Signed-off-by: Johan Jonker <jbx6244@gmail.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Link: https://patchwork.freedesktop.org/patch/msgid/88a5a9e3-9bc8-5966-22ec-5bdb1fa7a5b1@gmail.com
(cherry picked from commit 9bb35d4c32)
2025-07-28 11:14:14 +00:00
Johan Jonker
b30177fbce UPSTREAM: dt-bindings: display: bridge: convert analogix_dp.txt to yaml
Convert analogix_dp.txt to yaml for use as common document.

Changed:
  Relexed requirements

Change-Id: I7d667c53d51b79eeb79b8ea03002bfc696454094
Signed-off-by: Johan Jonker <jbx6244@gmail.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Link: https://patchwork.freedesktop.org/patch/msgid/489e7bd3-fa26-885f-4104-8b0b29aa4f2b@gmail.com
(cherry picked from commit 440112adad)
2025-07-28 11:14:14 +00:00
Algea Cao
dbcc3c130c drm/rockchip: dw_hdmi: Do not enable DSC when the DSC compression ratio is below 0.375.
If the DSC mode with a compression rate lower than 0.375 is to
be supported, the dclk clock source of the VOP bound to HDMI must
be a CRU PLL that supports fractional frequency division.
However, in most scenarios, HDMI is unable to be assigned such a
PLL. So in this scenario, instead of enabling DSC, we switch to
YUV420 format.

Change-Id: I450cdd5857e4384894651ed063fac152a8d9bb0f
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2025-07-28 16:44:50 +08:00