Commit Graph

1285571 Commits

Author SHA1 Message Date
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
Jianwei Fan
9f6237f086 media: i2c: ov13b10: add ov13b10 sensor driver
Change-Id: I428d778ce7c4e853ea9e5728ec8e0cbb04c7735f
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
2025-07-28 08:22:51 +00:00
Ye Zhang
b2df67f15d soc: rockchip: opp_select: avoid duplicate of_find_property
Only searches rockchip,pvtpll-table when bin-specific property is absent.

Signed-off-by: Ye Zhang <ye.zhang@rock-chips.com>
Change-Id: Ic728e39851cdd8c32970d81249cf295a3b8d6aeb
2025-07-28 02:12:26 +00:00
Ye Zhang
97e3972e9c pinctrl: rockchip: Correctly support rk3308/rk3308b/rk3308bs
Signed-off-by: Ye Zhang <ye.zhang@rock-chips.com>
Change-Id: Ie9e101a28289193515c782736b0d154e0344cef8
2025-07-25 01:10:48 +00:00
Yu Qiaowei
0e7abd67ec video: rockchip: rga3: "reg" debug log add iommu readback register printing
Update driver version to 1.3.10

Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I79b641e8b41d43c451988f278596f229e9e0fd2c
2025-07-23 10:02:41 +00:00
Yu Qiaowei
8bfa454c23 video: rockchip: rga3: restore iommu status on soft-reset
Avoid auto_gating/int_mask register state loss after reset

Change-Id: Ie341f0f58f398476daacffdd90565d39c68faa54
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
2025-07-23 10:02:41 +00:00
Yu Qiaowei
6a03ec9cb5 video: rockchip: rga3: modify the reset method to replace auto_rst on RK3576
1. Resetting only core_clk will cause abnormal src1 status in blend
scenarios, so both aclk and core_clk must be reset.
2. Avoid the issue by shielding the wrong interrupt.

Fixes: a2a7ce0bf0 ("video: rockchip: rga3: add fix for hardware issuewith RK3576")

Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I3cb0034f6c3090faca19cea2c2f5b375388271f8
2025-07-23 10:02:41 +00:00
William Wu
d86fac4c44 phy: rockchip: inno-usb2: Destroy chg_worker on probe failure
Fixes: a78b174c2f ("phy: rockchip: inno-usb2: Fix DEBUG_LOCKS_WARN_ON in chg work")
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I1f200c7597418d9c174bc68d9a5fea0703cd9cc5
2025-07-23 04:30:40 +00:00
Leo Sun
253e11f01f ARM: dts: rockchip: add rv1126b-evb2-v12-aov-dual-cam.dts
Signed-off-by: Leo Sun <leo.sun@rock-chips.com>
Change-Id: I4a734cb199c7a1781b3a44b389e092790d7d69af
2025-07-23 03:56:39 +00:00
David Wu
7338ae1052 ethernet: stmmac: stmmac_uio: Fixes compilation errors
Change-Id: Ic460bcc5f11b6fb0e6961c5e58c63dfc1b318b3c
Signed-off-by: David Wu <david.wu@rock-chips.com>
2025-07-23 10:31:06 +08:00
lin longjian
f8dee2cf65 arm64: dts: rockchip: add bt_port for wireless_bluetooth
Signed-off-by: lin longjian <llj@rock-chips.com>
Change-Id: I893a0dae669a410e646df46926ed54fa693894f9
2025-07-22 10:37:40 +00:00