Commit Graph

1285588 Commits

Author SHA1 Message Date
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
Cai YiWei
345baf095f media: rockchip: isp: optimize memory for isp35 aiisp
Change-Id: Iec6b616281cfecc9cb49276fddd4161b8d993758
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2025-08-01 11:03:57 +08:00
Cai YiWei
9cb38a48be media: rockchip: isp: aiisp switch for isp35 multi sensor
Change-Id: I0bcea36bb9d281c9cd79c43f5325a5d115134f58
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2025-08-01 11:03:49 +08:00
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