Commit Graph

1285902 Commits

Author SHA1 Message Date
Finley Xiao
7007e186ca thermal: rockchip: Add support to save and restore tsadc offset for rv1126b
Change-Id: Ie21cd1854b4421036a7eafc210ef2b2e378b2967
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2025-09-25 01:21:19 +00:00
Cai YiWei
6a5a34e360 media: rockchip: isp: support raw14 format
Change-Id: I46569179161e2fc136654ab8ecbdff74ad228c4d
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2025-09-25 01:20:45 +00:00
Shengfei Xu
f97148ab59 regulator: rk806: Resolving rk806m abnormal power-off during DVS Mode
If the RK806M DVS mode does not follow the configured timing sequence,
it may cause abnormal power-off.

The settings must be configured in the following order:
entering voltage adjustment:
	first configure SLPn_FUN, then configure XXX_SLP_CTR_SEL at addresses 0x64~0x6e.
exiting voltage adjustment:
	first clear XXX_SLP_CTR_SEL at addresses 0x64~0x6e to 0, then modify SLPn_FUN.

Change-Id: I265d916b99160fddf467f7c12149490a95f75ca8
Signed-off-by: Shengfei Xu <xsf@rock-chips.com>
2025-09-25 01:14:08 +00:00
Zefa Chen
02aea86b57 media: rockchip: vicap add support RAW14
Change-Id: I80024552bddcf0452e96c2621a0f4fb7ae4c4b76
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2025-09-24 07:24:27 +00:00
Zefa Chen
552ee9dedd media: rockchip: vicap fixes multi combine mode error for rv1126b
Change-Id: I3d3faf319b5f03b1ded1e5b1eb6fd704939ddf71
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2025-09-24 07:23:45 +00:00
Zefa Chen
0caa02b632 phy: rockchip: csi2_dphy: add hw_idx to distinguish dev
Change-Id: I072cedcba316cf5d26335cbead272457bee2f61c
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2025-09-24 07:23:29 +00:00
Zefa Chen
d5e575bdf7 phy: rockchip: csi2-dphy: fixes lvds bit-width error for rv1126b
Change-Id: I56007548f832c3c89c6e2be324c30ca5445945a2
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2025-09-24 07:23:23 +00:00
Haoran Han
4a1668a9ba media: i2c: max96756: Add writing of 1080p & 720p & 480p EDID tables during streaming
Change-Id: Ie9a86aeebc9f5aed3cad3cf4daa2ad967a180f9b
Signed-off-by: Haoran Han <haoran.han@rock-chips.com>
2025-09-24 07:10:48 +00:00
Damon Ding
53cf107341 drm/rockchip: analogix_dp: Initialize the PSR helper only for the left device in split mode
In split mode, since only the left device will create the DRM
encoder, there will be an unexpected crash because the right device
does not have &rockchip_encoder.encoder->dev, which used to check
PSR initialization in rockchip_dp_drm_self_refresh_helper_init().

Fixes: 3b97d716d5 ("drm/rockchip: Move the init/cleanup of self refresh helper from VOP/VOP2 to eDP/RGB drivers")
Change-Id: I282c646b4ea44b34403328693af27724ac543f4f
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-09-24 06:36:04 +00:00
Zefa Chen
e2b8f25af6 media: rockchip: vicap force update buf when it's return and update very close to fe
Change-Id: I019779287b2f2aa7885e4154c4ad0c0907d88e1a
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2025-09-24 11:03:46 +08:00
Weiwen Chen
d0a4a638d6 soc: rockchip: thunderboot_mmc: continue even if CMD12 timeout
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: I9637cd522cf5771ad9cc0563a991935a87b476f1
2025-09-22 10:47:12 +00:00
Zhang Yubing
40ee3a7b31 dt-bindings: display: rockchip: Add new property for VOP2
Add new property "rockchip,extend-phy-pll-shared-mode" for VOP2

Change-Id: Ice65d948f02be8512e15e2f77ac588c9a83de229
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2025-09-22 10:45:50 +00:00
Zhang Yubing
f367769cda arm64: dts: rockchip: rk3576-nvr: support extend phy pll shared mode
support extend phy pll shared mode to allow hdmi phy pll be used by
any video port.

Change-Id: I4efb57ee648f3590c3d893daa26475f89e43e253
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2025-09-22 10:45:44 +00:00
Zhang Yubing
71ed80b973 arm64: dts: rockchip: rk3588-nvr: support extend phy pll shared mode
support extend phy pll shared mode to allow hdmi phy pll be used by
any video port.

Change-Id: I2195de75f331cd00e303283df872f80713fca0ca
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2025-09-22 10:45:39 +00:00
Zhang Yubing
260ebed0eb drm/rockchip: vop2: support use hdmi phy pll as dclk parent exclusively
The extend phy pll shared mode is only used when support dynamic
switch the dclk parent between cru pll and hdmi phy pll. When
extend phy pll shared mode is true, it mean that a hdmi phy pll
that is in use can be take over by a subsequently connected
interface. Otherwise, The hdmi phy pll can be only used by the
vp that attach this hdmi itself.

Change-Id: Ie6afde27066b752afc7e4a2140d6fd710c44bfcd
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2025-09-22 10:40:02 +00:00
Zitong Cai
5e4b05c8e6 arm64: dts: rockchip: vehicle-evb: Fix uboot DRM cannot find panel and bridge devices
Change-Id: I75400ede0fedfdec2aa57d42fb567914f0faeec8
Signed-off-by: Zitong Cai <zitong.cai@rock-chips.com>
2025-09-22 10:38:49 +00:00
Sandy Huang
e291a23a5a iommu/rockchip: add rate limiting for iommu pagefault error message
Replace dev_err() with dev_err_ratelimited() to prevent log flooding.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I778417424c4f3b07fe81eef5a1847713facb4c71
2025-09-22 10:37:35 +00:00
Sandy Huang
d0d57884b7 drm/rockchip: vop2: add support hardware cursor layer
The hardware cursor is always on the top of ther layers, and bypass
other layer mix.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I5da0598b178f7eda85ea8556867d8f2a14ee1075
2025-09-22 15:57:53 +08:00
Sandy Huang
bfbc56cd9b drm/rockchip: vop2: add more color bar mode support
Color bar mode usage instructions:

  Enable horizontal color bar:
      echo 1 > /sys/kernel/debug/dri/0/video_port0/color_bar
  Enable vertical color bar:
      echo 2 > /sys/kernel/debug/dri/0/video_port0/color_bar
  Enable horizontal color gradient:
      echo 3 > /sys/kernel/debug/dri/0/video_port0/color_bar
  Enable vertical color gradient:
      echo 4 > /sys/kernel/debug/dri/0/video_port0/color_bar
  Enable mutant color:
      echo 5 > /sys/kernel/debug/dri/0/video_port0/color_bar
  Enable fix black color:
      echo 6 > /sys/kernel/debug/dri/0/video_port0/color_bar
  Enable fix white color:
      echo 7 > /sys/kernel/debug/dri/0/video_port0/color_bar
  Disable color bar:
      echo 0 > /sys/kernel/debug/dri/0/video_port0/color_bar

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I5b1c5b2daf90a009bef4a645bd7ba62503356ddf
2025-09-22 15:57:53 +08:00
Sandy Huang
203c6b02b6 drm/rockchip: vop2: add format covert for cluster
1. The cluster DRM_FORMAT_YUYV refers to fbc YUV422 format, and need
config win data format as h06: YCbCr422;

2. The esamrt DRM_FORMAT_YUYV refers to LINEAR YUYV422 format, and
need config win data format as h08: YVYU422;

3. RK3576 and earlier platforms, for FBC data, only the format
configured in the AFBC register is used. Even if the win format is
incorrectly configured, it does not affect current operations, but
future platforms will rely on this win format, so it must be
configured correctly.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I5b116f226dd2d8f905c79338c03c659156683e20
2025-09-22 15:57:53 +08:00
Sandy Huang
3bc302ffb6 drm/rockchip: vop2: fix null point when win->regs->scl is undefined
some plane can't support scale up/down the win->regs->scl is undefined.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Ia103dcd0f2a805cba1ec0acfffe049e617fc5520
2025-09-22 15:57:53 +08:00
Sandy Huang
c1306b1075 drm/rockchip: vop2: add port_extra_en register define
Adding the register definition for port_extra_en can improve compatibility.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I0d9dd3ab31662c97e7c7fb870597b192fb2cda75
2025-09-22 15:57:53 +08:00
Sandy Huang
571a6b9a39 drm/rockchip: vop2: add dsp_vcnt register define
Adding the register definition for dsp_vcnt can improve compatibility.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Ibd9a181834031fe2fd2d83eb1735b70ec1de3187
2025-09-22 15:57:53 +08:00
Sandy Huang
0d0de0337a drm/rockchip: vop2: get plane max input/output from win data
The win_data structure provides a more accurate way to obtain each
plane’s maximum input and output size.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I11cc40b9886235079d2e03d3a4ef64649bd32659
2025-09-22 15:57:53 +08:00
Sandy Huang
cabb7a51fd drm/rockchip: vop2: split win_alpha_map to alpha_map_en and alpha_map_val
Splitting win_alpha_map into alpha_map_en and alpha_map_val ensures
better compatibility with next SOC.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Idcc62e2201c212bbd4fcb37c6256823301b70af6
2025-09-22 15:57:53 +08:00
Sandy Huang
849999332c drm/rockchip: vop2: move win_alpha_map to vop2_win_regs
It is more reasonable to store win_alpha_map in the vop2_win_regs.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I70979911a3454608f51036322c57bb5b35fe81cb
2025-09-22 15:57:53 +08:00
Sandy Huang
f4f7ebc6d2 drm/rockchip: vop2: add support one esmart layer global alpha for rk3562/rk3528/rk3576
To deal with bottom_layer_global_alpha when only have one esmart layer
at bottom layer. And the cluster global alpha is processed by cluster mix.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I1f5de9774920a37a60d45c77c1f71bc740bbbb7a
2025-09-22 15:57:49 +08:00
Sandy Huang
437e91ca1e drm/rockchip: vop2: add support bg mix for rk3562/rk3528/rk3576
add support layer0 do global or pixel alpha with background layer,
include premulti or nonpremulti pixel alpha.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I67fb6764999098064506de63cddf58e34ab1765f
2025-09-22 15:37:54 +08:00
Sandy Huang
7c2dbdf4cd drm/rockchip: vop2: add support for ARGB1555 alpha map config from userspace
The alpha value is mapped as follows:
    bit[7, 0]: alpha 0 mapping value;
    bit[15,8]: alpha 1 mapping value;
    bit[31]  : alpha map enable.

for example:
    modetest -w 57:alpha_map:2147548928 #0x8000ff00

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Ib38ee9b578e265cdb7beee66860e21a6dc8598cf
2025-09-22 15:37:53 +08:00
Jianwei Fan
49d4637556 media: i2c: lt8668sx: add signal lost event and stream ctrl
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: Ib76f757d553f99d6cb0f5a1af66183fe223fb8a2
2025-09-22 06:59:05 +00:00
Jianwei Fan
126dcc1d80 media: i2c: lt7911uxc: add signal lost event report
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I3b73572d1c964365e49bacffbb70f11b26f9e0ec
2025-09-22 06:59:05 +00:00
Jianwei Fan
5057576404 media: i2c: lt6911uxe: fix read timing registers and add int type
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I12e10af455b311c256b3a00de25fdcb081a11e18
2025-09-22 06:59:05 +00:00
Cai YiWei
cce37a2240 media: rockchip: isp: dynamic cropping for isp30 offline
Change-Id: I2e7bd0e52f60e01026270af82356cd277805a432
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2025-09-22 06:57:16 +00:00
Cai YiWei
f04502af82 media: rockchip: isp: fix 3dlut error for isp39
Change-Id: Ibf42d8817c1fc3fedbae0e170b0d6d2de1106bf5
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2025-09-22 06:57:16 +00:00
Yu Zheng
81341252de media: i2c: imx586 fix link freq err for 3968x2800
Signed-off-by: Yu Zheng <yu.zheng@rock-chips.com>
Change-Id: I524f1879930538934b36702d08a531c75eb3de99
2025-09-22 06:56:44 +00:00
Chen Shunqing
bd94b5aedc media: rockchip: hdmirx: write edid block3_4
Some PC start reading the EDID from block3.

Change-Id: If317bdbd744de44fa5b72bfe6708bb39fae4d1f2
Signed-off-by: Chen Shunqing <csq@rock-chips.com>
2025-09-22 14:23:03 +08:00
Yuefu Su
ac0c107b6a ARM: dts: rockchip: Add rv1126b-evb2-v10-tb-400w-spi-nand support
Signed-off-by: Yuefu Su <yuefu.su@rock-chips.com>
Change-Id: I9c3b928554f2a83e25c3b135989a4a8770130476
2025-09-19 15:00:42 +08:00
Yuefu Su
31887a1c89 ARM: dts: rockchip: Add rv1126b-thunder-boot-spi-nand support
Signed-off-by: Yuefu Su <yuefu.su@rock-chips.com>
Change-Id: I4eb99736e4b5f4cebb5f4033eefec85d1e915437
2025-09-19 15:00:36 +08:00
Xing Zheng
8ee05d07ba soc: rockchip: aoa_middleware: Remove the restriction that DMA count cannot be greater than periods
In AOR mode, the DMA count does not need to correspond
to the AAD frame count, and the maximum DMA count range
can be used, such as 16-bit 0 to 65535 in RV1126B.

Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: Ia5143d788d2c7fb142ffd453e25fbf2aa867348b
2025-09-19 06:06:21 +00:00
Xing Zheng
9c6f4c5898 arm64: dts: rockchip: rv1126b-evb2/4-v10: keeping normal capture order for 4ch capturing
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: Id77f790e082327804036497ccdbdcf7f3a0ad822
2025-09-18 12:06:57 +00:00
LongChang Ma
5ae346a6a6 media: i2c: fix sc200ai poweroff issue
Change-Id: I4c7c1871c69a9fb454caae0fd6811a74f5e4ea16
Signed-off-by: LongChang Ma <chad.ma@rock-chips.com>
2025-09-18 08:21:23 +00:00
Zitong Cai
a50711af9b mfd: display-serdes: Add serdes split mode support
Originally, there was no DRM framework to invoke the serdes enablement
process

Change-Id: I5ab31c2f712cf410c1537f5ef2dffbaa015d14ee
Signed-off-by: Zitong Cai <zitong.cai@rock-chips.com>
2025-09-18 08:20:47 +00:00
Yu Zheng
e952ddd906 arm64: configs: add rv1126b-dv.config
Signed-off-by: Yu Zheng <yu.zheng@rock-chips.com>
Change-Id: Ia5604f17469193f18d48c5c05faec269112e8e36
2025-09-18 08:05:39 +00:00
Yandong Lin
d0303d5312 media: rockchip: vpss: Fix chan id for dvbm cfg
Change-Id: I76caa2ddb70d7d6885c823b76b632a75edf636b3
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
2025-09-18 03:33:53 +00:00
shengfei Xu
daec8cfa8e mfd: rk806: adjust the rk806 spi write protocol
To slove the error:
the communication(spi-write) has a half-level problem.

Signed-off-by: shengfei Xu <xsf@rock-chips.com>
Change-Id: I93af4cb501d9076f5d5d9a0a3605406e2dc4b1c4
2025-09-17 11:48:35 +00:00
Sandy Huang
8683d5aad4 drm/rockchip: gem: remove redundant and unused include
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I01bbc83b3155713a08de2165740d11c33f30d502
2025-09-17 08:33:56 +00:00
Cai YiWei
b373c9a506 media: rockchip: isp: fix isp fast stop no clean state
Change-Id: I131e61e9c13e418ea527e7a5f6bde4b95d1e2ab2
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
(cherry picked from commit b76135012db1585faf2c143838b4c67941f15973)
2025-09-17 06:10:10 +00:00
Yuefu Su
3f05ddc63a media: i2c: imx586: fix check sensor id error
Signed-off-by: Yuefu Su <yuefu.su@rock-chips.com>
Change-Id: I124a0134e813ea5a1b725d345ab9dc14cabedad7
2025-09-16 17:38:04 +08:00
Yuefu Su
376f0eeffa media: i2c: camera: Add imx582 sensor driver
Signed-off-by: Yuefu Su <yuefu.su@rock-chips.com>
Change-Id: Iab806c9602c5edfcae7173bcb2d27533a06a4897
2025-09-16 17:38:02 +08:00
Weiwen Chen
70afeb966c arm64: dts: rockchip: rv1126b: enable fiq default
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: I96fa6f66b79c7185302038140b594e3ffc4406e9
2025-09-16 09:50:22 +08:00