Commit Graph

1285927 Commits

Author SHA1 Message Date
Chunsheng Zhang
18a1dd9d03 arm64: dts: rockchip: rv1126b-evb2: Add the rk96x_wake_aov_irq driver's dts.
Change-Id: Idef5e3d08b71058b95536b23fc333f19ce6c3d65
Signed-off-by: Chunsheng Zhang <chunsheng.zhang@rock-chips.com>
2025-09-30 02:49:22 +00:00
Yuefu Su
36d177c27c spi: rockchip-sfc: Wait for thunder boot DMA status change before rockchip_sfc_get_gpio_descs
Signed-off-by: Yuefu Su <yuefu.su@rock-chips.com>
Change-Id: I977ea73a372328313cfc2728786b123abaaecc7b
2025-09-29 12:20:16 +00:00
Liang Chen
7235aafc8f clk: rockchip: clk-pvtpll: rv1126bj: adjust pvtpll config for cpu
Change-Id: I618c129b48fb172f0e7ce4754523a5414b5a8839
Signed-off-by: Liang Chen <cl@rock-chips.com>
2025-09-29 10:18:11 +00:00
Liang Chen
dfbbb45bff arm64: dts: rockchip: rv1126bj: adjust opp-table for cpu
Change-Id: I8b070f128833117196e6309bb6e1a5262807aa60
Signed-off-by: Liang Chen <cl@rock-chips.com>
2025-09-29 10:17:52 +00:00
Yuefu Su
53b5639eb8 media: i2c: sc850sl: fix dual pm_runtime_put in stop_stream
Signed-off-by: Yuefu Su <yuefu.su@rock-chips.com>
Change-Id: I9e6c989fb34b90cb4c7a36513ec44eb03071e6e3
2025-09-29 09:46:22 +00:00
Sandy Huang
02027a2bbc drm/rockchip: vop2: add SPARSE_SPLIT_SIZE_16x16 afbc format for rk3588
As SPARSE_SPLIT_SIZE_16x16 afbc format each sub block size is
16*8*4=512 Byte, This can make DDR each channel keep balanced.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I1aa7a4c6068fec80f144979dca821bf9cc534b6a
2025-09-29 01:38:48 +00:00
Jianwei Fan
97faaa82e2 iio: proximity: add nds03 tof sensor
Change-Id: I263bc2a7cc302ded8c940a10f73e050abdefa1de
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
2025-09-28 16:26:54 +08:00
Jianwei Fan
1e7a3292b6 media: i2c: rk628: add status variable to determine whether CSI1 is enabled
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I6f127c210f9c755400efb4dbbe1c96aed5c3f917
2025-09-28 01:22:26 +00:00
Haoran Han
ce6592f012 arm64: configs: rk3576_vehicle.config: add CONFIG_VIDEO_MAX96756=y
Change-Id: I05c3aa2938b6d86b7c1cf84fab4c436a9159fa8c
Signed-off-by: Haoran Han <haoran.han@rock-chips.com>
2025-09-26 08:05:50 +00:00
Guochun Huang
f0612ad478 arm64: dts: rockchip: rk3588s-evb: fix panel resolution info
Fixes: cc761c9b6a ("arm64: dts: rockchip: add rk3588/rk3588s evb mipi panel info")
Fixes: 8aa80d1c81 ("arm64: dts: rockchip: add rk3588s-tablet-rk806-single-v10.dts")

Change-Id: I78f0a49099caec0eace0002a099877f2c67484ce
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2025-09-26 08:04:30 +00:00
Jianwei Fan
e81982d9e2 media: i2c: bridge: add ioctl RK_HDMIRX_CMD_GET_SIGNAL_STABLE_STATUS
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: Ibb8af426e677e3615b2eb1be4dc2dcdf15d1045b
2025-09-26 15:46:59 +08:00
Zitong Cai
04add29009 arm64: dts: rockchip: vehicle-evb: Fix the issue of left and right shaking in probability display
Change-Id: I759f845221455c2f0f5d227282fe7167fdab75f3
Signed-off-by: Zitong Cai <zitong.cai@rock-chips.com>
2025-09-26 14:33:38 +08:00
Zitong Cai
77ce0f10e6 arm64: dts: rockchip: vehicle-evb: Fix the abnormal operation of dp phy when switching dp
Change-Id: I86e89a26b8b356571d2870f15abbd889485d7fb6
Signed-off-by: Zitong Cai <zitong.cai@rock-chips.com>
2025-09-26 14:33:24 +08:00
Tao Huang
7444be54f4 rtc: rk630: Use devm_rtc_register_device()
According to commit fdcfd85433 ("rtc: rework rtc_register_device() resource management").

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: If37750a01675a5d5e2b9231d1549e70bc349a3e7
2025-09-26 11:10:17 +08:00
Jon Lin
0241b8bd2a phy: rockchip-snps-pcie3: Support rockchip,skip-init
For special scenarios, such as after the PCIe PHY is bifurcation and
with different usage like phy1 is the RC and the other phy0 is the EP.
Since the EP has been initialized in the previous stage, it is not
expected that repeated initialization in the kernel stage will cause
the link to be disconnected. Therefore, no matter which of the two
controllers performs initialization, the PHY re-initialization operation
should be avoided.

Change-Id: I7c04b537b18020d434d14049c5a0661739713265
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2025-09-26 02:57:00 +00:00
Jianwei Fan
bc08d6c1b9 media: i2c: rk628: add ioctl to get process output color range/space
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I777397d2e77985859e03563dd3f10a7b0c6b793e
2025-09-26 10:06:29 +08:00
Zorro Liu
192d95fdf1 arm64: dts: rockchip: rk3576-eink: update dts configs for new shutdown method
Change-Id: I18d6fb72eedea776b67ab74ba2faf554c5034ccf
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
2025-09-26 01:17:49 +00:00
Shengfei Xu
db61801669 mfd: rk806: The shutdown pin of RK806 is configurable
Configure which pin controls the shutdown function via the
shutown_by_pwrctrln property in the DTS.

Change-Id: I7bb3adf28ff7e93fd318d08274cb88271b925027
Signed-off-by: Shengfei Xu <xsf@rock-chips.com>
2025-09-25 12:22:21 +00:00
Jianwei Fan
b7f7724895 media: i2c: rk628: fix hdmirx range detect when default
According to the CEA-861 specification, when the RGB default color gamut is detected:

When the VIC is between 2 and 127, it is CE video, i.e., limited range.
When the VIC is any other value, it is IT video, i.e., full range.

Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I258bd84096a340fd88e37e7f127301469baadef9
2025-09-25 03:44:31 +00:00
Jianwei Fan
41c01fb27b media: i2c: rk628: add csi output yuv422 10bit support
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: Ibdbb2d39287b13115babb36e6643c0a0c60eadeb
2025-09-25 03:39:45 +00:00
Chen Shunqing
e2c0f45bcb media: i2c: rk628: add hdr support
Signed-off-by: Chen Shunqing <csq@rock-chips.com>
Change-Id: I90ae0d96391185b5e79a5a7a8733a42964684dd0
2025-09-25 09:51:44 +08:00
Chen Shunqing
f07db797dd media: rockchip: hdmirx: add RK_HDMIRX_CMD_GET_HDR_METADATA
Signed-off-by: Chen Shunqing <csq@rock-chips.com>
Change-Id: Idc399fea2a76a10f8ae196e52670d88be5bedd44
2025-09-25 09:46:39 +08:00
Jianwei Fan
e1f3f2c568 media: i2c: rk628: post process fix output space for BT2020
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: If3795a08ce7be84ece2d0f0a4d5f091655be4baa
2025-09-25 01:33:59 +00:00
Jianwei Fan
215d3c5bf9 media: i2c: rk628: fix vsync/vfp/vbp calculate when scaler en
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I4472e8ceff09e326107c203ae6d65eaf907e90ac
2025-09-25 01:30:09 +00:00
Jianwei Fan
f2f204f06b media: i2c: rk628: fix mipi dphy timing set
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I58c77f0f7418651ecf817b225d7dac3e649567db
2025-09-25 01:30:09 +00:00
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