Commit Graph

1285607 Commits

Author SHA1 Message Date
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
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