Commit Graph

1269034 Commits

Author SHA1 Message Date
Zhang Yubing
f332076dfd drm/rockchip: dw-dp: support resume/suspend in mst mode
When a mst capable immediate downstream device connected,
some workqueue is used to help build and menage the
topology, write/read sidband message. To avoid some access
aux issue happen. we config phy power on when mst capable
immediate downstream device connected and config phy power
off when it becom disconnected.

When a mst capable immediate downstream device connected
and enter to suspend state, it need config phy power off.
And it need config phy power on when it enter to resume
state. This operation to guarantee phy can really power
off when suspend and really power on when resume.

Change-Id: I50e9c800c7b07ea2dd00d8728e08e9abc687378f
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2024-05-06 17:34:39 +08:00
Chaoyi Chen
cb78fffd4e drm/rockchip: vop2: Support vop splice mode in color key setup
When splice mode enabled, setup color key on both left and right win.
Without this patch, kernel will panic when display more than 4k
resolution content:

[   29.233947][  T393] Unable to handle kernel NULL pointer dereference at virtual address 00000000000000f8
[   29.234836][  T393] Mem abort info:
[   29.235155][  T393]   ESR = 0x0000000096000005
[   29.235557][  T393]   EC = 0x25: DABT (current EL), IL = 32 bits
[   29.236090][  T393]   SET = 0, FnV = 0
[   29.236431][  T393]   EA = 0, S1PTW = 0
[   29.236784][  T393]   FSC = 0x05: level 1 translation fault
[   29.237280][  T393] Data abort info:
[   29.237607][  T393]   ISV = 0, ISS = 0x00000005
[   29.238019][  T393]   CM = 0, WnR = 0
[   29.238356][  T393] user pgtable: 4k pages, 39-bit VAs, pgdp=0000000108580000
[   29.239031][  T393] [00000000000000f8] pgd=0000000000000000, p4d=0000000000000000, pud=0000000000000000
[   29.239877][  T393] Internal error: Oops: 0000000096000005 [#1] PREEMPT SMP
[   29.240495][  T393] Modules linked in: bcmdhd(O)
[   29.240921][  T393] CPU: 7 PID: 393 Comm: drm-compositor Tainted: G           O       6.1.57 #361
[   29.241714][  T393] Hardware name: Rockchip RK3588 EVB1 LP4 V10 Board (DT)
[   29.242327][  T393] pstate: 60400009 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[   29.243014][  T393] pc : vop2_win_atomic_update+0x44c8/0x5cec
[   29.243537][  T393] lr : vop2_win_atomic_update+0x35f0/0x5cec
[   29.244051][  T393] sp : ffffffc00de6b7c0
[   29.244413][  T393] x29: ffffffc00de6b8d0 x28: ffffffc0095d01f8 x27: ffffff81013fc060
[   29.245116][  T393] x26: 00000000000010e0 x25: 0000000000000f00 x24: 00000000000003c0
[   29.245817][  T393] x23: 0000000000000000 x22: ffffff815ba59600 x21: ffffff81013fbab8
[   29.246516][  T393] x20: ffffff817ed99400 x19: ffffff81013f0040 x18: ffffffc00dcfd080
[   29.247201][  T393] x17: 0000000000000001 x16: 000000000000000a x15: 0000000000000001
[   29.247888][  T393] x14: 00000000000000c0 x13: 0000000000000019 x12: 0000000000001a30
[   29.248574][  T393] x11: ffffffc00cfa8000 x10: 0000000000000001 x9 : 0000000000000000
[   29.249261][  T393] x8 : ffffff81013f0040 x7 : 00000000000003c0 x6 : 0000000000000438
[   29.249946][  T393] x5 : 00000000000003c0 x4 : ffffffc009bc5728 x3 : 0000000000000f00
[   29.250633][  T393] x2 : ffffff81013fc034 x1 : 0000000000000001 x0 : 0000000000003ff4
[   29.251321][  T393] Call trace:
[   29.251600][  T393]  vop2_win_atomic_update+0x44c8/0x5cec
[   29.252077][  T393]  vop2_plane_atomic_update+0x2b8/0x31c
[   29.252559][  T393]  drm_atomic_helper_commit_planes+0xb4/0x1e0
[   29.253083][  T393]  rockchip_drm_atomic_helper_commit_tail_rpm+0x1b4/0x2c4
[   29.253696][  T393]  commit_tail+0xa4/0x154
[   29.254065][  T393]  drm_atomic_helper_commit+0x1c4/0x1e4
[   29.254545][  T393]  drm_atomic_commit+0xa4/0xd0
[   29.254957][  T393]  drm_mode_atomic_ioctl+0x5e4/0x754
[   29.255414][  T393]  drm_ioctl_kernel+0x80/0xf8
[   29.255816][  T393]  drm_ioctl+0x2d4/0x554
[   29.256183][  T393]  __arm64_sys_ioctl+0x90/0xc8
[   29.256596][  T393]  invoke_syscall+0x40/0x104
[   29.256989][  T393]  el0_svc_common+0xbc/0x168
[   29.257380][  T393]  do_el0_svc+0x1c/0x28
[   29.257738][  T393]  el0_svc+0x1c/0x68
[   29.258075][  T393]  el0t_64_sync_handler+0x68/0xb4
[   29.258510][  T393]  el0t_64_sync+0x164/0x168

Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
Change-Id: I1929270e920d469e6c12dca1301ac4fcc5e82fdc
2024-05-06 17:28:44 +08:00
Sandy Huang
940922324c arm64: dts: rockchip: rk3368-sziauto: normalize lvds dual channel mode
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I26666fe207df0cc801e2b5773a292ac65c893d21
2024-05-06 15:54:51 +08:00
Sandy Huang
aff1a47ff7 arm64: dts: rockchip: px30-ad-r35-mb: normalize lvds dual channel mode
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I69440ef9abf84d64bca0ca0570d2c6bc005ab16b
2024-05-06 15:54:51 +08:00
Sandy Huang
5fb5272e08 arm64: dts: rockchip: rk356x-evb: normalize dual channel and split mode
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I08dbdcd46936e1dc7b3faf49386abe244de97c97
2024-05-06 15:54:51 +08:00
Sandy Huang
b89723b9a6 arm64: dts: rockchip: rk3588-evb: use rockchip,dual-channel instead of dual-channel
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I2ab98bce28152abb260b7ddb8c8d51afa4c975e2
2024-05-06 15:54:51 +08:00
Sandy Huang
a9c292f9fe arm64: dts: rockchip: rk3588-vehicle: use rockchip,split-mode instead of split-mode
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Iea3c5daf25aebc0b86e9760de86653e1f4c4296b
2024-05-06 15:54:50 +08:00
Sandy Huang
fdafd72c0d drm/rockchip: rk618 lvds: use rockchip,dual-channel instead of dual-channel
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I8e252614517a9eeef1f4f2423806c59f22b77836
2024-05-06 15:54:50 +08:00
Sandy Huang
25db75a9b3 drm/rockchip: lvds: use rockchip,dual-channel instead of dual-channel
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I662c33577cf5655cf73384a5bccf711f2ae0b285
2024-05-06 15:54:50 +08:00
Sandy Huang
27da92ba1d drm/rockchip: dsi2: normalize for rockchip,dual-connector-split
1. use rockchip,dual-connector-split instead of dual-connector-split;
2. init output_if_left_panel by default.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I6de71b42fd2967d03508579188049694aa2e2406
2024-05-06 15:54:50 +08:00
Sandy Huang
160b435063 drm/rockchip: dw-dp: add support dual connector split mode
1. use rockchip,split-mode instead of split-mode;
2. rockchip,split-mode is split two same display interface and
register one connector;
3. rockchip,dual-connector-split is split two different display interface and
register two connectors;
4. use rockchip,left-display to identify the left display.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: If428796d5bd36f6504b10faa31f8c74d73ff6036
2024-05-06 15:54:50 +08:00
Sandy Huang
5413519b93 drm/rockchip: analogix_dp: add support dual connector split mode
1. use rockchip,split-mode instead of split-mode;
2. use rockchip,dual-channel instead of dual-channel;
3. rockchip,split-mode is split two same display interface and
register one connector;
4. rockchip,dual-connector-split is split two different display interface and
register two connectors;
5. rockchip,dual-channel use two same display interface to driver
one two channel panel and register one connector.
6. use rockchip,left-display to identify the left display.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Ieb4519d1185a978a35fbdbeafc6fe1ac68e2328b
2024-05-06 15:54:50 +08:00
Sandy Huang
0e4377ad1a drm/rockchip: dw_hdmi: add support dual connector split mode
1. use rockchip,split-mode instead of split-mode;
2. rockchip,split-mode is split two same display interface and register
one connector;
3. rockchip,dual-connector-split is split two different display interface and
register two connectors;
4. use rockchip,left-display to identify the left display.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I425f80951fd5c99b31aa250383384500bae5f5f5
2024-05-06 15:54:50 +08:00
Sandy Huang
3ba080da10 drm/rockchip: vop2: add split mode for rk3576
1. dts config example for hdmi+dp split, and hdmi at left display:
         ┌────┬────┐
         │    │    │
  VP ───►│hdmi│ dp │
         │    │    │
         └────┴────┘

  &dp {
	status = "okay";
	rockchip,dual-connector-split;
  };

  &hdmi {
	status = "okay"
	rockchip,dual-connector-split;
	rockchip,left-display;
  };

2. dts config example for hdmi+dp split, and dp at left display:
         ┌────┬────┐
         │    │    │
  VP ───►│ dp │hdmi│
         │    │    │
         └────┴────┘
  &dp {
	status = "okay";
	rockchip,dual-connector-split;
	rockchip,left-display;
  };

  &hdmi {
	status = "okay"
	rockchip,dual-connector-split;
  };

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I2df45b47b75943ac91561e0a6af509cdb8215f07
2024-05-06 15:54:50 +08:00
Dingxian Wen
b15c98d8fb media: rockchip: hdmirx: binding CPU compatible with RK3583
Find the physical ID based on the logical ID of the CPU. Currently,
there are three possible order of physical CPU IDs:
1.Typical RK3588 platform: 0 1 2 3 4 5 6 7.
2.RK3588 NVR SDK swap cpu: 4 5 6 7 0 1 2 3.
3.RK3583: 0 1 2 3 4 5 or 0 1 2 3 6 7.

Signed-off-by: Dingxian Wen <shawn.wen@rock-chips.com>
Change-Id: I174c06afb143f05e07b4d277a487383c3119938f
2024-05-06 14:52:56 +08:00
Chen Shunqing
e25a48dc08 media: i2c: rk628: fix hdcp enable fail
Change-Id: I5f95c32e616c0e83a120dfba739cb9b6cd20f327
Signed-off-by: Chen Shunqing <csq@rock-chips.com>
2024-05-06 09:59:28 +08:00
Chaoyi Chen
a4cd535799 drm/rockchip: vop2: Improved performance of pixel shift
The original version would hold the DRM lock and immediately do a
drm_atomic_commit(), which may result in significant loss of
performance.

This patch postpones the commit timing. When the DRM commit has
taken effect, no additional commits will be made.

Change-Id: I04843e5ff490152fb53a967ed3fbd2e010d84ed6
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
2024-04-30 19:12:12 +08:00
Chaoyi Chen
a335f80dff drm/rockchip: vop2: Add pixel shift feature
The pixel shift feature allows to specify an X and Y direction offset
and apply offset to all planes.

Specify the vp to enable the feature in the dts:

&vp1 {
	rockchip,pixel-shift-enable;
};

Offset values can be specified in user space:

echo shift_x shift_y > /sys/class/drm/card0/video_portX/pixel_shift

The "X" in "video_portX" corresponds to the video port id.

Change-Id: I96d3bc5bc21114621606cb38243dfc015c5f8ba3
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
2024-04-30 19:12:12 +08:00
Chaoyi Chen
24cce56339 drm/rockchip: Add sysfs device node for each crtc
This patch creates device nodes for each available crtc:

/sys/class/drm/card0/crtc_name

Change-Id: I748f56d90c3781b6e3100dfd08b4070ee7212575
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
2024-04-30 19:12:12 +08:00
jianwei.fan
0fb33e07b5 media: i2c: lt6911uxe/lt7911uxc/lt8668sx: remove i2c enable
Change-Id: Ic7e5410973d6afb1da91ee0c72dddf57aa99277b
Signed-off-by: jianwei.fan <jianwei.fan@rock-chips.com>
2024-04-30 19:08:30 +08:00
Cai YiWei
33a1957772 media: rockchip: isp: fix dmatx config
Change-Id: I34eb6118a64f13754d57bfd58e0d7a760380d243
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-04-30 18:12:52 +08:00
Cai YiWei
85af4797af media: rockchip: isp: fix dmarx deadlock
lock dmarx buf_done->vicap->rx_buffer->wait lock

Change-Id: I02a48f1c53f2fb6bb7a8c86e9f80dfe3d9c2ba27
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-04-30 18:12:29 +08:00
Luo Wei
2239994fc3 rtc: s35390a: fix rtc alarm wake up problem if time < 60s
Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: I946fd0742405b0b0fb6261231f41a53e3aacd9cb
2024-04-30 18:11:58 +08:00
Yu Qiaowei
58ff74d9cf video: rockchip: rga3: modify task_num_max 50->256
NVR cases will require larger task num.

Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I455459610dec2611e4a03a036387daee5dbad18a
2024-04-30 17:45:56 +08:00
Yu Qiaowei
2d094ea88b video: rockchip: rga3: fix request cannot be released after job_alloc failed
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I9560e1ea2d5edbee2dbfa7adb95e7fa9680e9fda
2024-04-30 17:45:56 +08:00
Felix Zeng
5776643dfd driver: rknpu: Update rknpu driver, version: 0.9.7
* Add state init on prob and reset
* Fix implicit declaration of function 'rockchip_uninit_opp_table' for kernel 5.10.160
* Add nbuf sgt support

Signed-off-by: Felix Zeng <felix.zeng@rock-chips.com>
Change-Id: Ibb88d88709ba5dea7debaafa44deb206c9a1f1af
2024-04-30 16:04:30 +08:00
Shuangjie Lin
68bfc914a6 arm64: mm: Export dcache_inval_poc/dcache_clean_poc to support rknpu cache invalid/clean
Signed-off-by: Shuangjie Lin <shuangjie.lin@rock-chips.com>
Change-Id: Iaffc599649e98112ea4561e14e8af9be4f86b6dc
2024-04-30 15:39:00 +08:00
Felix Zeng
516c0e07b0 driver: rknpu: Add iommu limit IOVA alignment support
Signed-off-by: Felix Zeng <felix.zeng@rock-chips.com>
Change-Id: I6d7003caa7db75962985109921c9148eee3e2dbd
2024-04-30 15:39:00 +08:00
Shuangjie Lin
8d69ac3dcf driver: rknpu: add power get/put for drm free memory
Signed-off-by: Shuangjie Lin <shuangjie.lin@rock-chips.com>
Change-Id: I2adc5888babf323372a6bd967576c693c7414b8d
2024-04-30 15:30:32 +08:00
Xueman Ruan
e307e7a97d video: rockchip: mpp: iep2 add offset info process
Signed-off-by: Xueman Ruan <xueman.ruan@rock-chips.com>
Change-Id: I1817633b4ad5367e737c329d228bc4c554f2b77b
2024-04-29 17:14:37 +08:00
William Wu
b88a2bdd10 phy: rockchip: inno-usb2: Fix pipe phystatus reg configuration for rk3576/rk3588
The original pipe_phystatus reg configuration only
set the bit[3:2] (GRF control usb pipe phystatus)
for usb2.0 only interface. It's effective for usb2
device, but it's imperfect for usb2 host mode. In
order to support usb2 host mode, this patch sets
the whole bit[15:0] which include disable u3 port
and select utmi source clock.

Change-Id: I5cde52da2c6e170885df6c4a59f6785e1c485df7
Signed-off-by: William Wu <william.wu@rock-chips.com>
2024-04-29 16:48:21 +08:00
Algea Cao
145c6aac46 phy: rockchip-samsung-hdptx-hdmi: Fix phy pll is incorrectly configured when logo is enabled.
If the uboot logo is enabled, it is needs to obtain the pll frequency
set in the uboot during phy probe. If uboot logo is disabled, it is
need to set a default frequency when enable hdmiphy pll for the first
time.

Change-Id: I566d361a4864324ef4071d9764d84a0fde7d88ee
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2024-04-29 15:57:38 +08:00
Finley Xiao
a25bdcd15f arm64: dts: rockchip: rk3576: Change opp volt for dmc and vop
Change-Id: Ic5c501cf015759d4d31c313efd3fbfc1c4ddeb03
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2024-04-29 15:47:45 +08:00
Yandong Lin
a9b3f56449 video: rockchip: mpp: fix enc repeatedlly causeby hw bug for rk3576
Fix bug:
There is a hw bug, the encoder has probabilistically encodes
one frame repeatedlly and does not return enc done in time.

Solution:
Through special config and check the slice done interrupt can determine
that encoding is done and safe reset the rkvenc.

Change-Id: I1a3511523636eac94a9cf89b15cb95b87c447154
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
2024-04-29 15:47:31 +08:00
Liang Chen
97e06c691b arm64: dts: rockchip: rk3576: set default autocs div to 1 for vop
The default 2-div autocs of vop will cause display abnormal when
multi-pannel with high resolution, so set default div to 1 and
vop driver will take over later.

Signed-off-by: Liang Chen <cl@rock-chips.com>
Change-Id: I6ab9db00ea2cacfdecdb167b7ad67063c25108b1
2024-04-29 14:39:25 +08:00
William Wu
0b1d72b40c phy: rockchip: usbdp: Avoid access usb grf during dp phy power on
The power domain of the usb grf belongs to PD_USB
on both RK3576 and RK3588 platforms. The PD_USB is
managed by the USB controller driver, and it maybe
powered down if USB is not working.

Test on RK3576 EVB2 which supports Type-A USB3.1 +
DP 2xLanes, connect DP to Display screen, meanwhile,
USB not used, SError happens with the following log:

[  224.958079][    C0] Kernel panic - not syncing: Asynchronous SError Interrupt
[  224.958084][    C0] CPU: 0 PID: 132 Comm: kworker/0:2 Tainted: G           O       6.1.57 #11
[  224.958089][    C0] Hardware name: Rockchip RK3576 EVB2 V10 Android Board (DT)
[  224.958092][    C0] Workqueue: events dw_dp_hpd_work
[  224.958101][    C0] Call trace:
[  224.958103][    C0]  dump_backtrace+0xf4/0x114
[  224.958115][    C0]  show_stack+0x18/0x24
[  224.958122][    C0]  dump_stack_lvl+0x6c/0x90
[  224.958132][    C0]  dump_stack+0x18/0x38
[  224.958137][    C0]  panic+0x14c/0x338
[  224.958145][    C0]  check_panic_on_warn+0x0/0x90
[  224.958155][    C0]  arm64_serror_panic+0x68/0x74
[  224.958160][    C0]  do_serror+0xc4/0xcc
...
[  224.958218][    C0]  regmap_write+0x54/0x78
[  224.958224][    C0]  udphy_power_on+0x16c/0x1b0
[  224.958233][    C0]  rockchip_dp_phy_power_on+0x58/0x1bc
[  224.958240][    C0]  phy_power_on+0x8c/0x108
[  224.958248][    C0]  dw_dp_bridge_detect+0x58/0x348
[  224.958256][    C0]  drm_bridge_detect+0x28/0x34
[  224.958264][    C0]  dw_dp_connector_detect+0x34/0x4c
[  224.958272][    C0]  drm_helper_probe_detect+0xd0/0x1a0
[  224.958281][    C0]  check_connector_changed+0x50/0x1b0
[  224.958288][    C0]  drm_helper_hpd_irq_event+0x78/0x134
[  224.958295][    C0]  dw_dp_hpd_work+0x58/0x818

This patch moves udphy_u3_port_disable() from the
udphy_power_on() to rockchip_u3phy_init(), it can
avoid access usb grf during dp phy power on, and
the rockchip_u3phy_init() is called from the USB
controller driver, this can make sure the PD_USB
is powered on if it access usb grf in the USBDP
PHY driver.

Change-Id: I434b2efbbbb5b513ec668bca1c8800d0f7f18e12
Signed-off-by: William Wu <william.wu@rock-chips.com>
2024-04-29 14:31:40 +08:00
Zhang Yubing
601aff2337 drm/rockchip: dw-dp: optimize the logic to deal with hpd
Detecting the hpd irq in the gpio irq handler, the hpd
type will overwrite by the next gpio irq. So the hpd work
can't recognize the hpd irq.
Use a state machine to deal with the hpd status to avoid this
issue happen.

Change-Id: I1214b1a281cbb8e82431bcc1c2b4a0856d64a7a0
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2024-04-29 14:29:51 +08:00
Finley Xiao
592ddb0508 arm64: dts: rockchip: rk3576: Add vop-bw-dmc-freq for dmc
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I84e3db9de6d439569185eae65f5f3f3cb9717334
2024-04-29 14:12:06 +08:00
Yu Qiaowei
05baafeecf video: rockchip: rga3: mpi: fix submit failed causing request to be released
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I05976707580d6892cb706356f8063152c4bfca1e
2024-04-29 12:02:56 +08:00
Sandy Huang
dc39be5e13 drm/rockchip: vop2: fix compile warning
[clang] drivers/gpu/drm/rockchip/rockchip_drm_vop2.c:2709:9: warning:
Division by zero [core.DivideZero]

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I95a28037ab52a10e3d2e333b773ade4f8e2e0c87
2024-04-29 09:16:57 +08:00
Sandy Huang
5afebb19ce drm/rockchip: vop2: add aclk reset mode for iommu reset
set vop aclk mode to ROCKCHIP_VOP_ACLK_RESET_MODE is better
for power and performance.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I8514e57af6ac8950112a6c675f5eb03fe4e44cf0
2024-04-29 09:16:18 +08:00
Sandy Huang
f37500067e arm64: dts: rockchip: rk3576: add aclk reset mode to vop opp table
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I3d05b91b22696e597010954a2c550694ce4891a3
2024-04-29 09:15:42 +08:00
LiuDiMing Lin
ebb1606c2a arm64: dts: rockchip: add rk3576-evb1-v10-ipc-3x-linux.dts
Change-Id: I7eba699ffba9d7800b873121150fc40f2c81ba8e
Signed-off-by: LiuDiMing Lin <fenrir.lin@rock-chips.com>
2024-04-28 16:22:10 +08:00
Chaoyi Chen
a7377e78ec drm/rockchip: Add vop lite config support for rk3576
The VOP Lite unit is found on rk3576 which use legacy VOP architecture.

Change-Id: I800523a7dac1e086db26b3fbf731f3d07e1ed68d
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
2024-04-28 15:14:44 +08:00
Huibin Hong
f99134904e serial: 8250: fix bug rts is inactive when auto flow is enable
To save mcr value when uart is reset for setting baudrate.

Change-Id: I1a4fcd78498cf4f601d0c8461d1db67dc0ed6f9e
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
2024-04-28 14:21:56 +08:00
Johnson Ding
12fd5673bd video: rockchip: mpp: jpege: fix isr return value incorrect problem
The wrong value will make irq counter stop to increase at 200001, and
software takes more time to finish encoding.

Fixes: 53048fad2a ("video: rockchip: mpp: Add JPEG VPU720 driver")
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
Change-Id: Id98fcdc6d4e617e8dfba1bc6471295a14c48594b
2024-04-28 14:12:41 +08:00
Sandy Huang
61aaa35883 drm/rockchip: vop2: force select BT601L for r2y when it is yuv overlay
VOP YUV overlay only can support YUV limit range, so force select BT601L
todo R2Y.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I3af0d916d549a1fd890f14d3723f3264c779a1ea
2024-04-26 14:45:49 +08:00
Algea Cao
e876c6e23b drm/rockchip: vop2: Set plane csc yuv path when DCI is enabled
Plane csc determines its own color input path on the input
color format of plane. So when DCI is enabled should force
yuv csc path.

Change-Id: I66d5f3e773fc0fd631673622c22b242dcc791afe
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2024-04-26 14:32:39 +08:00
Jon Lin
2df0a44f0a arm64: dts: rockchip: rk3576: remove SCLK_SFC assigned-clock setting
1.Delete the assigned-clock
2.Only rely on spi-max-frequency configuration in sub nodes

Change-Id: I040a3afaa0c92de854f9f21eb58e912d6638b080
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-04-26 14:10:21 +08:00
Jon Lin
ef7384222b arm64: dts: rockchip: rk3588: remove SCLK_SFC assigned-clock setting
1.Delete the assigned-clock
2.Only rely on spi-max-frequency configuration in sub nodes

Change-Id: I952376e0e898635dda299c833759a84efbe631cf
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-04-26 14:10:21 +08:00